[pypy-svn] rev 2006 - pypy/trunk/src/pypy/translator
hpk at codespeak.net
hpk at codespeak.net
Fri Oct 17 17:44:45 CEST 2003
Author: hpk
Date: Fri Oct 17 17:44:44 2003
New Revision: 2006
Modified:
pypy/trunk/src/pypy/translator/annset.py
Log:
smallish "can't hurt cleanup"
Modified: pypy/trunk/src/pypy/translator/annset.py
==============================================================================
--- pypy/trunk/src/pypy/translator/annset.py (original)
+++ pypy/trunk/src/pypy/translator/annset.py Fri Oct 17 17:44:44 2003
@@ -215,16 +215,15 @@
value found in 'ann2'. Returns False if the variables and constants
in the two annotations are not compatible. Assumes that the two
annotations have the same functor."""
- for a1, a2 in zip(ann1.args + [ann1.result],
- ann2.args + [ann2.result]):
+ pairs = zip(ann1.args + [ann1.result], ann2.args + [ann2.result])
+ for a1, a2 in pairs:
v1 = a1.get()
if not isinstance(v1, Cell):
v2 = a2.get()
if not isinstance(v2, Cell) and v2 != v1:
return False
# match! Set the Cells of ann1...
- for a1, a2 in zip(ann1.args + [ann1.result],
- ann2.args + [ann2.result]):
+ for a1, a2 in pairs:
v1 = a1.get()
if isinstance(v1, Cell):
v1.set(a2)
More information about the Pypy-commit
mailing list