[issue13592] repr(regex) doesn't include actual regex

Antoine Pitrou report at bugs.python.org
Thu Dec 22 22:20:09 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> I'm just adding this to the regex module and I've come up against a
> possible issue. The regex module supports named lists, which could be
> very big. Should the entire contents of those lists also be shown in
> the repr?They would have to be if the repr is to be a eval-able.

I don't see how eval()able repr is a big deal. Most reprs aren't, and I
think a readable and informative representation is the real goal.

----------

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


More information about the Python-bugs-list mailing list