[prev in list] [next in list] [prev in thread] [next in thread]
List: python-ideas
Subject: Re: [Python-ideas] Please consider adding an overrideable flag to abstractmethod
From: Christopher Barker <pythonchb () gmail ! com>
Date: 2019-02-17 16:34:51
Message-ID: CALn7ch-5_41GP3muROVwfNp3wc7S52GWODSs_ppk8+jOsPk69Q () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
reposting -- things go to heck when posts are forwarded through google
groups :-(
-CHB
On Sun, Feb 17, 2019 at 8:32 AM Christopher Barker <pythonchb@gmail.com>
wrote:
> On Sun, Feb 17, 2019 at 2:32 AM Neil Girdhar <mistersheik@gmail.com>
> wrote:
>
>> Alternatively, the need for an overriding implementation to call super
>> could be marked by a different decorator.
>>
>
> Looking back on the old "Super considered [Harmful | Super]" discussions,
> it was clear that the fact that a class hierarchy uses super() is part if
> its API, and:
>
> and every occurrence of the method needs to use super()
>
> So +1 on having an explicit way to specify that super should be used in
> subclasses, rather than having to look in documentation or the source code
> to figure that out.
>
> -CHB
>
--
Christopher Barker, PhD
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy, Cython
[Attachment #5 (text/html)]
<div dir="ltr"><div dir="ltr">reposting -- things go to heck when posts are forwarded \
through google groups :-(<div><br></div><div>-CHB</div><div><br></div></div><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 17, 2019 at 8:32 AM \
Christopher Barker <<a \
href="mailto:pythonchb@gmail.com">pythonchb@gmail.com</a>> wrote:</div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div \
dir="ltr" class="gmail_attr">On Sun, Feb 17, 2019 at 2:32 AM Neil Girdhar <<a \
href="mailto:mistersheik@gmail.com" target="_blank">mistersheik@gmail.com</a>> \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div \
dir="ltr">Alternatively, the need for an overriding implementation to call super \
could be marked by a different decorator. </div></blockquote><br>Looking back on the \
old "Super considered [Harmful | Super]" discussions, it was clear that the \
fact that a class hierarchy uses super() is part if its API, and:<br><br>and every \
occurrence of the method needs to use super()<br><br>So +1 on having an explicit way \
to specify that super should be used in subclasses, rather than having to look in \
documentation or the source code to figure that \
out.<br><br>-CHB</div></div></blockquote><div> </div></div>-- <br><div dir="ltr" \
class="gmail_signature">Christopher Barker, PhD<br><br> Python Language \
Consulting<br> - Teaching<br> - Scientific Software Development<br> - Desktop \
GUI and Web Development<br> - wxPython, numpy, scipy, Cython<br></div></div>
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic