Message232005
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". |
|
Date |
User |
Action |
Args |
2014-12-02 15:23:32 | simeon.visser | set | recipients:
+ simeon.visser, Brian.Mearns |
2014-12-02 15:23:32 | simeon.visser | set | messageid: <1417533812.1.0.111440256739.issue22979@psf.upfronthosting.co.za> |
2014-12-02 15:23:32 | simeon.visser | link | issue22979 messages |
2014-12-02 15:23:31 | simeon.visser | create | |
|