]> granicus.if.org Git - python/commitdiff
Document that varlist can be NULL.
authorRaymond Hettinger <python@rcn.com>
Sun, 26 Oct 2003 17:20:07 +0000 (17:20 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 26 Oct 2003 17:20:07 +0000 (17:20 +0000)
Doc/api/concrete.tex

index 7e784c79b10fac5251e37e76bc36f00e8bbba785..b00b9151ad8ccb81c6e4bb2a537993048dfe0b6c 100644 (file)
@@ -1741,8 +1741,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}