Mark Dickinson <dicki...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue8014>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to