Skip to content

Commit 7058749

Browse files
committed
register a user function as PyCFunction for now, since we wrap C API functions in user functions, too
1 parent a07c9b6 commit 7058749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/lib-graalpython/python_cext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ def PyTruffle_Type(type_name):
10851085
elif type_name == "PyCapsule":
10861086
return PyCapsule
10871087
elif type_name == "function":
1088-
return type(getattr)
1088+
return type(PyTruffle_Type)
10891089
elif type_name == "ellipsis":
10901090
return type(Py_Ellipsis())
10911091
elif type_name == "method":

0 commit comments

Comments
 (0)