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.


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to