I support PEP 326
Josiah Carlson
jcarlson at nospam.uci.edu
Mon Jan 26 15:24:33 EST 2004
> +1 on the PEP. The names Max and Min seem fine to me, but I'm not
> married to them.
>
> What would be the consequence of making Min and None compare equal?
> Then the "None as second lowest" issue goes away. I can't think of an
> example where that would cause problems, but there probably are
> some...
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...]
In general, that behavior is frowned upon.
- Josiah
More information about the Python-list
mailing list