Re: Sharing a method (function) among several objects.

2005-02-27 Thread Diez B. Roggisch
> Since they are not the same or similar, it's not logical to use a > common superclass. As python supports multiple inheritance, it's very well "logical" to do it by subclassing. > > So I'm asking, what's a good way to allow those objects to share that > function? > > The best solution I've fo

Sharing a method (function) among several objects.

2005-02-27 Thread xifxif
Hello There are several different objects. However, they all share the same function. Since they are not the same or similar, it's not logical to use a common superclass. So I'm asking, what's a good way to allow those objects to share that function? The best solution I've found so far is to pu