Re: [Python-Dev] Property inheritance in Python
Hi, I apologize if I violate (or am violating) some sacred mailing list rules. Torsten wrote back in 2010 (http://mail.python.org/pipermail/python-dev/2010-April/099672.html) about property inheritance behavior and super(). Specifically, only fget() behavior of properties work with super(), not fset() or fdel(). I apologize if there's some obvious reason this has not been addressed since then, but it seems to be expected behavior and most Pythonic, and confused me greatly when I ran into it recently. Torsten's original thread seems to have gone as if unseen, so I hesitantly bump this topic in the hopes of a resolution. Thanks, Allen
On 5/30/2012 1:58 AM, cyberdupo56@gmail.com wrote:
Hi,
I apologize if I violate (or am violating) some sacred mailing list rules.
Torsten wrote back in 2010 (http://mail.python.org/pipermail/python-dev/2010-April/099672.html) about property inheritance behavior and super(). Specifically, only fget() behavior of properties work with super(), not fset() or fdel().
I apologize if there's some obvious reason this has not been addressed since then, but it seems to be expected behavior and most Pythonic, and confused me greatly when I ran into it recently. Torsten's original thread seems to have gone as if unseen, so I hesitantly bump this topic in the hopes of a resolution.
This sort of idea should either be posted on python-ideas to get support or put on the tracker if the proposal is specific enough to write a patch (or both, with a patch making it more likely to happen). -- Terry Jan Reedy
Agreed this could go on the tracker, but I don't see the need for a Python-Ideas detour. It seems worth fixing (and I vaguely recall there was some follow-up last time?). --Guido van Rossum (sent from Android phone) On May 29, 2012 11:58 PM, "Terry Reedy" <tjreedy@udel.edu> wrote:
On 5/30/2012 1:58 AM, cyberdupo56@gmail.com wrote:
Hi,
I apologize if I violate (or am violating) some sacred mailing list rules.
Torsten wrote back in 2010 (http://mail.python.org/**pipermail/python-dev/2010-**April/099672.html<http://mail.python.org/pipermail/python-dev/2010-April/099672.html>) about property inheritance behavior and super(). Specifically, only fget() behavior of properties work with super(), not fset() or fdel().
I apologize if there's some obvious reason this has not been addressed since then, but it seems to be expected behavior and most Pythonic, and confused me greatly when I ran into it recently. Torsten's original thread seems to have gone as if unseen, so I hesitantly bump this topic in the hopes of a resolution.
This sort of idea should either be posted on python-ideas to get support or put on the tracker if the proposal is specific enough to write a patch (or both, with a patch making it more likely to happen).
-- Terry Jan Reedy
______________________________**_________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/**mailman/listinfo/python-dev<http://mail.python.org/mailman/listinfo/python-dev> Unsubscribe: http://mail.python.org/**mailman/options/python-dev/** guido%40python.org<http://mail.python.org/mailman/options/python-dev/guido%40python.org>
On May 31, 2012 1:31 AM, "Guido van Rossum" <guido@python.org> wrote:
Agreed this could go on the tracker, but I don't see the need for a
Python-Ideas detour. +1
It seems worth fixing (and I vaguely recall there was some follow-up last time?).
You may be thinking of the abstract property fixes that went in - I'm fairly sure this specific problem report fell through the cracks. Cheers, Nick. -- Sent from my phone, thus the relative brevity :)
participants (4)
-
cyberdupo56@gmail.com
-
Guido van Rossum
-
Nick Coghlan
-
Terry Reedy