[Python-ideas] Unhelpful error message from sorted

Michael Foord fuzzyman at gmail.com
Tue May 15 01:28:02 CEST 2012


Hello all,

It seems to me that the following error message, whilst technically
correct, is unhelpful:

>>> sorted([3, 2, 1], reverse=None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: an integer is required

Worth creating an issue for?

Michael

-- 

http://www.voidspace.org.uk/

May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20120515/4d3085a0/attachment.html>


More information about the Python-ideas mailing list