Skip to content

Commit 5cdce27

Browse files
committed
removed python_cext.py
1 parent da37120 commit 5cdce27

File tree

3 files changed

+0
-61
lines changed

3 files changed

+0
-61
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/Python3Core.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ private static String[] initializeCoreFiles() {
360360
"__graalpython__",
361361
"_weakref",
362362
"faulthandler",
363-
PythonCextBuiltins.PYTHON_CEXT,
364363
"bytearray",
365364
"unicodedata",
366365
"_sre",

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/cext/PythonCextBuiltins.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -295,17 +295,13 @@ public final class PythonCextBuiltins extends PythonBuiltins {
295295

296296
public static final String PYTHON_CEXT = "python_cext";
297297

298-
public static final String NATIVE_NULL = "native_null";
299-
300298
/*
301299
* Native pointer to the PyMethodDef struct for functions created in C. We need to keep it
302300
* because the C program may expect to get its pointer back when accessing m_ml member of
303301
* methods.
304302
*/
305303
public static final HiddenKey METHOD_DEF_PTR = new HiddenKey("method_def_ptr");
306304

307-
private PythonObject errorHandler;
308-
309305
@Override
310306
protected List<? extends NodeFactory<? extends PythonBuiltinBaseNode>> getNodeFactories() {
311307
return PythonCextBuiltinsFactory.getFactories();
@@ -314,8 +310,6 @@ protected List<? extends NodeFactory<? extends PythonBuiltinBaseNode>> getNodeFa
314310
@Override
315311
public void initialize(Python3Core core) {
316312
super.initialize(core);
317-
// TODO can be removed when python_cext.py is gone
318-
builtinConstants.put(NATIVE_NULL, core.getContext().getNativeNull());
319313
builtinConstants.put("PyEval_SaveThread", new PyEvalSaveThread());
320314
builtinConstants.put("PyEval_RestoreThread", new PyEvalRestoreThread());
321315
builtinConstants.put("PyGILState_Ensure", new PyGILStateEnsure());

graalpython/lib-graalpython/python_cext.py

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)