what is wrong with this property setter

Nagy László Zsolt gandalf at shopzeus.com
Thu Jun 9 04:31:37 EDT 2016

>>     @parent.setter
>>     def set_parent(self, new_parent):
>>         self._parent = new_parent
> This creates a settable property with the name "set_parent" and leaves the 
> read-only property "parent" alone. 
Yes, and more. That property will also have a get method! Is it intentional?

More information about the Python-list mailing list