Josh Rosenberg <shadowranger+pyt...@gmail.com> added the comment:

Note: Obviously, defining __index__ without defining __int__ is a little 
strange (it's *equivalent* to int, but can't be *coerced* to int?), so yet 
another fix would be addressing #20092 so it wouldn't be possible for a type to 
define __index__ without (implicitly) defining __int__.

----------

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

Reply via email to