A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2014-September/136330.html below:

[Python-Dev] namedtuples bug between 3.3.2 and 3.4.1

[Python-Dev] namedtuples bug between 3.3.2 and 3.4.1Chris Angelico rosuav at gmail.com
Sun Sep 14 18:13:53 CEST 2014
On Sun, Sep 14, 2014 at 8:13 PM, Brynjar Smári Bjarnason
<binni at binnisb.com> wrote:
> I am using 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)])

For what it's worth, I can't reproduce the issue on trunk CPython
(built from default branch on Aug 21, so it's a little old now), nor
on 3.4.1 as currently shipping with Debian Jessie, nor with 3.4.0 on
Windows. So this may be an Anaconda issue. Do you know if it's meant
to be a patched install of Python?

ChrisA
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4