<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/Queue.py, branch 2.4</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/Queue.py?h=2.4</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/Queue.py?h=2.4'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2004-07-12T01:20:32Z</updated>
<entry>
<title>Simplified the new get/get_nowait/put/put_nowait implementations a bit.</title>
<updated>2004-07-12T01:20:32Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-07-12T01:20:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=71ed2201e247d54f498e0b905cb8564dbe02088a'/>
<id>urn:sha1:71ed2201e247d54f498e0b905cb8564dbe02088a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bug #788520: Queue class has logic error when non-blocking</title>
<updated>2004-07-12T00:45:14Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-07-12T00:45:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5af0e414822e0e5da17566e1156005df520d1ae0'/>
<id>urn:sha1:5af0e414822e0e5da17566e1156005df520d1ae0</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>* Move collections.deque() in from the sandbox</title>
<updated>2004-01-29T06:37:52Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-01-29T06:37:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=756b3f3c15bd314ffa25299ca25465ae21e62a30'/>
<id>urn:sha1:756b3f3c15bd314ffa25299ca25465ae21e62a30</id>
<content type='text'>
* Add unittests, newsitem, and whatsnew
* Apply to Queue.py mutex.py threading.py pydoc.py and shlex.py
* Docs are forthcoming
</content>
</entry>
<entry>
<title>Add __all__ .</title>
<updated>2003-07-01T05:34:27Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2003-07-01T05:34:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b42bb5a88a646433d81461ebfe94db7cec57b585'/>
<id>urn:sha1:b42bb5a88a646433d81461ebfe94db7cec57b585</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use the dummy_thread module in Queue.py and tempfile.py.</title>
<updated>2002-12-30T22:36:09Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-12-30T22:36:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a0934246d3ee4061e93805d056759f3f40ec45de'/>
<id>urn:sha1:a0934246d3ee4061e93805d056759f3f40ec45de</id>
<content type='text'>
tempfile.py already contained code to let it run without threads present;
for Queue.py this is considered a useful feature too.
</content>
</entry>
<entry>
<title>Patch #572628: Optional timeouts for put and get.</title>
<updated>2002-10-15T15:11:13Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2002-10-15T15:11:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=77ac429eff2e2398c250b79fb59cd36ffba6916e'/>
<id>urn:sha1:77ac429eff2e2398c250b79fb59cd36ffba6916e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Code modernization.  Replace v=s[i]; del s[i] with single lookup v=s.pop(i)</title>
<updated>2002-06-30T03:39:14Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2002-06-30T03:39:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=46ac8eb3c899b498299a2f8fbcdd4ed3f32addba'/>
<id>urn:sha1:46ac8eb3c899b498299a2f8fbcdd4ed3f32addba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix bug 544473 - "Queue module can deadlock".</title>
<updated>2002-04-19T00:11:32Z</updated>
<author>
<name>Mark Hammond</name>
<email>mhammond@skippinet.com.au</email>
</author>
<published>2002-04-19T00:11:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3b959dbcaffe7fce27b21cde42b7d77a8ac29191'/>
<id>urn:sha1:3b959dbcaffe7fce27b21cde42b7d77a8ac29191</id>
<content type='text'>
Use try/finally to ensure all Queue locks remain stable.
Includes test case.  Bugfix candidate.
</content>
</entry>
<entry>
<title>removed __all__ from several modules</title>
<updated>2001-02-18T03:30:53Z</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2001-02-18T03:30:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=78349072f7c8f2d3da6f552665f9f381930c3c42'/>
<id>urn:sha1:78349072f7c8f2d3da6f552665f9f381930c3c42</id>
<content type='text'>
</content>
</entry>
<entry>
<title>added __all__ lists to a number of Python modules</title>
<updated>2001-01-20T19:54:20Z</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2001-01-20T19:54:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e99d5ea25ba994491c773d9b5872332334ccd1c5'/>
<id>urn:sha1:e99d5ea25ba994491c773d9b5872332334ccd1c5</id>
<content type='text'>
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.
</content>
</entry>
</feed>
