hsm.core.bind

bind(instance, function)

Turn a function to a bound method on an instance

Parameters:
  • instance – some object

  • function – unbound method, i.e. a function that takes self argument that you now want to be bound to this class as a method