[Python-Dev] Internal namespace proposal (original) (raw)

David Hopwood david.nospam.hopwood at blueyonder.co.uk
Fri Jul 28 03:55:58 CEST 2006


Richard Jones wrote:

On 27/07/2006, at 12:19 PM, David Hopwood wrote:

A restricted interpreter refuses access to any object attribute or method with a name beginning with '' (by throwing a new exception type 'InternalAccessException'), unless the access is from a method and its static target is that method's first argument variable.

Also, a restricted interpreter refuses access to any module-global variable or module-global function with a name beginning with '' (by throwing 'InternalAccessException'), unless the access is statically from the same module. Note that this is a rule that Zope enforces in its restricted environment.

Is that documented anywhere?

-- David Hopwood <david.nospam.hopwood at blueyonder.co.uk>



More information about the Python-Dev mailing list