[issue2636] Regexp 2.7 (modifications to current re 2.2.2)
Matthew Barnett
report at bugs.python.org
Fri Dec 24 02:02:17 CET 2010
Matthew Barnett <python at mrabarnett.plus.com> added the comment:
issue2636-20101224.zip is a new version of the regex module.
Case-insensitive matching is now faster.
The matching functions and methods now accept a keyword argument to release the GIL during matching to enable other Python threads to run concurrently:
matches = regex.findall(pattern, string, concurrent=True)
This should be used only when it's guaranteed that the string won't change during matching.
The GIL is always released when working on instances of the builtin (immutable) string classes because that's known to be safe.
----------
Added file: http://bugs.python.org/file20154/issue2636-20101224.zip
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2636>
_______________________________________
More information about the Python-bugs-list
mailing list