[pypy-svn] r73837 - pypy/trunk/pypy/interpreter
benjamin at codespeak.net
benjamin at codespeak.net
Sat Apr 17 20:55:42 CEST 2010
Author: benjamin
Date: Sat Apr 17 20:55:40 2010
New Revision: 73837
Modified:
pypy/trunk/pypy/interpreter/function.py
Log:
handle the same code being used twice
Modified: pypy/trunk/pypy/interpreter/function.py
==============================================================================
--- pypy/trunk/pypy/interpreter/function.py (original)
+++ pypy/trunk/pypy/interpreter/function.py Sat Apr 17 20:55:40 2010
@@ -238,7 +238,8 @@
# we have been seen by other means so rtyping should not choke
# on us
identifier = self.code.identifier
- assert identifier not in Function._all, ("duplicate function ids")
+ assert Function._all.get(identifier, self) is self, ("duplicate "
+ "function ids")
Function._all[identifier] = self
return False
More information about the Pypy-commit
mailing list