attach_wrapper

sknano.core.meta.attach_wrapper(obj, func=None)[source] [edit on github][source]

Utility decorator to attach a function as an attribute of obj.

Parameters:
  • obj (object) –
  • func ({None, callable}) –