Stefan Krah added the comment: > Did I mention __index__ is an unfortunate name for the current trend for this > method?
Yes, but it's probably too late to change that now. Also, a fully precise name would be something like: __to_int_exact_iff_object_has_integer_nature__ :) > When you say "accept __index__" do you mean for use as indices, or for use as > values in the data structure itself? The latter, see Lib/test/test_buffer.py:2489 . ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19995> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com