mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
bug [ 1306449 ] PyString_AsStringAndSize() return value documented wrong
This commit is contained in:
parent
420254df5a
commit
e53475ddd1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
\var{size})}. It must not be deallocated. If \var{string} is a
|
||||||
Unicode object, this function computes the default encoding of
|
Unicode object, this function computes the default encoding of
|
||||||
\var{string} and operates on that. If \var{string} is not a string
|
\var{string} and operates on that. If \var{string} is not a string
|
||||||
object at all, \cfunction{PyString_AsString()} returns \NULL{} and
|
object at all, \cfunction{PyString_AsStringAndSize()} returns
|
||||||
raises \exception{TypeError}.
|
\code{-1} and raises \exception{TypeError}.
|
||||||
\end{cfuncdesc}
|
\end{cfuncdesc}
|
||||||
|
|
||||||
\begin{cfuncdesc}{void}{PyString_Concat}{PyObject **string,
|
\begin{cfuncdesc}{void}{PyString_Concat}{PyObject **string,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue