Skip to content

Commit 39744f7

Browse files
sync with cpython 8de607ab
1 parent 8870286 commit 39744f7

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

c-api/marshal.po

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2022-10-06 00:23+0000\n"
10+
"POT-Creation-Date: 2023-06-03 00:33+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:06+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -50,56 +50,62 @@ msgid ""
5050
"native :c:expr:`long` type. *version* indicates the file format."
5151
msgstr ""
5252

53-
#: ../../c-api/marshal.rst:31
53+
#: ../../c-api/marshal.rst:28 ../../c-api/marshal.rst:36
54+
msgid ""
55+
"This function can fail, in which case it sets the error indicator. Use :c:"
56+
"func:`PyErr_Occurred` to check for that."
57+
msgstr ""
58+
59+
#: ../../c-api/marshal.rst:33
5460
msgid ""
5561
"Marshal a Python object, *value*, to *file*. *version* indicates the file "
5662
"format."
5763
msgstr ""
5864

59-
#: ../../c-api/marshal.rst:37
65+
#: ../../c-api/marshal.rst:41
6066
msgid ""
6167
"Return a bytes object containing the marshalled representation of *value*. "
6268
"*version* indicates the file format."
6369
msgstr ""
6470

65-
#: ../../c-api/marshal.rst:41
71+
#: ../../c-api/marshal.rst:45
6672
msgid "The following functions allow marshalled values to be read back in."
6773
msgstr ""
6874

69-
#: ../../c-api/marshal.rst:46
75+
#: ../../c-api/marshal.rst:50
7076
msgid ""
7177
"Return a C :c:expr:`long` from the data stream in a :c:expr:`FILE*` opened "
7278
"for reading. Only a 32-bit value can be read in using this function, "
7379
"regardless of the native size of :c:expr:`long`."
7480
msgstr ""
7581

76-
#: ../../c-api/marshal.rst:50 ../../c-api/marshal.rst:60
82+
#: ../../c-api/marshal.rst:54 ../../c-api/marshal.rst:64
7783
msgid ""
7884
"On error, sets the appropriate exception (:exc:`EOFError`) and returns "
7985
"``-1``."
8086
msgstr ""
8187

82-
#: ../../c-api/marshal.rst:56
88+
#: ../../c-api/marshal.rst:60
8389
msgid ""
8490
"Return a C :c:expr:`short` from the data stream in a :c:expr:`FILE*` opened "
8591
"for reading. Only a 16-bit value can be read in using this function, "
8692
"regardless of the native size of :c:expr:`short`."
8793
msgstr ""
8894

89-
#: ../../c-api/marshal.rst:66
95+
#: ../../c-api/marshal.rst:70
9096
msgid ""
9197
"Return a Python object from the data stream in a :c:expr:`FILE*` opened for "
9298
"reading."
9399
msgstr ""
94100

95-
#: ../../c-api/marshal.rst:69 ../../c-api/marshal.rst:83
96-
#: ../../c-api/marshal.rst:92
101+
#: ../../c-api/marshal.rst:73 ../../c-api/marshal.rst:87
102+
#: ../../c-api/marshal.rst:96
97103
msgid ""
98104
"On error, sets the appropriate exception (:exc:`EOFError`, :exc:`ValueError` "
99105
"or :exc:`TypeError`) and returns ``NULL``."
100106
msgstr ""
101107

102-
#: ../../c-api/marshal.rst:75
108+
#: ../../c-api/marshal.rst:79
103109
msgid ""
104110
"Return a Python object from the data stream in a :c:expr:`FILE*` opened for "
105111
"reading. Unlike :c:func:`PyMarshal_ReadObjectFromFile`, this function "
@@ -110,7 +116,7 @@ msgid ""
110116
"anything else from the file."
111117
msgstr ""
112118

113-
#: ../../c-api/marshal.rst:89
119+
#: ../../c-api/marshal.rst:93
114120
msgid ""
115121
"Return a Python object from the data stream in a byte buffer containing "
116122
"*len* bytes pointed to by *data*."

0 commit comments

Comments
 (0)