[issue1666] integer subclass range behavior
Guido van Rossum
report at bugs.python.org
Thu Dec 20 05:13:55 CET 2007
Guido van Rossum added the comment:
Martin, I'm asking you because according to svn blame I copied this from
the int/long integration branch last January.
I looked at the code of _PyLong_FitsInLong(), and I don't understand why
it wants an exact integer. The code
if (!PyLong_CheckExact(vv)) {
PyErr_BadInternalCall();
return 0;
}
can just be omitted IMO, to make this problem go away.
There's no documentation for this function, and the only user
(rangeobject.c()) never checks for an error...
----------
assignee: -> loewis
nosy: +gvanrossum, loewis
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1666>
__________________________________
More information about the Python-bugs-list
mailing list