HOWTO restrict multiply inherited class to on sub-class

Alex Martelli aleaxit at yahoo.com
Mon Apr 2 12:32:16 EDT 2001


"Luke Kenneth Casson Leighton" <lkcl at angua.rince.de> wrote in message
news:mailman.986225583.6181.python-list at python.org...
    [snip]
> there are scores of database functions available: i don't want
> one object to have access to any more database functions than
> it strictly needs.

Standard module Bastion helps address this need -- wrapping
an object so that only a subset of its attributes is available.

It's a security thing -- as the docs say, "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".


Alex






More information about the Python-list mailing list