ANN: Experimental Number Types (Integer, Rational, Floats)
Alex Martelli
aleaxit at yahoo.com
Tue Apr 24 12:10:02 EDT 2001
"Delaney, Timothy" <tdelaney at avaya.com> wrote in message
news:mailman.988071995.19962.python-list at python.org...
[snip]
> 12+2/3 - not ambiguous and valid if the above is valid (integer +
rational),
> I would probably want the compiler to start rolling literals together at
> this point... otherwise there would be 2 runtime calculations going on
> (division to form rational, then addition of integer).
There are two runtime calculations in many "complex literals" (because
there's actually no complex literal...:-) today, e.g -2.3+4.5j (because
sign is also not part of the numeric literal...).
Alex
More information about the Python-list
mailing list