Re: [Python-Dev] Capabilities / Restricted Execution

2006-07-16 Thread Scott Dial
Talin wrote: Scott Dial wrote: Phillip J. Eby wrote: A function's func_closure contains cell objects that hold the variables. These are readable if you can set the func_closure of some function of your own. If the overall plan includes the ability to restrict func_closure setting (or

Re: [Python-Dev] Capabilities / Restricted Execution

2006-07-16 Thread James Y Knight
On Jul 16, 2006, at 5:42 AM, Scott Dial wrote: Talin wrote: Scott Dial wrote: Phillip J. Eby wrote: A function's func_closure contains cell objects that hold the variables. These are readable if you can set the func_closure of some function of your own. If the overall plan includes

Re: [Python-Dev] Capabilities / Restricted Execution

2006-07-11 Thread Phillip J. Eby
At 03:36 AM 7/11/2006 -0700, Talin wrote: I thought a little bit more about Guido's comment that you can hide Python objects in a C wrapper class. However, as I was trying to sleep, I realized that you don't even need C to do it. The trick is to store the object reference as a closure variable.

Re: [Python-Dev] Capabilities / Restricted Execution

2006-07-11 Thread Scott Dial
Phillip J. Eby wrote: A function's func_closure contains cell objects that hold the variables. These are readable if you can set the func_closure of some function of your own. If the overall plan includes the ability to restrict func_closure setting (or reading) in a restricted

Re: [Python-Dev] Capabilities / Restricted Execution

2006-07-11 Thread Phillip J. Eby
At 01:30 PM 7/11/2006 -0400, Scott Dial wrote: Phillip J. Eby wrote: A function's func_closure contains cell objects that hold the variables. These are readable if you can set the func_closure of some function of your own. If the overall plan includes the ability to restrict

Re: [Python-Dev] Capabilities / Restricted Execution

2006-07-11 Thread Talin
Scott Dial wrote: Phillip J. Eby wrote: A function's func_closure contains cell objects that hold the variables. These are readable if you can set the func_closure of some function of your own. If the overall plan includes the ability to restrict func_closure setting (or reading) in a