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 -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/I5KZ7X2ZGTOLVX3HWLEVHNBJZC5MZNDL/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to