I'm trying to understand if there is a way to avoid memory leaks in python in general. It happened a few times already that I had to use external pip packages that gave me memory leaks issues.
I would like to know a way to always monkey patch this.
More specifically, does wrapping the guilty code in a python process always help? if not, why? Is there some other way deal with this?
Thanks