[issue22597] printf-style formatting allows mixing keyed and keyless specifiers

2014-10-10 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue22597] printf-style formatting allows mixing keyed and keyless specifiers

2014-10-10 Thread Eric V. Smith
Eric V. Smith added the comment: This is a duplicate of issue 1467929. -- nosy: +eric.smith resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker __

[issue22597] printf-style formatting allows mixing keyed and keyless specifiers

2014-10-10 Thread Jakub Wilk
New submission from Jakub Wilk: >>> '%(eggs)s %s' % {'eggs': 'ham'} Traceback (most recent call last): File "", line 1, in 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. -