@@ -14,7 +14,7 @@ msgid ""
14
14
msgstr ""
15
15
"Project-Id-Version : Python 3.13\n "
16
16
"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 "
18
18
"PO-Revision-Date : 2021-06-28 00:48+0000\n "
19
19
"Last-Translator : Taichi Haradaguchi, 2024\n "
20
20
"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -59,180 +59,185 @@ msgid ""
59
59
msgstr ""
60
60
61
61
#: ../../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."
63
65
msgstr ""
64
66
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."
67
71
msgstr ""
68
72
69
- #: ../../c-api/code.rst:43
73
+ #: ../../c-api/code.rst:45
70
74
msgid ""
71
75
"Renamed from ``PyCode_GetFirstFree`` as part of :ref:`unstable-c-api`. The "
72
76
"old name is deprecated, but will remain available until the signature "
73
77
"changes again."
74
78
msgstr ""
75
79
76
- #: ../../c-api/code.rst:49
80
+ #: ../../c-api/code.rst:51
77
81
msgid ""
78
82
"Return a new code object. If you need a dummy code object to create a "
79
83
"frame, use :c:func:`PyCode_NewEmpty` instead."
80
84
msgstr ""
81
85
82
- #: ../../c-api/code.rst:52
86
+ #: ../../c-api/code.rst:54
83
87
msgid ""
84
88
"Since the definition of the bytecode changes often, calling :c:func:"
85
89
"`PyUnstable_Code_New` directly can bind you to a precise Python version."
86
90
msgstr ""
87
91
88
- #: ../../c-api/code.rst:55
92
+ #: ../../c-api/code.rst:57
89
93
msgid ""
90
94
"The many arguments of this function are inter-dependent in complex ways, "
91
95
"meaning that subtle changes to values are likely to result in incorrect "
92
96
"execution or VM crashes. Use this function only with extreme care."
93
97
msgstr ""
94
98
95
- #: ../../c-api/code.rst:59
99
+ #: ../../c-api/code.rst:61
96
100
msgid "Added ``qualname`` and ``exceptiontable`` parameters."
97
101
msgstr ""
98
102
99
- #: ../../c-api/code.rst:66
103
+ #: ../../c-api/code.rst:68
100
104
msgid ""
101
105
"Renamed from ``PyCode_New`` as part of :ref:`unstable-c-api`. The old name "
102
106
"is deprecated, but will remain available until the signature changes again."
103
107
msgstr ""
104
108
105
- #: ../../c-api/code.rst:72
109
+ #: ../../c-api/code.rst:74
106
110
msgid ""
107
111
"Similar to :c:func:`PyUnstable_Code_New`, but with an extra "
108
112
"\" posonlyargcount\" for positional-only arguments. The same caveats that "
109
113
"apply to ``PyUnstable_Code_New`` also apply to this function."
110
114
msgstr ""
111
115
112
- #: ../../c-api/code.rst:77
116
+ #: ../../c-api/code.rst:79
113
117
msgid "as ``PyCode_NewWithPosOnlyArgs``"
114
118
msgstr ""
115
119
116
- #: ../../c-api/code.rst:79
120
+ #: ../../c-api/code.rst:81
117
121
msgid "Added ``qualname`` and ``exceptiontable`` parameters."
118
122
msgstr ""
119
123
120
- #: ../../c-api/code.rst:84
124
+ #: ../../c-api/code.rst:86
121
125
msgid ""
122
126
"Renamed to ``PyUnstable_Code_NewWithPosOnlyArgs``. The old name is "
123
127
"deprecated, but will remain available until the signature changes again."
124
128
msgstr ""
125
129
126
- #: ../../c-api/code.rst:90
130
+ #: ../../c-api/code.rst:92
127
131
msgid ""
128
132
"Return a new empty code object with the specified filename, function name, "
129
133
"and first line number. The resulting code object will raise an ``Exception`` "
130
134
"if executed."
131
135
msgstr ""
132
136
133
- #: ../../c-api/code.rst:96
137
+ #: ../../c-api/code.rst:98
134
138
msgid ""
135
139
"Return the line number of the instruction that occurs on or before "
136
140
"``byte_offset`` and ends after it. If you just need the line number of a "
137
141
"frame, use :c:func:`PyFrame_GetLineNumber` instead."
138
142
msgstr ""
139
143
140
- #: ../../c-api/code.rst:99
144
+ #: ../../c-api/code.rst:101
141
145
msgid ""
142
146
"For efficiently iterating over the line numbers in a code object, use :pep:"
143
147
"`the API described in PEP 626 <0626#out-of-process-debuggers-and-profilers>`."
144
148
msgstr ""
145
149
146
- #: ../../c-api/code.rst:104
150
+ #: ../../c-api/code.rst:106
147
151
msgid ""
148
152
"Sets the passed ``int`` pointers to the source code line and column numbers "
149
153
"for the instruction at ``byte_offset``. Sets the value to ``0`` when "
150
154
"information is not available for any particular element."
151
155
msgstr ""
152
156
153
- #: ../../c-api/code.rst:108
157
+ #: ../../c-api/code.rst:110
154
158
msgid "Returns ``1`` if the function succeeds and 0 otherwise."
155
159
msgstr ""
156
160
157
- #: ../../c-api/code.rst:114
161
+ #: ../../c-api/code.rst:116
158
162
msgid ""
159
163
"Equivalent to the Python code ``getattr(co, 'co_code')``. Returns a strong "
160
164
"reference to a :c:type:`PyBytesObject` representing the bytecode in a code "
161
165
"object. On error, ``NULL`` is returned and an exception is raised."
162
166
msgstr ""
163
167
164
- #: ../../c-api/code.rst:119
168
+ #: ../../c-api/code.rst:121
165
169
msgid ""
166
170
"This ``PyBytesObject`` may be created on-demand by the interpreter and does "
167
171
"not necessarily represent the bytecode actually executed by CPython. The "
168
172
"primary use case for this function is debuggers and profilers."
169
173
msgstr ""
170
174
171
- #: ../../c-api/code.rst:127
175
+ #: ../../c-api/code.rst:129
172
176
msgid ""
173
177
"Equivalent to the Python code ``getattr(co, 'co_varnames')``. Returns a new "
174
178
"reference to a :c:type:`PyTupleObject` containing the names of the local "
175
179
"variables. On error, ``NULL`` is returned and an exception is raised."
176
180
msgstr ""
177
181
178
- #: ../../c-api/code.rst:136
182
+ #: ../../c-api/code.rst:138
179
183
msgid ""
180
184
"Equivalent to the Python code ``getattr(co, 'co_cellvars')``. Returns a new "
181
185
"reference to a :c:type:`PyTupleObject` containing the names of the local "
182
186
"variables that are referenced by nested functions. On error, ``NULL`` is "
183
187
"returned and an exception is raised."
184
188
msgstr ""
185
189
186
- #: ../../c-api/code.rst:145
190
+ #: ../../c-api/code.rst:147
187
191
msgid ""
188
192
"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."
191
196
msgstr ""
192
197
193
- #: ../../c-api/code.rst:153
198
+ #: ../../c-api/code.rst:156
194
199
msgid ""
195
200
"Register *callback* as a code object watcher for the current interpreter. "
196
201
"Return an ID which may be passed to :c:func:`PyCode_ClearWatcher`. In case "
197
202
"of error (e.g. no more watcher IDs available), return ``-1`` and set an "
198
203
"exception."
199
204
msgstr ""
200
205
201
- #: ../../c-api/code.rst:162
206
+ #: ../../c-api/code.rst:165
202
207
msgid ""
203
208
"Clear watcher identified by *watcher_id* previously returned from :c:func:"
204
209
"`PyCode_AddWatcher` for the current interpreter. Return ``0`` on success, or "
205
210
"``-1`` and set an exception on error (e.g. if the given *watcher_id* was "
206
211
"never registered.)"
207
212
msgstr ""
208
213
209
- #: ../../c-api/code.rst:171
214
+ #: ../../c-api/code.rst:174
210
215
msgid ""
211
216
"Enumeration of possible code object watcher events: - "
212
217
"``PY_CODE_EVENT_CREATE`` - ``PY_CODE_EVENT_DESTROY``"
213
218
msgstr ""
214
219
215
- #: ../../c-api/code.rst:179
220
+ #: ../../c-api/code.rst:182
216
221
msgid "Type of a code object watcher callback function."
217
222
msgstr ""
218
223
219
- #: ../../c-api/code.rst:181
224
+ #: ../../c-api/code.rst:184
220
225
msgid ""
221
226
"If *event* is ``PY_CODE_EVENT_CREATE``, then the callback is invoked after "
222
227
"`co` has been fully initialized. Otherwise, the callback is invoked before "
223
228
"the destruction of *co* takes place, so the prior state of *co* can be "
224
229
"inspected."
225
230
msgstr ""
226
231
227
- #: ../../c-api/code.rst:186
232
+ #: ../../c-api/code.rst:189
228
233
msgid ""
229
234
"If *event* is ``PY_CODE_EVENT_DESTROY``, taking a reference in the callback "
230
235
"to the about-to-be-destroyed code object will resurrect it and prevent it "
231
236
"from being freed at this time. When the resurrected object is destroyed "
232
237
"later, any watcher callbacks active at that time will be called again."
233
238
msgstr ""
234
239
235
- #: ../../c-api/code.rst:191
240
+ #: ../../c-api/code.rst:194
236
241
msgid ""
237
242
"Users of this API should not rely on internal runtime implementation "
238
243
"details. Such details may include, but are not limited to, the exact order "
@@ -242,14 +247,14 @@ msgid ""
242
247
"the Python code being executed."
243
248
msgstr ""
244
249
245
- #: ../../c-api/code.rst:198
250
+ #: ../../c-api/code.rst:201
246
251
msgid ""
247
252
"If the callback sets an exception, it must return ``-1``; this exception "
248
253
"will be printed as an unraisable exception using :c:func:"
249
254
"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
250
255
msgstr ""
251
256
252
- #: ../../c-api/code.rst:202
257
+ #: ../../c-api/code.rst:205
253
258
msgid ""
254
259
"There may already be a pending exception set on entry to the callback. In "
255
260
"this case, the callback should return ``0`` with the same exception still "
@@ -258,85 +263,85 @@ msgid ""
258
263
"it before returning."
259
264
msgstr ""
260
265
261
- #: ../../c-api/code.rst:212
266
+ #: ../../c-api/code.rst:215
262
267
msgid "Extra information"
263
268
msgstr ""
264
269
265
- #: ../../c-api/code.rst:214
270
+ #: ../../c-api/code.rst:217
266
271
msgid ""
267
272
"To support low-level extensions to frame evaluation, such as external just-"
268
273
"in-time compilers, it is possible to attach arbitrary extra data to code "
269
274
"objects."
270
275
msgstr ""
271
276
272
- #: ../../c-api/code.rst:218
277
+ #: ../../c-api/code.rst:221
273
278
msgid ""
274
279
"These functions are part of the unstable C API tier: this functionality is a "
275
280
"CPython implementation detail, and the API may change without deprecation "
276
281
"warnings."
277
282
msgstr ""
278
283
279
- #: ../../c-api/code.rst:224
284
+ #: ../../c-api/code.rst:227
280
285
msgid "Return a new an opaque index value used to adding data to code objects."
281
286
msgstr ""
282
287
283
- #: ../../c-api/code.rst:226
288
+ #: ../../c-api/code.rst:229
284
289
msgid ""
285
290
"You generally call this function once (per interpreter) and use the result "
286
291
"with ``PyCode_GetExtra`` and ``PyCode_SetExtra`` to manipulate data on "
287
292
"individual code objects."
288
293
msgstr ""
289
294
290
- #: ../../c-api/code.rst:230
295
+ #: ../../c-api/code.rst:233
291
296
msgid ""
292
297
"If *free* is not ``NULL``: when a code object is deallocated, *free* will be "
293
298
"called on non-``NULL`` data stored under the new index. Use :c:func:"
294
299
"`Py_DecRef` when storing :c:type:`PyObject`."
295
300
msgstr ""
296
301
297
- #: ../../c-api/code.rst:236
302
+ #: ../../c-api/code.rst:239
298
303
msgid "as ``_PyEval_RequestCodeExtraIndex``"
299
304
msgstr ""
300
305
301
- #: ../../c-api/code.rst:240
306
+ #: ../../c-api/code.rst:243
302
307
msgid ""
303
308
"Renamed to ``PyUnstable_Eval_RequestCodeExtraIndex``. The old private name "
304
309
"is deprecated, but will be available until the API changes."
305
310
msgstr ""
306
311
307
- #: ../../c-api/code.rst:246
312
+ #: ../../c-api/code.rst:249
308
313
msgid ""
309
314
"Set *extra* to the extra data stored under the given index. Return 0 on "
310
315
"success. Set an exception and return -1 on failure."
311
316
msgstr ""
312
317
313
- #: ../../c-api/code.rst:249
318
+ #: ../../c-api/code.rst:252
314
319
msgid ""
315
320
"If no data was set under the index, set *extra* to ``NULL`` and return 0 "
316
321
"without setting an exception."
317
322
msgstr ""
318
323
319
- #: ../../c-api/code.rst:254
324
+ #: ../../c-api/code.rst:257
320
325
msgid "as ``_PyCode_GetExtra``"
321
326
msgstr ""
322
327
323
- #: ../../c-api/code.rst:258
328
+ #: ../../c-api/code.rst:261
324
329
msgid ""
325
330
"Renamed to ``PyUnstable_Code_GetExtra``. The old private name is deprecated, "
326
331
"but will be available until the API changes."
327
332
msgstr ""
328
333
329
- #: ../../c-api/code.rst:264
334
+ #: ../../c-api/code.rst:267
330
335
msgid ""
331
336
"Set the extra data stored under the given index to *extra*. Return 0 on "
332
337
"success. Set an exception and return -1 on failure."
333
338
msgstr ""
334
339
335
- #: ../../c-api/code.rst:269
340
+ #: ../../c-api/code.rst:272
336
341
msgid "as ``_PyCode_SetExtra``"
337
342
msgstr ""
338
343
339
- #: ../../c-api/code.rst:273
344
+ #: ../../c-api/code.rst:276
340
345
msgid ""
341
346
"Renamed to ``PyUnstable_Code_SetExtra``. The old private name is deprecated, "
342
347
"but will be available until the API changes."
@@ -354,22 +359,22 @@ msgstr "コード"
354
359
msgid "code object"
355
360
msgstr "コードオブジェクト"
356
361
357
- #: ../../c-api/code.rst:62
362
+ #: ../../c-api/code.rst:64
358
363
msgid "PyCode_New (C function)"
359
364
msgstr "PyCode_New (C 関数)"
360
365
361
- #: ../../c-api/code.rst:75
366
+ #: ../../c-api/code.rst:77
362
367
msgid "PyCode_NewWithPosOnlyArgs (C function)"
363
368
msgstr "PyCode_NewWithPosOnlyArgs (C 関数)"
364
369
365
- #: ../../c-api/code.rst:234
370
+ #: ../../c-api/code.rst:237
366
371
msgid "_PyEval_RequestCodeExtraIndex (C function)"
367
372
msgstr "_PyEval_RequestCodeExtraIndex (C 関数)"
368
373
369
- #: ../../c-api/code.rst:252
374
+ #: ../../c-api/code.rst:255
370
375
msgid "_PyCode_GetExtra (C function)"
371
376
msgstr "_PyCode_GetExtra (C 関数)"
372
377
373
- #: ../../c-api/code.rst:267
378
+ #: ../../c-api/code.rst:270
374
379
msgid "_PyCode_SetExtra (C function)"
375
380
msgstr "_PyCode_SetExtra (C 関数)"
0 commit comments