Whenever you exit Python, is all memory de-allocated?
Last updated 3 years, 1 month ago | 1110 views 75 5

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.