[issue20309] Class method descriptors are different between builtin and user classes

2014-01-20 Thread Nick Coghlan
Nick Coghlan added the comment: I believe it's just a matter of pattern of use - applying staticmethod outside a class (or retrieving the descriptor directly from the dict, bypassing the descriptor protocol), so nobody every noticed. Ditto for the C wrapper vs the Python wrapper for a classmetho

[issue20309] Class method descriptors are different between builtin and user classes

2014-01-19 Thread Larry Hastings
Larry Hastings added the comment: I should add, I see the same results with current trunk and with my handy Python 3 (currently 3.3.1rc1, huh guess I'm behind). -- ___ Python tracker __

[issue20309] Class method descriptors are different between builtin and user classes

2014-01-19 Thread Larry Hastings
New submission from Larry Hastings: I found something curious while experimenting with types tonight. Everybody knows, if you access a descriptor in a class through the normal attribute-getting methods, you actually get the result of calling its '__get__' method. If you want to get your hands