Alastair Houghton added the comment: Having looked carefully through the current code, I notice that the error message *has* been improved (though it'd be nice if it included a copy of the format string it's rejecting), and also that the alternative
"{!r}".format(None) does work as expected, and has the advantage that other formatting features are supported, e.g. "{!r:10.10}".format(None) will work as expected. I'm going to close this bug report. ---------- stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue31335> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com