Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libqueue.tex @ 7277:bf4e790bd61a legacy-trunk
Remove all \bcode / \ecode cruft; this is no longer needed. See previous
checkin of myformat.sty.
Change "\renewcommand{\indexsubitem}{(...)}" to "\setindexsubitem{(...)}"
everywhere.
Some other minor nits that I happened to come across.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Fri, 13 Feb 1998 06:58:54 +0000 |
| parents | 2522c8f8615b |
| children | 3d1590b5e3dd |
line wrap: on
line diff
--- a/Doc/lib/libqueue.tex Fri Feb 13 06:48:05 1998 +0000 +++ b/Doc/lib/libqueue.tex Fri Feb 13 06:58:54 1998 +0000 @@ -18,7 +18,7 @@ The \code{Queue} module defines the following exception: -\renewcommand{\indexsubitem}{(in module Queue)} +\setindexsubitem{(in module Queue)} \begin{excdesc}{Empty} Exception raised when non-blocking get (e.g. \code{get_nowait()}) is @@ -35,7 +35,7 @@ is not described here. See the source code for details. The public interface methods are: -\renewcommand{\indexsubitem}{(__init__ method)} +\setindexsubitem{(__init__ method)} \begin{funcdesc}{__init__}{maxsize} Constructor for the class. \var{maxsize} is an integer that sets the @@ -45,41 +45,41 @@ zero, the queue size is infinite. \end{funcdesc} -\renewcommand{\indexsubitem}{(qsize method)} +\setindexsubitem{(qsize method)} \begin{funcdesc}{qsize}{} Returns the approximate size of the queue. Because of multithreading semantics, this number is not reliable. \end{funcdesc} -\renewcommand{\indexsubitem}{(empty method)} +\setindexsubitem{(empty method)} \begin{funcdesc}{empty}{} Returns 1 if the queue is empty, 0 otherwise. Because of multithreading semantics, this is not reliable. \end{funcdesc} -\renewcommand{\indexsubitem}{(full method)} +\setindexsubitem{(full method)} \begin{funcdesc}{full}{} Returns 1 if the queue is full, 0 otherwise. Because of multithreading semantics, this is not reliable. \end{funcdesc} -\renewcommand{\indexsubitem}{(put method)} +\setindexsubitem{(put method)} \begin{funcdesc}{put}{item} Puts \var{item} into the queue. \end{funcdesc} -\renewcommand{\indexsubitem}{(get method)} +\setindexsubitem{(get method)} \begin{funcdesc}{get}{} Gets and returns an item from the queue, blocking if necessary until one is available. \end{funcdesc} -\renewcommand{\indexsubitem}{(get_nowait method)} +\setindexsubitem{(get_nowait method)} \begin{funcdesc}{get_nowait}{} Gets and returns an item from the queue if one is immediately
