44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
66# Translators:
7- # Arihiro TAKASE, 2023
87# tomo, 2023
98#
109#, fuzzy
1110msgid ""
1211msgstr ""
1312"Project-Id-Version : Python 3.12\n "
1413"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 "
1615"PO-Revision-Date : 2021-06-28 00:48+0000\n "
1716"Last-Translator : tomo, 2023\n "
1817"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -65,82 +64,82 @@ msgstr ""
6564
6665#: ../../c-api/function.rst:37
6766msgid ""
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."
7272msgstr ""
7373
74- #: ../../c-api/function.rst:45
74+ #: ../../c-api/function.rst:46
7575msgid ""
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."
8080msgstr ""
8181
82- #: ../../c-api/function.rst:55
82+ #: ../../c-api/function.rst:57
8383msgid "Return the code object associated with the function object *op*."
8484msgstr "関数オブジェクト *op* に関連付けられたコードオブジェクトを返します。"
8585
86- #: ../../c-api/function.rst:60
86+ #: ../../c-api/function.rst:62
8787msgid "Return the globals dictionary associated with the function object *op*."
8888msgstr "関数オブジェクト *op* に関連付けられたglobals辞書を返します。"
8989
90- #: ../../c-api/function.rst:65
90+ #: ../../c-api/function.rst:67
9191msgid ""
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*."
9495msgstr ""
9596
96- #: ../../c-api/function.rst:68
97+ #: ../../c-api/function.rst:71
9798msgid ""
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."
100101msgstr ""
101- "これには普通はモジュール名の文字列が入っていますが、Python コードから他のオブ"
102- "ジェクトをセットされることもあります。"
103102
104- #: ../../c-api/function.rst:74
103+ #: ../../c-api/function.rst:77
105104msgid ""
106105"Return the argument default values of the function object *op*. This can be "
107106"a tuple of arguments or ``NULL``."
108107msgstr ""
109108"関数オブジェクト *op* の引数のデフォルト値を返します。\n"
110109"引数のタプルか ``NULL`` になります。"
111110
112- #: ../../c-api/funct
B3F0
ion.rst:80
111+ #: ../../c-api/function.rst:83
113112msgid ""
114113"Set the argument default values for the function object *op*. *defaults* "
115114"must be ``Py_None`` or a tuple."
116115msgstr ""
117116"関数オブジェクト *op* の引数のデフォルト値を設定します。\n"
118117"*defaults* は ``Py_None`` かタプルでなければいけません。"
119118
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
122121msgid "Raises :exc:`SystemError` and returns ``-1`` on failure."
123122msgstr "失敗した時は、 :exc:`SystemError` を発生させ、 ``-1`` を返します。"
124123
125- #: ../../c-api/function.rst:88
124+ #: ../../c-api/function.rst:91
126125msgid "Set the vectorcall field of a given function object *func*."
127126msgstr ""
128127
129- #: ../../c-api/function.rst:90
128+ #: ../../c-api/function.rst:93
130129msgid ""
131130"Warning: extensions using this API must preserve the behavior of the "
132131"unaltered (default) vectorcall function!"
133132msgstr ""
134133
135- #: ../../c-api/function.rst:97
134+ #: ../../c-api/function.rst:100
136135msgid ""
137136"Return the closure associated with the function object *op*. This can be "
138137"``NULL`` or a tuple of cell objects."
139138msgstr ""
140139"関数オブジェクト *op* に設定されたクロージャを返します。\n"
141140"``NULL`` か cell オブジェクトのタプルです。"
142141
143- #: ../../c-api/function.rst:103
142+ #: ../../c-api/function.rst:106
144143msgid ""
145144"Set the closure associated with the function object *op*. *closure* must be "
146145"``Py_None`` or a tuple of cell objects."
@@ -149,65 +148,65 @@ msgstr ""
149148"*closure* は、``Py_None`` もしくは cell オブジェクトのタプルでなければなりま"
150149"せん。"
151150
152- #: ../../c-api/function.rst:111
151+ #: ../../c-api/function.rst:114
153152msgid ""
154153"Return the annotations of the function object *op*. This can be a mutable "
155154"dictionary or ``NULL``."
156155msgstr ""
157156"関数オブジェクト *op* のアノテーションを返します。\n"
158157"返り値は修正可能な辞書か ``NULL`` になります。"
159158
160- #: ../../c-api/function.rst:117
159+ #: ../../c-api/function.rst:120
161160msgid ""
162161"Set the annotations for the function object *op*. *annotations* must be a "
163162"dictionary or ``Py_None``."
164163msgstr ""
165164"関数オブジェクト *op* のアノテーションを設定します。\n"
166165"*annotations* は辞書か、``Py_None`` でなければなりません。"
167166
168- #: ../../c-api/function.rst:125
167+ #: ../../c-api/function.rst:128
169168msgid ""
170169"Register *callback* as a function watcher for the current interpreter. "
171170"Return an ID which may be passed to :c:func:`PyFunction_ClearWatcher`. In "
172171"case of error (e.g. no more watcher IDs available), return ``-1`` and set an "
173172"exception."
174173msgstr ""
175174
176- #: ../../c-api/function.rst:135
175+ #: ../../c-api/function.rst:138
177176msgid ""
178177"Clear watcher identified by *watcher_id* previously returned from :c:func:"
179178"`PyFunction_AddWatcher` for the current interpreter. Return ``0`` on "
180179"success, or ``-1`` and set an exception on error (e.g. if the given "
181180"*watcher_id* was never registered.)"
182181msgstr ""
183182
184- #: ../../c-api/function.rst:145
183+ #: ../../c-api/function.rst:148
185184msgid ""
186185"Enumeration of possible function watcher events: - "
187186"``PyFunction_EVENT_CREATE`` - ``PyFunction_EVENT_DESTROY`` - "
188187"``PyFunction_EVENT_MODIFY_CODE`` - ``PyFunction_EVENT_MODIFY_DEFAULTS`` - "
189188"``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
190189msgstr ""
191190
192- #: ../../c-api/function.rst:157
191+ #: ../../c-api/function.rst:160
193192msgid "Type of a function watcher callback function."
194193msgstr ""
195194
196- #: ../../c-api/function.rst:159
195+ #: ../../c-api/function.rst:162
197196msgid ""
198197"If *event* is ``PyFunction_EVENT_CREATE`` or ``PyFunction_EVENT_DESTROY`` "
199198"then *new_value* will be ``NULL``. Otherwise, *new_value* will hold a :term:"
200199"`borrowed reference` to the new value that is about to be stored in *func* "
201200"for the attribute that is being modified."
202201msgstr ""
203202
204- #: ../../c-api/function.rst:164
203+ #: ../../c-api/function.rst:167
205204msgid ""
206205"The callback may inspect but must not modify *func*; doing so could have "
207206"unpredictable effects, including infinite recursion."
208207msgstr ""
209208
210- #: ../../c-api/function.rst:167
209+ #: ../../c-api/function.rst:170
211210msgid ""
212211"If *event* is ``PyFunction_EVENT_CREATE``, then the callback is invoked "
213212"after `func` has been fully initialized. Otherwise, the callback is invoked "
@@ -219,22 +218,22 @@ msgid ""
219218"semantics of the Python code being executed."
220219msgstr ""
221220
222- #: ../../c-api/function.rst:176
221+ #: ../../c-api/function.rst:179
223222msgid ""
224223"If *event* is ``PyFunction_EVENT_DESTROY``, Taking a reference in the "
225224"callback to the about-to-be-destroyed function will resurrect it, preventing "
226225"it from being freed at this time. When the resurrected object is destroyed "
227226"later, any watcher callbacks active at that time will be called again."
228227msgstr ""
229228
230- #: ../../c-api/function.rst:181
229+ #: ../../c-api/function.rst:184
231230msgid ""
232231"If the callback sets an exception, it must return ``-1``; this exception "
233232"will be printed as an unraisable exception using :c:func:"
234233"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
235234msgstr ""
236235
237- #: ../../c-api/function.rst:185
236+ #: ../../c-api/function.rst:188
238237msgid ""
239238"There may already be a pending exception set on entry to the callback. In "
240239"this case, the callback should return ``0`` with the same exception still "
0 commit comments