How is memory managed in Python?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Memory in Python exists in the following way:
The objects and data structures initialized in a Python program are present in a private heap, and programmers do not have permission to access the private heap space.
You can allocate heap space for Python objects using the Python memory manager. The core API of the memory manager gives the programmer access to some of the tools for coding purposes.
Python has a built-in garbage collector that recycles unused memory and frees up memory for heap space.