From: Georg Brandl Date: Wed, 28 Sep 2005 12:53:12 +0000 (+0000) Subject: bug [ 1306449 ] PyString_AsStringAndSize() return value documented wrong X-Git-Tag: v2.5a0~1333 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e53475ddd1a03d03dccec3fb79d84d277fba521c;p=thirdparty%2FPython%2Fcpython.git bug [ 1306449 ] PyString_AsStringAndSize() return value documented wrong --- diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex index a2dabdc65c95..b6dbc5d6c812 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,