This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author poq
Recipients Arfrever, Nicholas.Cole, ezio.melotti, inigoserna, loewis, poq, tchrist, vstinner, zeha
Date 2012-03-10.16:52:53
SpamBayes Score 0.0013035143
Marked as misclassified No
Message-id <1331398374.59.0.359908742277.issue12568@psf.upfronthosting.co.za>
In-reply-to
Content
Martin, I think you meant to write "if w == 'A':".
Some very common characters have ambiguous widths though (e.g. the Greek alphabet), so you can't just raise an error for them.

http://unicode.org/reports/tr11/ says:
"Ambiguous characters occur in East Asian legacy character sets as wide characters, but as narrow (i.e., normal-width) characters in non-East Asian usage."

So in practice applications can treat ambiguous characters as narrow by default, with a user setting to use legacy (wide) width.

As Tom pointed out there are also a bunch of zero width characters, and characters with special formatting like tab, soft hyphen, ...
History
Date User Action Args
2012-03-10 16:52:54poqsetrecipients: + poq, loewis, vstinner, ezio.melotti, Arfrever, inigoserna, zeha, Nicholas.Cole, tchrist
2012-03-10 16:52:54poqsetmessageid: <1331398374.59.0.359908742277.issue12568@psf.upfronthosting.co.za>
2012-03-10 16:52:54poqlinkissue12568 messages
2012-03-10 16:52:53poqcreate