[issue3976] pprint._safe_repr is not general enough in one instance

Armin Ronacher report at bugs.python.org
Sun Sep 20 19:37:55 CEST 2009


Armin Ronacher <armin.ronacher at active-4.com> added the comment:

@Georg: Instead of catching a TypeError i would rather call __gt__ /
__lt__ directly and check for NotImplemented.  Python 2.x did not catch
TypeErrors either.

----------

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


More information about the Python-bugs-list mailing list