Skip to content

Commit 5e7d4bf

Browse files
projectgusdpgeorge
authored andcommitted
docs/library/gc: Add documentation for gc.isenabled().
Signed-off-by: Angus Gratton <angus@redyak.com.au>
1 parent c9bb925 commit 5e7d4bf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/library/gc.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ Functions
1919
Disable automatic garbage collection. Heap memory can still be allocated,
2020
and garbage collection can still be initiated manually using :meth:`gc.collect`.
2121

22+
.. function:: isenabled()
23+
24+
Returns True if automatic garbage collection is enabled, and False otherwise.
25+
2226
.. function:: collect()
2327

2428
Run a garbage collection.

0 commit comments

Comments
 (0)