mirror of https://github.com/python/cpython
w# requires Py_ssize_t
This commit is contained in:
parent
bcb017f353
commit
c70e5f9975
|
@ -251,7 +251,7 @@ variable(s) whose address should be passed.
|
||||||
or use ``w#`` instead. Only single-segment buffer objects are accepted;
|
or use ``w#`` instead. Only single-segment buffer objects are accepted;
|
||||||
:exc:`TypeError` is raised for all others.
|
:exc:`TypeError` is raised for all others.
|
||||||
|
|
||||||
``w#`` (read-write character buffer) [char \*, int]
|
``w#`` (read-write character buffer) [char \*, Py_ssize_t]
|
||||||
Like ``s#``, but accepts any object which implements the read-write buffer
|
Like ``s#``, but accepts any object which implements the read-write buffer
|
||||||
interface. The :ctype:`char \*` variable is set to point to the first byte of
|
interface. The :ctype:`char \*` variable is set to point to the first byte of
|
||||||
the buffer, and the :ctype:`int` is set to the length of the buffer. Only
|
the buffer, and the :ctype:`int` is set to the length of the buffer. Only
|
||||||
|
|
Loading…
Reference in New Issue