This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Arfrever
Recipients Arfrever
Date 2010-04-16.01:28:08
SpamBayes Score 7.0915496e-12
Marked as misclassified No
Message-id <1271381290.83.0.815567007844.issue8413@psf.upfronthosting.co.za>
In-reply-to
Content
String interpolation doesn't work with sys.version_info in Python versions in which sys.version_info is a named tuple. It's a regression in Python 2.7 and 3.1. This problem doesn't concern named tuples created using collections.namedtuple().

This problem might also concern sys.getwindowsversion(), but I don't have access to Windows system, so I can't check it.

$ python2.6 -c 'import sys; print("%s.%s.%s-%s-%s" % sys.version_info)'
2.6.5-final-0
$ python2.7 -c 'import sys; print("%s.%s.%s-%s-%s" % sys.version_info)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: not enough arguments for format string
$ python3.0 -c 'import sys; print("%s.%s.%s-%s-%s" % sys.version_info)'
3.0.1-final-0
$ python3.1 -c 'import sys; print("%s.%s.%s-%s-%s" % sys.version_info)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: not enough arguments for format string
History
Date User Action Args
2010-04-16 01:28:11Arfreversetrecipients: + Arfrever
2010-04-16 01:28:10Arfreversetmessageid: <1271381290.83.0.815567007844.issue8413@psf.upfronthosting.co.za>
2010-04-16 01:28:08Arfreverlinkissue8413 messages
2010-04-16 01:28:08Arfrevercreate