Message98440
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 |
|
Date |
User |
Action |
Args |
2010-01-27 16:16:31 | eric.araujo | set | recipients:
+ eric.araujo, rhettinger, pitrou, pwaller |
2010-01-27 16:16:31 | eric.araujo | set | messageid: <1264608991.5.0.683191710781.issue7796@psf.upfronthosting.co.za> |
2010-01-27 16:16:15 | eric.araujo | link | issue7796 messages |
2010-01-27 16:16:15 | eric.araujo | create | |
|