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

Emanuel Barry report at bugs.python.org
Sat Jan 9 16:39:30 EST 2016


Emanuel Barry added the comment:

Truncating at 200 characters is actually a common occurrence in the C code, just barely anyone notice this, as it's not common to need more than 200 characters for most expressions.

I don't think this needs to be changed at all; the rare case should not affect the common ones. If eval()'ing your repr fails, you can always access the full regex from `exp.pattern` - which doesn't truncate at 200 characters :)

----------
nosy: +ebarry

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


More information about the Python-bugs-list mailing list