@@ -1496,7 +1496,7 @@ msgstr "(由 Antoine Pitrou 在 :issue:`13748` 中贡献。)"
1496
1496
msgid ""
1497
1497
":meth:`dict.setdefault` now does only one lookup for the given key, making "
1498
1498
"it atomic when used with built-in types."
1499
- msgstr ""
1499
+ msgstr "现在 :meth:`dict.setdefault` 对给定的键将只执行一次查找,这使其在配合内置类型使用时是原子化的。 "
1500
1500
1501
1501
#: ../../whatsnew/3.3.rst:817
1502
1502
msgid "(Contributed by Filip Gruszczyński in :issue:`13521`.)"
@@ -1506,15 +1506,15 @@ msgstr "(由 Filip Gruszczyński 在 :issue:`13521` 中贡献。)"
1506
1506
msgid ""
1507
1507
"The error messages produced when a function call does not match the function"
1508
1508
" signature have been significantly improved."
1509
- msgstr ""
1509
+ msgstr "当函数调用与函数签名不匹配时产生的错误消息已获得大幅改进。 "
1510
1510
1511
1511
#: ../../whatsnew/3.3.rst:822
1512
1512
msgid "(Contributed by Benjamin Peterson.)"
1513
1513
msgstr "(由 Benjamin Peterson 贡献。)"
1514
1514
1515
1515
#: ../../whatsnew/3.3.rst:826
1516
1516
msgid "A Finer-Grained Import Lock"
1517
- msgstr ""
1517
+ msgstr "更细粒度的导入锁 "
1518
1518
1519
1519
#: ../../whatsnew/3.3.rst:828
1520
1520
msgid ""
@@ -1524,6 +1524,8 @@ msgid ""
1524
1524
" workarounds were sometimes employed, such as the "
1525
1525
":c:func:`PyImport_ImportModuleNoBlock` C API function."
1526
1526
msgstr ""
1527
+ "之前版本的 CPython 是始终依赖于全局导入锁的。 这会导致预料之外的困扰,比如当导入一个模块会触发代码在其他线程中执行作为附带影响导致的死锁。 "
1528
+ "有时需要应用一些笨拙的绕过方式,比如 :c:func:`PyImport_ImportModuleNoBlock` C API 函数。"
1527
1529
1528
1530
#: ../../whatsnew/3.3.rst:834
1529
1531
msgid ""
@@ -1532,6 +1534,8 @@ msgid ""
1532
1534
"the exposure of incompletely initialized modules), while eliminating the "
1533
1535
"aforementioned annoyances."
1534
1536
msgstr ""
1537
+ "在 Python 3.3 中,导入一个模块会使用单独的模块级锁。 "
1538
+ "这能正确地从多个线程序列化给定模块的导入操作(防止出现被不完整初始化的模块),同时消除之前提到的困扰。"
1535
1539
1536
1540
#: ../../whatsnew/3.3.rst:839
1537
1541
msgid "(Contributed by Antoine Pitrou in :issue:`9260`.)"