Package lepl :: Package support :: Module context :: Class OnceOnlyNamespace
[hide private]
[frames] | no frames]

Class OnceOnlyNamespace

source code


Allow some values to be set only once.
Instance Methods [hide private]
 
__init__(self, base=None, once_only=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
once_only(self, name)
The given name can be set only once.
source code
 
set(self, name, value)
Set a value (if it has not already been set).
source code

Inherited from Namespace: __enter__, __exit__, current, get, pop, push, set_if_not_none

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, base=None, once_only=None)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

set(self, name, value)

source code 
Set a value (if it has not already been set).
Overrides: Namespace.set