[issue18750] '' % [1] doens't fail

Andrew Svetlov report at bugs.python.org
Thu Aug 15 20:38:05 CEST 2013


Andrew Svetlov added the comment:

For dict it is correct from my perspective.
"" % {'a': 'b'}
tries to substitute format specs like "%(a)s" and does nothing if spec is not present.

But list case like
"" % [1]
confuse me.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18750>
_______________________________________


More information about the Python-bugs-list mailing list