Author: Armin Rigo <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to