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

perky at users.sourceforge.net perky at users.sourceforge.net
Thu Jun 3 23:18:14 EDT 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27384/Lib
Modified Files:
	UserString.py 
Log Message:
Add iswide() and width() method for UserString according as the
addition to unicode objects.
Index: UserString.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/UserString.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** UserString.py	15 Dec 2003 19:46:09 -0000	1.20
--- UserString.py	4 Jun 2004 03:18:11 -0000	1.21
***************
*** 127,130 ****
--- 127,134 ----
 def zfill(self, width): return self.__class__(self.data.zfill(width))
 
+ # the following methods are defined for unicode objects only:
+ def iswide(self): return self.data.iswide()
+ def width(self): return self.data.width()
+ 
 class MutableString(UserString):
 """mutable string objects


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /