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 0fd8ddd commit 417defdCopy full SHA for 417defd
Python/call.nim
@@ -1,6 +1,6 @@
1
2
3
-import ../Objects/[pyobject, methodobject, funcobjectImpl,
+import ../Objects/[pyobject, methodobject, funcobject,
4
stringobject, exceptions,
5
pyobject_apis,
6
dictobject,
@@ -12,7 +12,9 @@ proc fastCall*(callable: PyObject, args: openArray[PyObject]; kwnames: PyDictObj
12
if callable.ofPyNimFuncObject:
13
return tpMagic(NimFunc, call)(callable, @args, kwnames)
14
elif callable.ofPyFunctionObject:
15
- return tpMagic(Function, call)(callable, @args, kwnames)
+ # XXX:rec-dep:
16
+ #return tpMagic(PyFunction, call)(callable, @args, kwnames)
17
+ return callable.getMagic(call)(callable, @args, kwnames)
18
else:
19
let fun = getFun(callable, call)
20
return fun(callable, @args, kwnames)
0 commit comments