Classes question

Emmanuel Jeandel ejeandel at ens-lyon.fr
Thu Oct 31 15:54:56 EST 2002


Hi, 

I have the following code : 

class A:
	  def __init__(self):
	  	  pass

	  def f(self):
	  	  self.x = B()

class B(A):
	  def __init__(self):
	  	  A.__init__(self)


I would like to have the class A and the class B in two differents files.
Is it possible ? 
I think that it is not directly possible, but if there is a mean with a
small change in the code...

Thanks in advance

Emmanuel



More information about the Python-list mailing list