]> granicus.if.org Git - python/commitdiff
Document that PyString_FromString() cannot take NULL as a parameter.
authorFred Drake <fdrake@acm.org>
Thu, 6 Dec 2001 20:38:15 +0000 (20:38 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 6 Dec 2001 20:38:15 +0000 (20:38 +0000)
This closes SF bug #489872.

Doc/api/concrete.tex

index 6c6e6f52a24fd80d504d8806196884c1e9d70808..a476e3740b7661bd7f1cd9eaf6364c1e064cfc4f 100644 (file)
@@ -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,