on information hiding
- wait what
- because it just doesn't
- isn't that a memory leak?
- depends on what's your opinion of what a memory leak is
- the module is still running code, after all, even if it can't be controlled anymore
- Sooo, it's inaccessible code that still consumes ram.
- and in python, code isn't data
- But, wait, doesn't that mean you could write your entire program in modules, then include those, delete the modules and the scripts requiring them, and the program would still run with no scripts anywhere?
- yes
...
that is fucking spooky
i don't like that
- about as spooky as an open python interactive session
the code that defined those objects you were playing with no longer exists in any meaningful sense, but the objects are still there
with no way to know where they came from or what they are
and when you close the session, they'll just be... gone. forever.

Comments
Post a Comment