[issue25802] Finish deprecating load_module()

2016-01-08 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the review, Berker! I managed to figure out how to get the Examples links to work so that made it into the final version. -- status: open -> closed ___ Python tracker ___

[issue25802] Finish deprecating load_module()

2016-01-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset d733b6275e17 by Brett Cannon in branch 'default': Issue #25802: Add an examples section to importlib. https://hg.python.org/cpython/rev/d733b6275e17 -- ___ Python tracker

[issue25802] Finish deprecating load_module()

2016-01-05 Thread Berker Peksag
Berker Peksag added the comment: issue25802.diff looks good to me (just added a minor comment on Rietveld) -- nosy: +berker.peksag ___ Python tracker ___

[issue25802] Finish deprecating load_module()

2015-12-30 Thread Brett Cannon
Brett Cannon added the comment: Here is my attempt at adding an Examples section to the importlib docs. I cover importlib.util.find_spec(), importlib.import_module(), how to import a module by file path, and give an approximate import implementation for illustrative purposes. -- keywo

[issue25802] Finish deprecating load_module()

2015-12-28 Thread Brett Cannon
Brett Cannon added the comment: I'm leaving this issue open until I add an Examples section to the importlib docs. I will use the imp module as a guide of what to document. -- resolution: -> fixed stage: test needed -> resolved ___ Python tracker <

[issue25802] Finish deprecating load_module()

2015-12-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset ab0e60a36368 by Brett Cannon in branch 'default': Issue #25802: Deprecate load_module() on importlib.machinery.SourceFileLoader and SourcelessFileLoader. https://hg.python.org/cpython/rev/ab0e60a36368 -- nosy: +python-dev _

[issue25802] Finish deprecating load_module()

2015-12-04 Thread Brett Cannon
New submission from Brett Cannon: There are a couple concrete implementations of load_module() in importlib that have not been explicitly deprecated that probably should be. As part of this I will finally add an Examples section to the importlib docs to show how to do common tasks such as load