New submission from Johannes Raggam <thete...@gmail.com>:
The following is valid Python 2: >>> 'okay {0:s}'.format(Exception('test')) 'okay test' >>> 'okay {0}'.format(Exception('test')) 'okay test' The following fails on Python 3.6: >>> 'okay {0:s}'.format(Exception('test')) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: unsupported format string passed to Exception.__format__ While this doesn't fail: >>> 'okay {0}'.format(Exception('test')) 'okay test' ---------- components: ctypes messages: 319402 nosy: thet priority: normal severity: normal status: open title: Incomplete format string syntax for Exceptions versions: Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33848> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com