<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/collectionsmodule.c, branch v2.4.4</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/collectionsmodule.c?h=v2.4.4</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/collectionsmodule.c?h=v2.4.4'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-10-05T17:22:15Z</updated>
<entry>
<title>[Backport r51224 | neal.norwitz]</title>
<updated>2006-10-05T17:22:15Z</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2006-10-05T17:22:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=165e797817b9bc1237a694790142f6eb97fdf31d'/>
<id>urn:sha1:165e797817b9bc1237a694790142f6eb97fdf31d</id>
<content type='text'>
Move the assert which checks for a NULL pointer first.
Klocwork #274.
</content>
</entry>
<entry>
<title>[Backport r51255 | neal.norwitz]</title>
<updated>2006-10-05T17:06:59Z</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2006-10-05T17:06:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=68e1e0372baab7d9734c219258cf84c82e28ab9d'/>
<id>urn:sha1:68e1e0372baab7d9734c219258cf84c82e28ab9d</id>
<content type='text'>
Really address the issue of where to place the assert for leftblock.
(Followup of Klocwork 274)
</content>
</entry>
<entry>
<title>[Backport of rev. 42093 by neal.norwitz]</title>
<updated>2006-09-27T19:17:32Z</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2006-09-27T19:17:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e7031223e36c43ccd47321b3ff8997c1423e2b9c'/>
<id>urn:sha1:e7031223e36c43ccd47321b3ff8997c1423e2b9c</id>
<content type='text'>
Check return result from Py_InitModule*().  This API can fail.

Probably should be backported.
</content>
</entry>
<entry>
<title>Disallow keyword arguments for type constructors that don't use them</title>
<updated>2005-08-26T06:43:16Z</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2005-08-26T06:43:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=66e75ac6e092fd1b5b9a7e9378928c9ec0829f32'/>
<id>urn:sha1:66e75ac6e092fd1b5b9a7e9378928c9ec0829f32</id>
<content type='text'>
(fixes #1119418).
</content>
</entry>
<entry>
<title>SF patch #1062279:  deque pickling problems</title>
<updated>2004-11-09T07:27:35Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-11-09T07:27:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=952f8808b264f82b6dbf8e613307769050eba611'/>
<id>urn:sha1:952f8808b264f82b6dbf8e613307769050eba611</id>
<content type='text'>
(Contributed by Dima Dorfman.)

* Support pickling of dictionaries in instances of deque subclasses.
* Support pickling of recursive deques.
</content>
</entry>
<entry>
<title>Bump-up block size.</title>
<updated>2004-11-02T02:11:35Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-11-02T02:11:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7d112df94f97cec372bdb7f15eb265ded908da50'/>
<id>urn:sha1:7d112df94f97cec372bdb7f15eb265ded908da50</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Simplify delitem() code by calling rotate() directly instead of using</title>
<updated>2004-10-09T16:02:18Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-10-09T16:02:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dcb9d9467c93f9a97067a4c01d2838452551e4b2'/>
<id>urn:sha1:dcb9d9467c93f9a97067a4c01d2838452551e4b2</id>
<content type='text'>
arguments passed through tuples.
</content>
</entry>
<entry>
<title>Armin's patch to prevent overflows.</title>
<updated>2004-10-06T17:51:54Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-10-06T17:51:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c5fa992069b0e9588805573f0f4a685980bbcc05'/>
<id>urn:sha1:c5fa992069b0e9588805573f0f4a685980bbcc05</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Upon insertion, if memory runs out, the deque was left in a corrupted state.</title>
<updated>2004-10-02T13:59:34Z</updated>
<author>
<name>Armin Rigo</name>
<email>arigo@tunes.org</email>
</author>
<published>2004-10-02T13:59:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=974d757af15c22049a2aaa8cecf1456cd79d6397'/>
<id>urn:sha1:974d757af15c22049a2aaa8cecf1456cd79d6397</id>
<content type='text'>
deque_item(): a performance bug: the linked list of blocks was followed
from the left in most cases, because the test (i &lt; (deque-&gt;len &gt;&gt; 1)) was
after "i %= BLOCKLEN".

deque_clear(): replaced a call to deque_len() with deque-&gt;len; not sure what
this call was here for, nor if all compilers under the sun would inline it.

deque_traverse(): I belive that it could be called by the GC when the deque
has leftblock==rightblock==NULL, because it is tracked before the first block
is allocated (though closely before).  Still, a C extension module subclassing
deque could provide its own tp_alloc that could trigger a GC collection after
the PyObject_GC_Track()...

deque_richcompare(): rewrote to cleanly check for end-of-iterations instead of
relying on deque.__iter__().next() to succeed exactly len(deque) times -- an
assumption which can break if deques are subclassed.  Added a test.

I wonder if the length should be explicitely bounded to INT_MAX, with
OverflowErrors, as in listobject.c.  On 64-bit machines, adding more than
INT_MAX in the deque will result in trouble.  (Note to anyone/me fixing
this: carefully check for overflows if len is close to INT_MAX in the
following functions: deque_rotate(), deque_item(), deque_ass_item())
</content>
</entry>
<entry>
<title>* Bulletproof the method for detecting mutations during iteration.</title>
<updated>2004-10-02T00:43:13Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-10-02T00:43:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d1b3d88bf33e6c854807a5eca644a6c1c12ec5f4'/>
<id>urn:sha1:d1b3d88bf33e6c854807a5eca644a6c1c12ec5f4</id>
<content type='text'>
  The previous approach was too easily fooled (a rotate() sufficed).

* Use it-&gt;counter to determine when iteration is complete.  The
  previous approach was too complex.

* Strengthen an assertion and add a comment here or there.
</content>
</entry>
</feed>
