This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients rhettinger, serhiy.storchaka
Date 2015-12-31.03:00:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1451530808.08.0.846479857852.issue25981@psf.upfronthosting.co.za>
In-reply-to
Content
Indeed, keys of __dict__ are interned. But elements of _fields are not.

>>> A = namedtuple('A', 'abc123 def456')
>>> sorted(A.__dict__)[-1] == A._fields[-1]
True
>>> sorted(A.__dict__)[-1] is A._fields[-1]
False
History
Date User Action Args
2015-12-31 03:00:08serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger
2015-12-31 03:00:08serhiy.storchakasetmessageid: <1451530808.08.0.846479857852.issue25981@psf.upfronthosting.co.za>
2015-12-31 03:00:07serhiy.storchakalinkissue25981 messages
2015-12-31 03:00:07serhiy.storchakacreate