Add comments for unicode-only methods to give hints on AttributeError

tracebacks. (Suggested by Walter Dörwald)
This commit is contained in:
Hye-Shik Chang 2004-06-04 04:23:29 +00:00
parent 7bd860655f
commit 6838c557fa
1 changed files with 2 additions and 2 deletions

View File

@ -127,8 +127,8 @@ class UserString:
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()
def iswide(self): return self.data.iswide() # unicode only
def width(self): return self.data.width() # unicode only
class MutableString(UserString):
"""mutable string objects