Cheryl Sabella added the comment: Under 3.7, the examples Terry gave now have consistent results.
>>> '' % A() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: not all arguments converted during string formatting >>> '' % object() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: not all arguments converted during string formatting >>> '%(a)s' % object() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: format requires a mapping >>> '%(a)s' % A() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: format requires a mapping ---------- nosy: +csabella _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6396> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com