Decorator#
- stabledefaults.decorator.stabledefaults(deep=False)#
Copies its mutable default arguments before using them.
Allows for stable use of mutable default arguments without unintuitive side effect.
- Parameters:
deep (bool, optional) – If true, makes a deepcopy of the default arguments. If false, makes a shallow copy. Defaults to False.