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)
--
Greg
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/I5KZ7X2ZGTOLVX3HWLEVHNBJZC5MZNDL/
Code of Conduct: http://python.org/psf/codeofconduct/