re different between US and German versions of NT

Fredrik Lundh fredrik at effbot.org
Thu Dec 21 02:10:15 EST 2000


A.M. Kuchling wrote:
> sre uses the C isalnum() function/macro at one point; isalnum() is
> locale-aware, so presumably it's matching more characters on the
> German version.

SRE uses isalnum only if you're using the LOCALE flag when
you compile the pattern.

if you don't want the pattern to depend on the locale, don't
use the LOCALE flag...

</F>





More information about the Python-list mailing list