[pypy-svn] r79474 - pypy/branch/rlist-jit/pypy/objspace/std

arigo at codespeak.net arigo at codespeak.net
Wed Nov 24 16:43:58 CET 2010


Author: arigo
Date: Wed Nov 24 16:43:57 2010
New Revision: 79474

Modified:
   pypy/branch/rlist-jit/pypy/objspace/std/objspace.py
Log:
We can make sure that the list returned by fixedview() is never resized.


Modified: pypy/branch/rlist-jit/pypy/objspace/std/objspace.py
==============================================================================
--- pypy/branch/rlist-jit/pypy/objspace/std/objspace.py	(original)
+++ pypy/branch/rlist-jit/pypy/objspace/std/objspace.py	Wed Nov 24 16:43:57 2010
@@ -372,7 +372,7 @@
                     self, w_obj, expected_length)[:])
         if expected_length != -1 and len(t) != expected_length:
             raise self._wrap_expected_length(expected_length, len(t))
-        return t
+        return make_sure_not_resized(t)
 
     def fixedview_unroll(self, w_obj, expected_length=-1):
         return self.fixedview(w_obj, expected_length, unroll=True)



More information about the Pypy-commit mailing list