Author: Armin Rigo <[email protected]>
Branch:
Changeset: r50266:2db948e2fa60
Date: 2011-12-07 16:38 +0100
http://bitbucket.org/pypy/pypy/changeset/2db948e2fa60/
Log: Fixes.
diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -1607,6 +1607,8 @@
'UnicodeError',
'ValueError',
'ZeroDivisionError',
+ 'UnicodeEncodeError',
+ 'UnicodeDecodeError',
]
## Irregular part of the interface:
diff --git a/pypy/objspace/fake/objspace.py b/pypy/objspace/fake/objspace.py
--- a/pypy/objspace/fake/objspace.py
+++ b/pypy/objspace/fake/objspace.py
@@ -146,6 +146,24 @@
check = func_with_new_name(check, 'check__' + interp2app.name)
self._seen_extras.append(check)
+ def call_obj_args(self, w_callable, w_obj, args):
+ is_root(w_callable)
+ is_root(w_obj)
+ is_arguments(args)
+ return w_some_obj()
+
+ def call(self, w_callable, w_args, w_kwds=None):
+ is_root(w_callable)
+ is_root(w_args)
+ is_root(w_kwds)
+ return w_some_obj()
+
+ def call_function(self, w_func, *args_w):
+ is_root(w_func)
+ for w_arg in list(args_w):
+ is_root(w_arg)
+ return w_some_obj()
+
def call_args(self, w_func, args):
is_root(w_func)
is_arguments(args)
@@ -206,7 +224,8 @@
def setup():
for name in (ObjSpace.ConstantTable +
ObjSpace.ExceptionTable +
- ['int', 'str', 'float', 'long', 'tuple', 'list', 'dict']):
+ ['int', 'str', 'float', 'long', 'tuple', 'list',
+ 'dict', 'unicode']):
setattr(FakeObjSpace, 'w_' + name, w_some_obj())
#
for (name, _, arity, _) in ObjSpace.MethodTable:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit