File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- {"translation" : " 89.50 %" , "updated_at" : " 2023-08-08T23:56:23Z " }
1+ {"translation" : " 89.52 %" , "updated_at" : " 2023-08-09T05:57:34Z " }
Original file line number Diff line number Diff line change @@ -94,20 +94,22 @@ msgid ""
9494"\" posonlyargcount\" for positional-only arguments. The same caveats that "
9595"apply to ``PyUnstable_Code_New`` also apply to this function."
9696msgstr ""
97+ "与 :c:func:`PyUnstable_Code_New` 类似,但额外增加了一个针对仅限位置参数的 \" posonlyargcount\" 。 "
98+ "适用于 ``PyUnstable_Code_New`` 的适用事项同样适用于这个函数。"
9799
98100#: ../../c-api/code.rst:66
99101msgid "as ``PyCode_NewWithPosOnlyArgs``"
100- msgstr ""
102+ msgstr "作为 ``PyCode_NewWithPosOnlyArgs`` "
101103
102104#: ../../c-api/code.rst:68
103105msgid "Added ``qualname`` and ``exceptiontable`` parameters."
104- msgstr ""
106+ msgstr "增加了 ``qualname`` 和 ``exceptiontable`` 形参。 "
105107
106108#: ../../c-api/code.rst:73
107109msgid ""
108110"Renamed to ``PyUnstable_Code_NewWithPosOnlyArgs``. The old name is "
109111"deprecated, but will remain available until the signature changes again."
110- msgstr ""
112+ msgstr "重命名为 ``PyUnstable_Code_NewWithPosOnlyArgs``。 旧名称已被弃用,但在签名再次更改之前将保持可用。 "
111113
112114#: ../../c-api/code.rst:79
113115msgid ""
@@ -200,6 +202,8 @@ msgid ""
200202"of error (e.g. no more watcher IDs available), return ``-1`` and set an "
201203"exception."
202204msgstr ""
205+ "注册 *callback* 作为当前解释器的代码对象监视器。 返回一个可被传给 :c:func:`PyCode_ClearWatcher` 的 ID。 "
206+ "如果出现错误(例如没有足够的可用监视器 ID),则返回 ``-1`` 并设置一个异常。"
203207
204208#: ../../c-api/code.rst:151
205209msgid ""
Original file line number Diff line number Diff line change @@ -488,6 +488,8 @@ msgid ""
488488"path. In all other cases, such as the paths referencing different drives, "
489489":exc:`ValueError` is raised.::"
490490msgstr ""
491+ "当 *walk_up* 为 False(默认值)时,路径必须以 *other* 开始。 当参数为 True 时,可能会添加 ``..`` "
492+ "条目以形成相对路径。 在所有其他情况下,如引用不同驱动器的路径,则会引发 :exc:`ValueError`。::"
491493
492494#: ../../library/pathlib.rst:624
493495msgid ""
@@ -496,18 +498,20 @@ msgid ""
496498"*walk_up* option as it assumes that no symlinks are present in the path; "
497499"call :meth:`~Path.resolve` first if necessary to resolve symlinks."
498500msgstr ""
501+ "该函数是 :class:`PurePath` 的一部分并适用于字符串。 它不会检查或访问下层的文件结构体。 这可能会影响 *walk_up* "
502+ "选项因为它假定路径中不存在符号链接;如果需要处理符号链接请先调用 :meth:`~Path.resolve`。"
499503
500504#: ../../library/pathlib.rst:630
501505msgid ""
502506"The *walk_up* parameter was added (old behavior is the same as "
503507"``walk_up=False``)."
504- msgstr ""
508+ msgstr "增加了 *walk_up* 形参数(原本的行为与 ``walk_up=False`` 相同)。 "
505509
506510#: ../../library/pathlib.rst:635
507511msgid ""
508512"Passing additional positional arguments is deprecated; if supplied, they are"
509513" joined with *other*."
510- msgstr ""
514+ msgstr "传入附加位置参数的做法已被弃用;如果提供的话,它们将与 *other* 合并。 "
511515
512516#: ../../library/pathlib.rst:640
513517msgid ""
You can’t perform that action at this time.
0 commit comments