@@ -1174,7 +1174,7 @@ msgstr "(由 Antoine Pitrou 在 :issue:`13748` 中贡献。)"
1174
1174
msgid ""
1175
1175
":meth:`dict.setdefault` now does only one lookup for the given key, making "
1176
1176
"it atomic when used with built-in types."
1177
- msgstr ""
1177
+ msgstr "现在 :meth:`dict.setdefault` 对给定的键将只执行一次查找,使其在配合内置类型使用时是原子化的。 "
1178
1178
1179
1179
#: ../../whatsnew/3.3.rst:814
1180
1180
msgid "(Contributed by Filip Gruszczyński in :issue:`13521`.)"
@@ -1184,15 +1184,15 @@ msgstr "(由 Filip Gruszczyński 在 :issue:`13521` 中贡献。)"
1184
1184
msgid ""
1185
1185
"The error messages produced when a function call does not match the function"
1186
1186
" signature have been significantly improved."
1187
- msgstr ""
1187
+ msgstr "当函数调用与函数签名不匹配时产生的错误消息已获得大幅改进。 "
1188
1188
1189
1189
#: ../../whatsnew/3.3.rst:819
1190
1190
msgid "(Contributed by Benjamin Peterson.)"
1191
1191
msgstr "(由 Benjamin Peterson 贡献。)"
1192
1192
1193
1193
#: ../../whatsnew/3.3.rst:823
1194
1194
msgid "A Finer-Grained Import Lock"
1195
- msgstr ""
1195
+ msgstr "更细粒度的导入锁 "
1196
1196
1197
1197
#: ../../whatsnew/3.3.rst:825
1198
1198
msgid ""
@@ -1202,6 +1202,8 @@ msgid ""
1202
1202
" workarounds were sometimes employed, such as the "
1203
1203
":c:func:`PyImport_ImportModuleNoBlock` C API function."
1204
1204
msgstr ""
1205
+ "之前版本的 CPython 是始终依赖于全局导入锁的。 这会导致预料之外的麻烦,比如当导入一个模块会触发代码在其他线程中执行作为附带影响导致的死锁。 "
1206
+ "有时需要应用一些笨拙的绕过方式,比如 :c:func:`PyImport_ImportModuleNoBlock` C API 函数。"
1205
1207
1206
1208
#: ../../whatsnew/3.3.rst:831
1207
1209
msgid ""
@@ -1210,6 +1212,8 @@ msgid ""
1210
1212
"the exposure of incompletely initialized modules), while eliminating the "
1211
1213
"aforementioned annoyances."
1212
1214
msgstr ""
1215
+ "在 Python 3.3 中,导入一个模块会使用单独的模块级锁。 "
1216
+ "这能正确地从多个线程序列化给定模块的导入操作(防止出现被不完整初始化的模块),同时消除之前提到的困扰。"
1213
1217
1214
1218
#: ../../whatsnew/3.3.rst:836
1215
1219
msgid "(Contributed by Antoine Pitrou in :issue:`9260`.)"