[issue2834] re.IGNORECASE not Unicode-ready

Antoine Pitrou report at bugs.python.org
Sun Jun 29 03:15:30 CEST 2008


Antoine Pitrou <pitrou at free.fr> added the comment:

Here is a preliminary patch which doesn't remove re.LOCALE, but adds
TypeError's for mistyped matchings, a ValueError when specifying
re.UNICODE with a bytes pattern, and implies re.UNICODE for unicode
patterns. The test suite runs fine after a few fixes.

It also includes the patch for #3231 ("re.compile fails with some bytes
patterns").

----------
keywords: +patch
Added file: http://bugs.python.org/file10767/reunicode.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2834>
_______________________________________


More information about the Python-bugs-list mailing list