proposed language change to int/int==float (was: PEP0238 lament)

Guido van Rossum guido at python.org
Fri Jul 27 09:38:47 EDT 2001


"Terry Reedy" <tjreedy at home.com> writes:

> If I write def(seq, n, k): return seq[3*n//k] and a call receives
> n=20.0 instead of 20, it would accord with the polymorphic rationale
> for new / and // to go ahead and return the item intended.  Or perhaps
> floored numbers should be marked as exact (if the marking is
> independent of type).

Good point.  What does Scheme do?

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-list mailing list