Author: Armin Rigo <[email protected]>
Branch:
Changeset: r1186:c28026358db5
Date: 2013-03-07 17:51 +0100
http://bitbucket.org/cffi/cffi/changeset/c28026358db5/
Log: Add warnings about keeping alive the library object.
diff --git a/doc/source/index.rst b/doc/source/index.rst
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -459,6 +459,10 @@
For the optional ``flags`` argument, see ``man dlopen`` (ignored on
Windows). It defaults to ``ffi.RTLD_NOW``.
+This function returns a "library" object that gets closed when it goes
+out of scope. Make sure you keep the library object around as long as
+needed.
+
.. _below:
@@ -622,6 +626,10 @@
check. Be sure to have other means of clearing the ``tmpdir``
whenever you change your sources.
+This function returns a "library" object that gets closed when it goes
+out of scope. Make sure you keep the library object around as long as
+needed.
+
Working with pointers, structures and arrays
--------------------------------------------
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit