[pypy-svn] r73932 - in pypy/branch/cpython-extension/pypy/module/cpyext: . src

afa at codespeak.net afa at codespeak.net
Wed Apr 21 02:54:32 CEST 2010


Author: afa
Date: Wed Apr 21 02:54:31 2010
New Revision: 73932

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/api.py
   pypy/branch/cpython-extension/pypy/module/cpyext/src/pyerrors.c
Log:
PyErr_NewException compiles nowadays


Modified: pypy/branch/cpython-extension/pypy/module/cpyext/api.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/api.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/api.py	Wed Apr 21 02:54:31 2010
@@ -247,7 +247,7 @@
     'Py_FatalError', 'PyOS_snprintf', 'PyOS_vsnprintf', 'PyArg_Parse',
     'PyArg_ParseTuple', 'PyArg_UnpackTuple', 'PyArg_ParseTupleAndKeywords',
     'PyString_FromFormat', 'PyString_FromFormatV', 'PyModule_AddObject',
-    'Py_BuildValue', 'PyTuple_Pack', 'PyErr_Format',
+    'Py_BuildValue', 'PyTuple_Pack', 'PyErr_Format', 'PyErr_NewException',
     'PyEval_CallFunction', 'PyEval_CallMethod', 'PyObject_CallFunction',
     'PyObject_CallMethod',
     'PyBuffer_FromMemory', 'PyBuffer_Type', 'init_bufferobject',

Modified: pypy/branch/cpython-extension/pypy/module/cpyext/src/pyerrors.c
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/src/pyerrors.c	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/src/pyerrors.c	Wed Apr 21 02:54:31 2010
@@ -20,9 +20,6 @@
 	return NULL;
 }
 
-#if 0
-depends on unavailable functions 
-
 PyObject *
 PyErr_NewException(char *name, PyObject *base, PyObject *dict)
 {
@@ -72,6 +69,3 @@
 	Py_XDECREF(modulename);
 	return result;
 }
-
-
-#endif



More information about the Pypy-commit mailing list