-
-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathmarshal.po
More file actions
144 lines (128 loc) · 7.89 KB
/
marshal.po
File metadata and controls
144 lines (128 loc) · 7.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2023, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Freesand Leo <yuqinju@163.com>, 2023
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-06-09 16:38+0000\n"
"PO-Revision-Date: 2019-09-01 03:42+0000\n"
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2023\n"
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:6
msgid "Data marshalling support"
msgstr "数据 marshal 操作支持"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:8
msgid ""
"These routines allow C code to work with serialized objects using the same "
"data format as the :mod:`marshal` module. There are functions to write data"
" into the serialization format, and additional functions that can be used to"
" read the data back. Files used to store marshalled data must be opened in "
"binary mode."
msgstr ""
"这些例程允许 C 代码处理与 :mod:`marshal` 模块所用相同数据格式的序列化对象。 "
"其中有些函数可用来将数据写入这种序列化格式,另一些函数则可用来读取并恢复数据。 用于存储 marshal 数据的文件必须以二进制模式打开。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:14
msgid "Numeric values are stored with the least significant byte first."
msgstr "数字值在存储时会将最低位字节放在开头。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:16
msgid ""
"The module supports two versions of the data format: version 0 is the "
"historical version, version 1 shares interned strings in the file, and upon "
"unmarshalling. Version 2 uses a binary format for floating point numbers. "
"``Py_MARSHAL_VERSION`` indicates the current file format (currently 2)."
msgstr ""
"此模块支持两种数据格式版本:第 0 版为历史版本,第 1 版本会在文件和反向 marshal 操作时共享固化的字符串。 第 2 "
"版本会对浮点数使用二进制格式。 ``Py_MARSHAL_VERSION`` 指明了当前文件的格式(当前取值为 2)。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:24
msgid ""
"Marshal a :c:type:`long` integer, *value*, to *file*. This will only write "
"the least-significant 32 bits of *value*; regardless of the size of the "
"native :c:type:`long` type. *version* indicates the file format."
msgstr ""
"将一个 :c:type:`long` 整数 *value* 以 marshal 格式写入 *file*。 这将只写入 *value* 最低的 32 "
"位;无论本机 :c:type:`long` 类型的长度如何。 *version* 指明文件格式的版本。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:28
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:36
msgid ""
"This function can fail, in which case it sets the error indicator. Use "
":c:func:`PyErr_Occurred` to check for that."
msgstr "此函数可能失败,在这种情况下它半设置错误提示符。 请使用 :c:func:`PyErr_Occurred` 进行检测。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:33
msgid ""
"Marshal a Python object, *value*, to *file*. *version* indicates the file "
"format."
msgstr "将一个 Python 对象 *value* 以 marshal 格式写入 *file*。 *version* 指明文件格式的版本。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:41
msgid ""
"Return a bytes object containing the marshalled representation of *value*. "
"*version* indicates the file format."
msgstr "返回一个包含 *value* 的 marshal 表示形式的字节串对象。 *version* 指明文件格式的版本。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:45
msgid "The following functions allow marshalled values to be read back in."
msgstr "以下函数允许读取并恢复存储为 marshal 格式的值。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:50
msgid ""
"Return a C :c:type:`long` from the data stream in a :c:type:`FILE\\*` opened"
" for reading. Only a 32-bit value can be read in using this function, "
"regardless of the native size of :c:type:`long`."
msgstr ""
"从打开用于读取的 :c:type:`FILE\\*` 的对应数据流返回一个 C :c:type:`long`。 使用此函数只能读取 32 "
"位的值,无论本机 :c:type:`long` 类型的长度如何。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:54
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:64
msgid ""
"On error, sets the appropriate exception (:exc:`EOFError`) and returns "
"``-1``."
msgstr "发生错误时,将设置适当的异常 (:exc:`EOFError`) 并返回 ``-1``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:60
msgid ""
"Return a C :c:type:`short` from the data stream in a :c:type:`FILE\\*` "
"opened for reading. Only a 16-bit value can be read in using this function,"
" regardless of the native size of :c:type:`short`."
msgstr ""
"从打开用于读取的 :c:type:`FILE\\*` 的对应数据流返回一个 C :c:type:`short`。 使用此函数只能读取 16 "
"位的值,无论本机 :c:type:`short` 的长度如何。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:70
msgid ""
"Return a Python object from the data stream in a :c:type:`FILE\\*` opened "
"for reading."
msgstr "从打开用于读取的 :c:type:`FILE\\*` 的对应数据流返回一个 Python 对象。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:73
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:87
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:96
msgid ""
"On error, sets the appropriate exception (:exc:`EOFError`, :exc:`ValueError`"
" or :exc:`TypeError`) and returns ``NULL``."
msgstr ""
"发生错误时,将设置适当的异常 (:exc:`EOFError`, :exc:`ValueError` 或 :exc:`TypeError`) 并返回 "
"``NULL``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:79
msgid ""
"Return a Python object from the data stream in a :c:type:`FILE\\*` opened "
"for reading. Unlike :c:func:`PyMarshal_ReadObjectFromFile`, this function "
"assumes that no further objects will be read from the file, allowing it to "
"aggressively load file data into memory so that the de-serialization can "
"operate from data in memory rather than reading a byte at a time from the "
"file. Only use these variant if you are certain that you won't be reading "
"anything else from the file."
msgstr ""
"从打开用于读取的 :c:type:`FILE\\*` 的对应数据流返回一个 Python 对象。 不同于 "
":c:func:`PyMarshal_ReadObjectFromFile`,此函数假定将不再从该文件读取更多的对象,允许其将文件数据积极地载入内存,以便反序列化过程可以在内存中的数据上操作而不是每次从文件读取一个字节。"
" 只有当你确定不会再从文件读取任何内容时方可使用此方式。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/marshal.rst:93
msgid ""
"Return a Python object from the data stream in a byte buffer containing "
"*len* bytes pointed to by *data*."
msgstr "从包含指向 *data* 的 *len* 个字节的字节缓冲区对应的数据流返回一个 Python 对象。"