[Python-checkins] r50559 - python/branches/bcannon-sandboxing/sandboxing_design_doc.txt
brett.cannon
python-checkins at python.org
Tue Jul 11 02:46:47 CEST 2006
Author: brett.cannon
Date: Tue Jul 11 02:46:47 2006
New Revision: 50559
Modified:
python/branches/bcannon-sandboxing/sandboxing_design_doc.txt
Log:
Change API for PySandbox_AllowedMemoryFree() to be a void call and just cap the lowest that memory usage can go to 0.
Also break todo list into design and implementation.
Modified: python/branches/bcannon-sandboxing/sandboxing_design_doc.txt
==============================================================================
--- python/branches/bcannon-sandboxing/sandboxing_design_doc.txt (original)
+++ python/branches/bcannon-sandboxing/sandboxing_design_doc.txt Tue Jul 11 02:46:47 2006
@@ -19,6 +19,9 @@
XXX TO DO
=============================
+Design
+--------------
+
* threading needs protection?
* python-dev convince me that hiding 'file' possible?
+ based on that, handle code objects
@@ -43,6 +46,12 @@
(e.g., ``xml.*``)
+Implementation
+--------------
+
+* note in SpecialBuilds.txt
+
+
Goal
=============================
@@ -518,11 +527,9 @@
and cause the calling function to return with the value of
'error_return', otherwise do nothing.
-* PySandbox_AllowedMemoryFree(integer, error_return)
- Macro to decrease the current running interpreter's allocated
- memory. If this puts the memory used to below 0, raise a
- SandboxError exception and return 'error_return', otherwise do
- nothing.
+* void PySandbox_AllowedMemoryFree(integer, error_return)
+ Decrease the current running interpreter's allocated
+ memory. If this puts the memory used to below 0, re-set it to 0.
Reading/Writing Files
More information about the Python-checkins
mailing list