From 74951875e9cf961c65861d0ca05cf69b0d22d04d Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mon, 2 Mar 2015 15:41:45 +0100 Subject: [PATCH 2/2] Remove obsolete note in argument parsing docs --- Doc/c-api/arg.rst | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Doc/c-api/arg.rst b/Doc/c-api/arg.rst index ed62dea..3a22f99 100644 --- a/Doc/c-api/arg.rst +++ b/Doc/c-api/arg.rst @@ -130,11 +130,6 @@ Unless otherwise stated, buffers are not NUL-terminated. The Python string must not contain embedded NUL characters; if it does, a :exc:`TypeError` exception is raised. - .. note:: - Since ``u`` doesn't give you back the length of the string, and it - may contain embedded NUL characters, it is recommended to use ``u#`` - or ``U`` instead. - ``u#`` (:class:`str`) [Py_UNICODE \*, int] This variant on ``u`` stores into two C variables, the first one a pointer to a Unicode data buffer, the second one its length. -- 2.1.0