[pypy-svn] rev 2533 - pypy/trunk/src/pypy/objspace
rxe at codespeak.net
rxe at codespeak.net
Thu Dec 18 19:33:16 CET 2003
Author: rxe
Date: Thu Dec 18 19:33:08 2003
New Revision: 2533
Modified:
pypy/trunk/src/pypy/objspace/trace.py
Log:
Added getevents() to get all the events from TraceResult.
Modified: pypy/trunk/src/pypy/objspace/trace.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/trace.py (original)
+++ pypy/trunk/src/pypy/objspace/trace.py Thu Dec 18 19:33:08 2003
@@ -165,6 +165,11 @@
if isinstance(event, CallBegin):
yield event.callinfo
+ def getevents(self):
+ for event in self.events:
+ yield event
+
+
Space = TraceObjSpace
# ______________________________________________________________________
More information about the Pypy-commit
mailing list