[pypy-commit] cffi default: Mention that lib.__dict__ doesn't exist any more, too

arigo noreply at buildbot.pypy.org
Tue May 19 22:02:30 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r2059:136a7f25360f
Date: 2015-05-19 22:03 +0200
http://bitbucket.org/cffi/cffi/changeset/136a7f25360f/

Log:	Mention that lib.__dict__ doesn't exist any more, too

diff --git a/doc/source/cdef.rst b/doc/source/cdef.rst
--- a/doc/source/cdef.rst
+++ b/doc/source/cdef.rst
@@ -130,7 +130,9 @@
 add random attributes to it (nor does it have all the
 underscore-prefixed internal attributes of the Python version).
 Similarly, the ``lib`` objects returned by the C version are read-only,
-apart from writes to global variables.
+apart from writes to global variables.  Also, ``lib.__dict__`` no
+longer works (unless your C library has a function called ``__dict__()``,
+that is), but you can use ``dir(lib)``.
 
 
 ffi.cdef(): declaring types and functions


More information about the pypy-commit mailing list