[pypy-svn] r41311 - pypy/dist/pypy/module/__builtin__

cfbolz at codespeak.net cfbolz at codespeak.net
Mon Mar 26 11:02:12 CEST 2007


Author: cfbolz
Date: Mon Mar 26 11:02:11 2007
New Revision: 41311

Modified:
   pypy/dist/pypy/module/__builtin__/functional.py
Log:
don't check explicitely for std object space, since this makes the 
translation crash with thunk, taint, etc :-(


Modified: pypy/dist/pypy/module/__builtin__/functional.py
==============================================================================
--- pypy/dist/pypy/module/__builtin__/functional.py	(original)
+++ pypy/dist/pypy/module/__builtin__/functional.py	Mon Mar 26 11:02:11 2007
@@ -85,9 +85,8 @@
     except (ValueError, OverflowError):
         pass
     else:
-        if (space.config.objspace.name == "std" and
-            (space.config.objspace.std.withmultilist or
-             space.config.objspace.std.withrangelist)):
+        if (space.config.objspace.std.withmultilist or
+            space.config.objspace.std.withrangelist):
             return range_withspecialized_implementation(space, start,
                                                         step, howmany)
         res_w = [None] * howmany



More information about the Pypy-commit mailing list