Extension without sub-classing?

Gerhard Häring gh at ghaering.de
Tue Jun 3 04:28:52 CEST 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