Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaec403 commit 684ed98Copy full SHA for 684ed98
1 file changed
Python/ceval.c
@@ -2023,20 +2023,8 @@ call_object(func, arg)
2023
binaryfunc call;
2024
object *result;
2025
2026
- if (call = func->ob_type->tp_call) {
2027
-#if 0
2028
- /* XXX Why is this here??? */
2029
- int size = gettuplesize(arg);
2030
- if (arg) {
2031
- size = gettuplesize(arg);
2032
- if (size == 1)
2033
- arg = GETTUPLEITEM(arg, 0);
2034
- else if (size == 0)
2035
- arg = NULL;
2036
- }
2037
-#endif
+ if (call = func->ob_type->tp_call)
2038
result = (*call)(func, arg);
2039
2040
else if (is_instancemethodobject(func) || is_funcobject(func))
2041
result = call_function(func, arg);
2042
else
0 commit comments