[issue4314] isalpha bug

2008-11-13 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: $ python Python 2.5.1 (r251:54863, Jul 31 2008, 23:17:40) >>> print u'\u0451' ё >>> print u'\u0427' Ч @ZooKeeper: Try Python 2.6, I guess that your bug is already fixed. ___ Python tracker <[EMAIL PROTECTE

[issue4314] isalpha bug

2008-11-13 Thread ZooKeeper
ZooKeeper <[EMAIL PROTECTED]> added the comment: I'll investigate it in further shortly, but for now replicating the test. print u'\u0451' ¸ print u'\u0427' × Something must be going on here. Running Win XP. ___ Python tracker <[EMAIL PROTECTED]>

[issue4314] isalpha bug

2008-11-13 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: Results on Linux: With Python 2.7 trunk: >>> print(', '.join('%s:%s' % (c, c.isalpha()) for c in u'абвгдеч')) а:True, б:True, в:True, г:True, д:True, е:True, ч:True With Python 2.5.1: >>> print(', '.join('%s:%s' % (c, c.isalpha()) for c in u

[issue4314] isalpha bug

2008-11-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment: ... and for the other character: >>> print u'\u0427' Ч >>> print u'\u0447' ч >>> print u'\u0427'.isalpha() True >>> print u'\u0447'.isalpha() True Looks fine. -- resolution: -> works for me status: open -> closed _

[issue4314] isalpha bug

2008-11-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment: FWIW: I get the following in Python 2.5: >>> print u'\u0401' Ё >>> print u'\u0451' ё >>> print u'\u0401'.isalpha() True >>> print u'\u0451'.isalpha() True ___ Python tracker <[EMAIL PROTECTED]>

[issue4314] isalpha bug

2008-11-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment: Are you sure that you've used the right source code encoding for writing these characters ? Note that the Unicode .isalpha() method relies entirely on what the Unicode database provides as code point information. If a character is marked

[issue4314] isalpha bug

2008-11-13 Thread ZooKeeper
New submission from ZooKeeper <[EMAIL PROTECTED]>: This may be a little tricky to recreate but here it is: q = u'абвгде' q.isalpha() True foo = u'ч' foo.isalpha() False So the Russian character u'ч' and u'ё' as well as a bunch of others is not recognized by isalpha as a alphabetic character, w