calling a method using a variable name?

Matt Gerrans matt.gerrans at hp.com
Sat Mar 15 02:03:08 CET 2003


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

Shouldn't that be:

class X:
   def method(self):
      pass







More information about the Python-list mailing list