I support PEP 326

Roy Smith roy at panix.com
Fri Jan 23 03:13:31 CET 2004

In article <401081A1.E4C34F00 at alcyone.com>,
 Erik Max Francis <max at alcyone.com> wrote:

> Gary Robinson wrote:
> > I've recently had a couple of cases of needing exactly what it
> > proposes, and
> > having to kluge around the fact that it's not there. It's a great
> > idea.
> > 
> > If there anywhere else I should be expressing my opinion on this, let
> > me
> > know.
> Seems quite reasonable to me.  The only issue I'd take with it is the
> choice of Min and Max for the names of the singletons; they're a little
> too close to the functions min and max, which obviously they're both
> likely to be used with.  I would suggest something a little more verbose
> such as Minimum and Maximum, or if you want to get silly, Infimum and
> Supremum.

I suppose you could special-case min() and max() to return the 
appropriate singletons if called with no arguments.

There's something very nice about that.  There's also something very 
ugly about it.  I'm having a hard time deciding which is stronger :-)

More information about the Python-list mailing list