Message104525
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. |
|
Date |
User |
Action |
Args |
2010-04-29 15:43:38 | eric.smith | set | recipients:
+ eric.smith, rhettinger, pitrou, ezio.melotti, Arfrever, Alexander.Belopolsky |
2010-04-29 15:43:38 | eric.smith | set | messageid: <1272555818.36.0.426692397837.issue8413@psf.upfronthosting.co.za> |
2010-04-29 15:43:36 | eric.smith | link | issue8413 messages |
2010-04-29 15:43:35 | eric.smith | create | |
|