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

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top