Raymond Hettinger added the comment: Just showing group(0) should be helpful. And perhaps the number of groups. If a string is really long, we can truncate it like reprlib does.
The main goal is to make it easier to work with match objects at the interactive prompt. They are currently too opaque. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17087> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com