Make staticmethod objects callable?

Steven D'Aprano steve at REMOVETHIScyber.com.au
Wed Mar 1 23:02:53 CET 2006


On Wed, 01 Mar 2006 08:32:20 -0700, Steven Bethard wrote:

> (For anyone else out there reading who doesn't already know this, Steven 
> D'Aprano's comments are easily explained by noting that the __get__ 
> method of staticmethod objects returns functions, and classes always 
> call the __get__ methods of descriptors when those descriptors are class 
> attributes:

...

A usage of the word "easily" that I am unfamiliar with.

*wink*

Why all the indirection to implement something which is, conceptually,
the same as an ordinary function?



-- 
Steven.




More information about the Python-list mailing list