in Python by
Q:
How memory is managed in Python?

2 Answers

0 votes
by

Python memory is managed by Python private heap space. All Python objects and data structures are located in a private heap. The programmer does not have an access to this private heap and interpreter takes care of this Python private heap.

The allocation of Python heap space for Python objects is done by Python memory manager. The core API gives access to some tools for the programmer to code.

Python also have an inbuilt garbage collector, which recycle all the unused memory and frees the memory and makes it available to the heap space.

0 votes
by

Memory management in python comprises of a private heap containing all objects and data stucture. The heap is managed by the interpreter and the programmer does not have acess to it at all. The Python memory manger does all the memory allocation. Moreover, there is an inbuilt garbage collector that recycles and frees memory for the heap space.

Click here to read more about Python
Click here to read more about Insurance

Related questions

0 votes
asked May 16, 2020 in Python by Robindeniel
0 votes
asked Jun 7, 2020 in Hive by SakshiSharma
0 votes
asked Jun 12, 2020 in Python by Robindeniel
+1 vote
asked Feb 14 in Python by SakshiSharma
0 votes
asked Jan 13 in Python by SakshiSharma
...