Bastion Documentation Error?
Chris Liechti
cliechti at gmx.net
Wed Apr 3 14:06:04 EST 2002
jimd at vega.starshine.org (Jim Dennis) wrote in
news:a8dsj3$1n4j$1 at news.idiom.com:
> I'm a bit confused by the Bastion.Bastion() function.
> From the documentation I read:
>
> """
> Protect the object object, returning a bastion for the object. Any
> attempt to access one of the object's attributes will have to be
> approved by the filter function; if the access is denied an
> AttributeError exception will be raised.
> """
it says also:
"""
It must always be used with the rexec module, in order to allow
restricted-mode programs access to certain safe attributes of an object,
while denying access to other, unsafe attributes.
"""
so you must use it within rexec to make it work...
chris
> ... but playing with it I find that it raises an AttributeError on
> any attempt to access any class or instance variables.
--
Chris <cliechti at gmx.net>
More information about the Python-list
mailing list