New submission from Ezio Melotti: 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. ---------- components: Interpreter Core keywords: easy messages: 251288 nosy: ezio.melotti priority: low severity: normal stage: test needed status: open title: Special-case NoneType() in do_richcompare() type: enhancement versions: Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25210> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com