[issue10922] Unexpected exception when calling function_proxy.__class__.__call__(function_proxy)

2011-05-01 Thread STINNER Victor
STINNER Victor added the comment: > I think this is a duplicate of issue #9756 Yes it is and the issue is now fixed. The example now fails with the correct exception: Traceback (most recent call last): File " x.py", line 12, in p.__class__.__call__(p) TypeError: descriptor '__call__' r

[issue10922] Unexpected exception when calling function_proxy.__class__.__call__(function_proxy)

2011-01-21 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.5, Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue10922] Unexpected exception when calling function_proxy.__class__.__call__(function_proxy)

2011-01-16 Thread Andreas Stührk
Andreas Stührk added the comment: I think this is a duplicate of issue #9756: `methoddescr_call()` checks whether the given argument is acceptable as "self" argument and does so using `PyObject_IsInstance()`. As the class in the given code returns the type of the proxied object for the `__cla

[issue10922] Unexpected exception when calling function_proxy.__class__.__call__(function_proxy)

2011-01-16 Thread Daniel Neuhäuser
New submission from Daniel Neuhäuser : Upon trying to create a proxy I stumbled upon this exception: Traceback (most recent call last): File "foo.py", line 11, in p.__class__.__call__(p) SystemError: PyEval_EvalCodeEx: NULL globals Investigating further led me to this code which reproduc