[Python-checkins] python/dist/src/Lib UserString.py,1.21,1.22
perky at users.sourceforge.net
perky at users.sourceforge.net
Fri Jun 4 00:23:32 EDT 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4983/Lib
Modified Files:
UserString.py
Log Message:
Add comments for unicode-only methods to give hints on AttributeError
tracebacks. (Suggested by Walter Dörwald)
Index: UserString.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/UserString.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** UserString.py 4 Jun 2004 03:18:11 -0000 1.21
--- UserString.py 4 Jun 2004 04:23:29 -0000 1.22
***************
*** 128,133 ****
# 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):
--- 128,133 ----
# the following methods are defined for unicode objects only:
! def iswide(self): return self.data.iswide() # unicode only
! def width(self): return self.data.width() # unicode only
class MutableString(UserString):
More information about the Python-checkins
mailing list