This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author simeon.visser
Recipients Brian.Mearns, simeon.visser
Date 2014-12-02.15:23:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1417533812.1.0.111440256739.issue22979@psf.upfronthosting.co.za>
In-reply-to
Content
This doesn't happen in Python 3 as None can't be compared to other elements:

>>> min([1,2,3,None])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unorderable types: NoneType() < int()

I can also imagine people now using min with the intended behaviour of "give me the smallest element, or None if it happens to be present".
History
Date User Action Args
2014-12-02 15:23:32simeon.vissersetrecipients: + simeon.visser, Brian.Mearns
2014-12-02 15:23:32simeon.vissersetmessageid: <1417533812.1.0.111440256739.issue22979@psf.upfronthosting.co.za>
2014-12-02 15:23:32simeon.visserlinkissue22979 messages
2014-12-02 15:23:31simeon.vissercreate