[Python-Dev] _PyString_Resize
Neil Hodgson
nhodgson@bigpond.net.au
Sun, 28 Apr 2002 08:09:13 +1000
Tim Peters:
> The error is that if _PyString_Resize runs out of memory, it automatically
> decrefs the input string object s ...
Do you have a good way to test out-of-memory handling with either
reproducible or random failures? Some of the time I'm conscientious about
this and at other times not. Without being able to simulate memory
exhaustion the handling code never gets tested and so will be full of bugs.
Neil