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

Explain garbage collection with python?

1 Answers  


What are the ideal naming conventions in python?

1 Answers  


What are the basic data types supported by python?

1 Answers  


Is cython as fast as c?

1 Answers  


how do I protect python code?

1 Answers  


Which is faster tuple or list?

1 Answers  


Write a logic to find the max sum of a list in another list?

1 Answers  


What's a python script?

1 Answers  


Are there arrays in python?

1 Answers  


Do lists start at 0 or 1?

1 Answers  


Why is used in python?

1 Answers  


What is random module is in python?

1 Answers  


Categories