[issue20426] Compiling a regex with re.DEBUG should force a recompile

Antoine Pitrou report at bugs.python.org
Sun Feb 2 23:54:43 CET 2014


Antoine Pitrou added the comment:

A simple workaround is to bypass the cache when DEBUG is passed. See attached patch.
(not sure this applies as a bug fix, but DEBUG probably isn't used in production anyway: the potential for breakage is low)

----------
keywords: +patch
stage: test needed -> patch review
versions: +Python 2.7, Python 3.3, Python 3.4 -Python 3.5
Added file: http://bugs.python.org/file33877/re_debug_cache.patch

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


More information about the Python-bugs-list mailing list