]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport of bugfix [ 1306449 ] PyString_AsStringAndSize() return value documented...
authorGeorg Brandl <georg@python.org>
Wed, 28 Sep 2005 12:53:22 +0000 (12:53 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 28 Sep 2005 12:53:22 +0000 (12:53 +0000)
Doc/api/concrete.tex

index a9a3a2c0885a44ea516c7ff562957eca89eac8cb..1b994a683c14eb5b3d0c4c4980bcac8903fca1d6 100644 (file)
@@ -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,