commit | 0a4977c2f3b8b3cd80f326f44e87076b2578b1b6 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Mon Mar 01 23:16:22 2004 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Mon Mar 01 23:16:22 2004 +0000 |
tree | 25342a34c69da22a41fe9964852de92ab6c7ff8b | |
parent | 786ea6bc23c26a0ec98d5cbc80633615f9fa8cb1 [diff] |
Replace left(), right(), and __reversed__() with the more general purpose __getitem__() and __setitem__(). Simplifies the API, reduces the code size, adds flexibility, and makes deques work with bisect.bisect(), random.shuffle(), and random.sample().