Message309477
| Author | rhettinger |
|---|---|
| Recipients | rhettinger |
| Date | 2018-01-04.18:05:43 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1515089143.43.0.467229070634.issue32492@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| 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 | |