Why isn't all the memory de-allocated when Python exits?

Answers were Sorted based on User's Feedback



Why isn't all the memory de-allocated when Python exits?..

Answer / nashiinformaticssolutions

Certain Python modules are not always released or deallocated when Python terminates, particularly those that include circular references to other objects or objects referenced from global namespaces.
Python's effective cleanup mechanism would attempt to de-allocate/destroy all other objects upon termination.
De-allocating the RAM that the C library has reserved is difficult.

Is This Answer Correct ?    0 Yes 0 No

Why isn't all the memory de-allocated when Python exits?..

Answer / glibwaresoftsolutions

Certain Python modules are not always released or deallocated when Python terminates, particularly those that include circular references to other objects or objects referenced from global namespaces.
Python's effective cleanup mechanism would attempt to de-allocate/destroy all other objects upon termination.
De-allocating the RAM that the C library has reserved is difficult.

Is This Answer Correct ?    0 Yes 0 No

Why isn't all the memory de-allocated when Python exits?..

Answer / hr@tgksolutions.com

Certain Python modules are not always released or deallocated when Python terminates, particularly those that include circular references to other objects or objects referenced from global namespaces.
Python's effective cleanup mechanism would attempt to de-allocate/destroy all other objects upon termination.
De-allocating the RAM that the C library has reserved is difficult.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

1) How to validate ip address using regex 2)program to increment ip address in python Please find answers to above questions thanks in advance.

0 Answers  


Why is lambda used in python?

0 Answers  


What is the difference between a function and a method python?

0 Answers  


How do you sort a dataframe in python?

0 Answers  


How do you create a list which is a reverse version on another list in python?

0 Answers  






What is a means by “tuple in python”?

0 Answers  


How is the Implementation of Pythons dictionaries done?

0 Answers  


Is there a switch or case statement in python?

0 Answers  


Differentiate between .py and .pyc files?

0 Answers  


Is python object oriented?

0 Answers  


how do I protect python code?

0 Answers  


What are the types of literals in Python?

3 Answers  


Categories