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,670 points
26 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
• 56,520 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 in Python by Waseem
• 4,480 points
9 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 in Python by Anjali
41 views
+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 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 221 views
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
• 56,520 points
52 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
• 56,520 points
87 views