Hello, > Log: > 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. from http://www.python.org/dev/peps/pep-0357 :: The biggest example of why using nb_int would be a bad thing is that float objects already define the nb_int method, but float objects *should not* be used as indexes in a sequence. -- Amaury Forgeot d'Arc _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com