3 ms·
Perhaps any write can fail, and if one does then it triggers some code which frees some pre-reserved space which allows the interpreter to continue, and properl
by amelius 7y ago
Perhaps any write can fail, and if one does then it triggers some code which frees some pre-reserved space which allows the interpreter to continue, and properly unwind the stack.
- lalaithion 7y agoI believe that the python interpreter creates a MemoryError at startup, and throws that when you run out of memory.
- amelius 7y agoOk, but while unwinding a try/except block, the interpreter might need some extra memory, I suppose, depending on the code in the except clause.