• Raymond Hettinger's avatar
    Improvements to collections.deque(): · 738ec90c
    Raymond Hettinger yazdı
    * 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.
    738ec90c
asynchat.py 10.5 KB