Giter Site home page Giter Site logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
CPython is written in C, as you know, and the LOCALE flag just makes it use the 
C functions "isalpha", etc.

The LOCALE flag is supported only because the re module has it, and should give 
the same results, whatever they may be...

Original comment by [email protected] on 2 Apr 2011 at 10:18

  • Changed state: WontFix

from mrab-regex-hg.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
Thanks for the prompt answer;
although I don't quite get, what the results are supposed to be and how they 
conform to:
http://docs.python.org/library/re.html#re.LOCALE
Make \w, \W, \b, \B, \s and \S dependent on the current locale.

But it is probably another peculiarity of using locales one should be aware of 
:-)

vbr

Original comment by [email protected] on 2 Apr 2011 at 10:33

from mrab-regex-hg.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
I don't understand it either. As long as it's no worse than re (and for 
compatibility reasons, perhaps it should be the same as re), it's not something 
I'll lose sleep over. After all, Unicode is the way! :-)

(If someone changes re to act how you expect, then I'll just copy that code. If 
the changes are elsewhere in Python, then you'll get the fix irrespective of 
whether you're using re or regex.)

Original comment by [email protected] on 2 Apr 2011 at 11:04

from mrab-regex-hg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.