diff Lib/UserString.py @ 32239:300db81e2e4a legacy-trunk

Add comments for unicode-only methods to give hints on AttributeError tracebacks. (Suggested by Walter Dörwald)
author Hye-Shik Chang <hyeshik@gmail.com>
date Fri, 04 Jun 2004 04:23:29 +0000
parents 9689da001197
children b56481a90519
line wrap: on
line diff
--- a/Lib/UserString.py	Fri Jun 04 03:19:17 2004 +0000
+++ b/Lib/UserString.py	Fri Jun 04 04:23:29 2004 +0000
@@ -127,8 +127,8 @@
     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