Eli Bendersky added the comment: Ethan, str.format uses __format__. We don't seem to provide a custom one. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue18738> _______________________________________