11# SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2021 , Python Software Foundation
2+ # Copyright (C) 2001-2023 , Python Software Foundation
33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
66# Translators:
7- # Freesand Leo <yuqinju@163.com>,2020
7+ # Freesand Leo <yuqinju@163.com>,2023
88#
99#, fuzzy
1010msgid ""
1111msgstr ""
1212"Project-Id-Version :Python 3.7\n "
1313"Report-Msgid-Bugs-To :\n "
14- "POT-Creation-Date :2021-01-01 16:02 +0000\n "
14+ "POT-Creation-Date :2023-06-09 16:38 +0000\n "
1515"PO-Revision-Date :2019-09-01 03:42+0000\n "
16- "Last-Translator :Freesand Leo <yuqinju@163.com>,2020 \n "
17- "Language-Team :Chinese (China) (https://www .transifex.com/python-doc/teams/5390/zh_CN/)\n "
16+ "Last-Translator :Freesand Leo <yuqinju@163.com>,2023 \n "
17+ "Language-Team :Chinese (China) (https://app .transifex.com/python-doc/teams/5390/zh_CN/)\n "
1818"MIME-Version :1.0\n "
1919"Content-Type :text/plain; charset=UTF-8\n "
2020"Content-Transfer-Encoding :8bit\n "
2121"Language :zh_CN\n "
2222"Plural-Forms :nplurals=1; plural=0;\n "
2323
24- #: ../.. /c-api/marshal.rst:6
24+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc /c-api/marshal.rst:6
2525msgid "Data marshalling support"
2626msgstr "数据 marshal 操作支持"
2727
28- #: ../.. /c-api/marshal.rst:8
28+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc /c-api/marshal.rst:8
2929msgid ""
3030"These routines allow C code to work with serialized objects using the same "
3131"data format as the :mod:`marshal` module. There are functions to write data"
@@ -36,11 +36,11 @@ msgstr ""
3636"这些例程允许 C 代码处理与 :mod:`marshal` 模块所用相同数据格式的序列化对象。 "
3737"其中有些函数可用来将数据写入这种序列化格式,另一些函数则可用来读取并恢复数据。 用于存储 marshal 数据的文件必须以二进制模式打开。"
3838
39- #: ../.. /c-api/marshal.rst:14
39+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc /c-api/marshal.rst:14
4040msgid "Numeric values are stored with the least significant byte first."
4141msgstr "数字值在存储时会将最低位字节放在开头。"
4242
43- #: ../.. /c-api/marshal.rst:16
43+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc /c-api/marshal.rst:16
4444msgid ""
4545"The module supports two versions of the data format: version 0 is the "
4646"historical version, version 1 shares interned strings in the file, and upon "
@@ -50,7 +50,7 @@ msgstr ""
5050"此模块支持两种数据格式版本:第 0 版为历史版本,第 1 版本会在文件和反向 marshal 操作时共享固化的字符串。 第 2 "
5151"版本会对浮点数使用二进制格式。 ``Py_MARSHAL_VERSION`` 指明了当前文件的格式(当前取值为 2)。"
5252
53- #: ../.. /c-api/marshal.rst:24
53+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc /c-api/marshal.rst:24
5454msgid ""
5555"Marshal a :c:type:`long` integer, *value*, to *file*. This will only write "
5656"the least-significant 32 bits of *value*; regardless of the size of the "
@@ -59,23 +59,30 @@ msgstr ""
5959"将一个 :c:type:`long` 整数 *value* 以 marshal 格式写入 *file*。 这将只写入 *value* 最低的 32 "
6060"位;无论本机 :c:type:`long` 类型的长度如何。 *version* 指明文件格式的版本。"
6161
62- #: ../../c-api/marshal.rst:31
62+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:28
63+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:36
64+ msgid ""
65+ "This function can fail, in which case it sets the error indicator. Use "
66+ ":c:func:`PyErr_Occurred` to check for that."
67+ msgstr "此函数可能失败,在这种情况下它半设置错误提示符。 请使用 :c:func:`PyErr_Occurred` 进行检测。"
68+
69+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:33
6370msgid ""
6471"Marshal a Python object, *value*, to *file*. *version* indicates the file "
6572"format."
6673msgstr "将一个 Python 对象 *value* 以 marshal 格式写入 *file*。 *version* 指明文件格式的版本。"
6774
68- #: ../../ c-api/marshal.rst:37
75+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/ c-api/marshal.rst:41
6976msgid ""
7077"Return a bytes object containing the marshalled representation of *value*. "
7178"*version* indicates the file format."
7279msgstr "返回一个包含 *value* 的 marshal 表示形式的字节串对象。 *version* 指明文件格式的版本。"
7380
74- #: ../../ c-api/marshal.rst:41
81+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/ c-api/marshal.rst:45
7582msgid "The following functions allow marshalled values to be read back in."
7683msgstr "以下函数允许读取并恢复存储为 marshal 格式的值。"
7784
78- #: ../../ c-api/marshal.rst:46
85+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/ c-api/marshal.rst:50
7986msgid ""
8087"Return a C :c:type:`long` from the data stream in a :c:type:`FILE\\ *` opened"
8188" for reading. Only a 32-bit value can be read in using this function, "
@@ -84,13 +91,14 @@ msgstr ""
8491"从打开用于读取的 :c:type:`FILE\\ *` 的对应数据流返回一个 C :c:type:`long`。 使用此函数只能读取 32 "
8592"位的值,无论本机 :c:type:`long` 类型的长度如何。"
8693
87- #: ../../c-api/marshal.rst:50 ../../c-api/marshal.rst:60
94+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:54
95+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:64
8896msgid ""
8997"On error, sets the appropriate exception (:exc:`EOFError`) and returns "
9098"``-1``."
9199msgstr "发生错误时,将设置适当的异常 (:exc:`EOFError`) 并返回 ``-1``。"
92100
93- #: ../../ c-api/marshal.rst:56
101+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/ c-api/marshal.rst:60
94102msgid ""
95103"Return a C :c:type:`short` from the data stream in a :c:type:`FILE\\ *` "
96104"opened for reading. Only a 16-bit value can be read in using this function,"
@@ -99,22 +107,23 @@ msgstr ""
99107"从打开用于读取的 :c:type:`FILE\\ *` 的对应数据流返回一个 C :c:type:`short`。 使用此函数只能读取 16 "
100108"位的值,无论本机 :c:type:`short` 的长度如何。"
101109
102- #: ../../ c-api/marshal.rst:66
110+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/ c-api/marshal.rst:70
103111msgid ""
104112"Return a Python object from the data stream in a :c:type:`FILE\\ *` opened "
105113"for reading."
106114msgstr "从打开用于读取的 :c:type:`FILE\\ *` 的对应数据流返回一个 Python 对象。"
107115
108- #: ../../c-api/marshal.rst:69 ../../c-api/marshal.rst:83
109- #: ../../c-api/marshal.rst:92
116+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:73
117+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:87
118+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:96
110119msgid ""
111120"On error, sets the appropriate exception (:exc:`EOFError`, :exc:`ValueError`"
112121" or :exc:`TypeError`) and returns ``NULL``."
113122msgstr ""
114123"发生错误时,将设置适当的异常 (:exc:`EOFError`, :exc:`ValueError` 或 :exc:`TypeError`) 并返回 "
115124"``NULL``。"
116125
117- #: ../../ c-api/marshal.rst:75
126+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/ c-api/marshal.rst:79
118127msgid ""
119128"Return a Python object from the data stream in a :c:type:`FILE\\ *` opened "
120129"for reading. Unlike :c:func:`PyMarshal_ReadObjectFromFile`, this function "
@@ -128,7 +137,7 @@ msgstr ""
128137":c:func:`PyMarshal_ReadObjectFromFile`,此函数假定将不再从该文件读取更多的对象,允许其将文件数据积极地载入内存,以便反序列化过程可以在内存中的数据上操作而不是每次从文件读取一个字节。"
129138" 只有当你确定不会再从文件读取任何内容时方可使用此方式。"
130139
131- #: ../../ c-api/marshal.rst:89
140+ #: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/ c-api/marshal.rst:93
132141msgid ""
133142"Return a Python object from the data stream in a byte buffer containing "
134143"*len* bytes pointed to by *data*."