[issue18072] Add an implementation of importlib.abc.InspectLoader.get_code

2013-05-27 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Pyt

[issue18072] Add an implementation of importlib.abc.InspectLoader.get_code

2013-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 11510db74223 by Brett Cannon in branch 'default': Issue #18072: Implement get_code() for importlib.abc.InspectLoader and http://hg.python.org/cpython/rev/11510db74223 New changeset 2ea849fde22b by Brett Cannon in branch 'default': NEWS entry for iss

[issue18072] Add an implementation of importlib.abc.InspectLoader.get_code

2013-05-27 Thread Brett Cannon
Brett Cannon added the comment: So it turns out I will simply have to make the methods not abstract anymore. Thanks to multiple inheritance I can't implement the method in ExecutionLoader and keep it abstract in case someone subclasses InspectLoader and then creates another subclass of Executi

[issue18072] Add an implementation of importlib.abc.InspectLoader.get_code

2013-05-27 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue18072] Add an implementation of importlib.abc.InspectLoader.get_code

2013-05-27 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue18072] Add an implementation of importlib.abc.InspectLoader.get_code

2013-05-27 Thread Brett Cannon
New submission from Brett Cannon: I'm contemplating adding an implementation of importlib.abc.InspectLoader.get_code() which relies on get_source() (and then another version in ExecutionLoader which uses get_filename()). The reason I'm hesitant is get_source() is often an expensive operation t