[pypy-svn] rev 728 - pypy/trunk/src/pypy/objspace/std
tomek at codespeak.net
tomek at codespeak.net
Fri May 30 13:48:02 CEST 2003
Author: tomek
Date: Fri May 30 13:48:01 2003
New Revision: 728
Modified:
pypy/trunk/src/pypy/objspace/std/stringobject.py
Log:
ok
Modified: pypy/trunk/src/pypy/objspace/std/stringobject.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/std/stringobject.py (original)
+++ pypy/trunk/src/pypy/objspace/std/stringobject.py Fri May 30 13:48:01 2003
@@ -57,10 +57,13 @@
return W_StringObject(w_self.space, res.value())
else:
return W_StringObject(w_self.space, "")
-
- def isspace(self):
- space = self.space
- v = self._value
+
+ def char_isspace(ch):
+ return ord(ch) in (9, 10, 11, 12, 13, 32)
+
+ def isspace(w_self):
+ space = w_self.space
+ v = w_self._value
if v.len == 0:
return space.w_False
if v.len == 1:
@@ -73,7 +76,34 @@
return space.w_False
return space.w_True
+ def isdigit(w_self):
+ pass
+
+ def isupper(w_self):
+ pass
+
+ def isupper(w_self):
+ pass
+
+ def islower(w_self):
+ pass
+
+ def istitle(w_self):
+ pass
+
+ def isalnum(w_self):
+ pass
+
+ def isalpha(w_self):
+ pass
+
isspace = implmethod().register(isspace)
+ isdigit = implmethod().register(isdigit)
+ isupper = implmethod().register(isupper)
+ islower = implmethod().register(islower)
+ istitle = implmethod().register(istitle)
+ isalnum = implmethod().register(isalnum)
+ isalpha = implmethod().register(isalpha)
join = implmethod().register(join, W_ANY)
split = implmethod()
More information about the Pypy-commit
mailing list