[issue17087] Improve the repr for regular expression match objects

Claudiu.Popa report at bugs.python.org
Tue Aug 20 15:23:35 CEST 2013


Claudiu.Popa added the comment:

Here's my patch attempt. The repr of a match object has the following format:
(groups=\d+, span=(start, end), group0=the entire group or the first X characters, where X is represented by a new constant in sre_constants.h, SRE_MATCH_REPR_SIZE).

----------
keywords: +patch
nosy: +Claudiu.Popa
Added file: http://bugs.python.org/file31383/sre.patch

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


More information about the Python-bugs-list mailing list