Commits

Armin Rigo committed 4581bf0

Document more this change

Comments (0)

Files changed (1)

doc/source/index.rst

    Moreover buffer objects now support weakrefs to them.
 
 .. versionchanged:: 0.9
-   Before version 0.9, ``bytes(buf)`` was supported in Python 3 but not
-   Python 2.
+   Before version 0.9, ``bytes(buf)`` was supported in Python 3 to get
+   the content of the buffer, but on Python 2 it would return the repr
+   ``<_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).
 
 
 ``ffi.typeof("C type" or cdata object)``: return an object of type