[pypy-svn] r17439 - pypy/dist/pypy/annotation
arigo at codespeak.net
arigo at codespeak.net
Sat Sep 10 12:30:22 CEST 2005
Author: arigo
Date: Sat Sep 10 12:30:21 2005
New Revision: 17439
Modified:
pypy/dist/pypy/annotation/unaryop.py
Log:
A potential bug similar to r17369: we should avoid to return a SomeXxx instance
when it designates a different object at run-time, even if it's of the same
type, to avoid confusion with extra attributes like '.const'.
Modified: pypy/dist/pypy/annotation/unaryop.py
==============================================================================
--- pypy/dist/pypy/annotation/unaryop.py (original)
+++ pypy/dist/pypy/annotation/unaryop.py Sat Sep 10 12:30:21 2005
@@ -294,7 +294,7 @@
return dct.dictdef.read_value()
def method_copy(dct):
- return dct
+ return SomeDict(dct.dictdef)
def method_update(dct1, dct2):
dct1.dictdef.union(dct2.dictdef)
More information about the Pypy-commit
mailing list