Dec. 11, 2013
7:34 a.m.
Serhiy Storchaka added the comment:
The ssize_t functions deliberately ignore lossy int conversions (e.g. from floats) - that's why they only work on types that implement __index__.
They ignore __index__. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue17576> _______________________________________