diff options
| author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-07-10 17:07:17 +0000 |
|---|---|---|
| committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-07-10 17:07:17 +0000 |
| commit | 926bfa4c76c56d24344ad0c20e4eab745a7bcc32 (patch) | |
| tree | ebbd0c45b104970d7c48c78857bb305b8fe09407 /Lib/UserString.py | |
| parent | fe4ad0aa243540ee9799dd6f98bfa17f62f9aa71 (diff) | |
| download | cpython-926bfa4c76c56d24344ad0c20e4eab745a7bcc32.tar.gz | |
add isalpha and isalnum methods
Diffstat (limited to 'Lib/UserString.py')
| -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 528065e929..fb83d582df 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() |
