[issue19995] hex() and %x, oct() and %o do not behave the same
Stefan Krah
report at bugs.python.org
Mon Dec 16 17:17:58 CET 2013
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 <report at bugs.python.org>
<http://bugs.python.org/issue19995>
_______________________________________
More information about the Python-bugs-list
mailing list