Re: [Python-ideas] Add recordlcass to collections module

Sept. 1, 2018
11:22 a.m.
There are a problem which prevent you to reach your goals. As list in Python is already that efficient, a wrapper of this list in C to supply so-called namedlist interface could not be that efficient. Member accessing in Python bytecode requires looking up corresponding attribute in a hashtable, if you want to access a list by attribute, actually there is an overhead. This is nothing to do with C implementation. See https://docs.python.org/3/library/dis.html#opcode-LOAD_ATTR
2391
Age (days ago)
2391
Last active (days ago)
0 comments
1 participants
participants (1)
-
Thautwarm Zhao