8000 Pass NULL instead of None as arg to METHNOARGS functions · oracle/graalpython@935e46a · GitHub
[go: up one dir, main page]

Skip to content

Commit 935e46a

Browse files
committed
Pass NULL instead of None as arg to METHNOARGS functions
1 parent 8dca795 commit 935e46a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/capi/ExternalFunctionNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ public MethNoargsRoot(PythonLanguage language, TruffleString name, boolean isSta
12861286

12871287
@Override
12881288
protected Object[] prepareCArguments(VirtualFrame frame) {
1289-
return new Object[]{readSelf(frame), PNone.NONE};
1289+
return new Object[]{readSelf(frame), PNone.NO_VALUE};
12901290
}
12911291

12921292
@Override

0 commit comments

Comments
 (0)
0