Object-based inheritance in Python
Alexander Schmolck
a.schmolck at gmx.net
Fri Jan 9 07:06:21 EST 2004
More information about the Python-list mailing list
Fri Jan 9 07:06:21 EST 2004
- Previous message (by thread): Object-based inheritance in Python
- Next message (by thread): Object-based inheritance in Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Tobias Windeln <Tobias.Windeln at gmx.de> writes: > Maybe there is a way to hand over self to the delegatee object. [...] > class Child: > def __init__(self, delegatee): > self.__dict__['delegatee'] = delegatee Can't you just use this pattern: self.__dict__['delegatee'] = delegatee(self) ? 'as
- Previous message (by thread): Object-based inheritance in Python
- Next message (by thread): Object-based inheritance in Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list