Mark Dickinson added the comment: > Just mentioning it here again, but "type(a).__index__(a)" is still not > perfectly correct.
Hmm. "type(a).__dict__['__index__'](a)" ? (With suitable error checks, as in Serhiy's patch.) ---------- _______________________________________ 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