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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, eric.araujo, pitrou, pwaller, rhettinger, thead
Date 2010-01-27.16:36:48
SpamBayes Score 0.050859693
Marked as misclassified No
Message-id <1264610209.74.0.350448312368.issue7796@psf.upfronthosting.co.za>
In-reply-to
Content
It seems a perfect case for "duck typing" style of programming:
All namedtuple classes:
- inherit from tuple
- have a "_fields" class attribute
These two properties could be the "duck test" for namedtuples, regardless of the actual implementation.
History
Date User Action Args
2010-01-27 16:36:49amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, rhettinger, pitrou, thead, eric.araujo, pwaller
2010-01-27 16:36:49amaury.forgeotdarcsetmessageid: <1264610209.74.0.350448312368.issue7796@psf.upfronthosting.co.za>
2010-01-27 16:36:48amaury.forgeotdarclinkissue7796 messages
2010-01-27 16:36:48amaury.forgeotdarccreate