diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-07-10 17:07:17 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-07-10 17:07:17 (GMT) |
commit | fd54757336de0d3494e38228acfd0c1d1b9db1b8 (patch) | |
tree | 778bbfb193592a0e6d379aade673adfbef6348b0 /Lib | |
parent | cb27c35aa6c126b8104aaa96b26c3718c1b88880 (diff) | |
download | cpython-fd54757336de0d3494e38228acfd0c1d1b9db1b8.zip cpython-fd54757336de0d3494e38228acfd0c1d1b9db1b8.tar.gz cpython-fd54757336de0d3494e38228acfd0c1d1b9db1b8.tar.bz2 |
add isalpha and isalnum methods
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/UserString.py | 2 |
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() |