Package oort :: Package util :: Module code
[hide private]
[frames] | no frames]

Module code

source code

Classes [hide private]
  autosuper
Use this as a metaclass for types to set the magic attribute '__super' on them.
  SlotStruct
Base class for making "struct" types with members defined by their __slots__ value.
  BooleanDecorator
A documentation helper.
Functions [hide private]
 
init_slots(obj, *args, **kwargs) source code
 
property_with_setter(fset) source code
 
call(caller, *args) source code
 
attrs(**kwargs)
Generic decorator for setting attributes.
source code
Variables [hide private]
  contract = BooleanDecorator('template_method', 'default_method...
Function Details [hide private]

attrs(**kwargs)

source code 

Generic decorator for setting attributes. Usage:

>>> @attrs(value="A value", thing=None, other=True)
... def f(): pass
...
>>> assert f.value == "A value"
>>> assert f.thing is None
>>> assert f.other is True

Variables Details [hide private]

contract

Value:
BooleanDecorator('template_method', 'default_method', 'helper', 'state\
_change')