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

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Clarify :exc:`ImportError` message when we try to explicitly import a
frozen module but frozen modules are disabled.
4 changes: 3 additions & 1 deletion 4 Python/import.c
Original file line number Diff line number Diff line change
Expand Up @@ -1153,9 +1153,11 @@ set_frozen_error(frozen_status status, PyObject *modname)
switch (status) {
case FROZEN_BAD_NAME:
case FROZEN_NOT_FOUND:
case FROZEN_DISABLED:
err = "No such frozen object named %R";
break;
case FROZEN_DISABLED:
err = "Frozen modules are disabled and the frozen object named %R is not essential";
break;
case FROZEN_EXCLUDED:
err = "Excluded frozen object named %R";
break;
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.