[pypy-commit] cffi default: Update the repr in the doc.

arigo noreply at buildbot.pypy.org
Tue Jun 26 14:29:51 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r527:957ab211da8c
Date: 2012-06-26 14:29 +0200
http://bitbucket.org/cffi/cffi/changeset/957ab211da8c/

Log:	Update the repr in the doc.

diff --git a/doc/source/index.rst b/doc/source/index.rst
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -367,7 +367,8 @@
 
 Pointers, structures and arrays are more complex: they don't have an
 obvious Python equivalent.  Thus, they correspond to objects of type
-``cdata``, which are printed for example as ``<cdata 'struct foo_s *'>``.
+``cdata``, which are printed for example as
+``<cdata 'struct foo_s *' 0xa3290d8>``.
 
 ``ffi.new(ctype, [initializer])``: this function builds a new cdata
 object of the given ``ctype``.  The ctype is usually some constant
@@ -430,7 +431,7 @@
 
     >>> x = ffi.cast("int", 42)
     >>> x
-    <cdata 'int'>
+    <cdata 'int' 42>
     >>> int(x)
     42
 


More information about the pypy-commit mailing list