[pypy-svn] r31708 - pypy/dist/pypy/annotation

mwh at codespeak.net mwh at codespeak.net
Sun Aug 27 12:22:14 CEST 2006


Author: mwh
Date: Sun Aug 27 12:22:13 2006
New Revision: 31708

Modified:
   pypy/dist/pypy/annotation/bookkeeper.py
Log:
crash early on re-entering bookkeeper.enter()


Modified: pypy/dist/pypy/annotation/bookkeeper.py
==============================================================================
--- pypy/dist/pypy/annotation/bookkeeper.py	(original)
+++ pypy/dist/pypy/annotation/bookkeeper.py	Sun Aug 27 12:22:13 2006
@@ -187,6 +187,7 @@
     def enter(self, position_key):
         """Start of an operation.
         The operation is uniquely identified by the given key."""
+        assert not hasattr(self, 'position_key'), "don't call enter() nestedly"
         self.position_key = position_key
         TLS.bookkeeper = self
 



More information about the Pypy-commit mailing list