[Python-checkins] python/dist/src/Lib asynchat.py,1.23,1.24
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Mon Mar 1 18:16:24 EST 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4871/lib
Modified Files:
asynchat.py
Log Message:
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().
Index: asynchat.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/asynchat.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** asynchat.py 29 Feb 2004 02:15:56 -0000 1.23
--- asynchat.py 1 Mar 2004 23:16:22 -0000 1.24
***************
*** 263,267 ****
def first (self):
! return self.list.left()
def push (self, data):
--- 263,267 ----
def first (self):
! return self.list[0]
def push (self, data):
More information about the Python-checkins
mailing list