Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r68373:da5b52720446
Date: 2013-12-04 15:44 +0100
http://bitbucket.org/pypy/pypy/changeset/da5b52720446/

Log:    Document that ctypes.pythonapi is not really working.

diff --git a/pypy/doc/cpython_differences.rst b/pypy/doc/cpython_differences.rst
--- a/pypy/doc/cpython_differences.rst
+++ b/pypy/doc/cpython_differences.rst
@@ -83,7 +83,7 @@
 
     _winreg
 
-* Supported by being rewritten in pure Python (possibly using ``ctypes``):
+* Supported by being rewritten in pure Python (possibly using ``cffi``):
   see the `lib_pypy/`_ directory.  Examples of modules that we
   support this way: ``ctypes``, ``cPickle``, ``cmath``, ``dbm``, 
``datetime``...
   Note that some modules are both in there and in the list above;
@@ -316,5 +316,9 @@
   type and vice versa. For builtin types, a dictionary will be returned that
   cannot be changed (but still looks and behaves like a normal dictionary).
 
+* ``ctypes.pythonapi`` lets you access the CPython C API emulation layer
+  of PyPy, at your own risks and without doing anything sensible about
+  e.g. the GIL.  Since PyPy 2.3, the functions are called with an extra
+  "Py", for example ``PyPyInt_FromLong()``.
 
 .. include:: _ref.txt
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to