[pypy-svn] r58951 - pypy/branch/getslice/pypy/objspace/flow

arigo at codespeak.net arigo at codespeak.net
Sat Oct 11 11:25:14 CEST 2008


Author: arigo
Date: Sat Oct 11 11:25:14 2008
New Revision: 58951

Modified:
   pypy/branch/getslice/pypy/objspace/flow/objspace.py
Log:
Re-enable newslice in the flow objspace, for geninterp.


Modified: pypy/branch/getslice/pypy/objspace/flow/objspace.py
==============================================================================
--- pypy/branch/getslice/pypy/objspace/flow/objspace.py	(original)
+++ pypy/branch/getslice/pypy/objspace/flow/objspace.py	Sat Oct 11 11:25:14 2008
@@ -103,7 +103,7 @@
             return Constant(slice(self.unwrap(w_start),
                                   self.unwrap(w_stop),
                                   self.unwrap(w_step)))
-        raise Exception("not supported in RPython: extended slicing")
+        return self.do_operation('newslice', w_start, w_stop, w_step)
 
     def wrap(self, obj):
         if isinstance(obj, (Variable, Constant)):



More information about the Pypy-commit mailing list