summaryrefslogtreecommitdiff
path: root/Doc/lib/libqueue.tex
AgeCommit message (Collapse)AuthorLines
2004-07-12Bug #788520: Queue class has logic error when non-blockingTim Peters-3/+3
I don't agree it had a bug (see the report), so this is *not* a candidate for backporting, but the docs were confusing and the Queue implementation was old enough to vote. Rewrote put/put_nowait/get/get_nowait from scratch, to use a pair of Conditions (not_full and not_empty), sharing a common mutex. The code is 1/4 the size now, and 6.25x easier to understand. For blocking with timeout, we also get to reuse (indirectly) the tedious timeout code from threading.Condition. The Full and Empty exceptions raised by non-blocking calls are now easy (instead of nearly impossible) to explain truthfully: Full is raised if and only if the Queue truly is full when the non-blocking put call checks the queue size, and similarly for Empty versus non-blocking get. What I don't know is whether the new implementation is slower (or faster) than the old one. I don't really care. Anyone who cares a lot is encouraged to check that.
2004-01-29* Move collections.deque() in from the sandboxRaymond Hettinger-4/+0
* Add unittests, newsitem, and whatsnew * Apply to Queue.py mutex.py threading.py pydoc.py and shlex.py * Docs are forthcoming
2002-10-15Patch #572628: Optional timeouts for put and get.Martin v. Löwis-17/+29
2002-06-26add seealso link to the bisect moduleSkip Montanaro-0/+4
2000-10-10Fixed lots of small nits caught by Ka-Ping Yee <ping@lfw.org>.Fred Drake-3/+2
2000-04-03Merged changes from the 1.5.2p2 release.Fred Drake-1/+1
(Very rough.)
1999-02-08Update documentation to reflect changes to Queue.py by Tim Peters.Guido van Rossum-15/+29
1998-08-10New section header style.Fred Drake-2/+3
Fix up a few synopses.
1998-07-23Adjusted to use the new module synopsis support macros.Fred Drake-2/+4
1998-04-04Remove all uses of \sectcode; we can now use logical markup everywhere.Fred Drake-1/+1
1998-03-27Use the new {methoddesc} and {memberdesc} environments as appropriate.Fred Drake-14/+12
1998-03-10Logical markup.Fred Drake-42/+24
Correct misuse of indexsubutem. Describe the Queue class using {classdesc}{Queue}, not {funcdesc}{__init__}.
1998-02-13Remove all \bcode / \ecode cruft; this is no longer needed. See previousFred Drake-8/+8
checkin of myformat.sty. Change "\renewcommand{\indexsubitem}{(...)}" to "\setindexsubitem{(...)}" everywhere. Some other minor nits that I happened to come across.
1997-12-17Make the word "Module" in the section header start with an upper-case "M".Fred Drake-1/+1
1997-11-20libqueue.tex: Documentation for the Queue.py module.Barry Warsaw-0/+88
Makefile: Add dependency on libqueue.tex lib.tex: Place the libqueue.tex documentation just after libthread.tex since Queue depends on thread support in Python.