[issue22409] namedtuples bug between 3.3.2 and 3.4.1

Raymond Hettinger report at bugs.python.org
Sun Sep 14 18:33:55 CEST 2014


Raymond Hettinger added the comment:

> so the result is an empty dict.

It works fine for me in the standard distribution:

Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 00:54:21) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "copyright", "credits" or "license()" for more information.
>>> from collections import namedtuple
>>> NT = namedtuple("NT",["a","b"])
>>> nt = NT(1,2)
>>> print(vars(nt))
OrderedDict([('a', 1), ('b', 2)])

There may be something amiss with the Anaconda distribution.  I suggest reporting this to Continuum IO (the producers of that distribution).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22409>
_______________________________________


More information about the Python-bugs-list mailing list