[pypy-commit] cffi default: Precision

arigo noreply at buildbot.pypy.org
Tue May 6 11:06:20 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r1510:f90ae6e5ea6a
Date: 2014-05-06 11:05 +0200
http://bitbucket.org/cffi/cffi/changeset/f90ae6e5ea6a/

Log:	Precision

diff --git a/doc/source/index.rst b/doc/source/index.rst
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -1201,7 +1201,8 @@
    ``<_cffi_backend.buffer object>``.  This has been fixed.  But you
    should avoid using ``str(buf)``: it now gives inconsistent results
    between Python 2 and Python 3 (this is similar to how ``str()``
-   gives inconsistent results on regular byte strings).
+   gives inconsistent results on regular byte strings).  Use ``buf[:]``
+   instead.
 
 
 ``ffi.typeof("C type" or cdata object)``: return an object of type


More information about the pypy-commit mailing list