[pypy-svn] r14726 - pypy/dist/pypy/lib
nik at codespeak.net
nik at codespeak.net
Mon Jul 18 13:52:22 CEST 2005
Author: nik
Date: Mon Jul 18 13:52:19 2005
New Revision: 14726
Modified:
pypy/dist/pypy/lib/gc.py
Log:
The timeit module didn't work because it uses the gc module to disable gc
during the timinig, and the gc module is just a stub at the moment. Added
more stub functions to make the timeit module happy. Timers now work, no
idea how accurate they are, though.
Modified: pypy/dist/pypy/lib/gc.py
==============================================================================
--- pypy/dist/pypy/lib/gc.py (original)
+++ pypy/dist/pypy/lib/gc.py Mon Jul 18 13:52:19 2005
@@ -1,3 +1,12 @@
def collect():
- pass
+ pass
+
+def isenabled():
+ pass
+
+def enable():
+ pass
+
+def disable():
+ pass
More information about the Pypy-commit
mailing list