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

2014-02-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I've fixed the bug in all branches. Thanks for reporting! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

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

2014-02-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset e47f6883dedf by Antoine Pitrou in branch '2.7': Issue #20426: When passing the re.DEBUG flag, re.compile() displays the debug output every time it is called, regardless of the compilation cache. http://hg.python.org/cpython/rev/e47f6883dedf ---

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

2014-02-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset a7b180d5df5f by Antoine Pitrou in branch '3.3': Issue #20426: When passing the re.DEBUG flag, re.compile() displays the debug output every time it is called, regardless of the compilation cache. http://hg.python.org/cpython/rev/a7b180d5df5f New cha

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

2014-02-02 Thread Antoine Pitrou
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 -> p

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

2014-01-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue17441. -- nosy: +pitrou, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-lis

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

2014-01-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> test needed versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mail

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

2014-01-28 Thread leewz
New submission from leewz: Compiling a regex with the `re.DEBUG` flag indicates that the user wants to see the debug output. `re.compile` is cached, though, so there is the possibility of no output. Example: import re re.compile('1',re.DEBUG) #expected output re.compile('1',re.DEBUG) #no outpu