[issue26068] re.compile() repr end quote truncated

ThiefMaster report at bugs.python.org
Sat Jan 9 16:30:12 EST 2016


ThiefMaster added the comment:

I think it's pretty ugly to have a repr that is valid python code in most cases and suddenly stops being so.

The repr of a string is not truncated, so why truncate it in a pattern object?

With the truncation, why not use a repr style that's clearly not executable to recreate the original object, e.g. `<re pattern %.200R>`

----------

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


More information about the Python-bugs-list mailing list