[issue7796] No way to find out if an object is an instance of a namedtuple

Peter Waller report at bugs.python.org
Wed Jan 27 17:23:50 CET 2010


Peter Waller <peter.waller at gmail.com> added the comment:

In this case, I need to have names for each object. It is also desirable to use the namedtuple because of their lightweight nature.

If they were to subclass the namedtuple I would be happy to accept that, but I really do want them to pass some form of namedtuple to me, to have some sort of consistency. The named tuple gives an obvious simple interface for determining which fields are available and the order they are in.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7796>
_______________________________________


More information about the Python-bugs-list mailing list