benjamin.peterson
2008-10-21 21:10:07 UTC
Author: benjamin.peterson
Date: Tue Oct 21 23:10:07 2008
New Revision: 66993
Log:
document 'y(#)' format codes for Py_BuildValue
Modified:
python/branches/py3k/Doc/c-api/arg.rst
Modified: python/branches/py3k/Doc/c-api/arg.rst
==============================================================================
--- python/branches/py3k/Doc/c-api/arg.rst (original)
+++ python/branches/py3k/Doc/c-api/arg.rst Tue Oct 21 23:10:07 2008
@@ -424,6 +424,14 @@
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``.
Date: Tue Oct 21 23:10:07 2008
New Revision: 66993
Log:
document 'y(#)' format codes for Py_BuildValue
Modified:
python/branches/py3k/Doc/c-api/arg.rst
Modified: python/branches/py3k/Doc/c-api/arg.rst
==============================================================================
--- python/branches/py3k/Doc/c-api/arg.rst (original)
+++ python/branches/py3k/Doc/c-api/arg.rst Tue Oct 21 23:10:07 2008
@@ -424,6 +424,14 @@
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``.