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 pitrou
Recipients pitrou, pwaller, rhettinger
Date 2010-01-27.16:14:09
SpamBayes Score 0.0009786611
Marked as misclassified No
Message-id <1264608851.29.0.180631196936.issue7796@psf.upfronthosting.co.za>
In-reply-to
Content
In this case, what is wrong with:

if isinstance(obj, my_tuple): ...

or do you want to catch all namedtuples? And if so, why?

(I suppose it would be easy to make all namedtuples inherit from a common base class, though)
History
Date User Action Args
2010-01-27 16:14:11pitrousetrecipients: + pitrou, rhettinger, pwaller
2010-01-27 16:14:11pitrousetmessageid: <1264608851.29.0.180631196936.issue7796@psf.upfronthosting.co.za>
2010-01-27 16:14:09pitroulinkissue7796 messages
2010-01-27 16:14:09pitroucreate