From: Victor Stinner Date: Mon, 5 Jul 2010 21:36:21 +0000 (+0000) Subject: #9158: Fix y* format of PyArg_Parse*() functions documentation X-Git-Tag: v3.2a1~295 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f1ccc038641533312a1e55964ff2e0e16861dd9;p=python #9158: Fix y* format of PyArg_Parse*() functions documentation --- diff --git a/Doc/c-api/arg.rst b/Doc/c-api/arg.rst index 29d3368193..72f2d968fa 100644 --- a/Doc/c-api/arg.rst +++ b/Doc/c-api/arg.rst @@ -100,7 +100,7 @@ Unless otherwise stated, buffers are not NUL-terminated. contain embedded NUL bytes; if it does, a :exc:`TypeError` exception is raised. -``y*`` (:class:`bytes`, :class:`bytearray` or buffer compatible object) [Py_buffer \*] +``y*`` (:class:`bytes`, :class:`bytearray` or buffer compatible object) [Py_buffer] This variant on ``s*`` doesn't accept Unicode objects, only objects supporting the buffer protocol. **This is the recommended way to accept binary data.**