mirror of
https://github.com/python/cpython.git
synced 2024-11-29 21:05:33 +08:00
Document that PyString_FromString() cannot take NULL as a parameter.
This closes SF bug #489872.
This commit is contained in:
parent
62de65b25e
commit
32a3587345
@ -463,7 +463,8 @@ parameter and are called with a non-string parameter.
|
||||
|
||||
\begin{cfuncdesc}{PyObject*}{PyString_FromString}{const char *v}
|
||||
Returns a new string object with the value \var{v} on success, and
|
||||
\NULL{} on failure.
|
||||
\NULL{} on failure. The parameter \var{v} must not be \NULL; it
|
||||
will not be checked.
|
||||
\end{cfuncdesc}
|
||||
|
||||
\begin{cfuncdesc}{PyObject*}{PyString_FromStringAndSize}{const char *v,
|
||||
|
Loading…
Reference in New Issue
Block a user