Message98444
It seems a perfect case for "duck typing" style of programming:
All namedtuple classes:
- inherit from tuple
- have a "_fields" class attribute
These two properties could be the "duck test" for namedtuples, regardless of the actual implementation. |
|
Date |
User |
Action |
Args |
2010-01-27 16:36:49 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, rhettinger, pitrou, thead, eric.araujo, pwaller |
2010-01-27 16:36:49 | amaury.forgeotdarc | set | messageid: <1264610209.74.0.350448312368.issue7796@psf.upfronthosting.co.za> |
2010-01-27 16:36:48 | amaury.forgeotdarc | link | issue7796 messages |
2010-01-27 16:36:48 | amaury.forgeotdarc | create | |
|