Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-26131: deprecate the use of load_module()#22905

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

brettcannon
Copy link
Member

@brettcannonbrettcannon commentedOct 23, 2020
edited by bedevere-bot
Loading

Deprecating the use ofload_module() requires two parts:

  1. The actualload_module() implementations are deprecated.
  2. Use ofload_module() as a fallback forexec_module() trigger anImportWarning.

This makes sure that either direct use of the method or indirect use by the import system raisessome warning.

The method itself has been documented as deprecated since Python 3.6 and has been superceded by exec_module().

https://bugs.python.org/issue26131

Copy link
Member

@warsawwarsaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

One suggestion. There are also test failures.

@bedevere-bot
Copy link

When you're done making the requested changes, leave the comment:I have made the requested changes; please review again.

@brettcannon
Copy link
MemberAuthor

I have made the requested changes; please review again

@bedevere-bot
Copy link

Thanks for making the requested changes!

@warsaw: please review the changes made to this pull request.

@brettcannon
Copy link
MemberAuthor

This is going to require implementingexec_module() forzipimport.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrently

@encukouencukouAwaiting requested review from encukou

@warsawwarsawAwaiting requested review from warsaw

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@brettcannon@bedevere-bot@warsaw@the-knights-who-say-ni

[8]ページ先頭

©2009-2025 Movatter.jp