[New-bugs-announce] [issue17314] Stop using imp.find_module() in multiprocessing

Brett Cannon report at bugs.python.org
Wed Feb 27 20:56:34 CET 2013


New submission from Brett Cannon:

I'm trying to remove all uses of imp.find_module()/load_module() and multiprocessing seems to have a single use of both purely for (re)loading a module. The attached patch moves over to importlib.find_loader() and subsequent load_module() call to match the semantics of imp.find_module()/load_module(). If a guaranteed reload is not necessary then importlib.import_module() is a single-line change.

I ran the test suite, but there don't seem to be any explicit tests for this chunk of code (or am I missing something?).

----------
assignee: sbt
components: Library (Lib)
files: remove_imp.find_module.diff
keywords: patch
messages: 183177
nosy: brett.cannon, sbt
priority: normal
severity: normal
stage: patch review
status: open
title: Stop using imp.find_module() in multiprocessing
versions: Python 3.4
Added file: http://bugs.python.org/file29270/remove_imp.find_module.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17314>
_______________________________________


More information about the New-bugs-announce mailing list