[issue13592] repr(regex) doesn't include actual regex
Hugo Lopes Tavares
report at bugs.python.org
Fri Jul 20 00:37:59 CEST 2012
Hugo Lopes Tavares <hltbra at gmail.com> added the comment:
Hey, I started the patch under `default` branch, and get the following working:
>>> import re
>>> re.compile("foo")
re.compile("foo", re.UNICODE)
>>> re.compile("foo", re.DOTALL)
re.compile("foo", re.DOTALL|re.UNICODE)
>>> re.compile("foo", re.DOTALL|re.MULTILINE)
re.compile("foo", re.MULTILINE|re.DOTALL|re.UNICODE)
>>>
Do you have any comments on it?
I want to adapt the patch to make it work with python 2.7 too. Do you think is it worthful?
The attached patch was done after commit 3fbfa61634de.
----------
keywords: +patch
nosy: +hltbra
Added file: http://bugs.python.org/file26441/issue13592_add_repr_to_regex.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13592>
_______________________________________
More information about the Python-bugs-list
mailing list