@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version : Python 3.12\n "
1414"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2024-02-16 14:13+0000\n "
15+ "POT-Creation-Date : 2024-02-23 14:13+0000\n "
1616"PO-Revision-Date : 2021-06-28 00:48+0000\n "
1717"Last-Translator : tomo, 2023\n "
1818"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -57,170 +57,174 @@ msgid ""
5757msgstr ""
5858
5959#: ../../c-api/code.rst:35
60- msgid "Return the number of free variables in *co* ."
61- msgstr "*co* 内の自由変数(free variables)の数を返します。 "
60+ msgid "Return the number of free variables in a code object ."
61+ msgstr ""
6262
6363#: ../../c-api/code.rst:39
64+ msgid "Return the position of the first free variable in a code object."
65+ msgstr ""
66+
67+ #: ../../c-api/code.rst:43
6468msgid ""
6569"Return a new code object. If you need a dummy code object to create a "
6670"frame, use :c:func:`PyCode_NewEmpty` instead."
6771msgstr ""
6872
69- #: ../../c-api/code.rst:42
73+ #: ../../c-api/code.rst:46
7074msgid ""
7175"Since the definition of the bytecode changes often, calling :c:func:"
7276"`PyUnstable_Code_New` directly can bind you to a precise Python version."
7377msgstr ""
7478
75- #: ../../c-api/code.rst:45
79+ #: ../../c-api/code.rst:49
7680msgid ""
7781"The many arguments of this function are inter-dependent in complex ways, "
7882"meaning that subtle changes to values are likely to result in incorrect "
7983"execution or VM crashes. Use this function only with extreme care."
8084msgstr ""
8185
82- #: ../../c-api/code.rst:49
86+ #: ../../c-api/code.rst:53
8387msgid "Added ``qualname`` and ``exceptiontable`` parameters."
8488msgstr ""
8589
86- #: ../../c-api/code.rst:56
90+ #: ../../c-api/code.rst:60
8791msgid ""
8892"Renamed from ``PyCode_New`` as part of :ref:`unstable-c-api`. The old name "
8993"is deprecated, but will remain available until the signature changes again."
9094msgstr ""
9195
92- #: ../../c-api/code.rst:62
96+ #: ../../c-api/code.rst:66
9397msgid ""
9498"Similar to :c:func:`PyUnstable_Code_New`, but with an extra "
9599"\" posonlyargcount\" for positional-only arguments. The same caveats that "
96100"apply to ``PyUnstable_Code_New`` also apply to this function."
97101msgstr ""
98102
99- #: ../../c-api/code.rst:67
103+ #: ../../c-api/code.rst:71
100104msgid "as ``PyCode_NewWithPosOnlyArgs``"
101105msgstr ""
102106
103- #: ../../c-api/code.rst:69
107+ #: ../../c-api/code.rst:73
104108msgid "Added ``qualname`` and ``exceptiontable`` parameters."
105109msgstr ""
106110
107- #: ../../c-api/code.rst:74
111+ #: ../../c-api/code.rst:78
108112msgid ""
109113"Renamed to ``PyUnstable_Code_NewWithPosOnlyArgs``. The old name is "
110114"deprecated, but will remain available until the signature changes again."
111115msgstr ""
112116
113- #: ../../c-api/code.rst:80
117+ #: ../../c-api/code.rst:84
114118msgid ""
115119"Return a new empty code object with the specified filename, function name, "
116120"and first line number. The resulting code object will raise an ``Exception`` "
117121"if executed."
118122msgstr ""
119123
120- #: ../../c-api/code.rst:86
124+ #: ../../c-api/code.rst:90
121125msgid ""
122126"Return the line number of the instruction that occurs on or before "
123127"``byte_offset`` and ends after it. If you just need the line number of a "
124128"frame, use :c:func:`PyFrame_GetLineNumber` instead."
125129msgstr ""
126130
127- #: ../../c-api/code.rst:89
131+ #: ../../c-api/code.rst:93
128132msgid ""
129133"For efficiently iterating over the line numbers in a code object, use `the "
130134"API described in PEP 626 <https://peps.python.org/pep-0626/#out-of-process-"
131135"debuggers-and-profilers>`_."
132136msgstr ""
133137
134- #: ../../c-api/code.rst:94
138+ #: ../../c-api/code.rst:98
135139msgid ""
136140"Sets the passed ``int`` pointers to the source code line and column numbers "
137141"for the instruction at ``byte_offset``. Sets the value to ``0`` when "
138142"information is not available for any particular element."
139143msgstr ""
140144
141- #: ../../c-api/code.rst:98
145+ #: ../../c-api/code.rst:102
142146msgid "Returns ``1`` if the function succeeds and 0 otherwise."
143147msgstr ""
144148
145- #: ../../c-api/code.rst:104
149+ #: ../../c-api/code.rst:108
146150msgid ""
147151"Equivalent to the Python code ``getattr(co, 'co_code')``. Returns a strong "
148152"reference to a :c:type:`PyBytesObject` representing the bytecode in a code "
149153"object. On error, ``NULL`` is returned and an exception is raised."
150154msgstr ""
151155
152- #: ../../c-api/code.rst:109
156+ #: ../../c-api/code.rst:113
153157msgid ""
154158"This ``PyBytesObject`` may be created on-demand by the interpreter and does "
155159"not necessarily represent the bytecode actually executed by CPython. The "
156160"primary use case for this function is debuggers and profilers."
157161msgstr ""
158162
159- #: ../../c-api/code.rst:117
163+ #: ../../c-api/code.rst:121
160164msgid ""
161165"Equivalent to the Python code ``getattr(co, 'co_varnames')``. Returns a new "
162166"reference to a :c:type:`PyTupleObject` containing the names of the local "
163167"variables. On error, ``NULL`` is returned and an exception is raised."
164168msgstr ""
165169
166- #: ../../c-api/code.rst:126
170+ #: ../../c-api/code.rst:130
167171msgid ""
168172"Equivalent to the Python code ``getattr(co, 'co_cellvars')``. Returns a new "
169173"reference to a :c:type:`PyTupleObject` containing the names of the local "
170174"variables that are referenced by nested functions. On error, ``NULL`` is "
171175"returned and an exception is raised."
172176msgstr ""
173177
174- #: ../../c-api/code.rst:135
178+ #: ../../c-api/code.rst:139
175179msgid ""
176180"Equivalent to the Python code ``getattr(co, 'co_freevars')``. Returns a new "
177181"reference to a :c:type:`PyTupleObject` containing the names of the free "
178182"variables. On error, ``NULL`` is returned and an exception is raised."
179183msgstr ""
180184
181- #: ../../c-api/code.rst:143
185+ #: ../../c-api/code.rst:147
182186msgid ""
183187"Register *callback* as a code object watcher for the current interpreter. "
184188"Return an ID which may be passed to :c:func:`PyCode_ClearWatcher`. In case "
185189"of error (e.g. no more watcher IDs available), return ``-1`` and set an "
186190"exception."
187191msgstr ""
188192
189- #: ../../c-api/code.rst:152
193+ #: ../../c-api/code.rst:156
190194msgid ""
191195"Clear watcher identified by *watcher_id* previously returned from :c:func:"
192196"`PyCode_AddWatcher` for the current interpreter. Return ``0`` on success, or "
193197"``-1`` and set an exception on error (e.g. if the given *watcher_id* was "
194198"never registered.)"
195199msgstr ""
196200
197- #: ../../c-api/code.rst:161
201+ #: ../../c-api/code.rst:165
198202msgid ""
199203"Enumeration of possible code object watcher events: - "
200204"``PY_CODE_EVENT_CREATE`` - ``PY_CODE_EVENT_DESTROY``"
201205msgstr ""
202206
203- #: ../../c-api/code.rst:169
207+ #: ../../c-api/code.rst:173
204208msgid "Type of a code object watcher callback function."
205209msgstr ""
206210
207- #: ../../c-api/code.rst:171
211+ #: ../../c-api/code.rst:175
208212msgid ""
209213"If *event* is ``PY_CODE_EVENT_CREATE``, then the callback is invoked after "
210214"`co` has been fully initialized. Otherwise, the callback is invoked before "
211215"the destruction of *co* takes place, so the prior state of *co* can be "
212216"inspected."
213217msgstr ""
214218
215- #: ../../c-api/code.rst:176
219+ #: ../../c-api/code.rst:180
216220msgid ""
217221"If *event* is ``PY_CODE_EVENT_DESTROY``, taking a reference in the callback "
218222"to the about-to-be-destroyed code object will resurrect it and prevent it "
219223"from being freed at this time. When the resurrected object is destroyed "
220224"later, any watcher callbacks active at that time will be called again."
221225msgstr ""
222226
223- #: ../../c-api/code.rst:181
227+ #: ../../c-api/code.rst:185
224228msgid ""
225229"Users of this API should not rely on internal runtime implementation "
226230"details. Such details may include, but are not limited to, the exact order "
@@ -230,14 +234,14 @@ msgid ""
230234"the Python code being executed."
231235msgstr ""
232236
233- #: ../../c-api/code.rst:188
237+ #: ../../c-api/code.rst:192
234238msgid ""
235239"If the callback sets an exception, it must return ``-1``; this exception "
236240"will be printed as an unraisable exception using :c:func:"
237241"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
238242msgstr ""
239243
240- #: ../../c-api/code.rst:192
244+ #: ../../c-api/code.rst:196
241245msgid ""
242246"There may already be a pending exception set on entry to the callback. In "
243247"this case, the callback should return ``0`` with the same exception still "
@@ -246,85 +250,85 @@ msgid ""
246250"it before returning."
247251msgstr ""
248252
249- #: ../../c-api/code.rst:202
253+ #: ../../c-api/code.rst:206
250254msgid "Extra information"
251255msgstr ""
252256
253- #: ../../c-api/code.rst:204
257+ #: ../../c-api/code.rst:208
254258msgid ""
255259"To support low-level extensions to frame evaluation, such as external just-"
256260"in-time compilers, it is possible to attach arbitrary extra data to code "
257261"objects."
258262msgstr ""
259263
260- #: ../../c-api/code.rst:208
264+ #: ../../c-api/code.rst:212
261265msgid ""
262266"These functions are part of the unstable C API tier: this functionality is a "
263267"CPython implementation detail, and the API may change without deprecation "
264268"warnings."
265269msgstr ""
266270
267- #: ../../c-api/code.rst:214
271+ #: ../../c-api/code.rst:218
268272msgid "Return a new an opaque index value used to adding data to code objects."
269273msgstr ""
270274
271- #: ../../c-api/code.rst:216
275+ #: ../../c-api/code.rst:220
272276msgid ""
273277"You generally call this function once (per interpreter) and use the result "
274278"with ``PyCode_GetExtra`` and ``PyCode_SetExtra`` to manipulate data on "
275279"individual code objects."
276280msgstr ""
277281
278- #: ../../c-api/code.rst:220
282+ #: ../../c-api/code.rst:224
279283msgid ""
280284"If *free* is not ``NULL``: when a code object is deallocated, *free* will be "
281285"called on non-``NULL`` data stored under the new index. Use :c:func:"
282286"`Py_DecRef` when storing :c:type:`PyObject`."
283287msgstr ""
284288
285- #: ../../c-api/code.rst:226
289+ #: ../../c-api/code.rst:230
286290msgid "as ``_PyEval_RequestCodeExtraIndex``"
287291msgstr ""
288292
289- #: ../../c-api/code.rst:230
293+ #: ../../c-api/code.rst:234
290294msgid ""
291295"Renamed to ``PyUnstable_Eval_RequestCodeExtraIndex``. The old private name "
292296"is deprecated, but will be available until the API changes."
293297msgstr ""
294298
295- #: ../../c-api/code.rst:236
299+ #: ../../c-api/code.rst:240
296300msgid ""
297301"Set *extra* to the extra data stored under the given index. Return 0 on "
298302"success. Set an exception and return -1 on failure."
299303msgstr ""
300304
301- #: ../../c-api/code.rst:239
305+ #: ../../c-api/code.rst:243
302306msgid ""
303307"If no data was set under the index, set *extra* to ``NULL`` and return 0 "
304308"without setting an exception."
305309msgstr ""
306310
307- #: ../../c-api/code.rst:244
311+ #: ../../c-api/code.rst:248
308312msgid "as ``_PyCode_GetExtra``"
309313msgstr ""
310314
311- #: ../../c-api/code.rst:248
315+ #: ../../c-api/code.rst:252
312316msgid ""
313317"Renamed to ``PyUnstable_Code_GetExtra``. The old private name is deprecated, "
314318"but will be available until the API changes."
315319msgstr ""
316320
317- #: ../../c-api/code.rst:254
321+ #: ../../c-api/code.rst:258
318322msgid ""
319323"Set the extra data stored under the given index to *extra*. Return 0 on "
320324"success. Set an exception and return -1 on failure."
321325msgstr ""
322326
323- #: ../../c-api/code.rst:259
327+ #: ../../c-api/code.rst:263
324328msgid "as ``_PyCode_SetExtra``"
325329msgstr ""
326330
327- #: ../../c-api/code.rst:263
331+ #: ../../c-api/code.rst:267
328332msgid ""
329333"Renamed to ``PyUnstable_Code_SetExtra``. The old private name is deprecated, "
330334"but will be available until the API changes."
@@ -342,22 +346,22 @@ msgstr "コード"
342346msgid "code object"
343347msgstr "コードオブジェクト"
344348
345- #: ../../c-api/code.rst:52
349+ #: ../../c-api/code.rst:56
346350msgid "PyCode_New (C function)"
347351msgstr ""
348352
349- #: ../../c-api/code.rst:65
353+ #: ../../c-api/code.rst:69
350354msgid "PyCode_NewWithPosOnlyArgs (C function)"
351355msgstr ""
352356
353- #: ../../c-api/code.rst:224
357+ #: ../../c-api/code.rst:228
354358msgid "_PyEval_RequestCodeExtraIndex (C function)"
355359msgstr ""
356360
357- #: ../../c-api/code.rst:242
361+ #: ../../c-api/code.rst:246
358362msgid "_PyCode_GetExtra (C function)"
359363msgstr ""
360364
361- #: ../../c-api/code.rst:257
365+ #: ../../c-api/code.rst:261
362366msgid "_PyCode_SetExtra (C function)"
363367msgstr ""
0 commit comments