File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
- {"translation" : " 92.07%" , "updated_at" : " 2024-03-14T03:22:30Z " }
1
+ {"translation" : " 92.07%" , "updated_at" : " 2024-03-14T06:24:51Z " }
Original file line number Diff line number Diff line change @@ -3874,6 +3874,12 @@ msgid ""
3874
3874
"do, else simply define :meth:`~importlib.machinery.Loader.create_module` to "
3875
3875
"return ``None``. (Contributed by Brett Cannon in :issue:`23014`.)"
3876
3876
msgstr ""
3877
+ "现在当一个导入加载器定义了 :meth:`importlib.machinery.Loader.exec_module` 时它也应该定义 "
3878
+ ":meth:`~importlib.machinery.Loader.create_module` (现在会引发 "
3879
+ ":exc:`DeprecationWarning`,在 Python 3.6 中将引发错误)。 如果加载器是继承自 "
3880
+ ":class:`importlib.abc.Loader` 那么就不需要做什么,在其他情况下只须定义 "
3881
+ ":meth:`~importlib.machinery.Loader.create_module` 来返回 ``None``。 (由 Brett "
3882
+ "Cannon 在 :issue:`23014` 中贡献。)"
3877
3883
3878
3884
#: ../../whatsnew/3.5.rst:2450
3879
3885
msgid ""
You can’t perform that action at this time.
0 commit comments