0 votes
in Python by
How memory management is done in Python?

1 Answer

0 votes
by
In Python memory management is done using private heap space. The private heap is the storage area for all the data structures and objects. The interpreter has access to the private heap and the programmer cannot access this private heap.

The storage allocation for the data structures and objects in Python is done by the memory manager. The access for some tools is provided by core API for programmers to code.

The built-in garbage collector in Python is used to recycle all the unused memory so that it can be available for heap storage area.

Related questions

0 votes
asked Sep 22, 2021 in Python by sharadyadav1986
0 votes
asked Oct 12, 2021 in Python by rajeshsharma
...