@@ -14,7 +14,7 @@ msgid ""
1414msgstr ""
1515"Project-Id-Version : Python 3.13\n "
1616"Report-Msgid-Bugs-To : \n "
17- "POT-Creation-Date : 2024-09-27 14:17+0000\n "
17+ "POT-Creation-Date : 2024-10-11 14:17+0000\n "
1818"PO-Revision-Date : 2021-06-28 00:48+0000\n "
1919"Last-Translator : Taichi Haradaguchi, 2024\n "
2020"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -59,180 +59,185 @@ msgid ""
5959msgstr ""
6060
6161#: ../../c-api/code.rst:35
62- msgid "Return the number of free variables in a code object."
62+ msgid ""
63+ "Return the number of :term:`free (closure) variables <closure variable>` in "
64+ "a code object."
6365msgstr ""
6466
65- #: ../../c-api/code.rst:39
66- msgid "Return the position of the first free variable in a code object."
67+ #: ../../c-api/code.rst:40
68+ msgid ""
69+ "Return the position of the first :term:`free (closure) variable <closure "
70+ "variable>` in a code object."
6771msgstr ""
6872
69- #: ../../c-api/code.rst:43
73+ #: ../../c-api/code.rst:45
7074msgid ""
7175"Renamed from ``PyCode_GetFirstFree`` as part of :ref:`unstable-c-api`. The "
7276"old name is deprecated, but will remain available until the signature "
7377"changes again."
7478msgstr ""
7579
76- #: ../../c-api/code.rst:49
80+ #: ../../c-api/code.rst:51
7781msgid ""
7882"Return a new code object. If you need a dummy code object to create a "
7983"frame, use :c:func:`PyCode_NewEmpty` instead."
8084msgstr ""
8185
82- #: ../../c-api/code.rst:52
86+ #: ../../c-api/code.rst:54
8387msgid ""
8488"Since the definition of the bytecode changes often, calling :c:func:"
8589"`PyUnstable_Code_New` directly can bind you to a precise Python version."
8690msgstr ""
8791
88- #: ../../c-api/code.rst:55
92+ #: ../../c-api/code.rst:57
8993msgid ""
9094"The many arguments of this function are inter-dependent in complex ways, "
9195"meaning that subtle changes to values are likely to result in incorrect "
9296"execution or VM crashes. Use this function only with extreme care."
9397msgstr ""
9498
95- #: ../../c-api/code.rst:59
99+ #: ../../c-api/code.rst:61
96100msgid "Added ``qualname`` and ``exceptiontable`` parameters."
97101msgstr ""
98102
99- #: ../../c-api/code.rst:66
103+ #: ../../c-api/code.rst:68
100104msgid ""
101105"Renamed from ``PyCode_New`` as part of :ref:`unstable-c-api`. The old name "
102106"is deprecated, but will remain available until the signature changes again."
103107msgstr ""
104108
105- #: ../../c-api/code.rst:72
109+ #: ../../c-api/code.rst:74
106110msgid ""
107111"Similar to :c:func:`PyUnstable_Code_New`, but with an extra "
108112"\" posonlyargcount\" for positional-only arguments. The same caveats that "
109113"apply to ``PyUnstable_Code_New`` also apply to this function."
110114msgstr ""
111115
112- #: ../../c-api/code.rst:77
116+ #: ../../c-api/code.rst:79
113117msgid "as ``PyCode_NewWithPosOnlyArgs``"
114118msgstr ""
115119
116- #: ../../c-api/code.rst:79
120+ #: ../../c-api/code.rst:81
117121msgid "Added ``qualname`` and ``exceptiontable`` parameters."
118122msgstr ""
119123
120- #: ../../c-api/code.rst:84
124+ #: ../../c-api/code.rst:86
121125msgid ""
122126"Renamed to ``PyUnstable_Code_NewWithPosOnlyArgs``. The old name is "
123127"deprecated, but will remain available until the signature changes again."
124128msgstr ""
125129
126- #: ../../c-api/code.rst:90
130+ #: ../../c-api/code.rst:92
127131msgid ""
128132"Return a new empty code object with the specified filename, function name, "
129133"and first line number. The resulting code object will raise an ``Exception`` "
130134"if executed."
131135msgstr ""
132136
133- #: ../../c-api/code.rst:96
137+ #: ../../c-api/code.rst:98
134138msgid ""
135139"Return the line number of the instruction that occurs on or before "
136140"``byte_offset`` and ends after it. If you just need the line number of a "
137141"frame, use :c:func:`PyFrame_GetLineNumber` instead."
138142msgstr ""
139143
140- #: ../../c-api/code.rst:99
144+ #: ../../c-api/code.rst:101
141145msgid ""
142146"For efficiently iterating over the line numbers in a code object, use :pep:"
143147"`the API described in PEP 626 <0626#out-of-process-debuggers-and-profilers>`."
144148msgstr ""
145149
146- #: ../../c-api/code.rst:104
150+ #: ../../c-api/code.rst:106
147151msgid ""
148152"Sets the passed ``int`` pointers to the source code line and column numbers "
149153"for the instruction at ``byte_offset``. Sets the value to ``0`` when "
150154"information is not available for any particular element."
151155msgstr ""
152156
153- #: ../../c-api/code.rst:108
157+ #: ../../c-api/code.rst:110
154158msgid "Returns ``1`` if the function succeeds and 0 otherwise."
155159msgstr ""
156160
157- #: ../../c-api/code.rst:114
161+ #: ../../c-api/code.rst:116
158162msgid ""
159163"Equivalent to the Python code ``getattr(co, 'co_code')``. Returns a strong "
160164"reference to a :c:type:`PyBytesObject` representing the bytecode in a code "
161165"object. On error, ``NULL`` is returned and an exception is raised."
162166msgstr ""
163167
164- #: ../../c-api/code.rst:119
168+ #: ../../c-api/code.rst:121
165169msgid ""
166170"This ``PyBytesObject`` may be created on-demand by the interpreter and does "
167171"not necessarily represent the bytecode actually executed by CPython. The "
168172"primary use case for this function is debuggers and profilers."
169173msgstr ""
170174
171- #: ../../c-api/code.rst:127
175+ #: ../../c-api/code.rst:129
172176msgid ""
173177"Equivalent to the Python code ``getattr(co, 'co_varnames')``. Returns a new "
174178"reference to a :c:type:`PyTupleObject` containing the names of the local "
175179"variables. On error, ``NULL`` is returned and an exception is raised."
176180msgstr ""
177181
178- #: ../../c-api/code.rst:136
182+ #: ../../c-api/code.rst:138
179183msgid ""
180184"Equivalent to the Python code ``getattr(co, 'co_cellvars')``. Returns a new "
181185"reference to a :c:type:`PyTupleObject` containing the names of the local "
182186"variables that are referenced by nested functions. On error, ``NULL`` is "
183187"returned and an exception is raised."
184188msgstr ""
185189
186- #: ../../c-api/code.rst:145
190+ #: ../../c-api/code.rst:147
187191msgid ""
188192"Equivalent to the Python code ``getattr(co, 'co_freevars')``. Returns a new "
189- "reference to a :c:type:`PyTupleObject` containing the names of the free "
190- "variables. On error, ``NULL`` is returned and an exception is raised."
193+ "reference to a :c:type:`PyTupleObject` containing the names of the :term:"
194+ "`free (closure) variables <closure variable>`. On error, ``NULL`` is "
195+ "returned and an exception is raised."
191196msgstr ""
192197
193- #: ../../c-api/code.rst:153
198+ #: ../../c-api/code.rst:156
194199msgid ""
195200"Register *callback* as a code object watcher for the current interpreter. "
196201"Return an ID which may be passed to :c:func:`PyCode_ClearWatcher`. In case "
197202"of error (e.g. no more watcher IDs available), return ``-1`` and set an "
198203"exception."
199204msgstr ""
200205
201- #: ../../c-api/code.rst:162
206+ #: ../../c-api/code.rst:165
202207msgid ""
203208"Clear watcher identified by *watcher_id* previously returned from :c:func:"
204209"`PyCode_AddWatcher` for the current interpreter. Return ``0`` on success, or "
205210"``-1`` and set an exception on error (e.g. if the given *watcher_id* was "
206211"never registered.)"
207212msgstr ""
208213
209- #: ../../c-api/code.rst:171
214+ #: ../../c-api/code.rst:174
210215msgid ""
211216"Enumeration of possible code object watcher events: - "
212217"``PY_CODE_EVENT_CREATE`` - ``PY_CODE_EVENT_DESTROY``"
213218msgstr ""
214219
215- #: ../../c-api/code.rst:179
220+ #: ../../c-api/code.rst:182
216221msgid "Type of a code object watcher callback function."
217222msgstr ""
218223
219- #: ../../c-api/code.rst:181
224+ #: ../../c-api/code.rst:184
220225msgid ""
221226"If *event* is ``PY_CODE_EVENT_CREATE``, then the callback is invoked after "
222227"`co` has been fully initialized. Otherwise, the callback is invoked before "
223228"the destruction of *co* takes place, so the prior state of *co* can be "
224229"inspected."
225230msgstr ""
226231
227- #: ../../c-api/code.rst:186
232+ #: ../../c-api/code.rst:189
228233msgid ""
229234"If *event* is ``PY_CODE_EVENT_DESTROY``, taking a reference in the callback "
230235"to the about-to-be-destroyed code object will resurrect it and prevent it "
231236"from being freed at this time. When the resurrected object is destroyed "
232237"later, any watcher callbacks active at that time will be called again."
233238msgstr ""
234239
235- #: ../../c-api/code.rst:191
240+ #: ../../c-api/code.rst:194
236241msgid ""
237242"Users of this API should not rely on internal runtime implementation "
238243"details. Such details may include, but are not limited to, the exact order "
@@ -242,14 +247,14 @@ msgid ""
242247"the Python code being executed."
243248msgstr ""
244249
245- #: ../../c-api/code.rst:198
250+ #: ../../c-api/code.rst:201
246251msgid ""
247252"If the callback sets an exception, it must return ``-1``; this exception "
248253"will be printed as an unraisable exception using :c:func:"
249254"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
250255msgstr ""
251256
252- #: ../../c-api/code.rst:202
257+ #: ../../c-api/code.rst:205
253258msgid ""
254259"There may already be a pending exception set on entry to the callback. In "
255260"this case, the callback should return ``0`` with the same exception still "
@@ -258,85 +263,85 @@ msgid ""
258263"it before returning."
259264msgstr ""
260265
261- #: ../../c-api/code.rst:212
266+ #: ../../c-api/code.rst:215
262267msgid "Extra information"
263268msgstr ""
264269
265- #: ../../c-api/code.rst:214
270+ #: ../../c-api/code.rst:217
266271msgid ""
267272"To support low-level extensions to frame evaluation, such as external just-"
268273"in-time compilers, it is possible to attach arbitrary extra data to code "
269274"objects."
270275msgstr ""
271276
272- #: ../../c-api/code.rst:218
277+ #: ../../c-api/code.rst:221
273278msgid ""
274279"These functions are part of the unstable C API tier: this functionality is a "
275280"CPython implementation detail, and the API may change without deprecation "
276281"warnings."
277282msgstr ""
278283
279- #: ../../c-api/code.rst:224
284+ #: ../../c-api/code.rst:227
280285msgid "Return a new an opaque index value used to adding data to code objects."
281286msgstr ""
282287
283- #: ../../c-api/code.rst:226
288+ #: ../../c-api/code.rst:229
284289msgid ""
285290"You generally call this function once (per interpreter) and use the result "
286291"with ``PyCode_GetExtra`` and ``PyCode_SetExtra`` to manipulate data on "
287292"individual code objects."
288293msgstr ""
289294
290- #: ../../c-api/code.rst:230
295+ #: ../../c-api/code.rst:233
291296msgid ""
292297"If *free* is not ``NULL``: when a code object is deallocated, *free* will be "
293298"called on non-``NULL`` data stored under the new index. Use :c:func:"
294299"`Py_DecRef` when storing :c:type:`PyObject`."
295300msgstr ""
296301
297- #: ../../c-api/code.rst:236
302+ #: ../../c-api/code.rst:239
298303msgid "as ``_PyEval_RequestCodeExtraIndex``"
299304msgstr ""
300305
301- #: ../../c-api/code.rst:240
306+ #: ../../c-api/code.rst:243
302307msgid ""
303308"Renamed to ``PyUnstable_Eval_RequestCodeExtraIndex``. The old private name "
304309"is deprecated, but will be available until the API changes."
305310msgstr ""
306311
307- #: ../../c-api/code.rst:246
312+ #: ../../c-api/code.rst:249
308313msgid ""
309314"Set *extra* to the extra data stored under the given index. Return 0 on "
310315"success. Set an exception and return -1 on failure."
311316msgstr ""
312317
313- #: ../../c-api/code.rst:249
318+ #: ../../c-api/code.rst:252
314319msgid ""
315320"If no data was set under the index, set *extra* to ``NULL`` and return 0 "
316321"without setting an exception."
317322msgstr ""
318323
319- #: ../../c-api/code.rst:254
324+ #: ../../c-api/code.rst:257
320325msgid "as ``_PyCode_GetExtra``"
321326msgstr ""
322327
323- #: ../../c-api/code.rst:258
328+ #: ../../c-api/code.rst:261
324329msgid ""
325330"Renamed to ``PyUnstable_Code_GetExtra``. The old private name is deprecated, "
326331"but will be available until the API changes."
327332msgstr ""
328333
329- #: ../../c-api/code.rst:264
334+ #: ../../c-api/code.rst:267
330335msgid ""
331336"Set the extra data stored under the given index to *extra*. Return 0 on "
332337"success. Set an exception and return -1 on failure."
333338msgstr ""
334339
335- #: ../../c-api/code.rst:269
340+ #: ../../c-api/code.rst:272
336341msgid "as ``_PyCode_SetExtra``"
337342msgstr ""
338343
339- #: ../../c-api/code.rst:273
344+ #: ../../c-api/code.rst:276
340345msgid ""
341346"Renamed to ``PyUnstable_Code_SetExtra``. The old private name is deprecated, "
342347"but will be available until the API changes."
@@ -354,22 +359,22 @@ msgstr "コード"
354359msgid "code object"
355360msgstr "コードオブジェクト"
356361
357- #: ../../c-api/code.rst:62
362+ #: ../../c-api/code.rst:64
358363msgid "PyCode_New (C function)"
359364msgstr "PyCode_New (C 関数)"
360365
361- #: ../../c-api/code.rst:75
366+ #: ../../c-api/code.rst:77
362367msgid "PyCode_NewWithPosOnlyArgs (C function)"
363368msgstr "PyCode_NewWithPosOnlyArgs (C 関数)"
364369
365- #: ../../c-api/code.rst:234
370+ #: ../../c-api/code.rst:237
366371msgid "_PyEval_RequestCodeExtraIndex (C function)"
367372msgstr "_PyEval_RequestCodeExtraIndex (C 関数)"
368373
369- #: ../../c-api/code.rst:252
374+ #: ../../c-api/code.rst:255
370375msgid "_PyCode_GetExtra (C function)"
371376msgstr "_PyCode_GetExtra (C 関数)"
372377
373- #: ../../c-api/code.rst:267
378+ #: ../../c-api/code.rst:270
374379msgid "_PyCode_SetExtra (C function)"
375380msgstr "_PyCode_SetExtra (C 関数)"
0 commit comments