]> granicus.if.org Git - python/commit
Issue 2440: fix the handling of %n in Python/getargs.c's convertsimple(), extend...
authorTrent Nelson <trent.nelson@snakebite.org>
Thu, 10 Apr 2008 16:25:37 +0000 (16:25 +0000)
committerTrent Nelson <trent.nelson@snakebite.org>
Thu, 10 Apr 2008 16:25:37 +0000 (16:25 +0000)
commite2ae4684a5617ec5bc8d48e09af2dd7a24711f23
tree4b065c8f03e00df65181af57df668136d3d8f0ed
parent5680d0c5e3a9d42b6c21f4a31a7dbfe72c9e5170
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.
Lib/test/test_getargs2.py
Objects/abstract.c
Python/getargs.c