A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/063668.html below:

None :)

None :) 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

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