[issue8413] String interpolation doesn't work with sys.version_info
Alexander Belopolsky
report at bugs.python.org
Thu Apr 29 17:18:57 CEST 2010
Alexander Belopolsky <alexander.belopolsky at gmail.com> added the comment:
I am not sure fixing this quirk of %-formatting is worth the trouble given that one simply use new style {}-formatting:
$ python-c 'import sys; print("{}.{}.{}-{}-{}".format(*sys.version_info))'
3.2.0-alpha-0
or a work-around
$ python -c 'import sys; print("%s.%s.%s-%s-%s" % tuple(sys.version_info))'
3.2.0-alpha-0
----------
nosy: +Alexander.Belopolsky
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8413>
_______________________________________
More information about the Python-bugs-list
mailing list