Commit ffc9479a authored by Benjamin Peterson's avatar Benjamin Peterson

document 'y(#)' format codes for Py_BuildValue

parent 3851d12f
......@@ -424,6 +424,14 @@ and the following format units are left untouched.
Convert a C string and its length to a Python object. If the C string pointer
is *NULL*, the length is ignored and ``None`` is returned.
``y`` (bytes) [char \*, int]
This converts a C string to a Python :func:`bytes` object. If the C
string pointer is *NULL*, ``None`` is returned.
``y#`` (bytes) [char \*, int]
This converts a C string and its lengths to a Python object. If the C
string pointer is *NULL*, ``None`` is returned.
``z`` (string or ``None``) [char \*]
Same as ``s``.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment