Éric Araujo <mer...@netwok.org> added the comment: The doc for %o only says it returns the “signed octal value”; __oct__ is not a magic method (i.e. it’s not a name with special meaning), converting with oct() actually uses __index__.
---------- nosy: +eric.araujo _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11145> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com