New to Python: Features

Richard Blackwood richardblackwood at cloudthunder.com
Tue Oct 5 13:25:37 EDT 2004


G. S. Hayes wrote:

>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...
>  
>
I think it is 2.1 or something like that. 



More information about the Python-list mailing list