[Python-checkins] python/dist/src/Lib UserString.py,1.15,1.16
nascheme@projects.sourceforge.net
nascheme@projects.sourceforge.net
2002年11月18日 08:12:58 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv25331/Lib
Modified Files:
UserString.py
Log Message:
Add __mod__ method to UserString.
Index: UserString.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/UserString.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** UserString.py 9 Aug 2002 01:37:06 -0000 1.15
--- UserString.py 18 Nov 2002 16:12:54 -0000 1.16
***************
*** 56,59 ****
--- 56,61 ----
return self.__class__(self.data*n)
__rmul__ = __mul__
+ def __mod__(self, args):
+ return self.__class__(self.data % args)
# the following methods are defined in alphabetical order: