[pypy-commit] pypy better-jit-hooks: make sure we can modify the list

fijal noreply at buildbot.pypy.org
Fri Jan 6 12:08:42 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: better-jit-hooks
Changeset: r51063:3826773898b1
Date: 2012-01-06 13:07 +0200
http://bitbucket.org/pypy/pypy/changeset/3826773898b1/

Log:	make sure we can modify the list

diff --git a/pypy/module/pypyjit/interp_resop.py b/pypy/module/pypyjit/interp_resop.py
--- a/pypy/module/pypyjit/interp_resop.py
+++ b/pypy/module/pypyjit/interp_resop.py
@@ -92,6 +92,7 @@
         op.setdescr(None)
     else:
         op = ResOperation(no, [None], None, descr=None)
+    op.setarg(0, AbstractValue()) # list is mutated
     return space.wrap(WrappedOp(op, NonConstant(13), NonConstant('repr')))
 
 class WrappedOp(Wrappable):


More information about the pypy-commit mailing list