Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Minor wording and spacing nits. | Raymond Hettinger | 2004-06-12 | 1 | -9/+7 |
| | |||||
* | Make sure "del d[n]" is properly supported. Was necessary because the | Raymond Hettinger | 2004-05-12 | 1 | -11/+8 |
| | | | | | | same method that implements __setitem__ also implements __delitem__. Also, there were several good use cases (removing items from a queue and implementing Forth style stack ops). | ||||
* | Add more examples. | Raymond Hettinger | 2004-05-09 | 1 | -1/+52 |
| | |||||
* | Add an example application to the docs. | Raymond Hettinger | 2004-04-30 | 1 | -2/+31 |
| | |||||
* | Replace left(), right(), and __reversed__() with the more general purpose | Raymond Hettinger | 2004-03-01 | 1 | -15/+6 |
| | | | | | | | __getitem__() and __setitem__(). Simplifies the API, reduces the code size, adds flexibility, and makes deques work with bisect.bisect(), random.shuffle(), and random.sample(). | ||||
* | Improvements to collections.deque(): | Raymond Hettinger | 2004-02-29 | 1 | -7/+22 |
| | | | | | | | | * Add doctests for the examples in the library reference. * Add two methods, left() and right(), modeled after deques in C++ STL. * Apply the new method to asynchat.py. * Add comparison operators to make deques more substitutable for lists. * Replace the LookupErrors with IndexErrors to more closely match lists. | ||||
* | * Incorporate Skip's suggestions for documentation (explain the word deque | Raymond Hettinger | 2004-02-07 | 1 | -22/+42 |
| | | | | | comes from and show the differences from lists). * Add a rotate() method. | ||||
* | * Fix ref counting in extend() and extendleft(). | Raymond Hettinger | 2004-02-07 | 1 | -1/+3 |
| | | | | * Let deques support reversed(). | ||||
* | Have deques support high volume loads. | Raymond Hettinger | 2004-02-06 | 1 | -2/+18 |
| | |||||
* | Add documentation for collections.deque(). | Raymond Hettinger | 2004-01-29 | 1 | -0/+88 |