summaryrefslogtreecommitdiffstats
path: root/Doc/api
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-09-28 12:53:12 (GMT)
committerGeorg Brandl <georg@python.org>2005-09-28 12:53:12 (GMT)
commite53475ddd1a03d03dccec3fb79d84d277fba521c (patch)
tree7668dc51b69a4b5f52d1247486f289f7c4b6b1b9 /Doc/api
parent420254df5af797b6565c450d59fe84f52e72ed1d (diff)
downloadcpython-e53475ddd1a03d03dccec3fb79d84d277fba521c.zip
cpython-e53475ddd1a03d03dccec3fb79d84d277fba521c.tar.gz
cpython-e53475ddd1a03d03dccec3fb79d84d277fba521c.tar.bz2
bug [ 1306449 ] PyString_AsStringAndSize() return value documented wrong
Diffstat (limited to 'Doc/api')
-rw-r--r--Doc/api/concrete.tex4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex
index a2dabdc..b6dbc5d 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,