¡@

Home 

python Programming Glossary: delegation

What?™s the point of inheritance in Python?

http://stackoverflow.com/questions/1020453/whats-the-point-of-inheritance-in-python

you can accomplish the same through containment and delegation with the added benefit that you can alter it at runtime and.. of inheritance but you can achieve the same with a delegation chain eg. a la JavaScript . I'm not claiming it's better though..

How to make built-in containers (sets, dicts, lists) thread safe?

http://stackoverflow.com/questions/13610654/how-to-make-built-in-containers-sets-dicts-lists-thread-safe

just concentrate on your question. Also consider whether delegation proxying is a better fit than subclassing. Wrapping objects..

Dynamically attaching a method to an existing Python object generated with swig?

http://stackoverflow.com/questions/1382871/dynamically-attaching-a-method-to-an-existing-python-object-generated-with-swig

either built in or not. This is called containment and delegation and it is a common alternative to inheritance class SuperDuperWrapper..

Why aren't Python's superclass __init__ methods automatically invoked?

http://stackoverflow.com/questions/3782827/why-arent-pythons-superclass-init-methods-automatically-invoked

print 'Do something else' python inheritance subclass delegation superclass share improve this question The crucial distinction.. initialization and so forth. Basically super class delegation of the initializer is not automatic in Python for exactly the.. not automatic in Python for exactly the same reasons such delegation is also not automatic for any other methods and note that those..