New submission from Brett Cannon: importlib.abc.InspectLoader.source_to_code exists on InspectLoader because InspectLoader.get_code() uses it. But there is technically no reason to leave it there and not simply move it up to importlib.abc.Loader(). There is also no reason to not make it a staticmethod so that one can use it without worrying about abstractmethod overrides.
---------- assignee: brett.cannon components: Library (Lib) messages: 215544 nosy: brett.cannon priority: low severity: normal stage: test needed status: open title: Consider moving importlib.abc.InspectLoader.source_to_code() to importlib.abc.Loader type: behavior versions: Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21156> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com