summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2013-12-06 20:37:07 +0100
committerArmin Rigo <arigo@tunes.org>2013-12-06 20:37:07 +0100
commitcecdbf66d507ed0b23dfd86b224fd06984994ee1 (patch)
tree4ef7f3f1577f5aa9ce0d7ce8a02a20045715d62c /doc
parent2d5a5cb7befae0802a65ac564ab79cc6ab1df6e5 (diff)
downloadcffi-cecdbf66d507ed0b23dfd86b224fd06984994ee1.tar.gz
Document more this change
Diffstat (limited to 'doc')
-rw-r--r--doc/source/index.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst
index e296a44..a5c2dd5 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -1188,8 +1188,12 @@ an array.)
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