On 3/07/20 6:33 pm, Serhiy Storchaka wrote:
it is possible to implement pickling support for property objects which will fail with your example (and I think third-party libraries do it). The difference is that full qualified names of getter and setter differ from the full qualified name of the property.
In that case, they will fail for a variety of other reasonable ways of creating properties too, e.g.
class Test: def get_foo(self): ... def set_foo(self, x): ... foo = property(get_foo, set_foo)