[pypy-commit] cffi default: Document that this example is also possible in the out-of-line mode

arigo noreply at buildbot.pypy.org
Tue Jun 2 21:12:24 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r2159:25dc5648d49e
Date: 2015-06-02 21:13 +0200
http://bitbucket.org/cffi/cffi/changeset/25dc5648d49e/

Log:	Document that this example is also possible in the out-of-line mode

diff --git a/doc/source/overview.rst b/doc/source/overview.rst
--- a/doc/source/overview.rst
+++ b/doc/source/overview.rst
@@ -202,6 +202,13 @@
 .. _struct: http://docs.python.org/library/struct.html
 .. _array: http://docs.python.org/library/array.html
 
+This example also admits an out-of-line equivalent.  It is similar to
+`Out-of-line example (ABI level, out-of-line)`_ above, but without any
+call to ``ffi.dlopen()``.  In the main program, you write ``from
+_simple_example import ffi`` and then the same content as the in-line
+example above starting from the line ``image = ffi.new("pixel_t[]",
+800*600)``.
+
 
 .. _performance:
 


More information about the pypy-commit mailing list