<div dir="ltr">FWIW I cannot reproduce the bug with Anaconda's Python 3.4.1 (from a miniconda install):<div><br><div><div>$ python</div><div>Python 3.4.1 |Continuum Analytics, Inc.| (default, Sep 2 2014, 14:00:37) </div><div>[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux</div><div>Type "help", "copyright", "credits" or "license" for more information.</div><div>>>> from collections import namedtuple; vars(namedtuple("T", "a b")(1, 2))</div><div>OrderedDict([('a', 1), ('b', 2)])</div></div></div><div><br></div><div>Antony</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-14 9:27 GMT-07:00 Antoine Pitrou <span dir="ltr"><<a href="mailto:solipsis@pitrou.net" target="_blank">solipsis@pitrou.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, 15 Sep 2014 02:13:53 +1000<br>
Chris Angelico <<a href="mailto:rosuav@gmail.com">rosuav@gmail.com</a>> wrote:<br>
> On Sun, Sep 14, 2014 at 8:13 PM, Brynjar Smári Bjarnason<br>
> <<a href="mailto:binni@binnisb.com">binni@binnisb.com</a>> wrote:<br>
> > I am using Python 3.4.1 installed with Anaconda. I tried the following<br>
> > (expecting an OrderedDict as result):<br>
> ><br>
> >>>>from collections import namedtuple<br>
> >>>>NT = namedtuple("NT",["a","b"])<br>
> >>>>nt = NT(1,2)<br>
> >>>>print(vars(nt))<br>
> > {}<br>
> ><br>
> > so the result is an empty dict. In Python 3.3.2 (downgraded in the<br>
> > same Anaconda environment) results in:<br>
> ><br>
> >>>>print(vars(nt))<br>
> > OrderedDict([('a', 1), ('b', 2)])<br>
><br>
> For what it's worth, I can't reproduce the issue on trunk CPython<br>
> (built from default branch on Aug 21, so it's a little old now), nor<br>
> on 3.4.1 as currently shipping with Debian Jessie, nor with 3.4.0 on<br>
> Windows. So this may be an Anaconda issue. Do you know if it's meant<br>
> to be a patched install of Python?<br>
<br>
</span>There may be a couple distutils-specific patches, but that's all.<br>
Anaconda issues should be reported at<br>
<a href="https://github.com/ContinuumIO/anaconda-issues/issues/" target="_blank">https://github.com/ContinuumIO/anaconda-issues/issues/</a><br>
<br>
Regards<br>
<span class="HOEnZb"><font color="#888888"><br>
Antoine.<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/antony.lee%40berkeley.edu" target="_blank">https://mail.python.org/mailman/options/python-dev/antony.lee%40berkeley.edu</a><br>
</div></div></blockquote></div><br></div>