by makmanalp · 13y ago · 0 comments
Wow. This'll lead to some interesting hacks, I think.
The PEP 445 (malloc API) also allows to plug hooks on memory allocators at runtime, instead of having to recompile Python for that.
"Debug tool for Python injecting memory allocation faults to simulate a low memory system to test how your application handles MemoryError exceptions."