@@ -18,7 +18,7 @@ msgid ""
18
18
msgstr ""
19
19
"Project-Id-Version : Python 3.7\n "
20
20
"Report-Msgid-Bugs-To : \n "
21
- "POT-Creation-Date : 2019-02-22 10:42 +0900\n "
21
+ "POT-Creation-Date : 2019-03-17 10:52 +0900\n "
22
22
"PO-Revision-Date : 2017-02-16 23:03+0000\n "
23
23
"Last-Translator : tomo, 2019\n "
24
24
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -1152,35 +1152,28 @@ msgstr ""
1152
1152
1153
1153
#: ../../library/collections.rst:1019
1154
1154
msgid ""
1155
- "`Recipe for named tuple abstract base class with a metaclass mix-in "
1156
- "<https://code.activestate.com/recipes/577629-namedtupleabc-abstract-base-"
1157
- "class-mix-in-for-named/>`_ by Jan Kaliszewski. Besides providing an "
1158
- ":term:`abstract base class` for named tuples, it also supports an alternate "
1159
- ":term:`metaclass`-based constructor that is convenient for use cases where "
1160
- "named tuples are being subclassed."
1155
+ "See :class:`typing.NamedTuple` for a way to add type hints for named tuples."
1156
+ " It also provides an elegant notation using the :keyword:`class` keyword::"
1161
1157
msgstr ""
1162
- "Jan Kaliszewski による `名前付きタプル抽象基底クラスとメタクラス mix-in のレシピ "
1163
- "<https://code.activestate.com/recipes/577629-namedtupleabc-abstract-base-"
1164
- "class-mix-in-for-named/>`_ 。名前付きタプルの :term:`abstract base class` を提供するだけでなく、"
1165
- " :term:`metaclass` に基づくコンストラクタの代わりもサポートするので、名前付きタプルがサブクラス化されるユースケースで便利です。"
1166
1158
1167
- #: ../../library/collections.rst:1026
1159
+ #: ../../library/collections.rst:1028
1168
1160
msgid ""
1169
1161
"See :meth:`types.SimpleNamespace` for a mutable namespace based on an "
1170
1162
"underlying dictionary instead of a tuple."
1171
1163
msgstr ""
1172
1164
"タプルではなく、辞書をもとにした変更可能な名前空間を作成するには :meth:`types.SimpleNamespace` を参照してください。"
1173
1165
1174
- #: ../../library/collections.rst:1029
1166
+ #: ../../library/collections.rst:1031
1175
1167
msgid ""
1176
- "See :meth:`typing.NamedTuple` for a way to add type hints for named tuples."
1177
- msgstr "名前付きタプルに型ヒントを追加する方法については、 :meth:`typing.NamedTuple` を参照してください。"
1168
+ "The :mod:`dataclasses` module provides a decorator and functions for "
1169
+ "automatically adding generated special methods to user-defined classes."
1170
+ msgstr ""
1178
1171
1179
- #: ../../library/collections.rst:1033
1172
+ #: ../../library/collections.rst:1036
1180
1173
msgid ":class:`OrderedDict` objects"
1181
1174
msgstr ":class:`OrderedDict` オブジェクト"
1182
1175
1183
- #: ../../library/collections.rst:1035
1176
+ #: ../../library/collections.rst:1038
1184
1177
msgid ""
1185
1178
"Ordered dictionaries are just like regular dictionaries but have some extra "
1186
1179
"capabilities relating to ordering operations. They have become less "
@@ -1191,19 +1184,19 @@ msgstr ""
1191
1184
"順序付き辞書は普通の辞書のようですが、順序操作に関係する追加の機能があります。\n"
1192
1185
"組み込みの :class:`dict` クラスが挿入順序を記憶しておく機能 (この新しい振る舞いは Python 3.7 で保証されるようになりました) を獲得した今となっては、順序付き辞書の重要性は薄れました。"
1193
1186
1194
- #: ../../library/collections.rst:1041
1187
+ #: ../../library/collections.rst:1044
1195
1188
msgid "Some differences from :class:`dict` still remain:"
1196
1189
msgstr "いまだ残っている :class:`dict` との差分:"
1197
1190
1198
- #: ../../library/collections.rst:1043
1191
+ #: ../../library/collections.rst:1046
1199
1192
msgid ""
1200
1193
"The regular :class:`dict` was designed to be very good at mapping "
1201
1194
"operations. Tracking insertion order was secondary."
1202
1195
msgstr ""
1203
1196
"通常の :class:`dict` は対応付けに向いているように設計されました。\n"
1204
1197
"挿入順序の追跡は二の次です。"
1205
1198
1206
- #: ../../library/collections.rst:1046
1199
+ #: ../../library/collections.rst:1049
1207
1200
msgid ""
1208
1201
"The :class:`OrderedDict` was designed to be good at reordering operations. "
1209
1202
"Space efficiency, iteration speed, and the performance of update operations "
@@ -1212,7 +1205,7 @@ msgstr ""
1212
1205
":class:`OrderedDict` は並べ替え操作に向いているように設計されました。\n"
1213
1206
"空間効率、反復処理の速度、更新操作のパフォーマンスは二の次です。"
1214
1207
1215
- #: ../../library/collections.rst:1050
1208
+ #: ../../library/collections.rst:1053
1216
1209
msgid ""
1217
1210
"Algorithmically, :class:`OrderedDict` can handle frequent reordering "
1218
1211
"operations better than :class:`dict`. This makes it suitable for tracking "
@@ -1223,37 +1216,37 @@ msgstr ""
1223
1216
"アルゴリズム的に、 :class:`OrderedDict` は高頻度の並べ替え操作を :class:`dict` よりも上手く扱えます。\n"
1224
1217
"この性質により、 :class:`OrderedDict` は直近のアクセスの追跡 (例えば、 `LRU キャッシュ <https://medium.com/@krishankantsinghal/my-first-blog-on-medium-583159139237>`_) に向いています。"
1225
1218
1226
- #: ../../library/collections.rst:1055
1219
+ #: ../../library/collections.rst:1058
1227
1220
msgid ""
1228
1221
"The equality operation for :class:`OrderedDict` checks for matching order."
1229
1222
msgstr ":class:`OrderedDict` に対する等価演算は突き合わせ順序もチェックします。"
1230
1223
1231
- #: ../../library/collections.rst:1057
1224
+ #: ../../library/collections.rst:1060
1232
1225
msgid ""
1233
1226
"The :meth:`popitem` method of :class:`OrderedDict` has a different "
1234
1227
"signature. It accepts an optional argument to specify which item is popped."
1235
1228
msgstr ""
1236
1229
":class:`OrderedDict` の :meth:`popitem` メソッドはシグネチャが異なります。\n"
1237
1230
"どの要素を取り出すかを指定するオプション引数を受け付けます。"
1238
1231
1239
- #: ../../library/collections.rst:1060
1232
+ #: ../../library/collections.rst:1063
1240
1233
msgid ""
1241
1234
":class:`OrderedDict` has a :meth:`move_to_end` method to efficiently "
1242
1235
"reposition an element to an endpoint."
1243
1236
msgstr ""
1244
1237
":class:`OrderedDict` には、 効率的に要素を末尾に置き直す :meth:`move_to_end` メソッドがあります。"
1245
1238
1246
- #: ../../library/collections.rst:1063
1239
+ #: ../../library/collections.rst:1066
1247
1240
msgid "Until Python 3.8, :class:`dict` lacked a :meth:`__reversed__` method."
1248
1241
msgstr "Python 3.8 以前は、 :class:`dict` には :meth:`__reversed__` メソッドが欠けています。"
1249
1242
1250
- #: ../../library/collections.rst:1068
1243
+ #: ../../library/collections.rst:1071
1251
1244
msgid ""
1252
1245
"Return an instance of a :class:`dict` subclass that has methods specialized "
1253
1246
"for rearranging dictionary order."
1254
1247
msgstr "辞書の順序を並べ直すためのメソッドを持つ :class:`dict` のサブクラスのインスタンスを返します。"
1255
1248
1256
- #: ../../library/collections.rst:1075
1249
+ #: ../../library/collections.rst:1078
1257
1250
msgid ""
1258
1251
"The :meth:`popitem` method for ordered dictionaries returns and removes a "
1259
1252
"(key, value) pair. The pairs are returned in :abbr:`LIFO (last-in, first-"
@@ -1264,7 +1257,7 @@ msgstr ""
1264
1257
":abbr:`LIFO (last-in, first-out, 後入先出)` で、偽なら :abbr:`FIFO (first-in, first-"
1265
1258
"out, 先入先出)` で返されます。"
1266
1259
1267
- #: ../../library/collections.rst:1082
1260
+ #: ../../library/collections.rst:1085
1268
1261
msgid ""
1269
1262
"Move an existing *key* to either end of an ordered dictionary. The item is "
1270
1263
"moved to the right end if *last* is true (the default) or to the beginning "
@@ -1273,13 +1266,13 @@ msgstr ""
1273
1266
"既存の *key* を順序付き辞書の両端に移動します。項目は、 *last* が真 (デフォルト) なら右端に、 *last* "
1274
1267
"が偽なら最初に移動されます。 *key* が存在しなければ :exc:`KeyError` を送出します::"
1275
1268
1276
- #: ../../library/collections.rst:1097
1269
+ #: ../../library/collections.rst:1100
1277
1270
msgid ""
1278
1271
"In addition to the usual mapping methods, ordered dictionaries also support "
1279
1272
"reverse iteration using :func:`reversed`."
1280
1273
msgstr "通常のマッピングのメソッドに加え、順序付き辞書は :func:`reversed` による逆順の反復もサポートしています。"
1281
1274
1282
- #: ../../library/collections.rst:1100
1275
+ #: ../../library/collections.rst:1103
1283
1276
msgid ""
1284
1277
"Equality tests between :class:`OrderedDict` objects are order-sensitive and "
1285
1278
"are implemented as ``list(od1.items())==list(od2.items())``. Equality tests "
@@ -1293,15 +1286,15 @@ msgstr ""
1293
1286
"(:class:`~collections.abc.Mapping`) オブジェクトの等価判定は、順序に影響されず、通常の辞書と同様です。これによって、"
1294
1287
" :class:`OrderedDict` オブジェクトは通常の辞書が使われるところならどこでも使用できます。"
1295
1288
1296
- #: ../../library/collections.rst:1107
1289
+ #: ../../library/collections.rst:1110
1297
1290
msgid ""
1298
1291
"The items, keys, and values :term:`views <dictionary view>` of "
1299
1292
":class:`OrderedDict` now support reverse iteration using :func:`reversed`."
1300
1293
msgstr ""
1301
1294
":class:`OrderedDict` の項目、キー、値の :term:`ビュー <dictionary view>` が "
1302
1295
":func:`reversed` による逆順の反復をサポートするようになりました。"
1303
1296
1304
- #: ../../library/collections.rst:1111
1297
+ #: ../../library/collections.rst:1114
1305
1298
msgid ""
1306
1299
"With the acceptance of :pep:`468`, order is retained for keyword arguments "
1307
1300
"passed to the :class:`OrderedDict` constructor and its :meth:`update` "
@@ -1310,11 +1303,11 @@ msgstr ""
1310
1303
":pep:`468` の受理によって、:class:`OrderedDict` のコンストラクタと、:meth:`update` "
1311
1304
"メソッドに渡したキーワード引数の順序は保持されます。"
1312
1305
1313
- #: ../../library/collections.rst:1117
1306
+ #: ../../library/collections.rst:1120
1314
1307
msgid ":class:`OrderedDict` Examples and Recipes"
1315
1308
msgstr ":class:`OrderedDict` の例とレシピ"
1316
1309
1317
- #: ../../library/collections.rst:1119
1310
+ #: ../../library/collections.rst:1122
1318
1311
msgid ""
1319
1312
"It is straightforward to create an ordered dictionary variant that remembers"
1320
1313
" the order the keys were *last* inserted. If a new entry overwrites an "
@@ -1324,18 +1317,18 @@ msgstr ""
1324
1317
"キーが *最後に* 追加されたときの順序を記憶する、順序付き辞書の変種を作るのは簡単です。\n"
1325
1318
"新しい値が既存の値を上書きする場合、元々の挿入位置が最後尾へ変更されます::"
1326
1319
1327
- #: ../../library/collections.rst:1131
1320
+ #: ../../library/collections.rst:1134
1328
1321
msgid ""
1329
1322
"An :class:`OrderedDict` would also be useful for implementing variants of "
1330
1323
":func:`functools.lru_cache`::"
1331
1324
msgstr ""
1332
1325
":class:`OrderedDict` は :func:`functools.lru_cache` の変種を実装するのにも役に立ちます::"
1333
1326
1334
- #: ../../library/collections.rst:1154
1327
+ #: ../../library/collections.rst:1157
1335
1328
msgid ":class:`UserDict` objects"
1336
1329
msgstr ":class:`UserDict` オブジェクト"
1337
1330
1338
- #: ../../library/collections.rst:1156
1331
+ #: ../../library/collections.rst:1159
1339
1332
msgid ""
1340
1333
"The class, :class:`UserDict` acts as a wrapper around dictionary objects. "
1341
1334
"The need for this class has been partially supplanted by the ability to "
@@ -1346,7 +1339,7 @@ msgstr ""
1346
1339
"から直接的にサブクラス化できる能力に部分的に取って代わられました; "
1347
1340
"しかし、根底の辞書に属性としてアクセスできるので、このクラスを使った方が簡単になることもあります。"
1348
1341
1349
- #: ../../library/collections.rst:1164
1342
+ #: ../../library/collections.rst:1167
1350
1343
msgid ""
1351
1344
"Class that simulates a dictionary. The instance's contents are kept in a "
1352
1345
"regular dictionary, which is accessible via the :attr:`data` attribute of "
@@ -1358,22 +1351,22 @@ msgstr ""
1358
1351
":attr:`data` 属性を通してアクセスできます。 *initialdata* が与えられれば、 :attr:`data` "
1359
1352
"はその内容で初期化されます。他の目的のために使えるように、 *initialdata* への参照が保存されないことがあるということに注意してください。"
1360
1353
1361
- #: ../../library/collections.rst:1170
1354
+ #: ../../library/collections.rst:1173
1362
1355
msgid ""
1363
1356
"In addition to supporting the methods and operations of mappings, "
1364
1357
":class:`UserDict` instances provide the following attribute:"
1365
1358
msgstr "マッピングのメソッドと演算をサポートするのに加え、 :class:`UserDict` インスタンスは以下の属性を提供します:"
1366
1359
1367
- #: ../../library/collections.rst:1175
1360
+ #: ../../library/collections.rst:1178
1368
1361
msgid ""
1369
1362
"A real dictionary used to store the contents of the :class:`UserDict` class."
1370
1363
msgstr ":class:`UserDict` クラスの内容を保存するために使われる実際の辞書です。"
1371
1364
1372
- #: ../../library/collections.rst:1181
1365
+ #: ../../library/collections.rst:1184
1373
1366
msgid ":class:`UserList` objects"
1374
1367
msgstr ":class:`UserList` オブジェクト"
1375
1368
1376
- #: ../../library/collections.rst:1183
1369
+ #: ../../library/collections.rst:1186
1377
1370
msgid ""
1378
1371
"This class acts as a wrapper around list objects. It is a useful base class"
1379
1372
" for your own list-like classes which can inherit from them and override "
@@ -1382,7 +1375,7 @@ msgid ""
1382
1375
msgstr ""
1383
1376
"このクラスはリストオブジェクトのラッパとしてはたらきます。これは独自のリスト風クラスの基底クラスとして便利で、既存のメソッドをオーバーライドしたり新しいメソッドを加えたりできます。こうして、リストに新しい振る舞いを加えられます。"
1384
1377
1385
- #: ../../library/collections.rst:1188
1378
+ #: ../../library/collections.rst:1191
1386
1379
msgid ""
1387
1380
"The need for this class has been partially supplanted by the ability to "
1388
1381
"subclass directly from :class:`list`; however, this class can be easier to "
@@ -1391,7 +1384,7 @@ msgstr ""
1391
1384
"このクラスの必要性は、 :class:`list` から直接的にサブクラス化できる能力に部分的に取って代わられました; "
1392
1385
"しかし、根底のリストに属性としてアクセスできるので、このクラスを使った方が簡単になることもあります。"
1393
1386
1394
- #: ../../library/collections.rst:1194
1387
+ #: ../../library/collections.rst:1197
1395
1388
msgid ""
1396
1389
"Class that simulates a list. The instance's contents are kept in a regular "
1397
1390
"list, which is accessible via the :attr:`data` attribute of "
@@ -1403,19 +1396,19 @@ msgstr ""
1403
1396
":attr:`data` 属性を通してアクセスできます。インスタンスの内容は最初に *list* のコピーに設定されますが、デフォルトでは空リスト "
1404
1397
"``[]`` です。 *list* は何らかのイテラブル、例えば通常の Python リストや :class:`UserList` オブジェクト、です。"
1405
1398
1406
- #: ../../library/collections.rst:1200
1399
+ #: ../../library/collections.rst:1203
1407
1400
msgid ""
1408
1401
"In addition to supporting the methods and operations of mutable sequences, "
1409
1402
":class:`UserList` instances provide the following attribute:"
1410
1403
msgstr "ミュータブルシーケンスのメソッドと演算をサポートするのに加え、 :class:`UserList` インスタンスは以下の属性を提供します:"
1411
1404
1412
- #: ../../library/collections.rst:1205
1405
+ #: ../../library/collections.rst:1208
1413
1406
msgid ""
1414
1407
"A real :class:`list` object used to store the contents of the "
1415
1408
":class:`UserList` class."
1416
1409
msgstr ":class:`UserList` クラスの内容を保存するために使われる実際の :class:`list` オブジェクトです。"
1417
1410
1418
- #: ../../library/collections.rst:1208
1411
+ #: ../../library/collections.rst:1211
1419
1412
msgid ""
1420
1413
"**Subclassing requirements:** Subclasses of :class:`UserList` are expected "
1421
1414
"to offer a constructor which can be called with either no arguments or one "
@@ -1427,7 +1420,7 @@ msgstr ""
1427
1420
"**サブクラス化の要件:** :class:`UserList` "
1428
1421
"のサブクラスは引数なしか、あるいは一つの引数のどちらかとともに呼び出せるコンストラクタを提供することが期待されています。新しいシーケンスを返すリスト演算は現在の実装クラスのインスタンスを作成しようとします。そのために、データ元として使われるシーケンスオブジェクトである一つのパラメータとともにコンストラクタを呼び出せると想定しています。"
1429
1422
1430
- #: ../../library/collections.rst:1215
1423
+ #: ../../library/collections.rst:1218
1431
1424
msgid ""
1432
1425
"If a derived class does not wish to comply with this requirement, all of the"
1433
1426
" special methods supported by this class will need to be overridden; please "
@@ -1436,11 +1429,11 @@ msgid ""
1436
1429
msgstr ""
1437
1430
"派生クラスがこの要求に従いたくないならば、このクラスがサポートしているすべての特殊メソッドはオーバーライドされる必要があります。その場合に提供される必要のあるメソッドについての情報は、ソースを参考にしてください。"
1438
1431
1439
- #: ../../library/collections.rst:1221
1432
+ #: ../../library/collections.rst:1224
1440
1433
msgid ":class:`UserString` objects"
1441
1434
msgstr ":class:`UserString` オブジェクト"
1442
1435
1443
- #: ../../library/collections.rst:1223
1436
+ #: ../../library/collections.rst:1226
1444
1437
msgid ""
1445
1438
"The class, :class:`UserString` acts as a wrapper around string objects. The "
1446
1439
"need for this class has been partially supplanted by the ability to subclass"
@@ -1451,7 +1444,7 @@ msgstr ""
1451
1444
"から直接的にサブクラス化できる能力に部分的に取って代わられました; "
1452
1445
"しかし、根底の文字列に属性としてアクセスできるので、このクラスを使った方が簡単になることもあります。"
1453
1446
1454
- #: ../../library/collections.rst:1231
1447
+ #: ../../library/collections.rst:1234
1455
1448
msgid ""
1456
1449
"Class that simulates a string object. The instance's content is kept in a "
1457
1450
"regular string object, which is accessible via the :attr:`data` attribute of"
@@ -1464,19 +1457,19 @@ msgstr ""
1464
1457
"インスタンスの内容には最初に *seq* のコピーが設定されます。\n"
1465
1458
"*seq* 引数は、組み込みの :func:`str` 関数で文字列に変換できる任意のオブジェクトです。"
1466
1459
1467
- #: ../../library/collections.rst:1238
1460
+ #: ../../library/collections.rst:1241
1468
1461
msgid ""
1469
1462
"In addition to supporting the methods and operations of strings, "
1470
1463
":class:`UserString` instances provide the following attribute:"
1471
1464
msgstr "文字列のメソッドと演算をサポートするのに加え、 :class:`UserString` インスタンスは次の属性を提供します:"
1472
1465
1473
- #: ../../library/collections.rst:1243
1466
+ #: ../../library/collections.rst:1246
1474
1467
msgid ""
1475
1468
"A real :class:`str` object used to store the contents of the "
1476
1469
":class:`UserString` class."
1477
1470
msgstr ":class:`UserString` クラスの内容を保存するために使われる実際の :class:`str` オブジェクトです。"
1478
1471
1479
- #: ../../library/collections.rst:1246
1472
+ #: ../../library/collections.rst:1249
1480
1473
msgid ""
1481
1474
"New methods ``__getnewargs__``, ``__rmod__``, ``casefold``, ``format_map``, "
1482
1475
"``isprintable``, and ``maketrans``."
0 commit comments