calling a method using a variable name?

Matt Gerrans matt.gerrans at hp.com
Fri Mar 14 20:03:08 EST 2003


> > class X:
> >    def method():
> >       pass

Shouldn't that be:

class X:
   def method(self):
      pass







More information about the Python-list mailing list