We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b981df9 commit fe4f769Copy full SHA for fe4f769
1 file changed
Lib/UserString.py
@@ -55,6 +55,8 @@ def __radd__(self, other):
55
def __mul__(self, n):
56
return self.__class__(self.data*n)
57
__rmul__ = __mul__
58
+ def __mod__(self, args):
59
+ return self.__class__(self.data % args)
60
61
# the following methods are defined in alphabetical order:
62
def capitalize(self): return self.__class__(self.data.capitalize())
0 commit comments