src/cpython/gc

Procs

proc enable() {....raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError], tags: [RootEffect].}
proc disable() {....raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError], tags: [RootEffect].}
proc freeze() {....raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError], tags: [RootEffect].}
proc unfreeze() {....raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError], tags: [RootEffect].}
proc collect() {....raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError], tags: [RootEffect].}
proc collect(generation: range[0 .. 2]) {. ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError], tags: [RootEffect].}
proc set_debug(flags: int) {....raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError], tags: [RootEffect].}
proc isenabled(): bool {....raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError], tags: [RootEffect].}
proc get_debug(): int {....raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError], tags: [RootEffect].}
proc is_tracked(objeto: auto): bool
proc is_finalized(objeto: auto): bool
proc get_freeze_count(): int {....raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError], tags: [RootEffect].}
proc set_threshold(threshold0, threshold1, threshold2: int) {. ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError], tags: [RootEffect].}
proc set_threshold(threshold0, threshold1: int) {. ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError], tags: [RootEffect].}
proc set_threshold(threshold0: int) {....raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError], tags: [RootEffect].}
proc get_count(): tuple[count0, count1, count2: int] {. ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError], tags: [RootEffect].}
proc get_threshold(): tuple[threshold0, threshold1, threshold2: int] {. ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError], tags: [RootEffect].}

Templates

template nogc(code)
Temporarily disable the Python Garbage Collector, run your code, and enable Garbage Collector again.