New submission from Jakub Wilk: >>> '%(eggs)s %s' % {'eggs': 'ham'} Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: not enough arguments for format string
>>> '%s %(eggs)s' % {'eggs': 'ham'} "{'eggs': 'ham'} ham" I would expect a raised exception also in the latter case. ---------- components: Library (Lib) messages: 228978 nosy: jwilk priority: normal severity: normal status: open title: printf-style formatting allows mixing keyed and keyless specifiers type: behavior _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22597> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com