rberga06.utils.func.dec#

Decorators.

Functions

decorator(*[, data])

Create a decorator.

withattrs(**attrs)

Set the given attributes on the decorated object.

Classes

Decorator(*args, **kwargs)

Define a decorator.

DecoratorBase(*args, **kwargs)

Define a decorator.

DecoratorSpec(*args, **kwargs)

A ordinary decorator.

DecoratorSpecWithData(*args, **kwargs)

A decorator with data associated to each decorated function.

DecoratorWithAttr(data, /)

Define a decorator that manages an attribute on a function.

count_calls([counter])

A decorator that counts the calls of a function.