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

Technology CommunityCategory: PythonWhenever you exit Python, is all memory de-allocated?
VietMX Staff asked 3 years ago

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.