Whenever you exit Python, is all memory de-allocated?

0 votes

In java we have garbage collection and that took care of the alloted memory. What is the scenario with Python?

Jul 20, 2018 in Python by eatcodesleeprepeat
• 4,750 points
47 views

1 answer to this question.

0 votes

The answer here is no. The modules with circular references to other objects, or to objects referenced from global namespaces, aren’t always freed on exiting Python.

Plus, it is impossible to de-allocate portions of memory reserved by the C library.

answered Jul 20, 2018 by Priyaj
• 57,530 points

Related Questions In Python

+1 vote
3 answers
0 votes
1 answer
0 votes
0 answers

what is python reduce? how do you use it?

can you give an example? READ MORE

May 9, 2019 in Python by Waseem
• 4,530 points
22 views
0 votes
1 answer

Is it possible to create an array with all values as zero in python?

You can use  np.zeros(4,3) This will create a 4 ...READ MORE

answered May 24, 2019 in Python by Anjali
89 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 780 views
0 votes
0 answers
0 votes
1 answer

What is the flow control for “continue” in python?

This is the way "continue" statement works! You ...READ MORE

answered Jul 16, 2018 in Python by Priyaj
• 57,530 points
83 views
0 votes
1 answer

What is the Python equivalent for a case/switch statement?

if x == 'a':  # Do the ...READ MORE

answered Jul 26, 2018 in Python by Priyaj
• 57,530 points
154 views