Some problems with classes
Michele Simionato
michele.simionato at gmail.com
Sun Aug 31 23:12:27 EDT 2008
On Sep 1, 3:39 am, ssecorp <circularf... at gmail.com> wrote:
>
> Traceback (most recent call last):
> File "C:/Python25/Progs/XXXX/Movie.py", line 42, in <module>
> class ActionComedy(Movie, ActionMovie):
> TypeError: Error when calling the metaclass bases
> Cannot create a consistent method resolution
> order (MRO) for bases Movie, ActionMovie
The MRO is explained here:
http://www.python.org/download/releases/2.3/mro/
Super is explained here:
http://www.artima.com/weblogs/index.jsp?blogger=micheles
Be warned that those are not readings for a beginner, but
if you want to use multiple inheritance and super you must
be prepared ;)
More information about the Python-list
mailing list