Author eric.smith
Recipients Alexander.Belopolsky, Arfrever, eric.smith, ezio.melotti, pitrou, rhettinger
Date 2010-04-29.15:43:35
SpamBayes Score 7.27606e-05
Marked as misclassified No
Message-id <1272555818.36.0.426692397837.issue8413@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, but sys.version_info isn't a namedtuple (which are in fact tuples), it's the (sort-of) C equivalent, which isn't a real tuple.

>>> from collections import namedtuple
>>> x = namedtuple('x', 'a b c')
>>> '%s %s %s' % x(1, 2, 3)
'1 2 3'

Hmm, but sys.version_info is a tuple:
>>> isinstance(sys.version_info, tuple)
True

I'll have to check if PyTuple_Check returns true or not. Maybe the problem is in the mapping check.

I'll investigate more.
History
Date User Action Args
2010-04-29 15:43:38eric.smithsetrecipients: + eric.smith, rhettinger, pitrou, ezio.melotti, Arfrever, Alexander.Belopolsky
2010-04-29 15:43:38eric.smithsetmessageid: <1272555818.36.0.426692397837.issue8413@psf.upfronthosting.co.za>
2010-04-29 15:43:36eric.smithlinkissue8413 messages
2010-04-29 15:43:35eric.smithcreate