Skip to content

Commit 93adecc

Browse files
authored
Update Python.swift
1 parent 26c9c7b commit 93adecc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PythonKit/Python.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,9 +1588,10 @@ extension PythonFunction : PythonConvertible {
15881588
Unmanaged<PyFunction>.fromOpaque(funcPointer).release()
15891589
})
15901590

1591-
let pyFuncPointer = PyCFunction_New(
1591+
let pyFuncPointer = PyCFunction_NewEx(
15921592
PythonFunction.sharedMethodDefinition,
1593-
capsulePointer
1593+
capsulePointer,
1594+
nil
15941595
)
15951596

15961597
return PythonObject(consuming: pyFuncPointer)

0 commit comments

Comments
 (0)