File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -142,8 +142,8 @@ msgid ""
142142"Raises an :ref:`auditing event <auditing>` ``mmap.__new__`` with arguments "
143143"``fileno``, ``length``, ``access``, ``offset``."
144144msgstr ""
145- "`` mmap.__new__`` 使用 ``fileno``, ``length``,``access``,``offset`` 为参数,会引发 "
146- ":ref:`审计事件<auditing> `。"
145+ "引发一个 :ref:`审计事件 <auditing>` `` mmap.__new__`` 附带参数 ``fileno``, ``length``, "
146+ "``access``, ``offset` `。"
147147
148148#: ../../library/mmap.rst:75
149149msgid ""
@@ -152,6 +152,8 @@ msgid ""
152152"maximum length of the map will be the current size of the file when "
153153":class:`~mmap.mmap` is called."
154154msgstr ""
155+ "**(Unix 版本)** 映射文件描述符 *fileno* 指定的文件的 *length* 个字节,并返回一个 mmap 对象。如果 *length*"
156+ " 为 ``0`` ,则当调用 :class:`~mmap.mmap` 时,映射的最大长度将为文件的当前大小。"
155157
156158#: ../../library/mmap.rst:80
157159msgid ""
Original file line number Diff line number Diff line change @@ -942,6 +942,8 @@ msgid ""
942942"Added :meth:`asyncio.Task.get_coro` for getting the wrapped coroutine within"
943943" an :class:`asyncio.Task`. (Contributed by Alex Grönholm in :issue:`36999`.)"
944944msgstr ""
945+ "添加了 :meth:`asyncio.Task.get_coro` 用来获取 :class:`asyncio.Task` 中的已包装协程。 (由 "
946+ "Alex Grönholm 在 :issue:`36999` 中贡献。)"
945947
946948#: ../../whatsnew/3.8.rst:669
947949msgid ""
@@ -953,6 +955,11 @@ msgid ""
953955"retrieved using the :meth:`~asyncio.Task.get_name` method. (Contributed by "
954956"Alex Grönholm in :issue:`34270`.)"
955957msgstr ""
958+ "asyncio 任务现在可以被命名,或者是通过将 ``name`` 关键字参数传给 :func:`asyncio.create_task` 或 "
959+ ":meth:`~asyncio.loop.create_task` 事件循环方法,或者是通过在任务对象上调用 "
960+ ":meth:`~asyncio.Task.set_name` 方法。 任务名称在 :class:`asyncio.Task` 的 ``repr()`` "
961+ "输出中可见,并且还可以使用 :meth:`~asyncio.Task.get_name` 方法来获取。 (由 Alex Grönholm 在 "
962+ ":issue:`34270` 中贡献。)"
956963
957964#: ../../whatsnew/3.8.rst:677
958965msgid ""
You can’t perform that action at this time.
0 commit comments