[pypy-svn] r77126 - pypy/trunk/pypy/module/__builtin__

hakanardo at codespeak.net hakanardo at codespeak.net
Thu Sep 16 19:25:46 CEST 2010


Author: hakanardo
Date: Thu Sep 16 19:25:44 2010
New Revision: 77126

Modified:
   pypy/trunk/pypy/module/__builtin__/functional.py
Log:
only unroll the 2 arguments case

Modified: pypy/trunk/pypy/module/__builtin__/functional.py
==============================================================================
--- pypy/trunk/pypy/module/__builtin__/functional.py	(original)
+++ pypy/trunk/pypy/module/__builtin__/functional.py	Thu Sep 16 19:25:44 2010
@@ -106,7 +106,7 @@
         compare = space.lt
 
     args_w = args.arguments_w
-    if len(args_w) > 1 and len(args_w) < 10 and not args.keywords:
+    if len(args_w) == 2 and not args.keywords:
         # Unrollable case
         w_max_item = None
         for w_item in args_w:



More information about the Pypy-commit mailing list