Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
29 lines (17 loc) · 645 Bytes

File metadata and controls

29 lines (17 loc) · 645 Bytes
Copy raw file
Download raw file
Outline
Edit and raw actions

:mod:`gc` -- control the garbage collector

.. module:: gc
   :synopsis: control the garbage collector

Functions

.. function:: enable()

   Enable automatic garbage collection.

.. function:: disable()

   Disable automatic garbage collection.  Heap memory can still be allocated,
   and garbage collection can still be initiated manually using :meth:`gc.collect`.

.. function:: collect()

   Run a garbage collection.

.. function:: mem_alloc()

   Return the number of bytes of heap RAM that are allocated.

.. function:: mem_free()

   Return the number of bytes of available heap RAM.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.