staticmethod and __call__

Luke LLoeffler at home.com
Thu Dec 6 20:46:32 EST 2001


Being new to Python all that code was way over my head, but why isn't 
f() defined as:

def f(self): print 'An Item' ??


> class Item:
>   def f(): print 'An Item'




More information about the Python-list mailing list