Sunday, 11 December 2022

how to abort python process on memory allocation failure

Python may raise out-of-memory MemoryError exception but is there a way to just let the process terminate if malloc() return NULL?

I'm using some third-party python program do not want the program to handle MemoryError, just want the process to exit fast.



from how to abort python process on memory allocation failure

No comments:

Post a Comment