3 ms·
What motivates the automatic-delegation-by-copying-attributes pattern presented here? It seems like an implementation of inheritance by someone who simply wante
by arjie 9y ago
What motivates the automatic-delegation-by-copying-attributes pattern presented here? It seems like an implementation of inheritance by someone who simply wanted to avoid the language's inheritance feature.
- tomku 9y agoThat's a pattern that I've seen a lot in Javascript, where it's usually called a "mixin" and used as pseudo-inheritance. I'm not sure why you would do it in Python.