summaryrefslogtreecommitdiff
path: root/Lib/Queue.py
AgeCommit message (Collapse)AuthorLines
2002-04-19backport mhammond's patch:Anthony Baxter-14/+33
Fix bug 544473 - "Queue module can deadlock". Use try/finally to ensure all Queue locks remain stable. Includes test case. Bugfix candidate. Original patch(es): python/dist/src/Lib/Queue.py:1.15
2001-02-18removed __all__ from several modulesSkip Montanaro-2/+0
2001-01-20added __all__ lists to a number of Python modulesSkip Montanaro-0/+2
added test script and expected output file as well this closes patch 103297. __all__ attributes will be added to other modules without first submitting a patch, just adding the necessary line to the test script to verify more-or-less correct implementation.
2001-01-15Variant of Skip's patch 103246 (Remove unneeded string exception compat from ↵Tim Peters-13/+7
Queue).
2000-06-28typos fixed by Rob HooftJeremy Hylton-1/+1
2000-02-02Mass patch by Ka-Ping Yee:Guido van Rossum-1/+1
1. Comments at the beginning of the module, before functions, and before classes have been turned into docstrings. 2. Tabs are normalized to four spaces. Also, removed the "remove" function from dircmp.py, which reimplements list.remove() (it must have been very old).
1999-09-09Make the maxsize constructor argument default to 0 (an unlimited queue size).Guido van Rossum-1/+1
1999-02-08Tim Peters:Guido van Rossum-42/+40
+ Implements a put_nowait method. + Adds a corresponding Queue.Full exception. + Simplifies the implementation by adding optional "block" args to get() and put(), and makes the old get_nowait() and new put_nowait() one-line redirections to get() and put(). + Uses (much) simpler logic for the nowait cases. + Regularizes the doc strings to something closer to "Guido style" <wink>. + Converts two stray tabs into spaces. + Removes confusing verbiage about the queue "not being available" from the docstrings -- never knew what that meant as a user, and after digging into the implementation still didn't know what it was trying to say.
1998-04-29Replace all calls to acquire_lock() and release_lock() with acquire()Guido van Rossum-25/+25
and release() instead.
1998-04-09Clarify that put *blocks* when the queue is full. Add some blankGuido van Rossum-1/+6
lines to doc strings.
1998-03-26Mass check-in after untabifying all files that need it.Guido van Rossum-85/+85
1997-11-20(Queue.Empty): When class based exceptions are in force, derive thisBarry Warsaw-101/+115
class from the standard base exception Exception. Otherwise define Queue.Empty as a string exception. (Queue): 8-space to 4-space indentation conversion. Also, basically recast all method comments into docstrings.
1993-12-29Some minute changes.Guido van Rossum-0/+1
1993-12-17* Mass change: get rid of all init() methods, in favor of __init__()Guido van Rossum-3/+1
constructors. There is no backward compatibility. Not everything has been tested. * aiff.{py,doc}: deleted in favor of aifc.py (which contains its docs as comments)
1992-08-25New module implementing a multi-everything queue.Guido van Rossum-0/+122