Message226873
In Python 3.4.1 installed with Anaconda. I tried the following
(expecting an OrderedDict as result):
>>>from collections import namedtuple
>>>NT = namedtuple("NT",["a","b"])
>>>nt = NT(1,2)
>>>print(vars(nt))
{}
so the result is an empty dict. In Python 3.3.2 (downgraded in the
same Anaconda environment) results in:
>>>print(vars(nt))
OrderedDict([('a', 1), ('b', 2)]) |
|
Date |
User |
Action |
Args |
2014-09-14 15:55:47 | binnisb | set | recipients:
+ binnisb, eric.araujo, dstufft |
2014-09-14 15:55:46 | binnisb | set | messageid: <1410710146.94.0.736559829031.issue22409@psf.upfronthosting.co.za> |
2014-09-14 15:55:46 | binnisb | link | issue22409 messages |
2014-09-14 15:55:46 | binnisb | create | |
|