In Python, I\'d like to be able to create a function that behaves both as a class function and an instance method, but with the ability to change behaviors. The use case for
Sure, you just need to define your own descriptor type. There's an excellent tutorial on Python descriptors here.