[Python-Dev] PEP 318: Security use case

Jeremy Hylton jeremy at alum.mit.edu
Tue Mar 30 09:06:24 EST 2004


On Tue, 2004-03-30 at 06:17, Ka-Ping Yee wrote:
> Inner scopes are one of the best places to hide things in Python;
> they are very difficult to get at.  (I can't seem to find any
> special attributes that access the values inside them, and even
> if there is a way, it would be easy to imagine a restricted
> execution mode that wouldn't expose them.)

It's by design that there is no meta way to get at bindings for free
variables.  I don't think I said anything about at in the PEP, but I was
thinking of JAR's thesis (http://mumble.net/~jar/pubs/secureos/).

Jeremy





More information about the Python-Dev mailing list