Skip to content

Commit 1215f9b

Browse files
author
github-actions
committed
Merge 3.11 into 3.10
1 parent f551b4c commit 1215f9b

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

library/functions.po

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3414,50 +3414,70 @@ msgid ""
34143414
"the code that prepared these iterables. Python offers three different "
34153415
"approaches to dealing with this issue:"
34163416
msgstr ""
3417+
"ここで考慮すべきことは、 :func:`zip` に渡されるイテラブルが異なる長さを持つこ"
3418+
"とがあるという点です; ときには意図的な場合もあり、またときにはイテラブルを準"
3419+
"備するコードにおけるバグのこともあるでしょう。 Python はこの問題に対して3つの"
3420+
"異なるアプローチを提供します:"
34173421

34183422
#: ../../library/functions.rst:1883
34193423
msgid ""
34203424
"By default, :func:`zip` stops when the shortest iterable is exhausted. It "
34213425
"will ignore the remaining items in the longer iterables, cutting off the "
34223426
"result to the length of the shortest iterable::"
34233427
msgstr ""
3428+
"デフォルトでは、 :func:`zip` は最も短いイテラブルが消費しきった時点で停止しま"
3429+
"す。より繰り返し数の長いイテラブルの残りの要素は無視して、結果を最も短いイテ"
3430+
"ラブルの長さに切り詰めます::"
34243431

34253432
#: ../../library/functions.rst:1890
34263433
msgid ""
34273434
":func:`zip` is often used in cases where the iterables are assumed to be of "
34283435
"equal length. In such cases, it's recommended to use the ``strict=True`` "
34293436
"option. Its output is the same as regular :func:`zip`::"
34303437
msgstr ""
3438+
":func:`zip` は、しばしば受け取ったイテラブルが全て同じ長さであるという想定の"
3439+
"下で使われます。そのような場合、 ``strict=True`` オプションの利用が推奨されま"
3440+
"す。その出力は通常の :func:`zip` と同じです::"
34313441

34323442
#: ../../library/functions.rst:1897
34333443
msgid ""
34343444
"Unlike the default behavior, it raises a :exc:`ValueError` if one iterable "
34353445
"is exhausted before the others:"
34363446
msgstr ""
3447+
"しかし、デフォルトの動作と異なり、あるイテラブルが他のイテラブルよりも先に消"
3448+
"費しきった場合に :exc:`ValueError`例外を送出します:"
34373449

34383450
#: ../../library/functions.rst:1915
34393451
msgid ""
34403452
"Without the ``strict=True`` argument, any bug that results in iterables of "
34413453
"different lengths will be silenced, possibly manifesting as a hard-to-find "
34423454
"bug in another part of the program."
34433455
msgstr ""
3456+
"``strict=True`` 引数なしの場合、長さの異なるイテラブルを生じる原因となるいか"
3457+
"なるバグも、この時点では問題なく処理されます。そして代わりにプログラムの別の"
3458+
"場所で、原因を特定しにくいバグとして検出されることになるでしょう。"
34443459

34453460
#: ../../library/functions.rst:1919
34463461
msgid ""
34473462
"Shorter iterables can be padded with a constant value to make all the "
34483463
"iterables have the same length. This is done by :func:`itertools."
34493464
"zip_longest`."
34503465
msgstr ""
3466+
"短いイテラブルを一定の値でパディングして全てのイテラブルが同じ長さになるよう"
3467+
"にすることもできます。この機能は :func:`itertools.zip_longest` で提供されま"
3468+
"す。"
34513469

34523470
#: ../../library/functions.rst:1923
34533471
msgid ""
34543472
"Edge cases: With a single iterable argument, :func:`zip` returns an iterator "
34553473
"of 1-tuples. With no arguments, it returns an empty iterator."
34563474
msgstr ""
3475+
"エッジケース: 引数としてイテラブルをひとつだけ渡した場合、 :func:`zip` は 1 "
3476+
"タプルのイテレータを返します。引数なしの場合は空のイテレータを返します。"
34573477

34583478
#: ../../library/functions.rst:1926
34593479
msgid "Tips and tricks:"
3460-
msgstr ""
3480+
msgstr "ヒントとコツ:"
34613481

34623482
#: ../../library/functions.rst:1928
34633483
msgid ""

0 commit comments

Comments
 (0)