<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/Queue.py, branch v2.5.2</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=v2.5.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/Queue.py?h=v2.5.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-12-02T01:57:21Z</updated>
<entry>
<title>Fix nit in comment.</title>
<updated>2006-12-02T01:57:21Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2006-12-02T01:57:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1c305dbf978021b4609b43338fc037b36cc1ed38'/>
<id>urn:sha1:1c305dbf978021b4609b43338fc037b36cc1ed38</id>
<content type='text'>
</content>
</entry>
<entry>
<title>document the class, not its initializer</title>
<updated>2006-06-10T14:09:11Z</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2006-06-10T14:09:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=86116e2b75ca86363105b9788bcab1309098ff6c'/>
<id>urn:sha1:86116e2b75ca86363105b9788bcab1309098ff6c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't decrement below zero.  And add more tests.</title>
<updated>2006-03-25T12:15:04Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2006-03-25T12:15:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c4e94b90a84a1127078bdb9f63707eb71fedece3'/>
<id>urn:sha1:c4e94b90a84a1127078bdb9f63707eb71fedece3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Whitespace normalization.</title>
<updated>2006-03-25T01:50:43Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2006-03-25T01:50:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e33901eb2b196149eab06f2943256e07b494fbb1'/>
<id>urn:sha1:e33901eb2b196149eab06f2943256e07b494fbb1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF Patch #1455676:  Simplify using Queues with daemon consumer threads</title>
<updated>2006-03-24T20:43:29Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2006-03-24T20:43:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fd3fcf0b35a479c3df4999d9bad2337a5e3af140'/>
<id>urn:sha1:fd3fcf0b35a479c3df4999d9bad2337a5e3af140</id>
<content type='text'>
Adds join() and task_done() methods to track when all enqueued tasks have
been gotten and fully processed by daemon consumer threads.
</content>
</entry>
<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>
</feed>
