0 votes
in Python by
How Does Python Handle Memory Management?

1 Answer

0 votes
by

Python uses private heaps to maintain its memory. So the heap holds all the Python objects and the data structures. This area is only accessible to the Python interpreter; programmers can’t use it.

And it’s the Python memory manager that handles the Private heap. It does the required allocation of the memory for Python objects.

Python employs a built-in garbage collector, which salvages all the unused memory and offloads it to the heap space.

Related questions

0 votes
asked Jun 26, 2020 in Python by AdilsonLima
0 votes
asked Aug 30, 2020 in Python by sharadyadav1986
...