<br><br><div><span class="gmail_quote">On 6/22/06, <b class="gmail_sendername">Gerhard Häring</b> &lt;<a href="mailto:gh@ghaering.de">gh@ghaering.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Brett Cannon wrote:<br>&gt; I have been working on a design doc for restricted execution of Python<br>&gt; [...]<br><br>All the rest of the API made sense to me, but I couldn't understand why<br><br>PyXXX_MemoryFree<br><br>
is needed. How could memory usage possibly fall below 0?</blockquote><div><br>It can't in real life, but people could call MemoryFree() too many times.&nbsp; Plus you need some way to lower the amount when memory is freed.&nbsp; No need to penalize a script that does a bunch of malloc/free calls compared to one that just does a bunch of malloc calls.
<br><br>-Brett<br></div><br></div>