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 <rep...@bugs.python.org>
<http://bugs.python.org/issue21181>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to