Bastion

Bastion — Restricting access to objects

Deprecated since version 2.6: The Bastion module has been removed in Python 3.

Changed in version 2.3: Disabled module.

Note

The documentation has been left in place to help in reading old code that uses the module.

According to the dictionary, a bastion is “a fortified area or position”, or “something that is considered a stronghold.” It’s a suitable name for this module, which provides a way to forbid access to certain attributes of an object. It must always be used with the 登录查看完整内容