]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document that varlist can be NULL.
authorRaymond Hettinger <python@rcn.com>
Sun, 26 Oct 2003 17:21:56 +0000 (17:21 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 26 Oct 2003 17:21:56 +0000 (17:21 +0000)
Doc/api/concrete.tex

index 53785aeff1f2605146e689e384399ce8fbee237c..5ae0f02f67c01b83cc38bcaebebcaa3a39f2c866 100644 (file)
@@ -1733,8 +1733,10 @@ format.
                                         PyObject *itemlist}
   Sets the slice of \var{list} between \var{low} and \var{high} to the
   contents of \var{itemlist}.  Analogous to
-  \code{\var{list}[\var{low}:\var{high}] = \var{itemlist}}.  Returns
-  \code{0} on success, \code{-1} on failure.
+  \code{\var{list}[\var{low}:\var{high}] = \var{itemlist}}.
+  The \var{itemlist} may be \NULL{}, indicating the assignment
+  of an empty list (slice deletion).
+  Returns \code{0} on success, \code{-1} on failure.
 \end{cfuncdesc}
 
 \begin{cfuncdesc}{int}{PyList_Sort}{PyObject *list}