to pass self or not to pass self
Steven D'Aprano
steven at REMOVE.THIS.cybersource.com.au
Wed Mar 17 01:32:05 EDT 2010
On Wed, 17 Mar 2010 15:57:17 +1100, Lie Ryan wrote:
> Most people probably would never need to use
> descriptor protocol directly, since the immediate benefit of descriptor
> protocol are property(), classmethod(), and instancemethod() decorators
> which, without descriptor protocol, would never become a possibility.
There's an instancemethod decorator? Where?
Are you thinking of staticmethod? "instancemethod", if you mean what I
think you mean, doesn't need a decorator because it is the default
behaviour for new-style classes.
--
Steven
More information about the Python-list
mailing list