[Python-Dev] why different between staticmethod and classmethod on non-callable object?

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Sep 2 00:36:18 CEST 2009


Benjamin Peterson wrote:

> It depends on whether you're keeping the "callable" object around or
> not. Somebody could add a __call__ method later.

Good point. Removing the check sounds like the
right thing to do, then.

-- 
Greg


More information about the Python-Dev mailing list