fcurella <flavio.cure...@gmail.com> added the comment:
I must admit I was surprised to find out that `hex()` uses `__index__` (which is supposed to return an integer) and not something like a `__hex__` method returning the hex. Maybe we should change the behaviour of `hex()` instead? (in a backward-compatible way, of course) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35115> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com