method_modifiers

The method_modifiers module holds methods and decorators related to caching.

Functions

has_alternatives(name: Hashable, *more_names: str)

Gives a function the ability to have alternative versions which can be switched between at will.

Parameters:
  • name – The name of the alternative for the initially-decorated function.

  • more_names – Any other names desired to alias to this version of the function.