44 Commits (284fa08eb783a48f98eabda25aaaebefb5937cce)

Author SHA1 Message Date
Raymond Hettinger 57a8689b55 Issue 11004: Fix edge case for deque.count(). 16 years ago
Ezio Melotti 2623a37852 Merged revisions 86596 via svnmerge from 16 years ago
Raymond Hettinger ab8b9cae7e Expand test coverage for deque.count(). 16 years ago
Raymond Hettinger 5f516edd77 Add count() method to collections.deque(). 16 years ago
Georg Brandl a4f46e1292 Remove unused imports in test modules. 17 years ago
Ezio Melotti aa98058cc4 use assert[Not]In where appropriate 17 years ago
Raymond Hettinger a5fd24e97d Add a reverse() method to collections.deque(). 17 years ago
Raymond Hettinger 0b3263b073 Fix variants of deque.extend: d.extend(d) d+=d d.extendleft(d) 17 years ago
Raymond Hettinger 287bef46b7 Fix variants of deque.extend: d.extend(d) d+=d d.extendleft(d) 17 years ago
Benjamin Peterson 5c8da86f3a convert usage of fail* to assert* 17 years ago
Raymond Hettinger 56411aac79 For collections.deque() objects, expose the maxlen parameter as a read-only attribute. 17 years ago
Raymond Hettinger bac769bb5e Small optimization for corner case where maxlen==0. 17 years ago
Georg Brandl 734373cc4d Merged revisions 68133-68134,68141-68142,68145-68146,68148-68149,68159-68162,68166,68171-68174,68179,68195-68196,68210,68214-68215,68217-68222 via svnmerge from 18 years ago
Georg Brandl 47fe9817f1 Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from 18 years ago
Antoine Pitrou 733dc74442 fill in actual issue number in tests 18 years ago
Antoine Pitrou aa687902f2 Issue #3680: Reference cycles created through a dict, set or deque iterator did not get collected. 18 years ago
Benjamin Peterson 828a7066f1 Merged revisions 67898,67904-67907,67912,67918,67920-67921,67923-67924,67927,67930,67932,67943 via svnmerge from 18 years ago
Hirokazu Yamamoto 0fc0747586 Issue #4740: Use HIGHEST_PROTOCOL in pickle test. 18 years ago
Neal Norwitz 36a59b4a08 Remove the test file before writing it in case there is no write permission. 18 years ago
Neal Norwitz 40f5e4c5a2 Fix a bunch of UnboundLocalErrors when the tests fail. 18 years ago
Christian Heimes c5f05e45cf Patch #2167 from calvin: Remove unused imports 19 years ago
Raymond Hettinger adf9ffdfbe Fix bug 1604. deque.__init__() did not clear existing contents like list.__init__. Not a backport candidate. 19 years ago
Raymond Hettinger 68995867d5 Accept Jim Jewett's api suggestion to use None instead of -1 to indicate unbounded deques. 19 years ago
Raymond Hettinger a7fc4b13e0 Add __asdict__() to NamedTuple and refine the docs. 19 years ago
Georg Brandl 8e932e7d68 Bug #1486663: don't reject keyword arguments for subclasses of builtin 20 years ago
Georg Brandl b84c13792d Bug #1486663: don't reject keyword arguments for subclasses of builtin 20 years ago
Raymond Hettinger 51c2f6cd18 Fix zero-length corner case for iterating over a mutating deque. 20 years ago
Raymond Hettinger 5b44cbe6d8 Fix zero-length corner case for iterating over a mutating deque. 20 years ago
Walter Dörwald 09a3f2cc2f Add tests for tuple, list and UserList that initialize the object from 22 years ago
Walter Dörwald c448a91ee8 Fix typo. 22 years ago
Raymond Hettinger d73202c596 Apply remove's mutation test after every equality test. 22 years ago
Raymond Hettinger 4aec61e0fc Add a remove() method to collections.deque objects. 22 years ago
Raymond Hettinger 952f8808b2 SF patch #1062279: deque pickling problems 22 years ago
Armin Rigo 974d757af1 Upon insertion, if memory runs out, the deque was left in a corrupted state. 22 years ago
Tim Peters 10c7e86454 deque_traverse(): If the deque had one block, and its rightindex was 22 years ago
Raymond Hettinger ffdb8bb99c Use floor division operator. 22 years ago
Raymond Hettinger 770acc2bb4 Remove unnecessary line. 22 years ago
Raymond Hettinger a435c53e13 * balance the left/right search for getitem. 22 years ago
Raymond Hettinger 691d80532b Make sets and deques weak referencable. 22 years ago
Raymond Hettinger 354433a59d SF patch #872326: Generator expression implementation 22 years ago
Raymond Hettinger 0e371f2cb6 Make sure "del d[n]" is properly supported. Was necessary because the 22 years ago
Raymond Hettinger 300fa1d3b2 Temporarily disable doctest until genexps are in CVS 22 years ago
Raymond Hettinger e7169eb9ed Add more examples. 22 years ago
Raymond Hettinger 0a4977c2f3 Replace left(), right(), and __reversed__() with the more general purpose 23 years ago
Raymond Hettinger 738ec90ca1 Improvements to collections.deque(): 23 years ago
Raymond Hettinger ee33b27ef0 Make deque.rotate() smarter. Beef-up related tests. 23 years ago
Raymond Hettinger 5c5eb86347 * Incorporate Skip's suggestions for documentation (explain the word deque 23 years ago
Raymond Hettinger c058fd14a9 * Fix ref counting in extend() and extendleft(). 23 years ago
Raymond Hettinger 3ba85c2e8a Have deques support high volume loads. 23 years ago
Raymond Hettinger 756b3f3c15 * Move collections.deque() in from the sandbox 23 years ago