Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r2684:684294ee51f8
Date: 2016-04-23 10:39 +0200
http://bitbucket.org/cffi/cffi/changeset/684294ee51f8/

Log:    Lies, this didn't print a list

diff --git a/doc/source/using.rst b/doc/source/using.rst
--- a/doc/source/using.rst
+++ b/doc/source/using.rst
@@ -834,7 +834,7 @@
 
     @ffi.callback("int(int, int *)")
     def python_callback(how_many, values):
-        print values     # a list
+        print ffi.unpack(values, how_many)
         return 0
     lib.python_callback = python_callback
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to