re.UNICODE and re.LOCALE

J

Jane Austine

Is turning both re.UNICODE _and_ re.LOCALE flags on valid in Python
2.3? Doesn't it conflict each other? What is the semantics?

Playing with \w and \b with both the flags on, it seemed re.UNICODE is
ignored.
 
M

Martin v. =?iso-8859-15?q?L=F6wis?=

Is turning both re.UNICODE _and_ re.LOCALE flags on valid in Python
2.3? Doesn't it conflict each other? What is the semantics?

Playing with \w and \b with both the flags on, it seemed re.UNICODE is
ignored.

Right. The flags do conflict, and re.LOCALE is checked first,
resulting in re.UNICODE being ignored.

Regards,
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top