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

Terry Reedy tjreedy at udel.edu
Tue Jan 27 06:41:24 EST 2004


"Josiah Carlson" <jcarlson at uci.edu> wrote in message
news:20040126164752.FBFB.JCARLSON at uci.edu...
> What does everyone think of the following?

> 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.
There will not, however, be a literal for these, nor a builtin name.

Terry J. Reedy






More information about the Python-Dev mailing list