0% found this document useful (0 votes)
20 views

How Is Memory Managed in Python?

Memory in Python is managed by the Python Memory Manager which allocates a private heap space for storing all Python objects. This private heap is inaccessible to programmers but Python provides core API functions to work with it. Additionally, Python has an automatic garbage collection to recycle unused memory in the private heap space.

Uploaded by

ameetamarwadi
Copyright
© © All Rights Reserved
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

How Is Memory Managed in Python?

Memory in Python is managed by the Python Memory Manager which allocates a private heap space for storing all Python objects. This private heap is inaccessible to programmers but Python provides core API functions to work with it. Additionally, Python has an automatic garbage collection to recycle unused memory in the private heap space.

Uploaded by

ameetamarwadi
Copyright
© © All Rights Reserved
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 1

How is memory managed in Python?

Memory management in Python is handled by the Python Memory Manager. The memory


allocated by the manager is in form of a private heap space dedicated for Python. All Python
objects are stored in this heap and being private, it is inaccessible to the programmer.
Though, python does provide some core API functions to work upon the private heap space.
Additionally, Python has an in-built garbage collection to recycle the unused memory for the
private heap space.

You might also like