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().
R
Raymond Hettinger committed
0a4977c2f3b8b3cd80f326f44e87076b2578b1b6
Parent: 786ea6b