[Python-3000] [Python-3000-checkins] r62269 - in python/branches/py3k: Lib/test/test_getargs2.py Objects/abstract.c Python/getargs.c

Trent Nelson tnelson at onresolve.com
Fri Apr 11 02:24:19 CEST 2008


> > Issue 2440: fix the handling of %n in Python/getargs.c's
> convertsimple(),
> > extend Objects/abstract.c's PyNumber_Index() to accept PyObjects that
> have nb_int slots,
> > and update test_getargs2 to test that an exception is thrown when
> __int__() returns a non-int object.
>
> Does this mean that floats can now be used as list indexes?
> Preventing this was the motivation for introducing the nb_index slot.

It sure did!  At least, between r62269 and r62279 ;-)  Ben pointed out my error, which I fixed in r62280.

        Trent.


More information about the Python-3000 mailing list