[Python-Dev] A new dict for Xmas? (original) (raw)
Maciej Fijalkowski fijall at gmail.com
Thu Dec 22 19:15:04 CET 2011
- Previous message: [Python-Dev] A new dict for Xmas?
- Next message: [Python-Dev] A new dict for Xmas?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- I wonder whether the shared keys could be computed at compile time, considering all attribute names that get assigned for self. The compiler could list those in the code object, and class creation could iterate over all methods (taking base classes into account).
This is hard, because sometimes you don't quite know what the self is even, especially if init calls some methods or there is any sort of control flow. You can however track what gets assigned at runtime at have shapes associated with objects.
- Previous message: [Python-Dev] A new dict for Xmas?
- Next message: [Python-Dev] A new dict for Xmas?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]