thomas wouters fgxflgpythonorg fri apr 11 2008 253 trent nelson wrote mean floats used list indexes preventing motivation introducing nb_index slot httpwwwpythonorgdevpepspep0357 biggest example using nb_int would bad thing float objects already define nb_int method float objects used indexes sequence sure least r62269 r62279 ben pointed error fixed r62280 trent hrrm reread pep stuck possible use nb_int __int__ special method purpose method used coerce objects integers would inappropriate allow every object coerced integer used integer everywhere python expects true integer example __int__ used convert object integer slicing float objects would allowed slicing x3258 would raise error think ive pretty much violated first sentences change pynumber_index even change r62280 checks dealing float still permitting anything else __int__ representation pass fine note originated following test_args2 class long def __int__self return 99 class signed_testcaseunittesttestcase def test_nself selffailunlessequal99 getargs_nlong change n passing l unless sizeoflong sizeofsize_t convertsimple pythongetargsc windows x64 platform assertion holds true drew attention problem peps take situation would sequencelong fail isnt currently case latest pynumber_index changes want adhere behaviour prescribed pep seems like pynumber_index reverted back original state handling n convertsimple done without calling pynumber_index assume want support n long though right test done away keep talking n code used py_buildvalue pyarg_parse string formatting unless working change reason n argument pyarg_parse meant used indices like uses py_ssize_t change pynumber_index makes sense test actually broken imho thomas wouters hi im signature virus copy signature file help spread thu 07 aug 2008 154106 0200 python3000 python3000checkins r62269 pythonbranchespy3k libtesttest_getargs2py objectsabstractc pythongetargsc