[pypy-commit] cffi default: #include <Python.h> is bogus.

arigo noreply at buildbot.pypy.org
Sun Aug 19 13:07:58 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r863:6b188ac30e6f
Date: 2012-08-19 13:07 +0200
http://bitbucket.org/cffi/cffi/changeset/6b188ac30e6f/

Log:	#include <Python.h> is bogus.

diff --git a/doc/source/index.rst b/doc/source/index.rst
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -496,6 +496,12 @@
 equivalent on this platform (e.g. using ``long`` instead of ``long
 long`` or vice-versa on 64-bit Linux).
 
+Note that ``verify()`` is meant to call C libraries that are *not* using
+``#include <Python.h>``.  The C functions are called without the GIL,
+and afterwards we don't check if they set a Python exception, for
+example.  You may work around it, but mixing CFFI with ``Python.h`` is
+not recommended.
+
 
 Working with pointers, structures and arrays
 --------------------------------------------


More information about the pypy-commit mailing list