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 eric.araujo
Recipients eric.araujo, pitrou, pwaller, rhettinger
Date 2010-01-27.16:16:15
SpamBayes Score 9.713172e-06
Marked as misclassified No
Message-id <1264608991.5.0.683191710781.issue7796@psf.upfronthosting.co.za>
In-reply-to
Content
Hello

namedtuple is a factory function, not a class (as hinted by the naming in lower case, see PEP 8), so there are no instances of namedtuple.

You can workaround that with issubclass, or checking for special namedtuples attributes (_asdict, _replace, but this is fragile), or just not use class cheking, often unneeded in Python code.

Kind regards
History
Date User Action Args
2010-01-27 16:16:31eric.araujosetrecipients: + eric.araujo, rhettinger, pitrou, pwaller
2010-01-27 16:16:31eric.araujosetmessageid: <1264608991.5.0.683191710781.issue7796@psf.upfronthosting.co.za>
2010-01-27 16:16:15eric.araujolinkissue7796 messages
2010-01-27 16:16:15eric.araujocreate