[pypy-svn] r34331 - in pypy/dist/pypy: interpreter module/_stackless

arigo at codespeak.net arigo at codespeak.net
Tue Nov 7 15:50:21 CET 2006


Author: arigo
Date: Tue Nov  7 15:50:19 2006
New Revision: 34331

Modified:
   pypy/dist/pypy/interpreter/argument.py
   pypy/dist/pypy/module/_stackless/coroutine.py
Log:
Typos.


Modified: pypy/dist/pypy/interpreter/argument.py
==============================================================================
--- pypy/dist/pypy/interpreter/argument.py	(original)
+++ pypy/dist/pypy/interpreter/argument.py	Tue Nov  7 15:50:19 2006
@@ -44,7 +44,7 @@
         args_w, kwds_w = self.unpack()
         w_args = space.newtuple(args_w)
         w_kwds = space.newdict()
-        for key, w_value in kwds_w:
+        for key, w_value in kwds_w.items():
             space.setitem(w_kwds, space.wrap(key), w_value)
         return w_args, w_kwds
 

Modified: pypy/dist/pypy/module/_stackless/coroutine.py
==============================================================================
--- pypy/dist/pypy/module/_stackless/coroutine.py	(original)
+++ pypy/dist/pypy/module/_stackless/coroutine.py	Tue Nov  7 15:50:19 2006
@@ -172,7 +172,7 @@
             w_flags, w_state, w_thunk, w_parent = space.unpackiterable(w_args,
                                                              expected_length=4)
         except UnpackValueError, e:
-            raise OperationError(space.w_ValueError, e.msg)
+            raise OperationError(space.w_ValueError, space.wrap(e.msg))
         self.flags = space.int_w(w_flags)
         self.parent = space.interp_w(AppCoroutine, w_parent, can_be_None=True)
         ec = self.space.getexecutioncontext()
@@ -185,7 +185,7 @@
                 w_func, w_args, w_kwds = space.unpackiterable(w_thunk,
                                                              expected_length=3)
             except UnpackValueError, e:
-                raise OperationError(space.w_ValueError, e.msg)
+                raise OperationError(space.w_ValueError, space.wrap(e.msg))
             args = Arguments.frompacked(space, w_args, w_kwds)
             self.bind(_AppThunk(space, self.costate, w_func, args))
 



More information about the Pypy-commit mailing list