[Python-ideas] Unhelpful error message from sorted
Stefan Behnel
stefan_ml at behnel.de
Tue May 15 09:58:27 CEST 2012
Serhiy Storchaka, 15.05.2012 09:16:
> 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
Looks like a side effect, though. It doesn't make any sense to me to pass
None for the "reversed" argument.
Stefan
More information about the Python-ideas
mailing list