[pypy-svn] r24831 - pypy/dist/pypy/rpython
arigo at codespeak.net
arigo at codespeak.net
Wed Mar 22 23:17:55 CET 2006
Author: arigo
Date: Wed Mar 22 23:17:54 2006
New Revision: 24831
Modified:
pypy/dist/pypy/rpython/annlowlevel.py
Log:
Oups! The intention of not_const() is to avoid modifying the
original s_obj. Bug...
Modified: pypy/dist/pypy/rpython/annlowlevel.py
==============================================================================
--- pypy/dist/pypy/rpython/annlowlevel.py (original)
+++ pypy/dist/pypy/rpython/annlowlevel.py Wed Mar 22 23:17:54 2006
@@ -13,7 +13,7 @@
if s_obj.is_constant():
new_s_obj = annmodel.SomeObject()
new_s_obj.__class__ = s_obj.__class__
- new_s_obj.__dict__ = s_obj.__dict__
+ new_s_obj.__dict__ = s_obj.__dict__.copy()
del new_s_obj.const
s_obj = new_s_obj
return s_obj
More information about the Pypy-commit
mailing list