Doc clarification / edification on the semantics of the 'w*' format unit.

This commit is contained in:
Larry Hastings 2015-04-13 11:30:56 -04:00
parent 8d11ccceeb
commit ab792ac704
2 changed files with 12 additions and 5 deletions

View file

@ -152,7 +152,7 @@ Unless otherwise stated, buffers are not NUL-terminated.
any conversion. Raises :exc:`TypeError` if the object is not a Unicode
object. The C variable may also be declared as :c:type:`PyObject\*`.
``w*`` (:class:`bytearray` or read-write byte-oriented buffer) [Py_buffer]
``w*`` (read-write :term:`bytes-like object`) [Py_buffer]
This format accepts any object which implements the read-write buffer
interface. It fills a :c:type:`Py_buffer` structure provided by the caller.
The buffer may contain embedded null bytes. The caller have to call