None :)
Neil Schemenauer
nas at python.ca
Wed Apr 25 10:00:28 EDT 2001
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
More information about the Python-list
mailing list