to pass self or not to pass self
Lie Ryan
lie.1296 at gmail.com
Wed Mar 17 06:41:50 EDT 2010
On 03/17/2010 04:32 PM, Steven D'Aprano wrote:
> 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.
Whoops... yep, sorry about that. Got all it up the mixed head in...
More information about the Python-list
mailing list