• Raymond Hettinger's avatar
    Improvements to collections.deque(): · 80efc580
    Raymond Hettinger authored
    * 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.
    80efc580
libcollections.tex 4.85 KB