[Python-checkins] r46290 - python/trunk/Lib/UserString.py

georg.brandl python-checkins at python.org
Fri May 26 13:26:12 CEST 2006


Author: georg.brandl
Date: Fri May 26 13:26:11 2006
New Revision: 46290

Modified:
   python/trunk/Lib/UserString.py
Log:
Add "partition" to UserString.



Modified: python/trunk/Lib/UserString.py
==============================================================================
--- python/trunk/Lib/UserString.py	(original)
+++ python/trunk/Lib/UserString.py	Fri May 26 13:26:11 2006
@@ -102,6 +102,7 @@
         return self.__class__(self.data.ljust(width, *args))
     def lower(self): return self.__class__(self.data.lower())
     def lstrip(self, chars=None): return self.__class__(self.data.lstrip(chars))
+    def partition(self, sep): return self.data.partition(sep)
     def replace(self, old, new, maxsplit=-1):
         return self.__class__(self.data.replace(old, new, maxsplit))
     def rfind(self, sub, start=0, end=sys.maxint):


More information about the Python-checkins mailing list