[issue39949] truncating match in regular expression match objects repr

Quentin Wenger report at bugs.python.org
Tue Jun 16 17:53:36 EDT 2020


Quentin Wenger <wenger.quentin at bluewin.ch> added the comment:

File objects are an example of a square-bracket repr with string parameters in the repr, but no truncation is performed (see https://github.com/python/cpython/blob/master/Modules/_io/textio.c#L2912).

Various truncations with the same (lack of?) clarity are done in the stdlib, see eg. https://github.com/python/cpython/blob/04fc4f2a46b2fd083639deb872c3a3037fdb47d6/Objects/longobject.c#L2475.

----------

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


More information about the Python-bugs-list mailing list