I support PEP 326

Roy Smith roy at panix.com
Thu Jan 22 22:41:15 EST 2004


In article <401091D5.EFA41F7 at alcyone.com>,
 Erik Max Francis <max at alcyone.com> wrote:

> "David M. Cooke" wrote:
> 
> > Or, expressing the idea that they're the ends of a number line:
> > 
> > PosInf, NegInf
> > PosInfinity, NegInfinity
> > PositiveInfinity, NegativeInfinity
> > 
> > If IEEE floating point was done correctly everywhere, I'd say make
> > them the corresponding floating-point constants (Inf+ and Inf-).
> 
> The "if" conditional here is bad.  Naming something "infinity" if it
> weren't the IEEE floating point constants as well would be seriously
> misleading.
> 
> After all, this _isn't_ a number line since we're talking about
> comparing arbitrary objects.
> 
> > Or,
> > FreakingHuge, FreakingHugeTheOtherWay
> 
> Don't be silly; that latter one should be FreakingUnhuge :-).

You could name them Python and Perl.  Then you could do stuff like:

for language in allLanguages:
   if Perl < language < Python:
      print language, "is more than Perl but less than Python"



More information about the Python-list mailing list