If a class Child inherits from Parent, how to implement Child.some_method if Parent.some_method() returns Parent instance ?
lists at cheimes.de
Fri Oct 30 00:07:35 CET 2009
> But this style makes code full with ugly self.__class__
> Any standard/pythonic way out there?
You are already using one standard way to implement an alternative
If you don't need any instance attributes you can use another way:
More information about the Python-list