Hans Kristian Ruud wrote: > When an element in a sequence s is None, > max (s) will return None: > > >>> s = [1.4, 2.5, None, 4354549999L] > >>> max(s) > >>> > >>> min(s) > 1.4 The ordering of different types is arbitrary. In Python < 2.1 all numeric types were smaller than all other types. In 2.1 None is smaller than any type. Neil > > I could'nt find anything about this particular case > in "Learning Python" by Lutz and Ascher. Nor in the FAQ. > > > slightly mystified > - hans kristian - > > -- > http://mail.python.org/mailman/listinfo/python-list
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4