Message309477
Attribute access for named tuples can be made as fast as attribute access of instances of classes with slots. All that is needed is a C subclass of property with it own __get__ that directly look's up the tuple field using PyTuple_GET_ITEM using an index stored in a C struct rather than as an integer object. |
|
Date |
User |
Action |
Args |
2018-01-04 18:05:43 | rhettinger | set | recipients:
+ rhettinger |
2018-01-04 18:05:43 | rhettinger | set | messageid: <1515089143.43.0.467229070634.issue32492@psf.upfronthosting.co.za> |
2018-01-04 18:05:43 | rhettinger | link | issue32492 messages |
2018-01-04 18:05:43 | rhettinger | create | |
|