STINNER Victor added the comment: Calls: * hex()/oct() => PyNumber_ToBase() => PyNumber_Index(). * PyUnicode_Format() => mainformatlong() => PyNumber_Long()
I never understood the difference between "long" (__int__ method) and "index" (__index__ method). Is the difference on the behaviour of floating point numbers? ---------- nosy: +haypo _______________________________________ 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