How is memory managed in Python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How is memory managed in Python?

30th Aug 2019, 2:56 PM
Bhagirath Dudharejiya
Bhagirath Dudharejiya - avatar
3 Answers
+ 1
Automatically!
30th Aug 2019, 3:51 PM
Thoq!
Thoq! - avatar
+ 1
Bhagirath Dudharejiya I think the same as its been managed in other programming languages. Like you have a stack section, a heap section, another section for static/global variable. Again, I think imo
31st Aug 2019, 3:20 AM
Ashish
Ashish - avatar
0
Bhagirath Dudharejiya but keep this in mind, Python memory management is been divided into two parts. Stack memory: methods and variables are declared in this section. Heap memory: objects and instances are created in this section.
31st Aug 2019, 3:30 AM
Ashish
Ashish - avatar