@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.15\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2026-10-01 19:07 +0000\n "
14+ "POT-Creation-Date : 2026-10-13 19:59 +0000\n "
1515"PO-Revision-Date : 2025-09-16 00:00+0000\n "
1616"Last-Translator : python-doc bot, 2025\n "
1717"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -63,7 +63,7 @@ msgstr ""
6363"*value* の下桁 32 ビットを書き込むだけです; ネイティブの :c:expr:`long` 型サ"
6464"イズには関知しません。 *version* はファイルフォーマットを示します。"
6565
66- #: ../../c-api/marshal.rst:29 ../../c-api/marshal.rst:37
66+ #: ../../c-api/marshal.rst:29 ../../c-api/marshal.rst:43
6767msgid ""
6868"This function can fail, in which case it sets the error indicator. Use :c:"
6969"func:`PyErr_Occurred` to check for that."
@@ -73,25 +73,43 @@ msgstr ""
7373
7474#: ../../c-api/marshal.rst:34
7575msgid ""
76+ "In Python 3.15 and earlier, this function does not set the error indicator "
77+ "if writing to *file* fails. The same caveat applies as for :c:func:"
78+ "`PyMarshal_WriteObjectToFile`."
79+ msgstr ""
80+
81+ #: ../../c-api/marshal.rst:40
82+ msgid ""
7683"Marshal a Python object, *value*, to *file*. *version* indicates the file "
7784"format."
7885msgstr ""
7986"Python オブジェクト *value* を *file* へ整列化します。*version* はファイル"
8087"フォーマットを示します。"
8188
82- #: ../../c-api/marshal.rst:42
89+ #: ../../c-api/marshal.rst:48
90+ msgid ""
91+ "In Python 3.15 and earlier, this function can write only part of the data to "
92+ "*file* and return without setting the error indicator, for example if "
93+ "*value* contains an object which cannot be marshalled or if writing to "
94+ "*file* fails (see :gh:`155907`). Code which has to support these versions "
95+ "cannot rely on :c:func:`PyErr_Occurred` alone to know that all the data was "
96+ "written. It can use :c:func:`PyMarshal_WriteObjectToString` and write the "
97+ "result itself, or validate what was written."
98+ msgstr ""
99+
100+ #: ../../c-api/marshal.rst:59
83101msgid ""
84102"Return a bytes object containing the marshalled representation of *value*. "
85103"*version* indicates the file format."
86104msgstr ""
87105"*value* の整列化表現が入ったバイト列オブジェクトを返します。*version* はファ"
88106"イルフォーマットを示します。"
89107
90- #: ../../c-api/marshal.rst:46
108+ #: ../../c-api/marshal.rst:63
91109msgid "The following functions allow marshalled values to be read back in."
92110msgstr "以下の関数を使うと、整列化された値を読み戻せます。"
93111
94- #: ../../c-api/marshal.rst:51
112+ #: ../../c-api/marshal.rst:68
95113msgid ""
96114"Return a C :c:expr:`long` from the data stream in a :c:expr:`FILE*` opened "
97115"for reading. Only a 32-bit value can be read in using this function, "
@@ -101,14 +119,14 @@ msgstr ""
101119"`long` 型データを読み出して返します。この関数は、ネイティブの :c:expr:`long` "
102120"のサイズに関係なく、 32 ビットの値だけを読み出せます。"
103121
104- #: ../../c-api/marshal.rst:55 ../../c-api/marshal.rst:65
122+ #: ../../c-api/marshal.rst:72 ../../c-api/marshal.rst:82
105123msgid ""
106124"On error, sets the appropriate exception (:exc:`EOFError`) and returns "
107125"``-1``."
108126msgstr ""
109127"エラーの場合、適切な例外 (:exc:`EOFError`) を設定し ``-1`` を返します。"
110128
111- #: ../../c-api/marshal.rst:61
129+ #: ../../c-api/marshal.rst:78
112130msgid ""
113131"Return a C :c:expr:`short` from the data stream in a :c:expr:`FILE*` opened "
114132"for reading. Only a 16-bit value can be read in using this function, "
@@ -118,24 +136,24 @@ msgstr ""
118136"`short` 型データを読み出して返します。この関数は、ネイティブの :c:expr:"
119137"`short` のサイズに関係なく、 16 ビットの値だけを読み出せます。"
120138
121- #: ../../c-api/marshal.rst:71
139+ #: ../../c-api/marshal.rst:88
122140msgid ""
123141"Return a Python object from the data stream in a :c:expr:`FILE*` opened for "
124142"reading."
125143msgstr ""
126144"読み出し用に開かれた :c:expr:`FILE*` 内のデータストリームから Python オブジェ"
127145"クトを返します。"
128146
129- #: ../../c-api/marshal.rst:74 ../../c-api/marshal.rst:88
130- #: ../../c-api/marshal.rst:97
147+ #: ../../c-api/marshal.rst:91 ../../c-api/marshal.rst:105
148+ #: ../../c-api/marshal.rst:114
131149msgid ""
132150"On error, sets the appropriate exception (:exc:`EOFError`, :exc:`ValueError` "
133151"or :exc:`TypeError`) and returns ``NULL``."
134152msgstr ""
135153"エラーの場合、適切な例外 (:exc:`EOFError`, :exc:`ValueError`, :exc:"
136154"`TypeError`) を設定し ``NULL`` を返します。"
137155
138- #: ../../c-api/marshal.rst:80
156+ #: ../../c-api/marshal.rst:97
139157msgid ""
140158"Return a Python object from the data stream in a :c:expr:`FILE*` opened for "
141159"reading. Unlike :c:func:`PyMarshal_ReadObjectFromFile`, this function "
@@ -146,7 +164,7 @@ msgid ""
146164"anything else from the file."
147165msgstr ""
148166
149- #: ../../c-api/marshal.rst:94
167+ #: ../../c-api/marshal.rst:111
150168msgid ""
151169"Return a Python object from the data stream in a byte buffer containing "
152170"*len* bytes pointed to by *data*."
0 commit comments