1.

How memory can be managed in Python?

Answer»

PYTHON memory MANAGER does the task of managing memory in Python. All the DATA structures and objects in Python are stored in private heap. It is the duty of Python memory manager only to manage this private heap. Developers can’t access this private heap space. This private heap space can be allocated to objects by memory manager.

Python memory manager contains OBJECT specific allocators to allocate the space to specific objects. Along with that it also has raw memory allocators to make SURE that space is allocated to the private heap.

In Python, developers create a Garbage collector so that they don’t need to manually do garbage collection. The main job of this collector is to clear out unused space and make it available for other new objects or private heap space.



Discussion

No Comment Found