New to Python: Features

G. S. Hayes sjdevnull at yahoo.com
Tue Oct 5 12:34:32 EDT 2004


Josiah Carlson <jcarlson at uci.edu> wrote in message news:<mailman.4319.1096957126.5135.python-list at python.org>...
> > >     bar = staticmethod(bar)
[SNIP]
> > How come Python always complains when I don't include the self parameter
>   
> > in an object method?  Your code doesn't work on my interpreter.
> 
> I don't know what is wrong with your interpreter...

Wasn't staticmethod added somewhat recently (2.2 timeframe?)?  If so,
maybe he has an older version installed...



More information about the Python-list mailing list