Extension without sub-classing?

Gerhard Häring gh at ghaering.de
Mon Jun 2 22:28:52 EDT 2003


Martin d'Anjou wrote:
> Is it possible to extend a python class without sub-classing? [...]

No, you can use delegation, though. But that doesn't make things easier 
in most cases.

-- Gerhard





More information about the Python-list mailing list