Message251288
do_richcompare() has a comment (at Objects/object.c:689) that reads:
/* XXX Special-case None so it doesn't show as NoneType() */
This refers to the following error message:
>>> 3 < None
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unorderable types: int() < NoneType()
This is a common error that comes up while ordering/sorting, and NoneType() is potentially confusing, so I find the request reasonable.
If the consensus is favourable, it should be implemented, if not, the comment should be removed. |
|
Date |
User |
Action |
Args |
2015-09-22 05:48:47 | ezio.melotti | set | recipients:
+ ezio.melotti |
2015-09-22 05:48:47 | ezio.melotti | set | messageid: <1442900927.33.0.98928488186.issue25210@psf.upfronthosting.co.za> |
2015-09-22 05:48:47 | ezio.melotti | link | issue25210 messages |
2015-09-22 05:48:46 | ezio.melotti | create | |
|