A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/101598.html below:

HOWTO restrict multiply inherited class to on sub-class

HOWTO restrict multiply inherited class to on sub-class HOWTO restrict multiply inherited class to on sub-classAlex 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4