8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5650a1 commit 3eb8095Copy full SHA for 3eb8095
Lib/pickle.py
@@ -307,7 +307,9 @@ def whichmodule(obj, name):
307
# Protect the iteration by using a list copy of sys.modules against dynamic
308
# modules that trigger imports of other modules upon calls to getattr.
309
for module_name, module in list(sys.modules.items()):
310
- if module_name == '__main__' or module is None:
+ if (module_name == '__main__'
311
+ or module_name == '__mp_main__' # bpo-42406
312
+ or module is None):
313
continue
314
try:
315
if _getattribute(module, name)[0] is obj:
0 commit comments