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 python’s slice notation?

0 Answers  


How would you work with numbers other than those in the decimal number system?

0 Answers  


Differentiate between range and xrange.

3 Answers  


Explain supported data types in python?

0 Answers  


Do you know what is numpy and how is it better than a list in python?

0 Answers  






How is python an interpreted language?

0 Answers  


What is self and init in python?

0 Answers  


What are the differences between python 2.x and python 3.x?

0 Answers  


Is google made with python?

0 Answers  


Write a regular expression that will accept an email id. Use the re module.

0 Answers  


What is the process to run sub-process with pipes that connect both input and output?

2 Answers  


How to reload a python module?

0 Answers  


Categories