import gcgc_was_enabled = gc.isenabled()if gc_was_enabled: gc.collect() gc.disable()# insert some time-critical code hereif gc_was_enabled: gc.enable()
Name (required)
email (will not be published) (required)
Website