]> granicus.if.org Git - python/commit
Issue #17093,17566,17567: Methods from classes in importlib.abc now raise/return
authorBrett Cannon <brett@python.org>
Tue, 9 Apr 2013 20:59:39 +0000 (16:59 -0400)
committerBrett Cannon <brett@python.org>
Tue, 9 Apr 2013 20:59:39 +0000 (16:59 -0400)
commit100883f0cbccb936b928ddaa962c967296455af3
treec4baf0d78f3d16a33849efdcdbf2d624b3db1070
parent0f344b6e0526245249b80219e6001616307d2b35
Issue #17093,17566,17567: Methods from classes in importlib.abc now raise/return
the default exception/value when called instead of raising/returning
NotimplementedError/NotImplemented (except where appropriate).
This should allow for the ABCs to act as the bottom/end of the MRO with expected
default results.

As part of this work, also make importlib.abc.Loader.module_repr()
optional instead of an abstractmethod.
Doc/library/importlib.rst
Lib/importlib/_bootstrap.py
Lib/importlib/abc.py
Lib/test/test_importlib/source/test_abc_loader.py [deleted file]
Lib/test/test_importlib/test_abc.py
Misc/NEWS
Python/importlib.h