New submission from Brett Cannon:

ABCs, even though they are almost always at the bottom of an inheritance 
hierarchy, should still do the right thing in the face of being in the middle 
of an MRO. That means that they should call super() as appropriate. So for 
methods that return a value, blindly call super(). For methods that do not 
necessarily return anything (e.g. invalidate_caches()), check if super() as the 
method and it is callable and if that is true then make the super() call.

This is not backwards-compatible as it is new semantics people will rely on, 
but neither is it a bug but a bad design decision on my part.

----------
components: Library (Lib)
keywords: easy
messages: 181044
nosy: brett.cannon
priority: low
severity: normal
stage: test needed
status: open
title: Make importlib.abc more inheritance-friendly
type: behavior
versions: Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17093>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to