[Python-checkins] python/dist/src/Lib UserList.py,1.18,1.19

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Mon, 16 Jun 2003 22:05:51 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv30555/Lib

Modified Files:
	UserList.py 
Log Message:
SF #754014:  list.index() should accept optional start, end arguments

Also, modified UserList.index() to match and expanded the related tests.



Index: UserList.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/UserList.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** UserList.py	27 Feb 2003 20:14:31 -0000	1.18
--- UserList.py	17 Jun 2003 05:05:49 -0000	1.19
***************
*** 76,80 ****
      def remove(self, item): self.data.remove(item)
      def count(self, item): return self.data.count(item)
!     def index(self, item): return self.data.index(item)
      def reverse(self): self.data.reverse()
      def sort(self, *args): self.data.sort(*args)
--- 76,80 ----
      def remove(self, item): self.data.remove(item)
      def count(self, item): return self.data.count(item)
!     def index(self, item, *args): return self.data.index(item, *args)
      def reverse(self): self.data.reverse()
      def sort(self, *args): self.data.sort(*args)