@@ -15,7 +15,7 @@ msgid ""
15
15
msgstr ""
16
16
"Project-Id-Version :Python 3.14\n "
17
17
"Report-Msgid-Bugs-To :\n "
18
- "POT-Creation-Date :2025-05-30 14:22 +0000\n "
18
+ "POT-Creation-Date :2025-06-06 14:20 +0000\n "
19
19
"PO-Revision-Date :2021-06-28 01:08+0000\n "
20
20
"Last-Translator :Takeshi Nakazato, 2025\n "
21
21
"Language-Team :Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -1124,6 +1124,12 @@ msgid ""
1124
1124
"documentation string from the inheritance hierarchy. Return ``None`` if the "
1125
1125
"documentation string is invalid or missing."
1126
1126
msgstr ""
1127
+ "オブジェクトのドキュメンテーション文字列を、 :func:`cleandoc` で整理した上で"
1128
+ "取得します。オブジェクトに対するドキュメンテーション文字列が与えられていない"
1129
+ "場合で、かつオブジェクトがクラス、メソッド、プロパティ、デスクリプタのいずれ"
1130
+ "かである場合、継承の階層構造からドキュメンテーション文字列を探し出して返しま"
1131
+ "す。ドキュメンテーション文字列がないか、または不正な場合は ``None`` を返しま"
1132
+ "す。"
1127
1133
1128
1134
#: ../../library/inspect.rst:627
1129
1135
msgid "Documentation strings are now inherited if not overridden."
@@ -1139,6 +1145,11 @@ msgid ""
1139
1145
"code is unavailable, return ``None``. This could happen if the object has "
1140
1146
"been defined in C or the interactive shell."
1141
1147
msgstr ""
1148
+ "オブジェクトのソースコード直前 (クラス、関数、メソッドの場合) または Python "
1149
+ "ソースファイルの先頭 (モジュールの場合) の任意の行数にわたるコメントを、ひと"
1150
+ "つの文字列として返します。オブジェクトのソースコードが存在しない場合は "
1151
+ "``None`` を返します。オブジェクトが C で定義されている場合や、対話型シェルで"
1152
+ "定義したオブジェクトの場合にこのようなことが起こり得ます。"
1142
1153
1143
1154
#: ../../library/inspect.rst:642
1144
1155
msgid ""
@@ -1155,13 +1166,18 @@ msgid ""
1155
1166
"Try to guess which module an object was defined in. Return ``None`` if the "
1156
1167
"module cannot be determined."
1157
1168
msgstr ""
1169
+ "オブジェクトが定義されているモジュールの推定を試みます。モジュールが決められ"
1170
+ "ない場合は ``None`` を返します。"
1158
1171
1159
1172
#: ../../library/inspect.rst:655
1160
1173
msgid ""
1161
1174
"Return the name of the Python source file in which an object was defined or "
1162
1175
"``None`` if no way can be identified to get the source. This will fail with "
1163
1176
"a :exc:`TypeError` if the object is a built-in module, class, or function."
1164
1177
msgstr ""
1178
+ "オブジェクトが定義されている Python ソースファイルの名前を返します。ソースを"
1179
+ "取得する方法がない場合は ``None`` を返します。組み込みのモジュール、クラス、"
1180
+ "関数に対しては :exc:`TypeError` で失敗します。"
1165
1181
1166
1182
#: ../../library/inspect.rst:663
1167
1183
msgid ""
@@ -1173,6 +1189,13 @@ msgid ""
1173
1189
"code cannot be retrieved. A :exc:`TypeError` is raised if the object is a "
1174
1190
"built-in module, class, or function."
1175
1191
msgstr ""
1192
+ "オブジェクトを定義しているソースコードの行のリストと、定義の開始行番号を返し"
1193
+ "ます。引数にはモジュール、クラス、メソッド、関数、トレースバック、またはコー"
1194
+ "ドオブジェクトを渡すことができます。オブジェクトに対応するソースコードが行の"
1195
+ "リストとして返されます。また行番号は、元のソースファイル中でコードが見つかっ"
1196
+ "た最初の行を示します。ソースコードを探し出すことができなかった場合、 :exc:"
1197
+ "`OSError` 例外が送出されます。オブジェクトが組み込みのモジュール、クラス、ま"
1198
+ "たは関数である場合は :exc:`TypeError` 例外が送出されます。"
1176
1199
1177
1200
#: ../../library/inspect.rst:672 ../../library/inspect.rst:686
1178
1201
msgid ""
@@ -1190,6 +1213,12 @@ msgid ""
1190
1213
"the source code cannot be retrieved. A :exc:`TypeError` is raised if the "
1191
1214
"object is a built-in module, class, or function."
1192
1215
msgstr ""
1216
+ "オブジェクトを定義しているソースコードのテキストを返します。引数にはモジュー"
1217
+ "ル、クラス、メソッド、関数、トレースバック、フレーム、またはコードオブジェク"
1218
+ "トを渡すことができます。ソースコードはひとつの文字列として返されます。ソース"
1219
+ "コードを探し出すことができなかった場合、 :exc:`OSError` 例外が送出されます。"
1220
+ "オブジェクトが組み込みのモジュール、クラス、または関数である場合は :exc:"
1221
+ "`TypeError` 例外が送出されます。"
1193
1222
1194
1223
#: ../../library/inspect.rst:693
1195
1224
msgid ""
@@ -1219,10 +1248,15 @@ msgid ""
1219
1248
"object and its return annotation. To retrieve a :class:`!Signature` object, "
1220
1249
"use the :func:`!signature` function."
1221
1250
msgstr ""
1251
+ ":class:`Signature` オブジェクトは、呼び出し可能オブジェクトの呼び出しシグネ"
1252
+ "チャと戻り値のアノテーションを表現します。 :class:`!Signature` オブジェクトを"
1253
+ "取得するには、 :func:`!signature` 関数を使ってください。"
1222
1254
1223
1255
#: ../../library/inspect.rst:716
1224
1256
msgid "Return a :class:`Signature` object for the given *callable*:"
1225
1257
msgstr ""
1258
+ "*callable* で与えられたオブジェクトに対する :class:`Signature` オブジェクトを"
1259
+ "返します:"
1226
1260
1227
1261
#: ../../library/inspect.rst:718
1228
1262
msgid ""
@@ -1241,6 +1275,20 @@ msgid ""
1241
1275
">>> sig.parameters['b'].annotation\n"
1242
1276
"<class 'int'>"
1243
1277
msgstr ""
1278
+ ">>> from inspect import signature\n"
1279
+ ">>> def foo(a, *, b:int, **kwargs):\n"
1280
+ "... pass\n"
1281
+ "\n"
1282
+ ">>> sig = signature(foo)\n"
1283
+ "\n"
1284
+ ">>> str(sig)\n"
1285
+ "'(a, *, b: int, **kwargs)'\n"
1286
+ "\n"
1287
+ ">>> str(sig.parameters['b'])\n"
1288
+ "'b: int'\n"
1289
+ "\n"
1290
+ ">>> sig.parameters['b'].annotation\n"
1291
+ "<class 'int'>"
1244
1292
1245
1293
#: ../../library/inspect.rst:735
1246
1294
msgid ""