First time here? Checkout the FAQ!
x
+1 vote
340 views
asked in Python Interview Questions by (1.4k points)  
  

1 Answer

0 votes
answered by (1.4k points)  
  • Memory management in python is performed by Python private heap space. All Python objects and data structures are located in a private heap. The programmer does not have access to this private heap. The python interpreter takes care of this instead. 
  • The allocation of heap space for Python objects is done by Python's memory manager. The core API gives access to some tools for the programmer to code. 
  • Python also has an inbuilt garbage collector, which recycles all the unused memory and so that it can be made available to the heap space. 

Related questions

+1 vote
1 answer 394 views
+1 vote
1 answer 283 views
+1 vote
1 answer 306 views
+1 vote
1 answer 271 views
...