@@ -1500,6 +1500,11 @@ msgid ""
1500
1500
"`IndexError` or a :exc:`StopIteration` is encountered (or when the index "
1501
1501
"drops below zero)."
1502
1502
msgstr ""
1503
+ "ミュータブルなシーケンスに対する前方および逆方向イテレータはインデックスを"
1504
+ "使って要素にアクセスします。インデックスは、仮に参照するシーケンスが変化した"
1505
+ "としても前方 (または後方) に進み続けます。イテレータは :exc:`IndexError` また"
1506
+ "は :exc:`StopIteration` に出会った場合 (またはインデックスがゼロより小さく"
1507
+ "なった場合) にのみ終了します。"
1503
1508
1504
1509
#: ../../library/stdtypes.rst:937
1505
1510
msgid ""
@@ -5827,6 +5832,12 @@ msgid ""
5827
5832
"may not be used as keys. Values that compare equal (such as ``1``, ``1.0``, "
5828
5833
"and ``True``) can be used interchangeably to index the same dictionary entry."
5829
5834
msgstr ""
5835
+ "辞書のキーには、*ほぼ*どんな値も使うことができます。\n"
5836
+ "キーとして使えないのは、 :term:`hashable` (ハッシュ可能) でない値、すなわちリ"
5837
+ "ストや辞書のようなミュータブルな型 (内包する値ではなくオブジェクト自体が同一"
5838
+ "であるかによって比較が行われるような型)です。\n"
5839
+ "比較した際に等しいとみなされる値 (例えば ``1`` と ``1.0`` と ``True``) は、ど"
5840
+ "れを使っても同じエントリーに関連付けられます。"
5830
5841
5831
5842
#: ../../library/stdtypes.rst:4353
5832
5843
msgid ""
@@ -6011,6 +6022,13 @@ msgid ""
6011
6022
"an empty list. To get distinct values, use a :ref:`dict comprehension "
6012
6023
"<dict>` instead."
6013
6024
msgstr ""
6025
+ ":meth:`fromkeys` は新しい辞書を返すクラスメソッドです。\n"
6026
+ "*value* はデフォルトで ``None`` となります。\n"
6027
+ "作られる辞書内のすべての値が同一のインスタンスを指すことになるため、*value* "
6028
+ "にミュータブルなオブジェクト (例えば空のリスト) を指定しても通常意味はありま"
6029
+ "せん。\n"
6030
+ "別々の値を指すようにしたい場合は、代わりに :ref:`辞書内包表記 <dict>` を使用"
6031
+ "してください。"
6014
6032
6015
6033
#: ../../library/stdtypes.rst:4477
6016
6034
msgid ""
@@ -6126,20 +6144,29 @@ msgid ""
6126
6144
"always return ``False``. This also applies when comparing ``dict.values()`` "
6127
6145
"to itself::"
6128
6146
msgstr ""
6147
+ "``dict.values()`` で得られた2つのビューの等しさを比較すると、必ず ``False`` "
6148
+ "が返ります。\n"
6149
+ "``dict.values()`` どうしを比較したときも同様です::"
6129
6150
6130
6151
#: ../../library/stdtypes.rst:4548
6131
6152
msgid ""
6132
6153
"Create a new dictionary with the merged keys and values of *d* and *other*, "
6133
6154
"which must both be dictionaries. The values of *other* take priority when "
6134
6155
"*d* and *other* share keys."
6135
6156
msgstr ""
6157
+ "*d* と *other* のキーと値を統合した新しい辞書を作成します。\n"
6158
+ "*d* と *other* のキーに重複がある場合は、 *other* の方の値が優先されます。"
6136
6159
6137
6160
#: ../../library/stdtypes.rst:4556
6138
6161
msgid ""
6139
6162
"Update the dictionary *d* with keys and values from *other*, which may be "
6140
6163
"either a :term:`mapping` or an :term:`iterable` of key/value pairs. The "
6141
6164
"values of *other* take priority when *d* and *other* share keys."
6142
6165
msgstr ""
6166
+ "辞書 *d* のキーと値を *other* で更新します。\n"
6167
+ "*other* は :term:`マッピング <mapping>` か、またはキーと値のペアの :term:`イ"
6168
+ "テラブル <iterable>` です。\n"
6169
+ "*d* と *other* のキーに重複がある場合は、 *other* の方の値が優先されます。"
6143
6170
6144
6171
#: ../../library/stdtypes.rst:4562
6145
6172
msgid ""
@@ -6170,11 +6197,11 @@ msgstr ""
6170
6197
6171
6198
#: ../../library/stdtypes.rst:4588
6172
6199
msgid "Dictionaries and dictionary views are reversible. ::"
6173
- msgstr ""
6200
+ msgstr "辞書と辞書のビューは ``reversed()`` で順序を逆にすることができます:: "
6174
6201
6175
6202
#: ../../library/stdtypes.rst:4600
6176
6203
msgid "Dictionaries are now reversible."
6177
- msgstr ""
6204
+ msgstr "辞書がリバース可能になりました。 "
6178
6205
6179
6206
#: ../../library/stdtypes.rst:4605
6180
6207
msgid ""
@@ -6257,16 +6284,20 @@ msgid ""
6257
6284
"Return a reverse iterator over the keys, values or items of the dictionary. "
6258
6285
"The view will be iterated in reverse order of the insertion."
6259
6286
msgstr ""
6287
+ "辞書のキーもしくは値、項目の順序を逆にしたイテレーターを返します。\n"
6288
+ "戻り値のビューは、挿入された順とは逆の順でイテレートします。"
6260
6289
6261
6290
#: ../../library/stdtypes.rst:4652
6262
6291
msgid "Dictionary views are now reversible."
6263
- msgstr ""
6292
+ msgstr "辞書のビューがリバース可能になりました。 "
6264
6293
6265
6294
#: ../../library/stdtypes.rst:4657
6266
6295
msgid ""
6267
6296
"Return a :class:`types.MappingProxyType` that wraps the original dictionary "
6268
6297
"to which the view refers."
6269
6298
msgstr ""
6299
+ "ビューの参照先の辞書をラップする :class:`types.MappingProxyType` オブジェク"
6300
+ "ト を返します。"
6270
6301
6271
6302
#: ../../library/stdtypes.rst:4662
6272
6303
msgid ""
@@ -6432,16 +6463,21 @@ msgid ""
6432
6463
"Type Annotation Types --- :ref:`Generic Alias <types-genericalias>`, :ref:"
6433
6464
"`Union <types-union>`"
6434
6465
msgstr ""
6466
+ "型アノテーション型 --- :ref:`ジェネリックエイリアス <types-"
6467
+ "genericalias>` 、 :ref:`ユニオン <types-union>`"
6435
6468
6436
6469
#: ../../library/stdtypes.rst:4788
6437
6470
msgid ""
6438
6471
"The core built-in types for :term:`type annotations <annotation>` are :ref:"
6439
6472
"`Generic Alias <types-genericalias>` and :ref:`Union <types-union>`."
6440
6473
msgstr ""
6474
+ ":term:`型アノテーション <annotation>` の中心となる組み込みの型は :ref:`ジェネ"
6475
+ "リックエイリアス <types-genericalias>` と :ref:`ユニオン <types-union>` で"
6476
+ "す。"
6441
6477
6442
6478
#: ../../library/stdtypes.rst:4795
6443
6479
msgid "Generic Alias Type"
6444
- msgstr ""
6480
+ msgstr "ジェネリックエイリアス型 "
6445
6481
6446
6482
#: ../../library/stdtypes.rst:4801
6447
6483
msgid ""
@@ -6452,12 +6488,22 @@ msgid ""
6452
6488
"the ``list`` class with the argument :class:`int`. ``GenericAlias`` objects "
6453
6489
"are intended primarily for use with :term:`type annotations <annotation>`."
6454
6490
msgstr ""
6491
+ "``GenericAlias`` オブジェクトは一般的に、クラスに :ref:`添字表記 "
6492
+ "<subscriptions>` をすることで作られます。\n"
6493
+ ":class:`list` や :class:`dict` のような :ref:`コンテナ系のクラス <sequence-"
6494
+ "types>` に対して使われることがほとんどです。\n"
6495
+ "例えば、 ``list[int]`` は ``list`` クラスに :class:`int` という引数を与えた添"
6496
+ "字表記をすることで作られる ``GenericAlias`` オブジェクトです。\n"
6497
+ "``GenericAlias`` オブジェクトは主に :term:`型アノテーション <annotation>` の"
6498
+ "用途で使われます。"
6455
6499
6456
6500
#: ../../library/stdtypes.rst:4811
6457
6501
msgid ""
6458
6502
"It is generally only possible to subscript a class if the class implements "
6459
6503
"the special method :meth:`~object.__class_getitem__`."
6460
6504
msgstr ""
6505
+ "一般に、クラスへの添字表記は、そのクラスが特殊メソッド :meth:`~object."
6506
+ "__class_getitem__` を実装しているときに限り可能です。"
6461
6507
6462
6508
#: ../../library/stdtypes.rst:4814
6463
6509
msgid ""
0 commit comments