Is it at all possible to monkey patch the value of a @property of an instance of a class that I do not control?
@property
class Foo: @property def bar
You can also patch property setters. Using @fralau 's answer:
from module import ClassToPatch def foo(self, new_foo): self._foo = new_foo ClassToPatch.foo = ClassToPatch.foo.setter(foo)
reference