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

Reply via email to