Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d566cb

Browse files
committed
Merged revisions 77243 via svnmerge from
svn+ssh://[email protected]/python/branches/py3k ................ r77243 | gregory.p.smith | 2010-01-02 13:32:29 -0800 (Sat, 02 Jan 2010) | 10 lines Merged revisions 77242 via svnmerge from svn+ssh://[email protected]/python/trunk ........ r77242 | gregory.p.smith | 2010-01-02 13:29:54 -0800 (Sat, 02 Jan 2010) | 3 lines Correct documentation for s* z* and w*, the argument that should be passed is the address of a Py_buffer, not a Py_buffer *. ........ ................
1 parent 323cabb commit 1d566cb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/c-api/arg.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ variable(s) whose address should be passed.
3737
including :file:`Python.h`. If the macro is defined, length is a
3838
:ctype:`Py_ssize_t` rather than an int.
3939

40-
``s*`` (string, Unicode, or any buffer compatible object) [Py_buffer \*]
40+
``s*`` (string, Unicode, or any buffer compatible object) [Py_buffer]
4141
This is similar to ``s``, but the code fills a :ctype:`Py_buffer` structure
4242
provided by the caller. In this case the Python string may contain embedded
4343
null bytes. Unicode objects pass back a pointer to the default encoded
@@ -81,7 +81,7 @@ variable(s) whose address should be passed.
8181
Like ``s``, but the Python object may also be ``None``, in which case the C
8282
pointer is set to *NULL*.
8383

84-
``z*`` (string or ``None`` or any buffer compatible object) [Py_buffer*]
84+
``z*`` (string or ``None`` or any buffer compatible object) [Py_buffer]
8585
This is to ``s*`` as ``z`` is to ``s``.
8686

8787
``z#`` (string or ``None`` or any read buffer compatible object) [const char \*, int]
@@ -281,7 +281,7 @@ variable(s) whose address should be passed.
281281
or use ``w#`` instead. Only single-segment buffer objects are accepted;
282282
:exc:`TypeError` is raised for all others.
283283

284-
``w*`` (read-write byte-oriented buffer) [Py_buffer \*]
284+
``w*`` (read-write byte-oriented buffer) [Py_buffer]
285285
This is to ``w`` what ``s*`` is to ``s``.
286286

287287
``w#`` (read-write character buffer) [char \*, int]

0 commit comments

Comments
 (0)