[New-bugs-announce] [issue22409] namedtuples bug between 3.3.2 and 3.4.1
Brynjar Smári Bjarnason
report at bugs.python.org
Sun Sep 14 17:55:46 CEST 2014
New submission from Brynjar Smári Bjarnason:
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)])
----------
components: Distutils
messages: 226873
nosy: binnisb, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: namedtuples bug between 3.3.2 and 3.4.1
type: behavior
versions: Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22409>
_______________________________________
More information about the New-bugs-announce
mailing list