Skip to content

Commit 417defd

Browse files
committed
refact(call): get rid of rec-dep
1 parent 0fd8ddd commit 417defd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Python/call.nim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
import ../Objects/[pyobject, methodobject, funcobjectImpl,
3+
import ../Objects/[pyobject, methodobject, funcobject,
44
stringobject, exceptions,
55
pyobject_apis,
66
dictobject,
@@ -12,7 +12,9 @@ proc fastCall*(callable: PyObject, args: openArray[PyObject]; kwnames: PyDictObj
1212
if callable.ofPyNimFuncObject:
1313
return tpMagic(NimFunc, call)(callable, @args, kwnames)
1414
elif callable.ofPyFunctionObject:
15-
return tpMagic(Function, call)(callable, @args, kwnames)
15+
# XXX:rec-dep:
16+
#return tpMagic(PyFunction, call)(callable, @args, kwnames)
17+
return callable.getMagic(call)(callable, @args, kwnames)
1618
else:
1719
let fun = getFun(callable, call)
1820
return fun(callable, @args, kwnames)

0 commit comments

Comments
 (0)