Python Developer Question:
Tell me how Does Python Handle The Memory Management?
Answer:
☛ 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 heap for Python objects.
☛ Python employs a built-in garbage collector, which salvages all the unused memory and offloads it to the heap space.
☛ And it’s the Python memory manager that handles the Private heap. It does the required allocation of the heap for Python objects.
☛ Python employs a built-in garbage collector, which salvages all the unused memory and offloads it to the heap space.
Previous Question | Next Question |
Do you know how is memory managed in Python? | How to access a module written in Python from C? |