[Python-ideas] Please consider adding an overrideable flag to abstractmethod

Christopher Barker pythonchb at gmail.com
Sun Feb 17 11:34:51 EST 2019


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 at gmail.com>
wrote:

> On Sun, Feb 17, 2019 at 2:32 AM Neil Girdhar <mistersheik at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20190217/6d8b6031/attachment.html>


More information about the Python-ideas mailing list