[pypy-commit] pypy default: Remove from stubs.py functions implemented some time ago
amauryfa
noreply at buildbot.pypy.org
Sat Jun 4 01:11:18 CEST 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch:
Changeset: r44678:80ef6df9256d
Date: 2011-05-29 23:48 +0200
http://bitbucket.org/pypy/pypy/changeset/80ef6df9256d/
Log: Remove from stubs.py functions implemented some time ago
diff --git a/pypy/module/cpyext/stubs.py b/pypy/module/cpyext/stubs.py
--- a/pypy/module/cpyext/stubs.py
+++ b/pypy/module/cpyext/stubs.py
@@ -172,12 +172,6 @@
This is equivalent to (PyBUF_ND)."""
raise NotImplementedError
- at cpython_api([Py_buffer], lltype.Void)
-def PyBuffer_Release(space, view):
- """Release the buffer view. This should be called when the buffer
- is no longer being used as it may free memory from it."""
- raise NotImplementedError
-
@cpython_api([rffi.CCHARP], Py_ssize_t, error=CANNOT_FAIL)
def PyBuffer_SizeFromFormat(space, format):
"""Return the implied ~Py_buffer.itemsize from the struct-stype
@@ -198,13 +192,6 @@
given shape with the given number of bytes per element."""
raise NotImplementedError
- at cpython_api([Py_buffer, PyObject, rffi.VOIDP, Py_ssize_t, rffi.INT_real, rffi.INT_real], rffi.INT_real, error=-1)
-def PyBuffer_FillInfo(space, view, obj, buf, len, readonly, infoflags):
- """Fill in a buffer-info structure, view, correctly for an exporter that can
- only share a contiguous chunk of memory of "unsigned bytes" of the given
- length. Return 0 on success and -1 (with raising an error) on error."""
- raise NotImplementedError
-
@cpython_api([Py_buffer], PyObject)
def PyMemoryView_FromBuffer(space, view):
"""Create a memoryview object wrapping the given buffer-info structure view.
@@ -1094,14 +1081,6 @@
"""
raise NotImplementedError
- at cpython_api([PyObject], PyObject)
-def PyImport_ReloadModule(space, m):
- """Reload a module. This is best described by referring to the built-in
- Python function reload(), as the standard reload() function calls this
- function directly. Return a new reference to the reloaded module, or NULL
- with an exception set on failure (the module still exists in this case)."""
- raise NotImplementedError
-
@cpython_api([rffi.CCHARP, PyObject], PyObject)
def PyImport_ExecCodeModule(space, name, co):
"""Given a module name (possibly of the form package.module) and a code
@@ -1140,13 +1119,6 @@
of the bytecode file, in little-endian byte order."""
raise NotImplementedError
- at cpython_api([], PyObject)
-def PyImport_GetModuleDict(space):
- """Return the dictionary used for the module administration (a.k.a.
- sys.modules). Note that this is a per-interpreter variable."""
- borrow_from()
- raise NotImplementedError
-
@cpython_api([PyObject], PyObject)
def PyImport_GetImporter(space, path):
"""Return an importer object for a sys.path/pkg.__path__ item
More information about the pypy-commit
mailing list