[capi-sig] is deinitialisation of embedded python equal tofullrestart?

Hrvoje Niksic hniksic at xemacs.org
Sun Jul 15 10:45:39 CEST 2007

Alexey Nezhdanov <snakeru at gmail.com> writes:

>> But, barring a bug in Python, that is exactly the situation you
>> would be in if you didn't reinitialize the interpreter in the first
>> place.
> ok, thanks. Still it may be ok for my purposes if I can keep python from 
> growing forever and just keep it beneath some limit.

But Python should behave like that anyway.  If your Python is "growing
forever", it means that there is a bug in Python, or in the code using
it incorrectly.

> Also, as I understand - memory that is marked as available for reuse
> will be swapped out if need for RAM will arise.

Theoretically.  In practice, if the memory is interspersed with the
chunks of memory that are in use, you get mixed results.

More information about the capi-sig mailing list