def set_gc_state(state):
 if (gc.isenabled() == state):
  return
 if state:
  gc.enable()
 else:
  gc.disable()

def set_gc_state ( state ) : if ( gc . isenabled ( ) == state ) : return if state : gc . enable ( ) else : gc . disable ( )
set status of garbage collector .