Reusing object methods?

Axel Straschil axel at straschil.com
Sat Apr 30 02:41:44 EDT 2005


Hello!

Why not:

> class A:
>      def a_lengthy_method(self, params):
>           # do some work depending only on data in self and params
>
> class B(A): pass

?

Lg,
AXEL.



More information about the Python-list mailing list