[Python-checkins] python/dist/src/Lib UserString.py,1.19,1.20

perky at users.sourceforge.net perky at users.sourceforge.net
Mon Dec 15 14:46:11 EST 2003


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

Modified Files:
	UserString.py 
Log Message:
Add rsplit method for UserString, too.
(Spotted by Raymond Hettinger)


Index: UserString.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/UserString.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** UserString.py	26 Nov 2003 08:21:33 -0000	1.19
--- UserString.py	15 Dec 2003 19:46:09 -0000	1.20
***************
*** 114,117 ****
--- 114,119 ----
      def split(self, sep=None, maxsplit=-1):
          return self.data.split(sep, maxsplit)
+     def rsplit(self, sep=None, maxsplit=-1):
+         return self.data.rsplit(sep, maxsplit)
      def splitlines(self, keepends=0): return self.data.splitlines(keepends)
      def startswith(self, prefix, start=0, end=sys.maxint):





More information about the Python-checkins mailing list