New submission from Christoph Sarnowski:
In Python 3.6, the flags in the "re" module became members of an enum.IntFlag,
whereas before they were just ints.
This breaks the regex demo in Tools/demo/redemo.py.
To fix this, in line 86 of redemo.py,
getattr(re, name)
has to be r
Christoph Sarnowski added the comment:
Hi, sorry for forgetting steps to reproduce the bug.
Easiest way to see it is to start redemo.py from a console (important on
windows), so you can see stdout/stderr.
Then just a click on any of those flag checkboxes leads to an exception
backtrace
Christoph Sarnowski added the comment:
By the way, I confused the flags, in my error-reproduction steps, instead of
the re.MULTILINE flag, it is the re.DOTALL flag that should lead to all lines
being matched by ".*".
--
___
Python trac
Changes by Christoph Sarnowski :
--
nosy: +Christoph Sarnowski
___
Python tracker
<http://bugs.python.org/issue20160>
___
___
Python-bugs-list mailing list
Unsub