[pypy-svn] r9966 - pypy/dist/pypy/objspace/std
tismer at codespeak.net
tismer at codespeak.net
Mon Mar 21 00:10:35 CET 2005
Author: tismer
Date: Mon Mar 21 00:10:35 2005
New Revision: 9966
Modified:
pypy/dist/pypy/objspace/std/stringobject.py
Log:
made contains__String_ANY more specific by turning it into
contains__String_String, because lifting would introduce
unicode, which is a *very* bad idea, especially for binary stuff...
Modified: pypy/dist/pypy/objspace/std/stringobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/stringobject.py (original)
+++ pypy/dist/pypy/objspace/std/stringobject.py Mon Mar 21 00:10:35 2005
@@ -973,7 +973,7 @@
L = [ table[ord(s[i])] for i in range(len(s)) if s[i] not in deletechars ]
return ''.join(L)
- def contains__String_ANY(self, sub):
+ def contains__String_String(self, sub):
return self.find(sub) >= 0
def repr__String(s):
@@ -1017,7 +1017,7 @@
str_translate__String_ANY_ANY = app.interphook('str_translate__String_ANY_ANY')
str_decode__String_ANY_ANY = app.interphook('str_decode__String_ANY_ANY')
mod__String_ANY = app.interphook('mod__String_ANY')
-contains__String_ANY = app.interphook('contains__String_ANY')
+contains__String_String = app.interphook('contains__String_String')
repr__String = app.interphook('repr__String')
# register all methods
More information about the Pypy-commit
mailing list