added gcDebugOn

This commit is contained in:
Darren Ranalli 2006-04-26 20:47:30 +00:00
parent ffb1b8e670
commit 6fc09c4fd7
1 changed files with 4 additions and 0 deletions

View File

@ -1919,6 +1919,10 @@ def printListEnum(l):
for i in range(len(l)):
print format % (i, l[i])
def gcDebugOn():
import gc
return (gc.get_debug() & gc.DEBUG_LEAK) == gc.DEBUG_LEAK
import __builtin__
__builtin__.Functor = Functor
__builtin__.Stack = Stack