I\'m using Python 3. I know about the @classmethod decorator. Also, I know that classmethods can be called from instances.
class HappyClass(object): @classme
As a side note, you can just use an instance attribute to hold a function:
>>> class Test: ... pass ... >>> t=Test() >>> t.monkey_patch=lambda s: print(s) >>> t.monkey_patch('Hello from the monkey patch') Hello from the monkey patch