Message98439
In this case, what is wrong with:
if isinstance(obj, my_tuple): ...
or do you want to catch all namedtuples? And if so, why?
(I suppose it would be easy to make all namedtuples inherit from a common base class, though) |
|
Date |
User |
Action |
Args |
2010-01-27 16:14:11 | pitrou | set | recipients:
+ pitrou, rhettinger, pwaller |
2010-01-27 16:14:11 | pitrou | set | messageid: <1264608851.29.0.180631196936.issue7796@psf.upfronthosting.co.za> |
2010-01-27 16:14:09 | pitrou | link | issue7796 messages |
2010-01-27 16:14:09 | pitrou | create | |
|