A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-February/132415.html below:

[Python-Dev] python 3 niggle: None < 1 raises TypeError

[Python-Dev] python 3 niggle: None < 1 raises TypeError [Python-Dev] python 3 niggle: None < 1 raises TypeErrorSerhiy Storchaka storchaka at gmail.com
Mon Feb 17 13:19:49 CET 2014
17.02.14 13:56, M.-A. Lemburg написав(ла):
> Yes, but that's not the point. Unlike strings or other mixed types that
> you cannot compare, None is used as placeholder in data processing as
> special value to mean "no value available".

Isn't float('nan') such placeholder?

> You intentionally use such values in programming. It's not a bug to
> have None in a data list or as value of a variable.

You can't have None in array('f'), you can't add or multiply by None. 
Relation operators don't looks an exception here. Applying sorted() to a 
list which contains numbers and Nones makes as much sense as applying 
sum() to it.


More information about the Python-Dev 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