diff options
author | Raymond Hettinger <python@rcn.com> | 2004-03-01 23:16:22 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-03-01 23:16:22 (GMT) |
commit | 0a4977c2f3b8b3cd80f326f44e87076b2578b1b6 (patch) | |
tree | 25342a34c69da22a41fe9964852de92ab6c7ff8b /Lib/asynchat.py | |
parent | 786ea6bc23c26a0ec98d5cbc80633615f9fa8cb1 (diff) | |
download | cpython-0a4977c2f3b8b3cd80f326f44e87076b2578b1b6.zip cpython-0a4977c2f3b8b3cd80f326f44e87076b2578b1b6.tar.gz cpython-0a4977c2f3b8b3cd80f326f44e87076b2578b1b6.tar.bz2 |
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().
Diffstat (limited to 'Lib/asynchat.py')
-rw-r--r-- | Lib/asynchat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asynchat.py b/Lib/asynchat.py index 2c0bc3e..062ab3e 100644 --- a/Lib/asynchat.py +++ b/Lib/asynchat.py @@ -262,7 +262,7 @@ class fifo: return self.list == [] def first (self): - return self.list.left() + return self.list[0] def push (self, data): self.list.append(data) |