4
4
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
#
6
6
# Translators:
7
- # Arihiro TAKASE, 2023
8
7
# tomo, 2023
9
8
#
10
9
#, fuzzy
11
10
msgid ""
12
11
msgstr ""
13
12
"Project-Id-Version : Python 3.12\n "
14
13
"Report-Msgid-Bugs-To : \n "
15
- "POT-Creation-Date : 2023-12-08 14:14+0000\n "
14
+ "POT-Creation-Date : 2023-12-15 14:14+0000\n "
16
15
"PO-Revision-Date : 2021-06-28 00:48+0000\n "
17
16
"Last-Translator : tomo, 2023\n "
18
17
"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -65,82 +64,82 @@ msgstr ""
65
64
66
65
#: ../../c-api/function.rst:37
67
66
msgid ""
68
- "The function's docstring and name are retrieved from the code object. "
69
- "*__module__* is retrieved from *globals*. The argument defaults, annotations "
70
- "and closure are set to ``NULL``. *__qualname__* is set to the same value as "
71
- "the code object's :attr:`~codeobject.co_qualname` field."
67
+ "The function's docstring and name are retrieved from the code object. :attr:"
68
+ "`~function.__module__` is retrieved from *globals*. The argument defaults, "
69
+ "annotations and closure are set to ``NULL``. :attr:`~function.__qualname__` "
70
+ "is set to the same value as the code object's :attr:`~codeobject."
71
+ "co_qualname` field."
72
72
msgstr ""
73
73
74
- #: ../../c-api/function.rst:45
74
+ #: ../../c-api/function.rst:46
75
75
msgid ""
76
- "As :c:func:`PyFunction_New`, but also allows setting the function object's "
77
- "`` __qualname__`` attribute. *qualname* should be a unicode object or "
78
- "``NULL``; if ``NULL``, the `` __qualname__`` attribute is set to the same "
79
- "value as the code object's :attr:`~codeobject.co_qualname` field."
76
+ "As :c:func:`PyFunction_New`, but also allows setting the function object's : "
77
+ "attr:`~function. __qualname__` attribute. *qualname* should be a unicode "
78
+ "object or ``NULL``; if ``NULL``, the :attr:`! __qualname__` attribute is set "
79
+ "to the same value as the code object's :attr:`~codeobject.co_qualname` field."
80
80
msgstr ""
81
81
82
- #: ../../c-api/function.rst:55
82
+ #: ../../c-api/function.rst:57
83
83
msgid "Return the code object associated with the function object *op*."
84
84
msgstr "関数オブジェクト *op* に関連付けられたコードオブジェクトを返します。"
85
85
86
- #: ../../c-api/function.rst:60
86
+ #: ../../c-api/function.rst:62
87
87
msgid "Return the globals dictionary associated with the function object *op*."
88
88
msgstr "関数オブジェクト *op* に関連付けられたglobals辞書を返します。"
89
89
90
- #: ../../c-api/function.rst:65
90
+ #: ../../c-api/function.rst:67
91
91
msgid ""
92
- "Return a :term:`borrowed reference` to the *__module__* attribute of the "
93
- "function object *op*. It can be *NULL*."
92
+ "Return a :term:`borrowed reference` to the :attr:`~function.__module__` "
93
+ "attribute of the :ref:`function object <user-defined-funcs>` *op*. It can be "
94
+ "*NULL*."
94
95
msgstr ""
95
96
96
- #: ../../c-api/function.rst:68
97
+ #: ../../c-api/function.rst:71
97
98
msgid ""
98
- "This is normally a string containing the module name, but can be set to any "
99
- "other object by Python code."
99
+ "This is normally a :class:` string <str>` containing the module name, but can "
100
+ "be set to any other object by Python code."
100
101
msgstr ""
101
- "これには普通はモジュール名の文字列が入っていますが、Python コードから他のオブ"
102
- "ジェクトをセットされることもあります。"
103
102
104
- #: ../../c-api/function.rst:74
103
+ #: ../../c-api/function.rst:77
105
104
msgid ""
106
105
"Return the argument default values of the function object *op*. This can be "
107
106
"a tuple of arguments or ``NULL``."
108
107
msgstr ""
109
108
"関数オブジェクト *op* の引数のデフォルト値を返します。\n"
110
109
"引数のタプルか ``NULL`` になります。"
111
110
112
- #: ../../c-api/function.rst:80
111
+ #: ../../c-api/function.rst:83
113
112
msgid ""
114
113
"Set the argument default values for the function object *op*. *defaults* "
115
114
"must be ``Py_None`` or a tuple."
116
115
msgstr ""
117
116
"関数オブジェクト *op* の引数のデフォルト値を設定します。\n"
118
117
"*defaults* は ``Py_None`` かタプルでなければいけません。"
119
118
120
- #: ../../c-api/function.rst:83 ../../c-api/function.rst:106
121
- #: ../../c-api/function.rst:120
119
+ #: ../../c-api/function.rst:86 ../../c-api/function.rst:109
120
+ #: ../../c-api/function.rst:123
122
121
msgid "Raises :exc:`SystemError` and returns ``-1`` on failure."
123
122
msgstr "失敗した時は、 :exc:`SystemError` を発生させ、 ``-1`` を返します。"
124
123
125
- #: ../../c-api/function.rst:88
124
+ #: ../../c-api/function.rst:91
126
125
msgid "Set the vectorcall field of a given function object *func*."
127
126
msgstr ""
128
127
129
- #: ../../c-api/function.rst:90
128
+ #: ../../c-api/function.rst:93
130
129
msgid ""
131
130
"Warning: extensions using this API must preserve the behavior of the "
132
131
"unaltered (default) vectorcall function!"
133
132
msgstr ""
134
133
135
- #: ../../c-api/function.rst:97
134
+ #: ../../c-api/function.rst:100
136
135
msgid ""
137
136
"Return the closure associated with the function object *op*. This can be "
138
137
"``NULL`` or a tuple of cell objects."
139
138
msgstr ""
140
139
"関数オブジェクト *op* に設定されたクロージャを返します。\n"
141
140
"``NULL`` か cell オブジェクトのタプルです。"
142
141
143
- #: ../../c-api/function.rst:103
142
+ #: ../../c-api/function.rst:106
144
143
msgid ""
145
144
"Set the closure associated with the function object *op*. *closure* must be "
146
145
"``Py_None`` or a tuple of cell objects."
@@ -149,65 +148,65 @@ msgstr ""
149
148
"*closure* は、``Py_None`` もしくは cell オブジェクトのタプルでなければなりま"
150
149
"せん。"
151
150
152
- #: ../../c-api/function.rst:111
151
+ #: ../../c-api/function.rst:114
153
152
msgid ""
154
153
"Return the annotations of the function object *op*. This can be a mutable "
155
154
"dictionary or ``NULL``."
156
155
msgstr ""
157
156
"関数オブジェクト *op* のアノテーションを返します。\n"
158
157
"返り値は修正可能な辞書か ``NULL`` になります。"
159
158
160
- #: ../../c-api/function.rst:117
159
+ #: ../../c-api/function.rst:120
161
160
msgid ""
162
161
"Set the annotations for the function object *op*. *annotations* must be a "
163
162
"dictionary or ``Py_None``."
164
163
msgstr ""
165
164
"関数オブジェクト *op* のアノテーションを設定します。\n"
166
165
"*annotations* は辞書か、``Py_None`` でなければなりません。"
167
166
168
- #: ../../c-api/function.rst:125
167
+ #: ../../c-api/function.rst:128
169
168
msgid ""
170
169
"Register *callback* as a function watcher for the current interpreter. "
171
170
"Return an ID which may be passed to :c:func:`PyFunction_ClearWatcher`. In "
172
171
"case of error (e.g. no more watcher IDs available), return ``-1`` and set an "
173
172
"exception."
174
173
msgstr ""
175
174
176
- #: ../../c-api/function.rst:135
175
+ #: ../../c-api/function.rst:138
177
176
msgid ""
178
177
"Clear watcher identified by *watcher_id* previously returned from :c:func:"
179
178
"`PyFunction_AddWatcher` for the current interpreter. Return ``0`` on "
180
179
"success, or ``-1`` and set an exception on error (e.g. if the given "
181
180
"*watcher_id* was never registered.)"
182
181
msgstr ""
183
182
184
- #: ../../c-api/function.rst:145
183
+ #: ../../c-api/function.rst:148
185
184
msgid ""
186
185
"Enumeration of possible function watcher events: - "
187
186
"``PyFunction_EVENT_CREATE`` - ``PyFunction_EVENT_DESTROY`` - "
188
187
"``PyFunction_EVENT_MODIFY_CODE`` - ``PyFunction_EVENT_MODIFY_DEFAULTS`` - "
189
188
"``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
190
189
msgstr ""
191
190
192
- #: ../../c-api/function.rst:157
191
+ #: ../../c-api/function.rst:160
193
192
msgid "Type of a function watcher callback function."
194
193
msgstr ""
195
194
196
- #: ../../c-api/function.rst:159
195
+ #: ../../c-api/function.rst:162
197
196
msgid ""
198
197
"If *event* is ``PyFunction_EVENT_CREATE`` or ``PyFunction_EVENT_DESTROY`` "
199
198
"then *new_value* will be ``NULL``. Otherwise, *new_value* will hold a :term:"
200
199
"`borrowed reference` to the new value that is about to be stored in *func* "
201
200
"for the attribute that is being modified."
202
201
msgstr ""
203
202
204
- #: ../../c-api/function.rst:164
203
+ #: ../../c-api/function.rst:167
205
204
msgid ""
206
205
"The callback may inspect but must not modify *func*; doing so could have "
207
206
"unpredictable effects, including infinite recursion."
208
207
msgstr ""
209
208
210
- #: ../../c-api/function.rst:167
209
+ #: ../../c-api/function.rst:170
211
210
msgid ""
212
211
"If *event* is ``PyFunction_EVENT_CREATE``, then the callback is invoked "
213
212
"after `func` has been fully initialized. Otherwise, the callback is invoked "
@@ -219,22 +218,22 @@ msgid ""
219
218
"semantics of the Python code being executed."
220
219
msgstr ""
221
220
222
- #: ../../c-api/function.rst:176
221
+ #: ../../c-api/function.rst:179
223
222
msgid ""
224
223
"If *event* is ``PyFunction_EVENT_DESTROY``, Taking a reference in the "
225
224
"callback to the about-to-be-destroyed function will resurrect it, preventing "
226
225
"it from being freed at this time. When the resurrected object is destroyed "
227
226
"later, any watcher callbacks active at that time will be called again."
228
227
msgstr ""
229
228
230
- #: ../../c-api/function.rst:181
229
+ #: ../../c-api/function.rst:184
231
230
msgid ""
232
231
"If the callback sets an exception, it must return ``-1``; this exception "
233
232
"will be printed as an unraisable exception using :c:func:"
234
233
"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
235
234
msgstr ""
236
235
237
- #: ../../c-api/function.rst:185
236
+ #: ../../c-api/function.rst:188
238
237
msgid ""
239
238
"There may already be a pending exception set on entry to the callback. In "
240
239
"this case, the callback should return ``0`` with the same exception still "
0 commit comments