@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.14\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2026-03-17 14:51 +0000\n "
14+ "POT-Creation-Date : 2026-03-19 14:42 +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/ "
@@ -99,11 +99,18 @@ msgid ""
9999"instead of a :term:`strong reference`."
100100msgstr ""
101101
102- #: ../../c-api/list.rst:80
102+ #: ../../c-api/list.rst:79 ../../c-api/list.rst:91
103+ msgid ""
104+ "In the :term:`free-threaded build`, the returned :term:`borrowed reference` "
105+ "may become invalid if another thread modifies the list concurrently. Prefer :"
106+ "c:func:`PyList_GetItemRef`, which returns a :term:`strong reference`."
107+ msgstr ""
108+
109+ #: ../../c-api/list.rst:87
103110msgid "Similar to :c:func:`PyList_GetItem`, but without error checking."
104111msgstr ":c:func:`PyList_GetItem` に似ていますが、エラーチェックを行いません。"
105112
106- #: ../../c-api/list.rst:85
113+ #: ../../c-api/list.rst:99
107114msgid ""
108115"Set the item at index *index* in list to *item*. Return ``0`` on success. "
109116"If *index* is out of bounds, return ``-1`` and set an :exc:`IndexError` "
@@ -114,15 +121,15 @@ msgstr ""
114121"*index* が範囲を越えている場合、 ``-1`` を返して :exc:`IndexError` をセットし"
115122"ます。"
116123
117- #: ../../c-api/list.rst:91
124+ #: ../../c-api/list.rst:105
118125msgid ""
119126"This function \" steals\" a reference to *item* and discards a reference to "
120127"an item already in the list at the affected position."
121128msgstr ""
122129"この関数は *item* への参照を \" 盗み取り\" ます。また、変更先のインデクスにす"
123130"でに別の要素が入っている場合、その要素に対する参照を放棄します。"
124131
125- #: ../../c-api/list.rst:97
132+ #: ../../c-api/list.rst:111
126133msgid ""
127134"Macro form of :c:func:`PyList_SetItem` without error checking. This is "
128135"normally only used to fill in new lists where there is no previous content."
@@ -131,13 +138,13 @@ msgstr ""
131138"のマクロは、新たなリストのまだ要素を入れたことのない位置に要素を入れるときに"
132139"のみ使います。"
133140
134- #: ../../c-api/list.rst:100
141+ #: ../../c-api/list.rst:114
135142msgid ""
136143"Bounds checking is performed as an assertion if Python is built in :ref:"
137144"`debug mode <debug-build>` or :option:`with assertions <--with-assertions>`."
138145msgstr ""
139146
140- #: ../../c-api/list.rst:106
147+ #: ../../c-api/list.rst:120
141148msgid ""
142149"This macro \" steals\" a reference to *item*, and, unlike :c:func:"
143150"`PyList_SetItem`, does *not* discard a reference to any item that is being "
@@ -148,7 +155,15 @@ msgstr ""
148155"への参照を放棄 *しません* ; その結果、 *list* 中の位置 *i* で参照されていたオ"
149156"ブジェクトがメモリリークを引き起こします。"
150157
151- #: ../../c-api/list.rst:114
158+ #: ../../c-api/list.rst:127
159+ msgid ""
160+ "In the :term:`free-threaded build`, this macro has no internal "
161+ "synchronization. It is normally only used to fill in new lists where no "
162+ "other thread has a reference to the list. If the list may be shared, use :c:"
163+ "func:`PyList_SetItem` instead, which uses a :term:`per-object lock`."
164+ msgstr ""
165+
166+ #: ../../c-api/list.rst:136
152167msgid ""
153168"Insert the item *item* into list *list* in front of index *index*. Return "
154169"``0`` if successful; return ``-1`` and set an exception if unsuccessful. "
@@ -158,7 +173,7 @@ msgstr ""
158173"と ``0`` を返します。失敗すると ``-1`` を返し、例外をセットします。``list."
159174"insert(index, item)`` に類似した機能です。"
160175
161- #: ../../c-api/list.rst:121
176+ #: ../../c-api/list.rst:143
162177msgid ""
163178"Append the object *item* at the end of list *list*. Return ``0`` if "
164179"successful; return ``-1`` and set an exception if unsuccessful. Analogous "
@@ -168,7 +183,7 @@ msgstr ""
168183"す; 失敗すると ``-1`` を返し、例外をセットします。``list.append(item)`` に類"
169184"似した機能です。"
170185
171- #: ../../c-api/list.rst:128
186+ #: ../../c-api/list.rst:150
172187msgid ""
173188"Return a list of the objects in *list* containing the objects *between* "
174189"*low* and *high*. Return ``NULL`` and set an exception if unsuccessful. "
@@ -181,7 +196,7 @@ msgstr ""
181196"``list[low:high]`` に類似した機能です。\n"
182197"ただし、リストの末尾からのインデックスはサポートされていません。"
183198
184- #: ../../c-api/list.rst:135
199+ #: ../../c-api/list.rst:157
185200msgid ""
186201"Set the slice of *list* between *low* and *high* to the contents of "
187202"*itemlist*. Analogous to ``list[low:high] = itemlist``. The *itemlist* may "
@@ -196,49 +211,73 @@ msgstr ""
196211"成功した場合には ``0`` を、失敗した場合には ``-1`` を返します。\n"
197212"ただし、リストの末尾からのインデックスはサポートされていません。"
198213
199- #: ../../c-api/list.rst:144
214+ #: ../../c-api/list.rst:165
215+ msgid ""
216+ "In the :term:`free-threaded build`, when *itemlist* is a :class:`list`, both "
217+ "*list* and *itemlist* are locked for the duration of the operation. For "
218+ "other iterables (or ``NULL``), only *list* is locked."
219+ msgstr ""
220+
221+ #: ../../c-api/list.rst:172
200222msgid ""
201223"Extend *list* with the contents of *iterable*. This is the same as "
202224"``PyList_SetSlice(list, PY_SSIZE_T_MAX, PY_SSIZE_T_MAX, iterable)`` and "
203225"analogous to ``list.extend(iterable)`` or ``list += iterable``."
204226msgstr ""
205227
206- #: ../../c-api/list.rst:148
228+ #: ../../c-api/list.rst:176
207229msgid ""
208230"Raise an exception and return ``-1`` if *list* is not a :class:`list` "
209231"object. Return 0 on success."
210232msgstr ""
211233
212- #: ../../c-api/list.rst:156
234+ #: ../../c-api/list.rst:183
235+ msgid ""
236+ "In the :term:`free-threaded build`, when *iterable* is a :class:`list`, :"
237+ "class:`set`, :class:`dict`, or dict view, both *list* and *iterable* (or its "
238+ "underlying dict) are locked for the duration of the operation. For other "
239+ "iterables, only *list* is locked; *iterable* may be concurrently modified by "
240+ "another thread."
241+ msgstr ""
242+
243+ #: ../../c-api/list.rst:192
213244msgid ""
214245"Remove all items from *list*. This is the same as ``PyList_SetSlice(list, "
215246"0, PY_SSIZE_T_MAX, NULL)`` and analogous to ``list.clear()`` or ``del "
216247"list[:]``."
217248msgstr ""
218249
219- #: ../../c-api/list.rst:160
250+ #: ../../c-api/list.rst:196
220251msgid ""
221252"Raise an exception and return ``-1`` if *list* is not a :class:`list` "
222253"object. Return 0 on success."
223254msgstr ""
224255
225- #: ../../c-api/list.rst:168
256+ #: ../../c-api/list.rst:204
226257msgid ""
227258"Sort the items of *list* in place. Return ``0`` on success, ``-1`` on "
228259"failure. This is equivalent to ``list.sort()``."
229260msgstr ""
230261"*list* の内容をインプレースでソートします。成功した場合には ``0`` を、失敗し"
231262"た場合には ``-1`` を返します。``list.sort()`` と同じです。"
232263
233- #: ../../c-api/list.rst:174
264+ #: ../../c-api/list.rst:209
265+ msgid ""
266+ "In the :term:`free-threaded build`, element comparison via :meth:`~object."
267+ "__lt__` can execute arbitrary Python code, during which the :term:`per-"
268+ "object lock` may be temporarily released. For built-in types (:class:`str`, :"
269+ "class:`int`, :class:`float`), the lock is not released during comparison."
270+ msgstr ""
271+
272+ #: ../../c-api/list.rst:218
234273msgid ""
235274"Reverse the items of *list* in place. Return ``0`` on success, ``-1`` on "
236275"failure. This is the equivalent of ``list.reverse()``."
237276msgstr ""
238277"*list* の要素をインプレースで反転します。成功した場合には ``0`` を、失敗した"
239278"場合には ``-1`` を返します。``list.reverse()`` と同じです。"
240279
241- #: ../../c-api/list.rst:182
280+ #: ../../c-api/list.rst:226
242281msgid ""
243282"Return a new tuple object containing the contents of *list*; equivalent to "
244283"``tuple(list)``."
@@ -254,14 +293,14 @@ msgstr "object"
254293msgid "list"
255294msgstr "list"
256295
257- #: ../../c-api/list.rst:51 ../../c-api/list.rst:180
296+ #: ../../c-api/list.rst:51 ../../c-api/list.rst:224
258297msgid "built-in function"
259298msgstr "組み込み関数"
260299
261300#: ../../c-api/list.rst:51
262301msgid "len"
263302msgstr "len"
264303
265- #: ../../c-api/list.rst:180
304+ #: ../../c-api/list.rst:224
266305msgid "tuple"
267306msgstr "tuple"
0 commit comments