[issue21181] Inconsistent Definition of collections.namedtuple.__dict__ in _source
Jim Peterson
report at bugs.python.org
Tue Apr 8 18:35:50 CEST 2014
New submission from Jim Peterson:
The result returned by somenamedtuple._source seem inconsistent, in that it defines __dict__ as:
__dict__ = property(_asdict)
even though it imports property as:
from builtins import property as _property
and the namedtuple fields are defined using _property, instead. It still compiles and functions properly, but whatever compelled the developer to declare the named fields using _property seems to be ignored in the definition of __dict__.
----------
components: Library (Lib)
messages: 215772
nosy: Jim.Peterson
priority: normal
severity: normal
status: open
title: Inconsistent Definition of collections.namedtuple.__dict__ in _source
type: behavior
versions: Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21181>
_______________________________________
More information about the Python-bugs-list
mailing list