sre is broken in SuSE 9.2

Denis S. Otkidach ods at strana.ru
Sat Feb 12 03:43:38 EST 2005


On Fri, 11 Feb 2005 18:49:53 +0100
"Fredrik Lundh" <fredrik at pythonware.com> wrote:

> >> >>> re.compile(ur'\w+', re.U).findall(u'\xb5\xba\xe4\u0430')
> >> [u'\xb5\xba\xe4\u0430']
> >
> > I can't find the strict definition of isalpha, but I believe average
> > C program shouldn't care about the current locale alphabet, so isalpha
> > is a union of all supported characters in all alphabets
> 
> btw, what does isalpha have to do with this example?

The same problem is with isalpha.  In most distributions:
>>> for c in u'\xb5\xba\xe4\u0430': print c.isalpha(),
... 
True True True True

And in SuSE 9.2:
>>> for c in u'\xb5\xba\xe4\u0430': print c.isalpha(),
... 
False False False False

-- 
Denis S. Otkidach
http://www.python.ru/      [ru]



More information about the Python-list mailing list