multiple inheritance & __init__

Stephane Ninin stefnin.nospam at yahoo.fr
Wed Jul 3 11:33:08 EDT 2002


  Hi,


A small question about muliple inheritance.


I am starting from:

"
class ExListbox(Observer,Tkinter.Listbox):

    def __init__(self,dl):
    	...
"
where Observer is some class...


  In the ExListbox.__init__ constructor,
is there any reason to choose this order:

  Observer.__init__(self)
  Tkinter.Listbox(self)

or this order:

  Tkinter.Listbox(self)
  Observer.__init__(self)

as compared to the order in the class declaration:
class ExListbox(Observer,Tkinter.Listbox)

?

   Thanks in advance for your help.

  Regards,

   Stephane


-- 
  Stephane Ninin
stefnin.nospam at yahoo.fr




More information about the Python-list mailing list