Éric Araujo <mer...@netwok.org> added the comment:

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

----------
nosy: +Merwok

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7796>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to