Dying, fast and slow: out-of-memory crashes in Python
With some understanding of how memory works in your operating system and in Python, you can learn to identify all the different ways out-of-memory problems can manifest: a slow death, an obvious death, a corrupted death, and death by assassination.
source