summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-07-10 17:07:17 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-07-10 17:07:17 (GMT)
commitfd54757336de0d3494e38228acfd0c1d1b9db1b8 (patch)
tree778bbfb193592a0e6d379aade673adfbef6348b0
parentcb27c35aa6c126b8104aaa96b26c3718c1b88880 (diff)
downloadcpython-fd54757336de0d3494e38228acfd0c1d1b9db1b8.zip
cpython-fd54757336de0d3494e38228acfd0c1d1b9db1b8.tar.gz
cpython-fd54757336de0d3494e38228acfd0c1d1b9db1b8.tar.bz2
add isalpha and isalnum methods
-rwxr-xr-xLib/UserString.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/UserString.py b/Lib/UserString.py
index 528065e..fb83d58 100755
--- a/Lib/UserString.py
+++ b/Lib/UserString.py
@@ -75,6 +75,8 @@ class UserString:
return self.data.find(sub, start, end)
def index(self, sub, start=0, end=sys.maxint):
return self.data.index(sub, start, end)
+ def isalpha(self): return self.data.isalpha()
+ def isalnum(self): return self.data.isalnum()
def isdecimal(self): return self.data.isdecimal()
def isdigit(self): return self.data.isdigit()
def islower(self): return self.data.islower()