File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -854,6 +854,12 @@ msgid ""
854854" called. The return value is the result of the evaluated expression. Syntax"
855855" errors are reported as exceptions. Example:"
856856msgstr ""
857+ "*expression* 参数会作为一个 Python 表达式(从技术上说是一个条件列表)被解析并求值,使用 *globals* 和 *locals* "
858+ "字典作为全局和局部命名空间。 如果 *globals* 字典存在且不包含以 ``__builtins__`` 为键的值,则会在解析 "
859+ "*expression* 之前插入以此为键的对内置模块 :mod:`builtins` 的字典的引用。 这意味着 *expression* "
860+ "通常具有对标准 :mod:`builtins` 模块的完全访问权限且受限的环境会被传播。 如果省略 *locals* 字典则其默认值为 "
861+ "*globals* 字典。 如果两个字典同时省略,表达式会在 :func:`eval` 被调用的环境中执行。 返回值为表达式求值的结果。 "
862+ "语法错误将作为异常被报告。 例如:"
857863
858864#: ../../library/functions.rst:453
859865msgid ""
Original file line number Diff line number Diff line change @@ -1501,15 +1501,15 @@ msgstr "``s.remove(x)``"
15011501
15021502#: ../../library/stdtypes.rst:1093
15031503msgid "remove the first item from *s* where ``s[i]`` is equal to *x*"
1504- msgstr ""
1504+ msgstr "删除 *s* 中第一个 ``s[i]`` 等于 *x* 的项目。 "
15051505
15061506#: ../../library/stdtypes.rst:1096
15071507msgid "``s.reverse()``"
15081508msgstr "``s.reverse()``"
15091509
15101510#: ../../library/stdtypes.rst:1096
15111511msgid "reverses the items of *s* in place"
1512- msgstr ""
1512+ msgstr "就地将列表中的元素逆序。 "
15131513
15141514#: ../../library/stdtypes.rst:1104
15151515msgid "*t* must have the same length as the slice it is replacing."
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ msgstr "新的语法特性:"
5656msgid ""
5757":ref:`PEP 563 <whatsnew37-pep563>`, postponed evaluation of type "
5858"annotations."
59- msgstr ":ref:`PEP 563 <whatsnew37-pep563>`, 类型注解延迟评估. "
59+ msgstr ":ref:`PEP 563 <whatsnew37-pep563>`,类型标注解延迟求值。 "
6060
6161#: ../../whatsnew/3.7.rst:62
6262msgid "Backwards incompatible syntax changes:"
@@ -1084,6 +1084,8 @@ msgid ""
10841084"implementing streaming protocols with manual control over the receive "
10851085"buffer. (Contributed by Yury Selivanov in :issue:`32251`.)"
10861086msgstr ""
1087+ "新的 *暂定* :class:`~asyncio.BufferedProtocol` 类允许通过手动控制接收缓冲区来实现流式协议。 (由 Yury "
1088+ "Selivanov 在 :issue:`32251` 中贡献。)"
10871089
10881090#: ../../whatsnew/3.7.rst:674
10891091msgid ""
@@ -1093,6 +1095,9 @@ msgid ""
10931095"new event loop if none is running. (Contributed by Yury Selivanov in "
10941096":issue:`32269`.)"
10951097msgstr ""
1098+ "新的 :func:`asyncio.get_running_loop` 函数可返回当前运行的循环,如果没有循环在运行则引发 "
1099+ ":exc:`RuntimeError`。 这与 :func:`asyncio.get_event_loop` 不同,后者在没有循环在运行时将 *创建* "
1100+ "一个新的事件循环。 (由 Yury Selivanov 在 :issue:`32269` 中提供。)"
10961101
10971102#: ../../whatsnew/3.7.rst:680
10981103msgid ""
You can’t perform that action at this time.
0 commit comments