[issue7796] No way to find out if an object is an instance of a namedtuple
Andrew Barnert
report at bugs.python.org
Mon Jan 13 02:15:13 CET 2014
Andrew Barnert added the comment:
I believe the structseq issues are a lot easier to solve than the appear. See #20230, which adds a _fields member to every structseq type. Having done that, a NamedTuple ABC works on them just fine. And of course duck typing them without an ABC does too.
----------
nosy: +abarnert
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7796>
_______________________________________
More information about the Python-bugs-list
mailing list