]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Replace left(), right(), and __reversed__() with the more general purpose
authorRaymond Hettinger <python@rcn.com>
Mon, 1 Mar 2004 23:16:22 +0000 (23:16 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 1 Mar 2004 23:16:22 +0000 (23:16 +0000)
commit0a4977c2f3b8b3cd80f326f44e87076b2578b1b6
tree25342a34c69da22a41fe9964852de92ab6c7ff8b
parent786ea6bc23c26a0ec98d5cbc80633615f9fa8cb1
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().
Doc/lib/libcollections.tex
Lib/asynchat.py
Lib/test/test_deque.py
Modules/collectionsmodule.c