Message323384
> The code generated by oollections.namedtuple was based on patterns already in widespread use at the time.
That's fair enough. However, it seems like there is one important difference: unlike any other Sequence, namedtuples cannot be initialized with an iterable.
For that reason, I like Eric's option of checking for the _fields member rather than special-casing list and tuple since it seems like namedtuple is the special case. |
|
Date |
User |
Action |
Args |
2018-08-10 18:52:51 | NeilGirdhar | set | recipients:
+ NeilGirdhar, rhettinger, eric.smith, levkivskyi, alexdelorenzo |
2018-08-10 18:52:51 | NeilGirdhar | set | messageid: <1533927171.15.0.56676864532.issue34363@psf.upfronthosting.co.za> |
2018-08-10 18:52:51 | NeilGirdhar | link | issue34363 messages |
2018-08-10 18:52:51 | NeilGirdhar | create | |
|