On 6/22/06, Gerhard Häring <[EMAIL PROTECTED]> wrote:
Brett Cannon wrote:
> I have been working on a design doc for restricted execution of Python
> [...]

All the rest of the API made sense to me, but I couldn't understand why

PyXXX_MemoryFree

is needed. How could memory usage possibly fall below 0?

It can't in real life, but people could call MemoryFree() too many times.  Plus you need some way to lower the amount when memory is freed.  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.

-Brett

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to