[Python-ideas] Unhelpful error message from sorted

Serhiy Storchaka storchaka at gmail.com
Tue May 15 09:16:49 CEST 2012


On 15.05.12 09:52, Terry Reedy wrote:
> There are still overly cryptic errors messages. I would like to see
> something more like
> TypeError: 'reverse' argument must be bool, not Nonetype

With using issue14705 [1] sort can accepts reverse=None.

[1] http://bugs.python.org/issue14705




More information about the Python-ideas mailing list