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 | fd54757336de0d3494e38228acfd0c1d1b9db1b8 (patch) | |
| tree | 778bbfb193592a0e6d379aade673adfbef6348b0 /Lib/UserString.py | |
| parent | cb27c35aa6c126b8104aaa96b26c3718c1b88880 (diff) | |
| download | cpython-git-fd54757336de0d3494e38228acfd0c1d1b9db1b8.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() | 
