1.

How is memory managed in Python?

Answer»

PYTHON's private heap space is in charge of memory management. The private heap contains all Python objects and data structures, but the programmer does not have access to it. The Python interpreter, on the other hand, takes care of this.

  • The memory manager in Python is in charge of ALLOCATING heap space for Python objects. The core API then GIVES the programmer access to a few programming tools.
  • It also contains an integrated garbage collector, which, as the NAME implies, recycles all unused memory and makes it available to the heap space.


Discussion

No Comment Found