None :)

Hans Kristian Ruud hans at inenco.no
Wed Apr 25 09:06:13 EDT 2001


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

I could'nt find anything about this particular case
in "Learning Python" by Lutz and Ascher. Nor in the FAQ.


slightly mystified
- hans kristian -




More information about the Python-list mailing list