@@ -19,7 +19,7 @@ msgid ""
19
19
msgstr ""
20
20
"Project-Id-Version : Python 3.11\n "
21
21
"Report-Msgid-Bugs-To : \n "
22
- "POT-Creation-Date : 2023-01-27 14:14+0000\n "
22
+ "POT-Creation-Date : 2023-02-03 14:14+0000\n "
23
23
"PO-Revision-Date : 2021-06-28 01:06+0000\n "
24
24
"Last-Translator : Takeshi Nakazato, 2023\n "
25
25
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ "
@@ -3475,50 +3475,70 @@ msgid ""
3475
3475
"the code that prepared these iterables. Python offers three different "
3476
3476
"approaches to dealing with this issue:"
3477
3477
msgstr ""
3478
+ "ここで考慮すべきことは、 :func:`zip` に渡されるイテラブルが異なる長さを持つこ"
3479
+ "とがあるという点です; ときには意図的な場合もあり、またときにはイテラブルを準"
3480
+ "備するコードにおけるバグのこともあるでしょう。 Python はこの問題に対して3つの"
3481
+ "異なるアプローチを提供します:"
3478
3482
3479
3483
#: ../../library/functions.rst:1911
3480
3484
msgid ""
3481
3485
"By default, :func:`zip` stops when the shortest iterable is exhausted. It "
3482
3486
"will ignore the remaining items in the longer iterables, cutting off the "
3483
3487
"result to the length of the shortest iterable::"
3484
3488
msgstr ""
3489
+ "デフォルトでは、 :func:`zip` は最も短いイテラブルが消費しきった時点で停止しま"
3490
+ "す。より繰り返し数の長いイテラブルの残りの要素は無視して、結果を最も短いイテ"
3491
+ "ラブルの長さに切り詰めます::"
3485
3492
3486
3493
#: ../../library/functions.rst:1918
3487
3494
msgid ""
3488
3495
":func:`zip` is often used in cases where the iterables are assumed to be of "
3489
3496
"equal length. In such cases, it's recommended to use the ``strict=True`` "
3490
3497
"option. Its output is the same as regular :func:`zip`::"
3491
3498
msgstr ""
3499
+ ":func:`zip` は、しばしば受け取ったイテラブルが全て同じ長さであるという想定の"
3500
+ "下で使われます。そのような場合、 ``strict=True`` オプションの利用が推奨されま"
3501
+ "す。その出力は通常の :func:`zip` と同じです::"
3492
3502
3493
3503
#: ../../library/functions.rst:1925
3494
3504
msgid ""
3495
3505
"Unlike the default behavior, it raises a :exc:`ValueError` if one iterable "
3496
3506
"is exhausted before the others:"
3497
3507
msgstr ""
3508
+ "しかし、デフォルトの動作と異なり、あるイテラブルが他のイテラブルよりも先に消"
3509
+ "費しきった場合に :exc:`ValueError`例外を送出します:"
3498
3510
3499
3511
#: ../../library/functions.rst:1943
3500
3512
msgid ""
3501
3513
"Without the ``strict=True`` argument, any bug that results in iterables of "
3502
3514
"different lengths will be silenced, possibly manifesting as a hard-to-find "
3503
3515
"bug in another part of the program."
3504
3516
msgstr ""
3517
+ "``strict=True`` 引数なしの場合、長さの異なるイテラブルを生じる原因となるいか"
3518
+ "なるバグも、この時点では問題なく処理されます。そして代わりにプログラムの別の"
3519
+ "場所で、原因を特定しにくいバグとして検出されることになるでしょう。"
3505
3520
3506
3521
#: ../../library/functions.rst:1947
3507
3522
msgid ""
3508
3523
"Shorter iterables can be padded with a constant value to make all the "
3509
3524
"iterables have the same length. This is done by :func:`itertools."
3510
3525
"zip_longest`."
3511
3526
msgstr ""
3527
+ "短いイテラブルを一定の値でパディングして全てのイテラブルが同じ長さになるよう"
3528
+ "にすることもできます。この機能は :func:`itertools.zip_longest` で提供されま"
3529
+ "す。"
3512
3530
3513
3531
#: ../../library/functions.rst:1951
3514
3532
msgid ""
3515
3533
"Edge cases: With a single iterable argument, :func:`zip` returns an iterator "
3516
3534
"of 1-tuples. With no arguments, it returns an empty iterator."
3517
3535
msgstr ""
3536
+ "エッジケース: 引数としてイテラブルをひとつだけ渡した場合、 :func:`zip` は 1 "
3537
+ "タプルのイテレータを返します。引数なしの場合は空のイテレータを返します。"
3518
3538
3519
3539
#: ../../library/functions.rst:1954
3520
3540
msgid "Tips and tricks:"
3521
- msgstr ""
3541
+ msgstr "ヒントとコツ: "
3522
3542
3523
3543
#: ../../library/functions.rst:1956
3524
3544
msgid ""
0 commit comments