[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Name self not defined





On Tue, Jan 27, 2009 at 9:18 PM, Yanom Mobis <yanom@xxxxxxxxxxxxxx> wrote:
this is the code in question:

class Car(Basicsprite): #car class
   def __init__(self, speedarg=(0,0)):
       self.speed = speedarg
       Basicsprite.__init__(self)

Is this valid to call parent constructor after other statements? ( Think this is invalid in other languages  -- just not sure about python )
--
Jake