[Python-Dev] why different between staticmethod and classmethod on non-callable object? (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Wed Sep 2 00:36:18 CEST 2009
- Previous message: [Python-Dev] why different between staticmethod and classmethod on non-callable object?
- Next message: [Python-Dev] why different between staticmethod and classmethod on non-callable object?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] why different between staticmethod and classmethod on non-callable object?
- Next message: [Python-Dev] why different between staticmethod and classmethod on non-callable object?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]