Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
hex() used the __hex__() special method in Python 2. This was changed in Python 3 for purpose. https://docs.python.org/3/whatsnew/3.0.html#operators-and-special-methods ---------- nosy: +serhiy.storchaka _______________________________________ 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