[pypy-svn] r8799 - pypy/dist/pypy/objspace/std
arigo at codespeak.net
arigo at codespeak.net
Wed Feb 2 12:26:39 CET 2005
Author: arigo
Date: Wed Feb 2 12:26:38 2005
New Revision: 8799
Modified:
pypy/dist/pypy/objspace/std/stringobject.py
Log:
These app-level helpers are probably better off with more ANYs in their mm
signature.
Modified: pypy/dist/pypy/objspace/std/stringobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/stringobject.py (original)
+++ pypy/dist/pypy/objspace/std/stringobject.py Wed Feb 2 12:26:38 2005
@@ -748,7 +748,7 @@
return space.wrap("".join(buf))
-def app_str_translate__String_String_String(s, table, deletechars=''):
+def app_str_translate__String_ANY_ANY(s, table, deletechars=''):
"""charfilter - unicode handling is not implemented
Return a copy of the string where all characters occurring
@@ -762,7 +762,7 @@
L = [ table[ord(s[i])] for i in range(len(s)) if s[i] not in deletechars ]
return ''.join(L)
-str_translate__String_String_String = gateway.app2interp(app_str_translate__String_String_String)
+str_translate__String_ANY_ANY = gateway.app2interp(app_str_translate__String_ANY_ANY)
def str_w__String(space, w_str):
@@ -956,10 +956,10 @@
from pypy.objspace.std import iterobject
return iterobject.W_SeqIterObject(space, w_list)
-def app_contains__String_String(self, sub):
+def app_contains__String_ANY(self, sub):
return self.find(sub) >= 0
-contains__String_String = gateway.app2interp(app_contains__String_String)
+contains__String_ANY = gateway.app2interp(app_contains__String_ANY)
def app_repr__String(s):
quote = "'"
More information about the Pypy-commit
mailing list