Commits

Armin Rigo  committed da5b527

Document that ctypes.pythonapi is not really working.

  • Participants
  • Parent commits 2e9fca4

Comments (0)

Files changed (1)

File pypy/doc/cpython_differences.rst

 
     _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;
   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