[issue19995] hex() and %x, oct() and %o do not behave the same

Guido van Rossum report at bugs.python.org
Mon Dec 16 19:22:21 CET 2013


Guido van Rossum added the comment:

Also (the tracker email interface swallowed this):

> it is possible to want a type that can be used as an index or slice but that is still not a number

I'm sorry, but this requirement is absurd. An index *is* a number. You
have to make up your mind. (I know, in the context of the example that
started this, this is funny, but I still stand by it.)

---

Finally, the correct name should perhaps have been __integer__ but I don't see enough reason to change it now.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19995>
_______________________________________


More information about the Python-bugs-list mailing list