]> granicus.if.org Git - python/commit
In PyNumber_ToBase, changed from an assert to returning an error when PyObject_Index...
authorEric Smith <eric@trueblade.com>
Fri, 15 Feb 2008 12:14:32 +0000 (12:14 +0000)
committerEric Smith <eric@trueblade.com>
Fri, 15 Feb 2008 12:14:32 +0000 (12:14 +0000)
commit3f91437e5fa9d48522a3b9c5c7eb9f8b4ff75efb
treed9bf76b87e281a44ef21e512a57cef100cf987f0
parent7adfad850a50722464775d57b5d16b850ecab56a
In PyNumber_ToBase, changed from an assert to returning an error when PyObject_Index() returns something other than an int or long.  It should never be possible to trigger this, as PyObject_Index checks to make sure it returns an int or long.
Objects/abstract.c