FWIW I cannot reproduce the bug with Anaconda's Python 3.4.1 (from a
miniconda install):
$ python
Python 3.4.1 |Continuum Analytics, Inc.| (default, Sep 2 2014, 14:00:37)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> fro
On Mon, 15 Sep 2014 02:13:53 +1000
Chris Angelico wrote:
> On Sun, Sep 14, 2014 at 8:13 PM, Brynjar Smári Bjarnason
> 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 =
On Sun, Sep 14, 2014 at 8:13 PM, Brynjar Smári Bjarnason
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))
> {}
>
Hi.
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