[Python-Dev] Re: PEP 326 (quick location possibility)

Andrew Koenig ark-mlist at att.net
Tue Jan 27 11:08:55 EST 2004


> > By extension, it would make sense to alter the objects Min and Max to
> > have their string representation be 'min()' and 'max()' respectively.
> 
> This strikes me as plausible for the following reason: int() and list(),
> for instance, instead of raising TypeError as some would expect or even
> want, return their additive identity elements.  You are proposing that
> min() and max() return their respective comparitive identity elements.

Unfortunately, no.  The identity element for min is Max, and the identity
element for max is Min.




More information about the Python-Dev mailing list