1. Python CFFI
  2. Untitled project
  3. cffi


Armin Rigo  committed a44545d

Document the changes

  • Participants
  • Parent commits 00f0e57
  • Branches default

Comments (0)

Files changed (1)

File doc/source/index.rst

View file
  • Ignore whitespace
 - ``len(buf), buf[index], buf[index] = newchar``: access as a sequence
   of characters.
+.. versionchanged:: 0.5
+   The buffer object returned by ``ffi.buffer(cdata)`` keeps alive the
+   ``cdata`` object: if it was originally an owning cdata, then its
+   owned memory will not be freed as long as the buffer is alive.
+   Moreover buffer objects now support weakrefs to them.
 ``ffi.typeof("C type" or cdata object)``: return an object of type
 ``<ctype>`` corresponding to the parsed string, or to the C type of the