proposed language change to int/int==float (was: PEP0238 lament)
Guido van Rossum
guido at python.org
Wed Jul 25 00:56:55 EDT 2001
"Bjorn Pettersen" <BPettersen at NAREX.com> writes:
> I think perhaps an equally interesting example is something like:
>
> 2L**128/2
>
> which currently gives an exact result, but under the proposed new
> semantics would give an approximation...
Have you read the PEP? The PEP only returns a float if the int result
would yield a remainder.
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-list
mailing list