4 ms·
I believe much similar magic is possible in Python, but you get to implement it on top of the relatively simple interactions between instance dict, class dict,
by pwang 9y ago
I believe much similar magic is possible in Python, but you get to implement it on top of the relatively simple interactions between instance dict, class dict, and metaclass. They would not be bullet-proof, and they are not built into the default implementation. But they are very possible.