@@ -861,24 +861,29 @@ msgid ""
861
861
" :func:`importlib.util.cache_from_source` has an updated API to help with "
862
862
"this change."
863
863
msgstr ""
864
+ ":pep:`488` 取消了 ``.pyo`` 文件的概念。 这意味着 ``.pyc`` 文件将同时代表未优化和已优化的字节码。 "
865
+ "为了防止经常需要重新生成字节码文件,现在 ``.pyc`` 文件可以在其名称中设置可选的 ``opt-`` 标签来表示已优化字节码。 "
866
+ "该设置的附带效果是当以 :option:`-O` 和 :option:`-OO` 运行时将不会有字节码文件名冲突。 其结果是,使用 "
867
+ ":option:`-O` 和 :option:`-OO` 生成的字节码现在可以同时存在。 "
868
+ ":func:`importlib.util.cache_from_source` 专门针对此项变化更新了 API。"
864
869
865
870
#: ../../whatsnew/3.5.rst:676
866
871
msgid ":pep:`488` -- Elimination of PYO files"
867
- msgstr ""
872
+ msgstr ":pep:`488` -- 去除 PYO 文件 "
868
873
869
874
#: ../../whatsnew/3.5.rst:677
870
875
msgid "PEP written and implemented by Brett Cannon."
871
876
msgstr "PEP 由 Brett Cannon 撰写并实现。"
872
877
873
878
#: ../../whatsnew/3.5.rst:683
874
879
msgid "PEP 489: Multi-phase extension module initialization"
875
- msgstr ""
880
+ msgstr "PEP 489:多阶段扩展模块初始化 "
876
881
877
882
#: ../../whatsnew/3.5.rst:685
878
883
msgid ""
879
884
":pep:`489` updates extension module initialization to take advantage of the "
880
885
"two step module loading mechanism introduced by :pep:`451` in Python 3.4."
881
- msgstr ""
886
+ msgstr ":pep:`489` 更新了扩展模块初始化操作以便利用 Python 3.4 中通过 :pep:`451` 引入的两步模块加载机制的优势。 "
882
887
883
888
#: ../../whatsnew/3.5.rst:688
884
889
msgid ""
@@ -887,10 +892,12 @@ msgid ""
887
892
"modules, including the ability to use any valid identifier as a module name,"
888
893
" rather than being restricted to ASCII."
889
894
msgstr ""
895
+ "这一变化让选择使用新机制的扩展模块的导入语义与 Python 源代码和字节码模块的更为接近,包括可以使用任何有效标识符作为模块名称,而不是仅限于 "
896
+ "ASCII。"
890
897
891
898
#: ../../whatsnew/3.5.rst:696
892
899
msgid ":pep:`489` -- Multi-phase extension module initialization"
893
- msgstr ""
900
+ msgstr ":pep:`489` -- 多阶段扩展模块初始化 "
894
901
895
902
#: ../../whatsnew/3.5.rst:696
896
903
msgid ""
@@ -913,12 +920,16 @@ msgid ""
913
920
"error handlers now work with decoding and translating. (Contributed by "
914
921
"Serhiy Storchaka in :issue:`19676` and :issue:`22286`.)"
915
922
msgstr ""
923
+ "增加了 ``\" namereplace\" `` 错误处理句柄。 ``\" backslashreplace\" `` 错误处理句柄现在可用于解码和转译。 "
924
+ "(由 Serhiy Storchaka 在 :issue:`19676` 和 :issue:`22286` 中贡献。)"
916
925
917
926
#: ../../whatsnew/3.5.rst:709
918
927
msgid ""
919
928
"The :option:`-b` option now affects comparisons of :class:`bytes` with "
920
929
":class:`int`. (Contributed by Serhiy Storchaka in :issue:`23681`.)"
921
930
msgstr ""
931
+ "现在 :option:`-b` 选项会影响 :class:`bytes` 与 :class:`int` 的比较。 (由 Serhiy Storchaka"
932
+ " 在 :issue:`23681` 中贡献。)"
922
933
923
934
#: ../../whatsnew/3.5.rst:712
924
935
msgid ""
0 commit comments