<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_deque.py, branch v2.5a2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_deque.py?h=v2.5a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_deque.py?h=v2.5a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2005-03-22T22:43:28Z</updated>
<entry>
<title>Add tests for tuple, list and UserList that initialize the object from</title>
<updated>2005-03-22T22:43:28Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2005-03-22T22:43:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=09a3f2cc2f700be154ab489b6243b92b7331ff62'/>
<id>urn:sha1:09a3f2cc2f700be154ab489b6243b92b7331ff62</id>
<content type='text'>
various iterables.

(Copied from test_deque.py as suggested by Jim Jewett in SF bug #1166274)
</content>
</entry>
<entry>
<title>Fix typo.</title>
<updated>2005-03-22T11:22:38Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2005-03-22T11:22:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c448a91ee855ee9c24ecf3e66410e04ae3c6ce98'/>
<id>urn:sha1:c448a91ee855ee9c24ecf3e66410e04ae3c6ce98</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Apply remove's mutation test after every equality test.</title>
<updated>2005-03-19T00:00:51Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-03-19T00:00:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d73202c596e730d8bfb22edb1a6c4cc2f0e9ca6f'/>
<id>urn:sha1:d73202c596e730d8bfb22edb1a6c4cc2f0e9ca6f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add a remove() method to collections.deque objects.</title>
<updated>2005-03-18T21:20:23Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-03-18T21:20:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4aec61e0fc29217c93acd0615ad54bd081a64658'/>
<id>urn:sha1:4aec61e0fc29217c93acd0615ad54bd081a64658</id>
<content type='text'>
</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>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>deque_traverse():  If the deque had one block, and its rightindex was</title>
<updated>2004-10-01T02:01:04Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-10-01T02:01:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=10c7e86454db59ece9d5ed028dd9d104ac766bdf'/>
<id>urn:sha1:10c7e86454db59ece9d5ed028dd9d104ac766bdf</id>
<content type='text'>
BLOCKLEN-1, this assert-failed in a debug build, or went wild with a
NULL pointer in a release build.  Reported on c.l.py by Stefan Behnel.
</content>
</entry>
<entry>
<title>Use floor division operator.</title>
<updated>2004-09-27T15:29:05Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-09-27T15:29:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ffdb8bb99c4017152a9dca70669f9d6b9831d454'/>
<id>urn:sha1:ffdb8bb99c4017152a9dca70669f9d6b9831d454</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove unnecessary line.</title>
<updated>2004-08-26T04:29:47Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-08-26T04:29:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=770acc2bb4798c2fc5e4052a8854c408735f4dd5'/>
<id>urn:sha1:770acc2bb4798c2fc5e4052a8854c408735f4dd5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>* balance the left/right search for getitem.</title>
<updated>2004-07-09T04:10:20Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-07-09T04:10:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a435c53e133546adb4a7d13a73f9b688bf1a6078'/>
<id>urn:sha1:a435c53e133546adb4a7d13a73f9b688bf1a6078</id>
<content type='text'>
* use assertions instead of tests after internal calls that can't fail.
* expand test coverage
</content>
</entry>
</feed>
