[pypy-svn] r74777 - pypy/trunk/pypy/module/cpyext
afa at codespeak.net
afa at codespeak.net
Wed May 26 16:26:46 CEST 2010
Author: afa
Date: Wed May 26 16:26:45 2010
New Revision: 74777
Modified:
pypy/trunk/pypy/module/cpyext/stubs.py
Log:
Remove stubs that are now implemented.
Modified: pypy/trunk/pypy/module/cpyext/stubs.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/stubs.py (original)
+++ pypy/trunk/pypy/module/cpyext/stubs.py Wed May 26 16:26:45 2010
@@ -982,17 +982,6 @@
"""
raise NotImplementedError
- at cpython_api([rffi.CCHARP, rffi.CCHARP], PyObject)
-def PyFile_FromString(space, filename, mode):
- """
-
-
-
- On success, return a new file object that is opened on the file given by
- filename, with a file mode given by mode, where mode has the same
- semantics as the standard C routine fopen(). On failure, return NULL."""
- raise NotImplementedError
-
@cpython_api([FILE, rffi.CCHARP, rffi.CCHARP, rffi.INT_real], PyObject)
def PyFile_FromFile(space, fp, name, mode, close):
"""Create a new PyFileObject from the already-open standard C file
@@ -2680,16 +2669,6 @@
This function is not available in 3.x and does not have a PyBytes alias."""
raise NotImplementedError
- at cpython_api([rffi.CCHARP], PyObject)
-def PyString_InternFromString(space, v):
- """A combination of PyString_FromString() and
- PyString_InternInPlace(), returning either a new string object that has
- been interned, or a new ("owned") reference to an earlier interned string object
- with the same value.
-
- This function is not available in 3.x and does not have a PyBytes alias."""
- raise NotImplementedError
-
@cpython_api([rffi.CCHARP, Py_ssize_t, rffi.CCHARP, rffi.CCHARP], PyObject)
def PyString_Decode(space, s, size, encoding, errors):
"""Create an object by decoding size bytes of the encoded buffer s using the
@@ -3602,12 +3581,6 @@
exception was raised."""
raise NotImplementedError
- at cpython_api([FILE, rffi.CCHARP, rffi.INT_real, PyObject, PyObject], PyObject)
-def PyRun_File(space, fp, filename, start, globals, locals):
- """This is a simplified interface to PyRun_FileExFlags() below, leaving
- closeit set to 0 and flags set to NULL."""
- raise NotImplementedError
-
@cpython_api([FILE, rffi.CCHARP, rffi.INT_real, PyObject, PyObject, rffi.INT_real], PyObject)
def PyRun_FileEx(space, fp, filename, start, globals, locals, closeit):
"""This is a simplified interface to PyRun_FileExFlags() below, leaving
More information about the Pypy-commit
mailing list