Kaydet (Commit) 684ed989 authored tarafından Guido van Rossum's avatar Guido van Rossum

remove unused code for tp_call

üst aaec403a
......@@ -2023,20 +2023,8 @@ call_object(func, arg)
binaryfunc call;
object *result;
if (call = func->ob_type->tp_call) {
#if 0
/* XXX Why is this here??? */
int size = gettuplesize(arg);
if (arg) {
size = gettuplesize(arg);
if (size == 1)
arg = GETTUPLEITEM(arg, 0);
else if (size == 0)
arg = NULL;
}
#endif
if (call = func->ob_type->tp_call)
result = (*call)(func, arg);
}
else if (is_instancemethodobject(func) || is_funcobject(func))
result = call_function(func, arg);
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment