[pypy-commit] pypy py3k: We won't support Py_NewInterpreter(), remove it from _testcapi module.

amauryfa noreply at buildbot.pypy.org
Wed Dec 5 21:28:09 CET 2012


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3k
Changeset: r59332:70a4e41d7849
Date: 2012-12-05 21:21 +0100
http://bitbucket.org/pypy/pypy/changeset/70a4e41d7849/

Log:	We won't support Py_NewInterpreter(), remove it from _testcapi
	module.

diff --git a/lib_pypy/_testcapimodule.c b/lib_pypy/_testcapimodule.c
--- a/lib_pypy/_testcapimodule.c
+++ b/lib_pypy/_testcapimodule.c
@@ -1,4 +1,6 @@
-/* Verbatim copy of Modules/_testcapimodule.c from CPython 3.2 */
+/* Verbatim copy of Modules/_testcapimodule.c from CPython 3.2,
+ * except that "run_in_subinterp" is commented out
+ */
 /*
  * C Extension module to test Python interpreter C APIs.
  *
@@ -2301,6 +2303,8 @@
     return NULL;
 }
 
+#ifndef PYPY_VERSION
+
 /* To run some code in a sub-interpreter. */
 static PyObject *
 run_in_subinterp(PyObject *self, PyObject *args)
@@ -2326,6 +2330,8 @@
     return PyLong_FromLong(r);
 }
 
+#endif  /* PYPY_VERSION */
+
 
 static PyMethodDef TestMethods[] = {
     {"raise_exception",         raise_exception,                 METH_VARARGS},
@@ -2412,7 +2418,9 @@
     {"make_memoryview_from_NULL_pointer", (PyCFunction)make_memoryview_from_NULL_pointer,
      METH_NOARGS},
     {"crash_no_current_thread", (PyCFunction)crash_no_current_thread, METH_NOARGS},
+#ifndef PYPY_VERSION
     {"run_in_subinterp",        run_in_subinterp,                METH_VARARGS},
+#endif
     {NULL, NULL} /* sentinel */
 };
 


More information about the pypy-commit mailing list