[New-bugs-announce] [issue21156] Consider moving importlib.abc.InspectLoader.source_to_code() to importlib.abc.Loader

Brett Cannon report at bugs.python.org
Fri Apr 4 19:59:20 CEST 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue21156>
_______________________________________


More information about the New-bugs-announce mailing list