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

Russell Wallace rwallace at esatclear.ie
Fri Jul 27 16:33:27 EDT 2001


On Fri, 27 Jul 2001 13:37:51 GMT, Guido van Rossum <guido at python.org>
wrote:

>That all depends on details of the number system, and details of the
>values involved.  If we have rationals in our numeric tower, I
>definitely want (5/2 - 3/2) to be usable as a sequence index, so
>either rationals must be usable as sequence indices as long as their
>value is integral, or the result of rational arithmetic may return an
>int.  That shouldn't matter.

Right.

>On the other hand, floats should never be usable as sequence index.

Ah, yes, we're agreed on both counts then :)

>Scheme defines this quite nicely:

*nod* I always thought Scheme has one of the most elegant number
systems of any programming language.

-- 
"How many roads must a man walk down?"
mailto:rwallace at esatclear.ie
http://www.esatclear.ie/~rwallace



More information about the Python-list mailing list