Serhiy Storchaka added the comment: We can use type(a).__index__(a). Should we also correct the documentation for operator.index() and operator.length_hint()?
---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18712> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com