[issue17680] self is lost if methods are callable objects

2013-04-09 Thread Christian Heimes
Christian Heimes added the comment: Your callable object has to implement the descriptor protocol. Otherwise the object isn't wrapped in a method object. http://docs.python.org/2/howto/descriptor.html Please ask on the Python user list if you still need more information. -- nosy: +chr

[issue17680] self is lost if methods are callable objects

2013-04-09 Thread Roman Rader
New submission from Roman Rader: Some strange behavior is observed while method in object substitutes with callable object. For example: - class Meth(object): def __call__(*args, **kwargs): print (args, kwargs) class X(object): def some_metho