Author: Alex Gaynor <alex.gay...@gmail.com>
Branch: detect-immutable-fields
Changeset: r68888:0f2c24d693c5
Date: 2014-01-23 15:47 -0600
http://bitbucket.org/pypy/pypy/changeset/0f2c24d693c5/

Log:    Clear this too

diff --git a/pypy/objspace/std/mapdict.py b/pypy/objspace/std/mapdict.py
--- a/pypy/objspace/std/mapdict.py
+++ b/pypy/objspace/std/mapdict.py
@@ -343,6 +343,8 @@
             self.attrs[i] = None
         for i in range(len(self.selectors)):
             self.selectors[i] = self._empty_selector
+        for i in range(len(self.indices)):
+            self.indices[i] = None
 
 # ____________________________________________________________
 # object implementation
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to