[issue13592] repr(regex) doesn't include actual regex

Adam Bartoš report at bugs.python.org
Mon Jun 20 09:10:08 EDT 2016


Adam Bartoš added the comment:

Isn't the trucation of long patterns too rough? Currently, repr(re.compile("a" * 1000)) returns something like "re.compile('aaaaaaaaaaaaa)", i.e. no ending quote and no indication that something was truncated (besides the missing quote). It looked like a bug to me at first sight.

----------
nosy: +Drekin

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


More information about the Python-bugs-list mailing list