SIGN IN SIGN UP

Improvements to collections.deque():

* 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.
R
Raymond Hettinger committed
738ec90ca14154493a88fb38728537837a45eebf
Parent: fe99927