Serhiy Storchaka added the comment:

Thank you Martin, the patch LGTM.

The difference between __int__() and __index__() is that float has the former, 
but not the latter. For better compatibility we have to use __int__() in 
maintained releases. But obviously __index__() is more appropriate 
semantically. float buffer length doesn't make sense. We have to change __int__ 
to __index__ in future releases. But this is separate issue.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25626>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to