I have a long-running script which, if let to run long enough, will consume all the memory on my system.
Without going into details about the script, I have two questions:
- Are there any “Best Practices” to follow, which will help prevent leaks from occurring?
- What techniques are there to debug memory leaks in Python?