[pypy-commit] pypy default: oops

arigo pypy.commits at gmail.com
Wed Sep 19 12:38:46 EDT 2018


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r95147:99b6e798bdad
Date: 2018-09-19 18:36 +0200
http://bitbucket.org/pypy/pypy/changeset/99b6e798bdad/

Log:	oops

diff --git a/pypy/module/__builtin__/functional.py b/pypy/module/__builtin__/functional.py
--- a/pypy/module/__builtin__/functional.py
+++ b/pypy/module/__builtin__/functional.py
@@ -136,7 +136,7 @@
 max_jitdriver = jit.JitDriver(name='max',
         greens=['has_key', 'has_item', 'w_type'], reds='auto')
 
- at specialize.arg(2)
+ at specialize.arg(3)
 def min_max_sequence(space, w_sequence, w_key, implementation_of):
     if implementation_of == "max":
         compare = space.gt
@@ -172,7 +172,7 @@
         raise oefmt(space.w_ValueError, "arg is an empty sequence")
     return w_max_item
 
- at specialize.arg(2)
+ at specialize.arg(3)
 @jit.look_inside_iff(lambda space, args_w, w_key, implementation_of:
         jit.loop_unrolling_heuristic(args_w, len(args_w), 3))
 def min_max_multiple_args(space, args_w, w_key, implementation_of):


More information about the pypy-commit mailing list