dynamic
Dan Sommers
me at privacy.net
Wed Jun 15 07:45:55 EDT 2005
On Wed, 15 Jun 2005 13:13:49 +0200,
Riccardo Galli <riccardo_cut1 at cut2_sideralis.net> wrote:
> I have n classes wich share the same interface. I then have a single
> class which add functionality to all the n classes, using their
> interface. The only way I see to make this single class inherith from
> the choosed nx class is this one.
> If there is a better approach, I can implement it.
class single(object):
pass
class n1(single):
pass
class n2(single):
pass
class n3(single):
pass
HTH,
Dan
--
Dan Sommers
<http://www.tombstonezero.net/dan/>
More information about the Python-list
mailing list