[issue8014] Setting a T_INT attribute raises internal error
Mark Dickinson
report at bugs.python.org
Wed Feb 24 22:46:43 CET 2010
Mark Dickinson <dickinsm at gmail.com> added the comment:
Might it be T_PYSSIZET rather than T_INT? In which case it's PyLong_AsSsize_t that's at fault: it should raise TypeError for non-integers. What's slightly less clear is whether PyLong_AsSsize_t should also try to call int to convert to int, as PyLong_AsLong does; I'd say not---the PyLong_AsLong behaviour isn't particularly desirable in my view, and is mostly there for historical reasons.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8014>
_______________________________________
More information about the Python-bugs-list
mailing list