[issue39949] truncating match in regular expression match objects repr

Eric V. Smith report at bugs.python.org
Tue Jun 16 08:30:13 EDT 2020


Eric V. Smith <eric at trueblade.com> added the comment:

There was a discussion in issue40984 that the repr must be eval-able. I don't feel very strongly about this, mainly because I don't think anyone ever does eval(repr(some_regex)). I'd be slightly sympathetic to wanting the eval to fail if the repr had to truncate its output, instead of succeeding because the string was still a valid, but different, regex.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39949>
_______________________________________


More information about the Python-bugs-list mailing list