Author: Armin Rigo <[email protected]>
Branch: stmgc-c7
Changeset: r75503:e4078ea31734
Date: 2015-01-23 13:32 +0100
http://bitbucket.org/pypy/pypy/changeset/e4078ea31734/
Log: manual transplant of 98d7d3cb4144
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
@@ -300,7 +300,8 @@
def delete(self, obj, selector):
if selector == self.selector:
# ok, attribute is deleted
- self.ever_mutated = True
+ if not self.ever_mutated:
+ self.ever_mutated = True
return self.back.copy(obj)
new_obj = self.back.delete(obj, selector)
if new_obj is not None:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit