p2psp team mailing list archive
-
p2psp team
-
Mailing list archive
-
Message #00236
Re: Inheritance and subclass creation
Hi Juan Pablo,
On 27.06.2015 18:18, JP wrote:
> Well, I can understand the warning said in [3] but, taking into
> account that both solutions do not seem too much "pure", from the
> traditional point of view of the OOP, your proposal Max is much more
> elegant and simple. Good idea.
Ok, thanks. Also I think the implications mentioned there do not affect
the P2PSP code, as it is very clean and does not rely on those special
semantics of Python.
Another possible implementation would be overriding __getattr__ and
delegating methods to base classes, but then for each peer there would
exist multiple instances as well.
Regards,
Max
Follow ups
References