[pypy-svn] r4805 - pypy/trunk/src/pypy/objspace/std
hpk at codespeak.net
hpk at codespeak.net
Tue Jun 1 15:50:12 CEST 2004
Author: hpk
Date: Tue Jun 1 15:50:12 2004
New Revision: 4805
Modified:
pypy/trunk/src/pypy/objspace/std/stringobject.py
Log:
beginnings of string-formatting
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 Tue Jun 1 15:50:12 2004
@@ -940,8 +940,15 @@
def mod__String_ANY(space, w_str, w_item):
return mod_str_tuple(space, w_str, space.newtuple([w_item]))
-def mod__String_Tuple(space, w_str, w_tuple):
- return mod_str_tuple(space, w_str, w_tuple)
+def mod__String_ANY(space, w_str, w_tuple):
+ return mod_str_tuple(space, w_str, w_tuple)
+
+#def app_mod__String_Tuple(format, values):
+# l = list(values)
+# l.reverse()
+# for formatchars = list(format)
+
+#mod__String_Tuple = gateway.app2interp(app_mod__String_Tuple)
# register all methods
register_all(vars(), W_StringType)
More information about the Pypy-commit
mailing list