]> granicus.if.org Git - python/commit
Issue #25210: Change error message of do_richcompare()
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 14 Oct 2015 16:25:31 +0000 (18:25 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 14 Oct 2015 16:25:31 +0000 (18:25 +0200)
commit91108f049ffb35b4b9f0353a41d9c6097b37046d
treecfa8d97b646af5c3544f43bed2bc4ca46c85392e
parentdbb98c1443fa312964cda8b851c7bca9323588de
Issue #25210: Change error message of do_richcompare()

Don't add parenthesis to type names. Add also quotes around the type names.

Before:

  TypeError: unorderable types: int() < NoneType()

After:

  TypeError: '<' not supported between instances of 'int' and 'NoneType'
Doc/howto/argparse.rst
Doc/library/enum.rst
Doc/library/pathlib.rst
Objects/object.c