I support PEP 326

Josiah Carlson jcarlson at nospam.uci.edu
Tue Jan 27 22:49:16 CET 2004

Andrew Koenig wrote:
>>The issue is that when Min and None are in a sequence that gets sorted,
>>you can end up with Minimums and Nones getting interspersed like so:
>>[Min, None, Min...]
> If Min and None were two different names for the same object, such behavior
> would be moot.
> However, the following anomalies might then appear:
>     >>> None
>     None
>     >>> Min
>     None
> (after all, if they're the same object, how is the interpreter to know which
> print name to use?)

Additionally, None comparing smaller than everything else is neither 
intuitive, nor really documented (as reiterated a few times by a few 
different people in python-dev).  It was an arbitrary decision, but 
better than None comparing larger than everything.

  - Josiah

More information about the Python-list mailing list