[issue21156] Consider moving importlib.abc.InspectLoader.source_to_code() to importlib.abc.Loader
Eric Snow
report at bugs.python.org
Sun Apr 6 00:39:03 CEST 2014
Eric Snow added the comment:
Now that I've thought about it a little more, I'm more open to the idea. Source is definitely a universal concept in Python, as is code. So source_to_code() makes some sense on a most-base type like Loader. On the other hand, source isn't necessarily associated with all loaders.
I guess my initial gut reaction was that it seemed out of place API-wise. On InspectLoader it's presence is tied to get_code(), so it makes more sense.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21156>
_______________________________________
More information about the Python-bugs-list
mailing list