bug [ 1306449 ] PyString_AsStringAndSize() return value documented wrong

This commit is contained in:
Georg Brandl 2005-09-28 12:53:12 +00:00
parent 420254df5a
commit e53475ddd1
1 changed files with 2 additions and 2 deletions

View 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,