]> granicus.if.org Git - python/commitdiff
bug [ 1306449 ] PyString_AsStringAndSize() return value documented wrong
authorGeorg Brandl <georg@python.org>
Wed, 28 Sep 2005 12:53:12 +0000 (12:53 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 28 Sep 2005 12:53:12 +0000 (12:53 +0000)
Doc/api/concrete.tex

index a2dabdc65c9561224e9c23efb33b3e8e3a229603..b6dbc5d6c812402fb44f59947ab5b9f70ddfb90c 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,