Author: Armin Rigo <[email protected]>
Branch:
Changeset: r58640:d9a653fb6785
Date: 2012-10-31 15:15 +0100
http://bitbucket.org/pypy/pypy/changeset/d9a653fb6785/
Log: Attempt a fix. Hard to test.
diff --git a/pypy/annotation/model.py b/pypy/annotation/model.py
--- a/pypy/annotation/model.py
+++ b/pypy/annotation/model.py
@@ -700,7 +700,7 @@
return r
def not_const(s_obj):
- if s_obj.is_constant():
+ if s_obj.is_constant() and not isinstance(s_obj, SomePBC):
new_s_obj = SomeObject.__new__(s_obj.__class__)
dic = new_s_obj.__dict__ = s_obj.__dict__.copy()
if 'const' in dic:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit