From: Georg Brandl Date: Wed, 28 Sep 2005 12:53:22 +0000 (+0000) Subject: backport of bugfix [ 1306449 ] PyString_AsStringAndSize() return value documented... X-Git-Tag: v2.4.3c1~269 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=35425f10ef6a27e75b481428fe60e5bf48ab6ab7;p=thirdparty%2FPython%2Fcpython.git backport of bugfix [ 1306449 ] PyString_AsStringAndSize() return value documented wrong --- diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex index a9a3a2c0885a..1b994a683c14 100644 --- a/Doc/api/concrete.tex +++ b/Doc/api/concrete.tex @@ -664,8 +664,8 @@ parameter and are called with a non-string parameter. \var{size})}. It must not be deallocated. If \var{string} is a Unicode object, this function computes the default encoding of \var{string} and operates on that. If \var{string} is not a string - object at all, \cfunction{PyString_AsString()} returns \NULL{} and - raises \exception{TypeError}. + object at all, \cfunction{PyString_AsStringAndSize()} returns + \code{-1} and raises \exception{TypeError}. \end{cfuncdesc} \begin{cfuncdesc}{void}{PyString_Concat}{PyObject **string,