From 9aeeffa9293f6deeb5c6aaec5d81071aa2e269f0 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Fri, 26 Feb 2010 13:22:50 +0000 Subject: [PATCH] #7407: specify default maxsize value; patch by Floris Bruynooghe --- Doc/library/queue.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/queue.rst b/Doc/library/queue.rst index 65b16a339ab..4caa1bd0b35 100644 --- a/Doc/library/queue.rst +++ b/Doc/library/queue.rst @@ -26,14 +26,14 @@ lowest valued entry is retrieved first. The :mod:`Queue` module defines the following classes and exceptions: -.. class:: Queue(maxsize) +.. class:: Queue(maxsize=0) Constructor for a FIFO queue. *maxsize* is an integer that sets the upperbound limit on the number of items that can be placed in the queue. Insertion will 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. -.. class:: LifoQueue(maxsize) +.. class:: LifoQueue(maxsize=0) Constructor for a LIFO queue. *maxsize* is an integer that sets the upperbound limit on the number of items that can be placed in the queue. Insertion will @@ -42,7 +42,7 @@ The :mod:`Queue` module defines the following classes and exceptions: .. versionadded:: 2.6 -.. class:: PriorityQueue(maxsize) +.. class:: PriorityQueue(maxsize=0) Constructor for a priority queue. *maxsize* is an integer that sets the upperbound limit on the number of items that can be placed in the queue. Insertion will