From: Raymond Hettinger Date: Thu, 17 Jan 2008 08:07:05 +0000 (+0000) Subject: Note versionadded. X-Git-Tag: v2.6a1~579 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d59f4572798e473d3ed781a7ef615b0967f5e4c3;p=python Note versionadded. --- diff --git a/Doc/library/queue.rst b/Doc/library/queue.rst index 86bcaae3f0..f6765a5c26 100644 --- a/Doc/library/queue.rst +++ b/Doc/library/queue.rst @@ -36,6 +36,8 @@ The :mod:`Queue` module defines the following classes and exceptions: block once this size has been reached, until queue items are consumed. If *maxsize* is less than or equal to zero, the queue size is infinite. + .. versionadded:: 2.6 + .. class:: PriorityQueue(maxsize) Constructor for a priority queue. *maxsize* is an integer that sets the upperbound @@ -47,6 +49,8 @@ The :mod:`Queue` module defines the following classes and exceptions: one returned by ``sorted(list(entries))[0]``). A typical pattern for entries is a tuple in the form: ``(priority_number, data)``. + .. versionadded:: 2.6 + .. exception:: Empty Exception raised when non-blocking :meth:`get` (or :meth:`get_nowait`) is called