On this page
  1. gc.is_finalized
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

gc.is_finalized

Prev: gc.get_threshold | Up: gc | Next: gc.is_tracked
Rel: gc.collect, gc.disable, gc.enable, gc.freeze
Ref: docs.python.org — gc.is_finalized
Tags: #public #python3 #stdlib #gc


Import

import gc
from gc import is_finalized

Signature & Overview

gc.is_finalized(obj, /)

Returns true if the object has been already finalized by the GC.

Usage

import gc

x = object()
assert gc.is_finalized(x) is False

Gotchas

REPL Inspect

from gc import is_finalized
help(is_finalized)

Linked from

Related notes