diff --git a/c-api/conversion.po b/c-api/conversion.po index 27a854d95..b03c8bccc 100644 --- a/c-api/conversion.po +++ b/c-api/conversion.po @@ -12,7 +12,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.13\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-10-04 14:17+0000\n" +"POT-Creation-Date: 2024-10-26 20:15+0000\n" "PO-Revision-Date: 2021-06-28 00:48+0000\n" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" diff --git a/c-api/memoryview.po b/c-api/memoryview.po index 27a9abe76..707a982a6 100644 --- a/c-api/memoryview.po +++ b/c-api/memoryview.po @@ -13,7 +13,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.13\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-10-04 14:17+0000\n" +"POT-Creation-Date: 2024-10-26 20:15+0000\n" "PO-Revision-Date: 2021-06-28 00:49+0000\n" "Last-Translator: Osamu NAKAMURA, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" diff --git a/library/argparse.po b/library/argparse.po index df2df4dfc..abf424ce7 100644 --- a/library/argparse.po +++ b/library/argparse.po @@ -18,7 +18,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.13\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-10-18 14:17+0000\n" +"POT-Creation-Date: 2024-10-26 20:15+0000\n" "PO-Revision-Date: 2021-06-28 00:54+0000\n" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -1165,13 +1165,32 @@ msgstr "" #: ../../library/argparse.rst:695 msgid "" +"``'extend'`` - This stores a list and appends each item from the multi-value " +"argument list to it. The ``'extend'`` action is typically used with the " +"nargs_ keyword argument value ``'+'`` or ``'*'``. Note that when nargs_ is " +"``None`` (the default) or ``'?'``, each character of the argument string " +"will be appended to the list. Example usage::" +msgstr "" + +#: ../../library/argparse.rst:703 +msgid "" +">>> parser = argparse.ArgumentParser()\n" +">>> parser.add_argument(\"--foo\", action=\"extend\", nargs=\"+\", " +"type=str)\n" +">>> parser.parse_args([\"--foo\", \"f1\", \"--foo\", \"f2\", \"f3\", " +"\"f4\"])\n" +"Namespace(foo=['f1', 'f2', 'f3', 'f4'])" +msgstr "" + +#: ../../library/argparse.rst:710 +msgid "" "``'count'`` - This counts the number of times a keyword argument occurs. For " "example, this is useful for increasing verbosity levels::" msgstr "" "``'count'`` - このアクションはキーワード引数の数を数えます。例えば、verboseレ" "ベルを上げるのに役立ちます::" -#: ../../library/argparse.rst:698 +#: ../../library/argparse.rst:713 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('--verbose', '-v', action='count', default=0)\n" @@ -1179,13 +1198,13 @@ msgid "" "Namespace(verbose=3)" msgstr "" -#: ../../library/argparse.rst:703 +#: ../../library/argparse.rst:718 msgid "Note, the *default* will be ``None`` unless explicitly set to *0*." msgstr "" "*default* は明示的に *0* と指定されない場合は ``None`` であることに注意してく" "ださい。" -#: ../../library/argparse.rst:705 +#: ../../library/argparse.rst:720 msgid "" "``'help'`` - This prints a complete help message for all the options in the " "current parser and then exits. By default a help action is automatically " @@ -1196,7 +1215,7 @@ msgstr "" "セージを表示し、終了します。出力の生成方法の詳細については :class:" "`ArgumentParser` を参照してください。" -#: ../../library/argparse.rst:710 +#: ../../library/argparse.rst:725 msgid "" "``'version'`` - This expects a ``version=`` keyword argument in the :meth:" "`~ArgumentParser.add_argument` call, and prints version information and " @@ -1206,7 +1225,7 @@ msgstr "" "出しに ``version=`` キーワード引数を期待します。指定されたときはバージョン情" "報を表示して終了します::" -#: ../../library/argparse.rst:714 +#: ../../library/argparse.rst:729 msgid "" ">>> import argparse\n" ">>> parser = argparse.ArgumentParser(prog='PROG')\n" @@ -1216,31 +1235,13 @@ msgid "" "PROG 2.0" msgstr "" -#: ../../library/argparse.rst:720 -msgid "" -"``'extend'`` - This stores a list, and extends each argument value to the " -"list. Example usage::" -msgstr "" -"``'extend'`` - このアクションはリストを格納して、各引数の値でそのリストを拡張" -"します。利用例::" - -#: ../../library/argparse.rst:724 -msgid "" -">>> parser = argparse.ArgumentParser()\n" -">>> parser.add_argument(\"--foo\", action=\"extend\", nargs=\"+\", " -"type=str)\n" -">>> parser.parse_args([\"--foo\", \"f1\", \"--foo\", \"f2\", \"f3\", " -"\"f4\"])\n" -"Namespace(foo=['f1', 'f2', 'f3', 'f4'])" -msgstr "" - -#: ../../library/argparse.rst:731 +#: ../../library/argparse.rst:735 msgid "" "Only actions that consume command-line arguments (e.g. ``'store'``, " "``'append'`` or ``'extend'``) can be used with positional arguments." msgstr "" -#: ../../library/argparse.rst:734 +#: ../../library/argparse.rst:738 msgid "" "You may also specify an arbitrary action by passing an Action subclass or " "other object that implements the same interface. The " @@ -1253,7 +1254,7 @@ msgstr "" "``--no-foo`` のようなオプションに対して真偽値を設定するアクションをサポートし" "ています::" -#: ../../library/argparse.rst:739 +#: ../../library/argparse.rst:743 msgid "" ">>> import argparse\n" ">>> parser = argparse.ArgumentParser()\n" @@ -1262,7 +1263,7 @@ msgid "" "Namespace(foo=False)" msgstr "" -#: ../../library/argparse.rst:747 +#: ../../library/argparse.rst:751 msgid "" "The recommended way to create a custom action is to extend :class:`Action`, " "overriding the ``__call__`` method and optionally the ``__init__`` and " @@ -1272,11 +1273,11 @@ msgstr "" "``__call__`` メソッド (および、任意で ``__init__`` および ``format_usage`` メ" "ソッド) をオーバーライドすることです。" -#: ../../library/argparse.rst:751 +#: ../../library/argparse.rst:755 msgid "An example of a custom action::" msgstr "カスタムアクションの例です::" -#: ../../library/argparse.rst:753 +#: ../../library/argparse.rst:757 msgid "" ">>> class FooAction(argparse.Action):\n" "... def __init__(self, option_strings, dest, nargs=None, **kwargs):\n" @@ -1297,15 +1298,15 @@ msgid "" "Namespace(bar='1', foo='2')" msgstr "" -#: ../../library/argparse.rst:771 +#: ../../library/argparse.rst:775 msgid "For more details, see :class:`Action`." msgstr "詳細は :class:`Action` を参照してください。" -#: ../../library/argparse.rst:777 +#: ../../library/argparse.rst:781 msgid "nargs" msgstr "nargs" -#: ../../library/argparse.rst:779 +#: ../../library/argparse.rst:783 msgid "" "ArgumentParser objects usually associate a single command-line argument with " "a single action to be taken. The ``nargs`` keyword argument associates a " @@ -1317,7 +1318,7 @@ msgstr "" "ン引数を割り当てます。:ref:`specifying-ambiguous-arguments` を参照してくださ" "い。指定できる値は:" -#: ../../library/argparse.rst:784 +#: ../../library/argparse.rst:788 msgid "" "``N`` (an integer). ``N`` arguments from the command line will be gathered " "together into a list. For example::" @@ -1325,7 +1326,7 @@ msgstr "" "``N`` (整数) -- ``N`` 個の引数がコマンドラインから集められ、リストに格納され" "ます。例えば::" -#: ../../library/argparse.rst:787 +#: ../../library/argparse.rst:791 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('--foo', nargs=2)\n" @@ -1334,7 +1335,7 @@ msgid "" "Namespace(bar=['c'], foo=['a', 'b'])" msgstr "" -#: ../../library/argparse.rst:793 +#: ../../library/argparse.rst:797 msgid "" "Note that ``nargs=1`` produces a list of one item. This is different from " "the default, in which the item is produced by itself." @@ -1342,7 +1343,7 @@ msgstr "" "``nargs=1`` は1要素のリストを作ることに注意してください。これはデフォルトの、" "要素がそのまま属性になる動作とは異なります。" -#: ../../library/argparse.rst:798 +#: ../../library/argparse.rst:802 msgid "" "``'?'``. One argument will be consumed from the command line if possible, " "and produced as a single item. If no command-line argument is present, the " @@ -1357,7 +1358,7 @@ msgstr "" "いというケースもありえます。この場合は const_ の値が生成されます。この動作の" "例です::" -#: ../../library/argparse.rst:805 +#: ../../library/argparse.rst:809 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('--foo', nargs='?', const='c', default='d')\n" @@ -1370,14 +1371,14 @@ msgid "" "Namespace(bar='d', foo='d')" msgstr "" -#: ../../library/argparse.rst:815 +#: ../../library/argparse.rst:819 msgid "" "One of the more common uses of ``nargs='?'`` is to allow optional input and " "output files::" msgstr "" "``nargs='?'`` のよくある利用例の1つは、入出力ファイルの指定オプションです::" -#: ../../library/argparse.rst:818 +#: ../../library/argparse.rst:822 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('infile', nargs='?', type=argparse.FileType('r'),\n" @@ -1392,7 +1393,7 @@ msgid "" " outfile=<_io.TextIOWrapper name='' encoding='UTF-8'>)" msgstr "" -#: ../../library/argparse.rst:832 +#: ../../library/argparse.rst:836 msgid "" "``'*'``. All command-line arguments present are gathered into a list. Note " "that it generally doesn't make much sense to have more than one positional " @@ -1403,7 +1404,7 @@ msgstr "" "が ``nargs='*'`` を持つことにあまり意味はありませんが、複数のオプション引数" "が ``nargs='*'`` を持つことはありえます。例えば::" -#: ../../library/argparse.rst:837 +#: ../../library/argparse.rst:841 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('--foo', nargs='*')\n" @@ -1413,7 +1414,7 @@ msgid "" "Namespace(bar=['1', '2'], baz=['a', 'b'], foo=['x', 'y'])" msgstr "" -#: ../../library/argparse.rst:846 +#: ../../library/argparse.rst:850 msgid "" "``'+'``. Just like ``'*'``, all command-line args present are gathered into " "a list. Additionally, an error message will be generated if there wasn't at " @@ -1423,7 +1424,7 @@ msgstr "" "す。加えて、最低でも1つのコマンドライン引数が存在しない場合にエラーメッセージ" "を生成します。例えば::" -#: ../../library/argparse.rst:850 +#: ../../library/argparse.rst:854 msgid "" ">>> parser = argparse.ArgumentParser(prog='PROG')\n" ">>> parser.add_argument('foo', nargs='+')\n" @@ -1434,7 +1435,7 @@ msgid "" "PROG: error: the following arguments are required: foo" msgstr "" -#: ../../library/argparse.rst:858 +#: ../../library/argparse.rst:862 msgid "" "If the ``nargs`` keyword argument is not provided, the number of arguments " "consumed is determined by the action_. Generally this means a single " @@ -1443,11 +1444,11 @@ msgid "" "``'store_const'``) set ``nargs=0``." msgstr "" -#: ../../library/argparse.rst:868 +#: ../../library/argparse.rst:872 msgid "const" msgstr "const" -#: ../../library/argparse.rst:870 +#: ../../library/argparse.rst:874 msgid "" "The ``const`` argument of :meth:`~ArgumentParser.add_argument` is used to " "hold constant values that are not read from the command line but are " @@ -1458,7 +1459,7 @@ msgstr "" "から読み込まれないけれども :class:`ArgumentParser` のいくつかのアクションで必" "要とされる値のために使われます。この引数のよくある2つの使用法は:" -#: ../../library/argparse.rst:874 +#: ../../library/argparse.rst:878 msgid "" "When :meth:`~ArgumentParser.add_argument` is called with " "``action='store_const'`` or ``action='append_const'``. These actions add " @@ -1474,7 +1475,7 @@ msgstr "" "`~ArgumentParser.add_argument` に与えられなければ、``None`` のデフォルト値を" "受け取ります。" -#: ../../library/argparse.rst:882 +#: ../../library/argparse.rst:886 msgid "" "When :meth:`~ArgumentParser.add_argument` is called with option strings " "(like ``-f`` or ``--foo``) and ``nargs='?'``. This creates an optional " @@ -1489,7 +1490,7 @@ msgstr "" "かなかった場合、代わりに ``const`` の値が ``None`` であると見なされます。サン" "プルは nargs_ の説明を参照してください。" -#: ../../library/argparse.rst:889 +#: ../../library/argparse.rst:893 msgid "" "``const=None`` by default, including when ``action='append_const'`` or " "``action='store_const'``." @@ -1497,11 +1498,11 @@ msgstr "" "``action='append_const'`` や ``action='store_const'`` の場合も含め、デフォル" "トでは ``const=None`` です。" -#: ../../library/argparse.rst:896 +#: ../../library/argparse.rst:900 msgid "default" msgstr "default" -#: ../../library/argparse.rst:898 +#: ../../library/argparse.rst:902 msgid "" "All optional arguments and some positional arguments may be omitted at the " "command line. The ``default`` keyword argument of :meth:`~ArgumentParser." @@ -1516,7 +1517,7 @@ msgstr "" "る値を指定します。オプション引数では、オプション文字列がコマンドライン上に存" "在しなかったときに ``default`` の値が利用されます::" -#: ../../library/argparse.rst:905 +#: ../../library/argparse.rst:909 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('--foo', default=42)\n" @@ -1526,13 +1527,13 @@ msgid "" "Namespace(foo=42)" msgstr "" -#: ../../library/argparse.rst:912 +#: ../../library/argparse.rst:916 msgid "" "If the target namespace already has an attribute set, the action *default* " "will not overwrite it::" msgstr "" -#: ../../library/argparse.rst:915 +#: ../../library/argparse.rst:919 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('--foo', default=42)\n" @@ -1540,7 +1541,7 @@ msgid "" "Namespace(foo=101)" msgstr "" -#: ../../library/argparse.rst:920 +#: ../../library/argparse.rst:924 msgid "" "If the ``default`` value is a string, the parser parses the value as if it " "were a command-line argument. In particular, the parser applies any type_ " @@ -1552,7 +1553,7 @@ msgstr "" "に、type_ 変換引数が与えられていればそれらを適用します。そうでない場合、パー" "サーは値をそのまま使用します::" -#: ../../library/argparse.rst:925 +#: ../../library/argparse.rst:929 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('--length', default='10', type=int)\n" @@ -1561,7 +1562,7 @@ msgid "" "Namespace(length=10, width=10.5)" msgstr "" -#: ../../library/argparse.rst:931 +#: ../../library/argparse.rst:935 msgid "" "For positional arguments with nargs_ equal to ``?`` or ``*``, the " "``default`` value is used when no command-line argument was present::" @@ -1569,7 +1570,7 @@ msgstr "" "nargs_ が ``?`` か ``*`` である位置引数では、コマンドライン引数が指定されな" "かった場合 ``default`` の値が使われます。例えば::" -#: ../../library/argparse.rst:934 +#: ../../library/argparse.rst:938 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('foo', nargs='?', default=42)\n" @@ -1579,14 +1580,14 @@ msgid "" "Namespace(foo=42)" msgstr "" -#: ../../library/argparse.rst:941 +#: ../../library/argparse.rst:945 msgid "" "For required_ arguments, the ``default`` value is ignored. For example, this " "applies to positional arguments with nargs_ values other than ``?`` or " "``*``, or optional arguments marked as ``required=True``." msgstr "" -#: ../../library/argparse.rst:945 +#: ../../library/argparse.rst:949 msgid "" "Providing ``default=argparse.SUPPRESS`` causes no attribute to be added if " "the command-line argument was not present::" @@ -1594,7 +1595,7 @@ msgstr "" "``default=argparse.SUPPRESS`` を渡すと、コマンドライン引数が存在しないときに" "属性の追加をしなくなります::" -#: ../../library/argparse.rst:948 +#: ../../library/argparse.rst:952 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('--foo', default=argparse.SUPPRESS)\n" @@ -1604,11 +1605,11 @@ msgid "" "Namespace(foo='1')" msgstr "" -#: ../../library/argparse.rst:959 +#: ../../library/argparse.rst:963 msgid "type" msgstr "type" -#: ../../library/argparse.rst:961 +#: ../../library/argparse.rst:965 msgid "" "By default, the parser reads command-line arguments in as simple strings. " "However, quite often the command-line string should instead be interpreted " @@ -1622,7 +1623,7 @@ msgstr "" "ワード引数に指定する type converter により、必要な型チェックと型変換を行うこ" "とができます。" -#: ../../library/argparse.rst:967 +#: ../../library/argparse.rst:971 msgid "" "If the type_ keyword is used with the default_ keyword, the type converter " "is only applied if the default is a string." @@ -1630,7 +1631,7 @@ msgstr "" "もし type_ キーワードが default_ キーワードとともに使用された場合、default_ " "の値が文字列のときのみ、type converter による変換などが行われます。" -#: ../../library/argparse.rst:970 +#: ../../library/argparse.rst:974 msgid "" "The argument to ``type`` can be any callable that accepts a single string. " "If the function raises :exc:`ArgumentTypeError`, :exc:`TypeError`, or :exc:" @@ -1643,12 +1644,12 @@ msgstr "" "出した場合は、parser がそれをキャッチして適切なエラーメッセージが表示されま" "す。それ以外の型の例外は処理されません。" -#: ../../library/argparse.rst:975 +#: ../../library/argparse.rst:979 msgid "Common built-in types and functions can be used as type converters:" msgstr "" "一般的なビルトインデータ型や関数を ``type`` 引数の値として直接指定できます::" -#: ../../library/argparse.rst:977 +#: ../../library/argparse.rst:981 msgid "" "import argparse\n" "import pathlib\n" @@ -1663,11 +1664,11 @@ msgid "" "parser.add_argument('datapath', type=pathlib.Path)" msgstr "" -#: ../../library/argparse.rst:990 +#: ../../library/argparse.rst:994 msgid "User defined functions can be used as well:" msgstr "ユーザが定義した関数も使用できます::" -#: ../../library/argparse.rst:992 +#: ../../library/argparse.rst:996 msgid "" ">>> def hyphenated(string):\n" "... return '-'.join([word[:4] for word in string.casefold().split()])\n" @@ -1678,7 +1679,7 @@ msgid "" "Namespace(short_title='\"the-tale-of-two-citi')" msgstr "" -#: ../../library/argparse.rst:1002 +#: ../../library/argparse.rst:1006 msgid "" "The :func:`bool` function is not recommended as a type converter. All it " "does is convert empty strings to ``False`` and non-empty strings to " @@ -1689,7 +1690,7 @@ msgstr "" "これはおそらく望まれる動作ではないからです (訳注: 文字列 ``'false'`` を " "``False`` に変換してくれたりはしません)。" -#: ../../library/argparse.rst:1006 +#: ../../library/argparse.rst:1010 msgid "" "In general, the ``type`` keyword is a convenience that should only be used " "for simple conversions that can only raise one of the three supported " @@ -1701,7 +1702,7 @@ msgstr "" "ラー処理、またはリソース管理を伴うものは、引数を解析したあとに別個の処理とし" "て行うべきです。" -#: ../../library/argparse.rst:1011 +#: ../../library/argparse.rst:1015 msgid "" "For example, JSON or YAML conversions have complex error cases that require " "better reporting than can be given by the ``type`` keyword. A :exc:`~json." @@ -1713,7 +1714,7 @@ msgstr "" "発生しうる) :exc:`~json.JSONDecodeError` は適切に整形されて表示されません。ま" "た、:exc:`FileNotFoundError` が発生しても parser は何も処理しません。" -#: ../../library/argparse.rst:1016 +#: ../../library/argparse.rst:1020 msgid "" "Even :class:`~argparse.FileType` has its limitations for use with the " "``type`` keyword. If one argument uses :class:`~argparse.FileType` and then " @@ -1723,7 +1724,7 @@ msgid "" "files." msgstr "" -#: ../../library/argparse.rst:1023 +#: ../../library/argparse.rst:1027 msgid "" "For type checkers that simply check against a fixed set of values, consider " "using the choices_ keyword instead." @@ -1731,11 +1732,11 @@ msgstr "" "なお、引数が、あらかじめ決められた値の候補のいずれかに一致するかをチェックし" "たいだけの場合には、代わりに choices_ キーワードの使用を検討してください。" -#: ../../library/argparse.rst:1030 +#: ../../library/argparse.rst:1034 msgid "choices" msgstr "choices" -#: ../../library/argparse.rst:1032 +#: ../../library/argparse.rst:1036 msgid "" "Some command-line arguments should be selected from a restricted set of " "values. These can be handled by passing a sequence object as the *choices* " @@ -1749,7 +1750,7 @@ msgstr "" "き、引数の値がチェックされ、その値が選択肢の中に含まれていない場合はエラー" "メッセージを表示します::" -#: ../../library/argparse.rst:1038 +#: ../../library/argparse.rst:1042 msgid "" ">>> parser = argparse.ArgumentParser(prog='game.py')\n" ">>> parser.add_argument('move', choices=['rock', 'paper', 'scissors'])\n" @@ -1761,14 +1762,14 @@ msgid "" "'paper', 'scissors')" msgstr "" -#: ../../library/argparse.rst:1047 +#: ../../library/argparse.rst:1051 msgid "" "Note that inclusion in the *choices* sequence is checked after any type_ " "conversions have been performed, so the type of the objects in the *choices* " "sequence should match the type_ specified." msgstr "" -#: ../../library/argparse.rst:1051 +#: ../../library/argparse.rst:1055 msgid "" "Any sequence can be passed as the *choices* value, so :class:`list` " "objects, :class:`tuple` objects, and custom sequences are all supported." @@ -1777,7 +1778,7 @@ msgstr "" "ブジェクト、 :class:`tuple` オブジェクト、カスタムシーケンスはすべてサポート" "されています。" -#: ../../library/argparse.rst:1054 +#: ../../library/argparse.rst:1058 msgid "" "Use of :class:`enum.Enum` is not recommended because it is difficult to " "control its appearance in usage, help, and error messages." @@ -1785,7 +1786,7 @@ msgstr "" "ただし、:class:`enum.Enum` を渡すことは推奨されません。使用方法、ヘルプ、エ" "ラーメッセージなどでどのように表示されるかを制御することが難いからです。" -#: ../../library/argparse.rst:1057 +#: ../../library/argparse.rst:1061 msgid "" "Formatted choices override the default *metavar* which is normally derived " "from *dest*. This is usually what you want because the user never sees the " @@ -1798,11 +1799,11 @@ msgstr "" "しくない場合 (おそらく多くの選択肢がある場合など) は、 metavar_ を明示的に指" "定してください。" -#: ../../library/argparse.rst:1066 +#: ../../library/argparse.rst:1070 msgid "required" msgstr "required" -#: ../../library/argparse.rst:1068 +#: ../../library/argparse.rst:1072 msgid "" "In general, the :mod:`argparse` module assumes that flags like ``-f`` and " "``--bar`` indicate *optional* arguments, which can always be omitted at the " @@ -1814,7 +1815,7 @@ msgstr "" "て扱います。フラグの指定を *必須* にするには、:meth:`~ArgumentParser." "add_argument` の ``required=`` キーワード引数に ``True`` を指定します::" -#: ../../library/argparse.rst:1073 +#: ../../library/argparse.rst:1077 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('--foo', required=True)\n" @@ -1825,7 +1826,7 @@ msgid "" ": error: the following arguments are required: --foo" msgstr "" -#: ../../library/argparse.rst:1081 +#: ../../library/argparse.rst:1085 msgid "" "As the example shows, if an option is marked as ``required``, :meth:" "`~ArgumentParser.parse_args` will report an error if that option is not " @@ -1835,7 +1836,7 @@ msgstr "" "parse_args` はそのフラグがコマンドラインに存在しないときにエラーを表示しま" "す。" -#: ../../library/argparse.rst:1087 +#: ../../library/argparse.rst:1091 msgid "" "Required options are generally considered bad form because users expect " "*options* to be *optional*, and thus they should be avoided when possible." @@ -1843,11 +1844,11 @@ msgstr "" "ユーザーは、通常 *フラグ* の指定は *任意* であると認識しているため、必須にす" "るのは一般的には悪いやり方で、できる限り避けるべきです。" -#: ../../library/argparse.rst:1094 +#: ../../library/argparse.rst:1098 msgid "help" msgstr "help" -#: ../../library/argparse.rst:1096 +#: ../../library/argparse.rst:1100 msgid "" "The ``help`` value is a string containing a brief description of the " "argument. When a user requests help (usually by using ``-h`` or ``--help`` " @@ -1855,7 +1856,7 @@ msgid "" "each argument." msgstr "" -#: ../../library/argparse.rst:1101 +#: ../../library/argparse.rst:1105 msgid "" "The ``help`` strings can include various format specifiers to avoid " "repetition of things like the program name or the argument default_. The " @@ -1868,7 +1869,7 @@ msgstr "" "プログラム名 ``%(prog)s`` と、 ``%(default)s`` や ``%(type)s`` など :meth:" "`~ArgumentParser.add_argument` のキーワード引数の多くが含まれます::" -#: ../../library/argparse.rst:1106 +#: ../../library/argparse.rst:1110 msgid "" ">>> parser = argparse.ArgumentParser(prog='frobble')\n" ">>> parser.add_argument('bar', nargs='?', type=int, default=42,\n" @@ -1883,7 +1884,7 @@ msgid "" " -h, --help show this help message and exit" msgstr "" -#: ../../library/argparse.rst:1118 +#: ../../library/argparse.rst:1122 msgid "" "As the help string supports %-formatting, if you want a literal ``%`` to " "appear in the help string, you must escape it as ``%%``." @@ -1891,7 +1892,7 @@ msgstr "" "ヘルプ文字列は %-フォーマットをサポートしているので、ヘルプ文字列内にリテラ" "ル ``%`` を表示したい場合は ``%%`` のようにエスケープしなければなりません。" -#: ../../library/argparse.rst:1121 +#: ../../library/argparse.rst:1125 msgid "" ":mod:`argparse` supports silencing the help entry for certain options, by " "setting the ``help`` value to ``argparse.SUPPRESS``::" @@ -1899,7 +1900,7 @@ msgstr "" ":mod:`argparse` は ``help`` に ``argparse.SUPPRESS`` を設定することで、特定の" "オプションをヘルプに表示させないことができます::" -#: ../../library/argparse.rst:1124 +#: ../../library/argparse.rst:1128 msgid "" ">>> parser = argparse.ArgumentParser(prog='frobble')\n" ">>> parser.add_argument('--foo', help=argparse.SUPPRESS)\n" @@ -1910,11 +1911,11 @@ msgid "" " -h, --help show this help message and exit" msgstr "" -#: ../../library/argparse.rst:1136 +#: ../../library/argparse.rst:1140 msgid "metavar" msgstr "metavar" -#: ../../library/argparse.rst:1138 +#: ../../library/argparse.rst:1142 msgid "" "When :class:`ArgumentParser` generates help messages, it needs some way to " "refer to each expected argument. By default, ArgumentParser objects use the " @@ -1933,7 +1934,7 @@ msgstr "" "として参照されます。 1つのオプション引数 ``--foo`` が1つのコマンドライン引数" "を要求するときは、その引数は ``FOO`` として参照されます。以下に例を示します::" -#: ../../library/argparse.rst:1147 +#: ../../library/argparse.rst:1151 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('--foo')\n" @@ -1951,11 +1952,11 @@ msgid "" " --foo FOO" msgstr "" -#: ../../library/argparse.rst:1162 +#: ../../library/argparse.rst:1166 msgid "An alternative name can be specified with ``metavar``::" msgstr "代わりの名前を、``metavar`` として指定できます::" -#: ../../library/argparse.rst:1164 +#: ../../library/argparse.rst:1168 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('--foo', metavar='YYY')\n" @@ -1973,7 +1974,7 @@ msgid "" " --foo YYY" msgstr "" -#: ../../library/argparse.rst:1179 +#: ../../library/argparse.rst:1183 msgid "" "Note that ``metavar`` only changes the *displayed* name - the name of the " "attribute on the :meth:`~ArgumentParser.parse_args` object is still " @@ -1983,7 +1984,7 @@ msgstr "" "`~ArgumentParser.parse_args` の返すオブジェクトの属性名は dest_ の値のままで" "す。" -#: ../../library/argparse.rst:1183 +#: ../../library/argparse.rst:1187 msgid "" "Different values of ``nargs`` may cause the metavar to be used multiple " "times. Providing a tuple to ``metavar`` specifies a different display for " @@ -1992,7 +1993,7 @@ msgstr "" "``nargs`` を指定した場合、metavar が複数回利用されるかもしれません。" "``metavar`` にタプルを渡すと、各引数に対して異なる名前を指定できます::" -#: ../../library/argparse.rst:1187 +#: ../../library/argparse.rst:1191 msgid "" ">>> parser = argparse.ArgumentParser(prog='PROG')\n" ">>> parser.add_argument('-x', nargs=2)\n" @@ -2006,11 +2007,11 @@ msgid "" " --foo bar baz" msgstr "" -#: ../../library/argparse.rst:1202 +#: ../../library/argparse.rst:1206 msgid "dest" msgstr "dest" -#: ../../library/argparse.rst:1204 +#: ../../library/argparse.rst:1208 msgid "" "Most :class:`ArgumentParser` actions add some value as an attribute of the " "object returned by :meth:`~ArgumentParser.parse_args`. The name of this " @@ -2025,7 +2026,7 @@ msgstr "" "決定されます。位置引数のアクションについては、 ``dest`` は通常 :meth:" "`~ArgumentParser.add_argument` の第一引数として渡します::" -#: ../../library/argparse.rst:1211 +#: ../../library/argparse.rst:1215 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('bar')\n" @@ -2033,7 +2034,7 @@ msgid "" "Namespace(bar='XXX')" msgstr "" -#: ../../library/argparse.rst:1216 +#: ../../library/argparse.rst:1220 msgid "" "For optional argument actions, the value of ``dest`` is normally inferred " "from the option strings. :class:`ArgumentParser` generates the value of " @@ -2052,7 +2053,7 @@ msgstr "" "な属性名になるように ``_`` 文字へ変換されます。次の例はこの動作を示していま" "す::" -#: ../../library/argparse.rst:1225 +#: ../../library/argparse.rst:1229 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('-f', '--foo-bar', '--foo')\n" @@ -2063,11 +2064,11 @@ msgid "" "Namespace(foo_bar='1', x='2')" msgstr "" -#: ../../library/argparse.rst:1233 +#: ../../library/argparse.rst:1237 msgid "``dest`` allows a custom attribute name to be provided::" msgstr "``dest`` にカスタムの属性名を与えることも可能です::" -#: ../../library/argparse.rst:1235 +#: ../../library/argparse.rst:1239 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('--foo', dest='bar')\n" @@ -2075,11 +2076,11 @@ msgid "" "Namespace(bar='XXX')" msgstr "" -#: ../../library/argparse.rst:1244 +#: ../../library/argparse.rst:1248 msgid "deprecated" msgstr "" -#: ../../library/argparse.rst:1246 +#: ../../library/argparse.rst:1250 msgid "" "During a project's lifetime, some arguments may need to be removed from the " "command line. Before removing them, you should inform your users that the " @@ -2090,7 +2091,7 @@ msgid "" "will be printed to :data:`sys.stderr` when the argument is used::" msgstr "" -#: ../../library/argparse.rst:1256 +#: ../../library/argparse.rst:1260 msgid "" ">>> import argparse\n" ">>> parser = argparse.ArgumentParser(prog='snake.py')\n" @@ -2102,11 +2103,11 @@ msgid "" "Namespace(legs=4)" msgstr "" -#: ../../library/argparse.rst:1269 +#: ../../library/argparse.rst:1273 msgid "Action classes" msgstr "Action クラス" -#: ../../library/argparse.rst:1271 +#: ../../library/argparse.rst:1275 msgid "" "Action classes implement the Action API, a callable which returns a callable " "which processes arguments from the command-line. Any object which follows " @@ -2118,7 +2119,7 @@ msgstr "" "あらゆるオブジェクトは ``action`` 引数として :meth:`~ArgumentParser." "add_argument` に渡すことができます。" -#: ../../library/argparse.rst:1280 +#: ../../library/argparse.rst:1284 msgid "" "Action objects are used by an ArgumentParser to represent the information " "needed to parse a single argument from one or more strings from the command " @@ -2132,7 +2133,7 @@ msgstr "" "`ArgumentParser.add_argument` に渡されるすべてのキーワード引数を受け付けなけ" "ればなりません。" -#: ../../library/argparse.rst:1286 +#: ../../library/argparse.rst:1290 msgid "" "Instances of Action (or return value of any callable to the ``action`` " "parameter) should have attributes \"dest\", \"option_strings\", \"default\", " @@ -2145,7 +2146,7 @@ msgstr "" "性を定義するのを確実にするためにもっとも簡単な方法は、``Action.__init__`` を" "呼び出すことです。" -#: ../../library/argparse.rst:1291 +#: ../../library/argparse.rst:1295 msgid "" "Action instances should be callable, so subclasses must override the " "``__call__`` method, which should accept four parameters:" @@ -2153,43 +2154,43 @@ msgstr "" "Action インスタンスは呼び出し可能でなければならず、したがって、サブクラスは " "4 つの引数を受け取る ``__call__`` メソッドをオーバライドしなければなりません:" -#: ../../library/argparse.rst:1294 +#: ../../library/argparse.rst:1298 msgid "*parser* - The ArgumentParser object which contains this action." msgstr "" -#: ../../library/argparse.rst:1296 +#: ../../library/argparse.rst:1300 msgid "*namespace* - The :class:`Namespace` object that will be returned by" msgstr "" -#: ../../library/argparse.rst:1297 +#: ../../library/argparse.rst:1301 msgid "" ":meth:`~ArgumentParser.parse_args`. Most actions add an attribute to this " "object using :func:`setattr`." msgstr "" -#: ../../library/argparse.rst:1300 +#: ../../library/argparse.rst:1304 msgid "" "*values* - The associated command-line arguments, with any type conversions" msgstr "" -#: ../../library/argparse.rst:1301 +#: ../../library/argparse.rst:1305 msgid "" "applied. Type conversions are specified with the type_ keyword argument to :" "meth:`~ArgumentParser.add_argument`." msgstr "" -#: ../../library/argparse.rst:1304 +#: ../../library/argparse.rst:1308 msgid "" "*option_string* - The option string that was used to invoke this action." msgstr "" -#: ../../library/argparse.rst:1305 +#: ../../library/argparse.rst:1309 msgid "" "The ``option_string`` argument is optional, and will be absent if the action " "is associated with a positional argument." msgstr "" -#: ../../library/argparse.rst:1308 +#: ../../library/argparse.rst:1312 msgid "" "The ``__call__`` method may perform arbitrary actions, but will typically " "set attributes on the ``namespace`` based on ``dest`` and ``values``." @@ -2197,7 +2198,7 @@ msgstr "" "``__call__`` メソッドでは任意のアクションを行えます。典型的には ``dest`` およ" "び ``values`` に基いて ``namespace`` に属性をセットします。" -#: ../../library/argparse.rst:1311 +#: ../../library/argparse.rst:1315 msgid "" "Action subclasses can define a ``format_usage`` method that takes no " "argument and return a string which will be used when printing the usage of " @@ -2209,11 +2210,11 @@ msgstr "" "は、sensible default (訳注: システムにより上手く設定されたデフォルト値) が使" "われます。" -#: ../../library/argparse.rst:1317 +#: ../../library/argparse.rst:1321 msgid "The parse_args() method" msgstr "parse_args() メソッド" -#: ../../library/argparse.rst:1321 +#: ../../library/argparse.rst:1325 msgid "" "Convert argument strings to objects and assign them as attributes of the " "namespace. Return the populated namespace." @@ -2221,7 +2222,7 @@ msgstr "" "引数の文字列をオブジェクトに変換し、namespace オブジェクトの属性に代入しま" "す。結果の namespace オブジェクトを返します。" -#: ../../library/argparse.rst:1324 +#: ../../library/argparse.rst:1328 msgid "" "Previous calls to :meth:`add_argument` determine exactly what objects are " "created and how they are assigned. See the documentation for :meth:" @@ -2231,7 +2232,7 @@ msgstr "" "されてどう代入されるかが決定されます。詳細は :meth:`add_argument` のドキュメ" "ントを参照してください。" -#: ../../library/argparse.rst:1328 +#: ../../library/argparse.rst:1332 msgid "" "args_ - List of strings to parse. The default is taken from :data:`sys." "argv`." @@ -2239,7 +2240,7 @@ msgstr "" "args_ - 解析する文字列のリスト。デフォルトでは :data:`sys.argv` から取得され" "ます。" -#: ../../library/argparse.rst:1331 +#: ../../library/argparse.rst:1335 msgid "" "namespace_ - An object to take the attributes. The default is a new empty :" "class:`Namespace` object." @@ -2247,11 +2248,11 @@ msgstr "" "namespace_ - 属性を代入するオブジェクト。デフォルトでは、新しい空の :class:" "`Namespace` オブジェクトです。" -#: ../../library/argparse.rst:1336 +#: ../../library/argparse.rst:1340 msgid "Option value syntax" msgstr "オプション値の文法" -#: ../../library/argparse.rst:1338 +#: ../../library/argparse.rst:1342 msgid "" "The :meth:`~ArgumentParser.parse_args` method supports several ways of " "specifying the value of an option (if it takes one). In the simplest case, " @@ -2261,7 +2262,7 @@ msgstr "" "オプションの値の指定に複数の方法をサポートしています。もっとも単純な場合に" "は、オプションとその値は次のように2つの別々の引数として渡されます::" -#: ../../library/argparse.rst:1342 +#: ../../library/argparse.rst:1346 msgid "" ">>> parser = argparse.ArgumentParser(prog='PROG')\n" ">>> parser.add_argument('-x')\n" @@ -2272,7 +2273,7 @@ msgid "" "Namespace(foo='FOO', x=None)" msgstr "" -#: ../../library/argparse.rst:1350 +#: ../../library/argparse.rst:1354 msgid "" "For long options (options with names longer than a single character), the " "option and value can also be passed as a single command-line argument, using " @@ -2282,13 +2283,13 @@ msgstr "" "値は次のように ``=`` で区切られた1つのコマンドライン引数として渡すこともでき" "ます::" -#: ../../library/argparse.rst:1354 +#: ../../library/argparse.rst:1358 msgid "" ">>> parser.parse_args(['--foo=FOO'])\n" "Namespace(foo='FOO', x=None)" msgstr "" -#: ../../library/argparse.rst:1357 +#: ../../library/argparse.rst:1361 msgid "" "For short options (options only one character long), the option and its " "value can be concatenated::" @@ -2296,13 +2297,13 @@ msgstr "" "短いオプション (1文字のオプション) では、オプションとその値は次のように連結し" "て渡すことができます::" -#: ../../library/argparse.rst:1360 +#: ../../library/argparse.rst:1364 msgid "" ">>> parser.parse_args(['-xX'])\n" "Namespace(foo=None, x='X')" msgstr "" -#: ../../library/argparse.rst:1363 +#: ../../library/argparse.rst:1367 msgid "" "Several short options can be joined together, using only a single ``-`` " "prefix, as long as only the last option (or none of them) requires a value::" @@ -2311,7 +2312,7 @@ msgstr "" "い場合、複数の短いオプションは次のように1つの接頭辞 ``-`` だけで連結できま" "す::" -#: ../../library/argparse.rst:1366 +#: ../../library/argparse.rst:1370 msgid "" ">>> parser = argparse.ArgumentParser(prog='PROG')\n" ">>> parser.add_argument('-x', action='store_true')\n" @@ -2321,11 +2322,11 @@ msgid "" "Namespace(x=True, y=True, z='Z')" msgstr "" -#: ../../library/argparse.rst:1375 +#: ../../library/argparse.rst:1379 msgid "Invalid arguments" msgstr "不正な引数" -#: ../../library/argparse.rst:1377 +#: ../../library/argparse.rst:1381 msgid "" "While parsing the command line, :meth:`~ArgumentParser.parse_args` checks " "for a variety of errors, including ambiguous options, invalid types, invalid " @@ -2337,7 +2338,7 @@ msgstr "" "ます。それらのエラーが発生した場合、エラーメッセージと使用法メッセージを表示" "して終了します::" -#: ../../library/argparse.rst:1382 +#: ../../library/argparse.rst:1386 msgid "" ">>> parser = argparse.ArgumentParser(prog='PROG')\n" ">>> parser.add_argument('--foo', type=int)\n" @@ -2359,11 +2360,11 @@ msgid "" "PROG: error: extra arguments found: badger" msgstr "" -#: ../../library/argparse.rst:1403 +#: ../../library/argparse.rst:1407 msgid "Arguments containing ``-``" msgstr "``-`` を含む引数" -#: ../../library/argparse.rst:1405 +#: ../../library/argparse.rst:1409 msgid "" "The :meth:`~ArgumentParser.parse_args` method attempts to give errors " "whenever the user has clearly made a mistake, but some situations are " @@ -2381,7 +2382,7 @@ msgstr "" "負の数として解釈でき、パーサーに負の数のように解釈できるオプションが存在しな" "い場合にのみ、``-`` で始まる位置引数になりえます::" -#: ../../library/argparse.rst:1413 +#: ../../library/argparse.rst:1417 msgid "" ">>> parser = argparse.ArgumentParser(prog='PROG')\n" ">>> parser.add_argument('-x')\n" @@ -2414,7 +2415,7 @@ msgid "" "PROG: error: argument -1: expected one argument" msgstr "" -#: ../../library/argparse.rst:1443 +#: ../../library/argparse.rst:1447 msgid "" "If you have positional arguments that must begin with ``-`` and don't look " "like negative numbers, you can insert the pseudo-argument ``'--'`` which " @@ -2425,23 +2426,23 @@ msgstr "" "引数 ``'--'`` を挿入して、:meth:`~ArgumentParser.parse_args` にそれ以降のすべ" "てが位置引数だと教えることができます::" -#: ../../library/argparse.rst:1448 +#: ../../library/argparse.rst:1452 msgid "" ">>> parser.parse_args(['--', '-f'])\n" "Namespace(foo='-f', one=None)" msgstr "" -#: ../../library/argparse.rst:1451 +#: ../../library/argparse.rst:1455 msgid "" "See also :ref:`the argparse howto on ambiguous arguments ` for more details." msgstr "" -#: ../../library/argparse.rst:1457 +#: ../../library/argparse.rst:1461 msgid "Argument abbreviations (prefix matching)" msgstr "引数の短縮形 (先頭文字でのマッチング)" -#: ../../library/argparse.rst:1459 +#: ../../library/argparse.rst:1463 msgid "" "The :meth:`~ArgumentParser.parse_args` method :ref:`by default " "` allows long options to be abbreviated to a prefix, if the " @@ -2451,7 +2452,7 @@ msgstr "" "`、長いオプションに曖昧さがない (先頭文字列が一意である) かぎ" "り、先頭文字列に短縮して指定できます::" -#: ../../library/argparse.rst:1463 +#: ../../library/argparse.rst:1467 msgid "" ">>> parser = argparse.ArgumentParser(prog='PROG')\n" ">>> parser.add_argument('-bacon')\n" @@ -2465,7 +2466,7 @@ msgid "" "PROG: error: ambiguous option: -ba could match -badger, -bacon" msgstr "" -#: ../../library/argparse.rst:1474 +#: ../../library/argparse.rst:1478 msgid "" "An error is produced for arguments that could produce more than one options. " "This feature can be disabled by setting :ref:`allow_abbrev` to ``False``." @@ -2473,11 +2474,11 @@ msgstr "" "先頭の文字が同じ引数が複数ある場合に短縮指定を行うとエラーを発生させます。こ" "の機能は :ref:`allow_abbrev` に ``False`` を指定することで無効にできます。" -#: ../../library/argparse.rst:1480 +#: ../../library/argparse.rst:1484 msgid "Beyond ``sys.argv``" msgstr "``sys.argv`` 以外" -#: ../../library/argparse.rst:1482 +#: ../../library/argparse.rst:1486 msgid "" "Sometimes it may be useful to have an ArgumentParser parse arguments other " "than those of :data:`sys.argv`. This can be accomplished by passing a list " @@ -2488,7 +2489,7 @@ msgstr "" "ます。その場合は文字列のリストを :meth:`~ArgumentParser.parse_args` に渡しま" "す。これはインタラクティブプロンプトからテストするときに便利です::" -#: ../../library/argparse.rst:1487 +#: ../../library/argparse.rst:1491 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument(\n" @@ -2503,11 +2504,11 @@ msgid "" "Namespace(accumulate=, integers=[1, 2, 3, 4])" msgstr "" -#: ../../library/argparse.rst:1502 +#: ../../library/argparse.rst:1506 msgid "The Namespace object" msgstr "Namespace オブジェクト" -#: ../../library/argparse.rst:1506 +#: ../../library/argparse.rst:1510 msgid "" "Simple class used by default by :meth:`~ArgumentParser.parse_args` to create " "an object holding attributes and return it." @@ -2515,7 +2516,7 @@ msgstr "" ":meth:`~ArgumentParser.parse_args` が属性を格納して返すためのオブジェクトにデ" "フォルトで使用されるシンプルなクラスです。" -#: ../../library/argparse.rst:1509 +#: ../../library/argparse.rst:1513 msgid "" "This class is deliberately simple, just an :class:`object` subclass with a " "readable string representation. If you prefer to have dict-like view of the " @@ -2525,7 +2526,7 @@ msgstr "" "class:`object` のサブクラスです。もし属性を辞書のように扱える方が良ければ、標" "準的な Python のイディオム :func:`vars` を利用できます::" -#: ../../library/argparse.rst:1513 +#: ../../library/argparse.rst:1517 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('--foo')\n" @@ -2534,7 +2535,7 @@ msgid "" "{'foo': 'BAR'}" msgstr "" -#: ../../library/argparse.rst:1519 +#: ../../library/argparse.rst:1523 msgid "" "It may also be useful to have an :class:`ArgumentParser` assign attributes " "to an already existing object, rather than a new :class:`Namespace` object. " @@ -2544,7 +2545,7 @@ msgstr "" "既存のオブジェクトに属性を設定する方が良い場合があります。これは " "``namespace=`` キーワード引数を指定することで可能です::" -#: ../../library/argparse.rst:1523 +#: ../../library/argparse.rst:1527 msgid "" ">>> class C:\n" "... pass\n" @@ -2557,15 +2558,15 @@ msgid "" "'BAR'" msgstr "" -#: ../../library/argparse.rst:1535 +#: ../../library/argparse.rst:1539 msgid "Other utilities" msgstr "その他のユーティリティ" -#: ../../library/argparse.rst:1538 +#: ../../library/argparse.rst:1542 msgid "Sub-commands" msgstr "サブコマンド" -#: ../../library/argparse.rst:1545 +#: ../../library/argparse.rst:1549 msgid "" "Many programs split up their functionality into a number of subcommands, for " "example, the ``svn`` program can invoke subcommands like ``svn checkout``, " @@ -2580,43 +2581,43 @@ msgid "" "returns an :class:`ArgumentParser` object that can be modified as usual." msgstr "" -#: ../../library/argparse.rst:1557 +#: ../../library/argparse.rst:1561 msgid "Description of parameters:" msgstr "引数の説明:" -#: ../../library/argparse.rst:1559 +#: ../../library/argparse.rst:1563 msgid "" "*title* - title for the sub-parser group in help output; by default " "\"subcommands\" if description is provided, otherwise uses title for " "positional arguments" msgstr "" -#: ../../library/argparse.rst:1563 +#: ../../library/argparse.rst:1567 msgid "" "*description* - description for the sub-parser group in help output, by " "default ``None``" msgstr "" -#: ../../library/argparse.rst:1566 +#: ../../library/argparse.rst:1570 msgid "" "*prog* - usage information that will be displayed with sub-command help, by " "default the name of the program and any positional arguments before the " "subparser argument" msgstr "" -#: ../../library/argparse.rst:1570 +#: ../../library/argparse.rst:1574 msgid "" "*parser_class* - class which will be used to create sub-parser instances, by " "default the class of the current parser (e.g. ArgumentParser)" msgstr "" -#: ../../library/argparse.rst:1573 +#: ../../library/argparse.rst:1577 msgid "" "action_ - the basic type of action to be taken when this argument is " "encountered at the command line" msgstr "action_ - コマンドラインにこの引数があったときの基本のアクション。" -#: ../../library/argparse.rst:1576 +#: ../../library/argparse.rst:1580 msgid "" "dest_ - name of the attribute under which sub-command name will be stored; " "by default ``None`` and no value is stored" @@ -2624,7 +2625,7 @@ msgstr "" "dest_ - サブコマンド名を格納する属性の名前です。デフォルトは ``None`` で値は" "格納されません" -#: ../../library/argparse.rst:1579 +#: ../../library/argparse.rst:1583 msgid "" "required_ - Whether or not a subcommand must be provided, by default " "``False`` (added in 3.7)" @@ -2632,23 +2633,23 @@ msgstr "" "required_ - サブコマンドが必須であるかどうかを指定し、デフォルトは ``False`` " "です。(3.7 より追加)" -#: ../../library/argparse.rst:1582 +#: ../../library/argparse.rst:1586 msgid "help_ - help for sub-parser group in help output, by default ``None``" msgstr "" "help_ - ヘルプ出力に表示されるサブパーサーグループのヘルプです。デフォルトは " "``None`` です" -#: ../../library/argparse.rst:1584 +#: ../../library/argparse.rst:1588 msgid "" "metavar_ - string presenting available subcommands in help; by default it is " "``None`` and presents subcommands in form {cmd1, cmd2, ..}" msgstr "" -#: ../../library/argparse.rst:1587 +#: ../../library/argparse.rst:1591 msgid "Some example usage::" msgstr "いくつかの使用例::" -#: ../../library/argparse.rst:1589 +#: ../../library/argparse.rst:1593 msgid "" ">>> # create the top-level parser\n" ">>> parser = argparse.ArgumentParser(prog='PROG')\n" @@ -2671,7 +2672,7 @@ msgid "" "Namespace(baz='Z', foo=True)" msgstr "" -#: ../../library/argparse.rst:1608 +#: ../../library/argparse.rst:1612 msgid "" "Note that the object returned by :meth:`parse_args` will only contain " "attributes for the main parser and the subparser that was selected by the " @@ -2686,7 +2687,7 @@ msgstr "" "では、``a`` コマンドが指定されたときは ``foo``, ``bar`` 属性だけが存在し、" "``b`` コマンドが指定されたときは ``foo``, ``baz`` 属性だけが存在しています。" -#: ../../library/argparse.rst:1615 +#: ../../library/argparse.rst:1619 msgid "" "Similarly, when a help message is requested from a subparser, only the help " "for that particular parser will be printed. The help message will not " @@ -2700,7 +2701,7 @@ msgstr "" "メッセージは、上の例にもあるように :meth:`~_SubParsersAction.add_parser` の " "``help=`` 引数によって指定できます)" -#: ../../library/argparse.rst:1623 +#: ../../library/argparse.rst:1627 msgid "" ">>> parser.parse_args(['--help'])\n" "usage: PROG [-h] [--foo] {a,b} ...\n" @@ -2731,7 +2732,7 @@ msgid "" " --baz {X,Y,Z} baz help" msgstr "" -#: ../../library/argparse.rst:1651 +#: ../../library/argparse.rst:1655 msgid "" "The :meth:`add_subparsers` method also supports ``title`` and " "``description`` keyword arguments. When either is present, the subparser's " @@ -2741,7 +2742,7 @@ msgstr "" "もサポートしています。どちらかが存在する場合、サブパーサーのコマンドはヘルプ" "出力でそれぞれのグループの中に表示されます。例えば::" -#: ../../library/argparse.rst:1655 +#: ../../library/argparse.rst:1659 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> subparsers = parser.add_subparsers(title='subcommands',\n" @@ -2761,7 +2762,7 @@ msgid "" " {foo,bar} additional help" msgstr "" -#: ../../library/argparse.rst:1672 +#: ../../library/argparse.rst:1676 msgid "" "Furthermore, :meth:`~_SubParsersAction.add_parser` supports an additional " "*aliases* argument, which allows multiple strings to refer to the same " @@ -2769,7 +2770,7 @@ msgid "" "``checkout``::" msgstr "" -#: ../../library/argparse.rst:1677 +#: ../../library/argparse.rst:1681 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> subparsers = parser.add_subparsers()\n" @@ -2779,13 +2780,13 @@ msgid "" "Namespace(foo='bar')" msgstr "" -#: ../../library/argparse.rst:1684 +#: ../../library/argparse.rst:1688 msgid "" ":meth:`~_SubParsersAction.add_parser` supports also an additional " "*deprecated* argument, which allows to deprecate the subparser." msgstr "" -#: ../../library/argparse.rst:1698 +#: ../../library/argparse.rst:1702 msgid "" "One particularly effective way of handling subcommands is to combine the use " "of the :meth:`add_subparsers` method with calls to :meth:`set_defaults` so " @@ -2793,7 +2794,7 @@ msgid "" "example::" msgstr "" -#: ../../library/argparse.rst:1703 +#: ../../library/argparse.rst:1707 msgid "" ">>> # subcommand functions\n" ">>> def foo(args):\n" @@ -2828,7 +2829,7 @@ msgid "" "((XYZYX))" msgstr "" -#: ../../library/argparse.rst:1735 +#: ../../library/argparse.rst:1739 msgid "" "This way, you can let :meth:`parse_args` do the job of calling the " "appropriate function after argument parsing is complete. Associating " @@ -2843,7 +2844,7 @@ msgstr "" "ブパーサーの名前を確認する必要がある場合は、:meth:`add_subparsers` を呼び出す" "ときに ``dest`` キーワードを指定できます::" -#: ../../library/argparse.rst:1742 +#: ../../library/argparse.rst:1746 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> subparsers = parser.add_subparsers(dest='subparser_name')\n" @@ -2855,15 +2856,15 @@ msgid "" "Namespace(subparser_name='2', y='frobble')" msgstr "" -#: ../../library/argparse.rst:1751 +#: ../../library/argparse.rst:1755 msgid "New *required* keyword argument." msgstr "新しい *required* キーワード引数。" -#: ../../library/argparse.rst:1756 +#: ../../library/argparse.rst:1760 msgid "FileType objects" msgstr "FileType オブジェクト" -#: ../../library/argparse.rst:1760 +#: ../../library/argparse.rst:1764 msgid "" "The :class:`FileType` factory creates objects that can be passed to the type " "argument of :meth:`ArgumentParser.add_argument`. Arguments that have :class:" @@ -2877,7 +2878,7 @@ msgstr "" "ズ、エンコーディング、エラー処理でファイルとして開きます (詳細は :func:" "`open` 関数を参照してください。)::" -#: ../../library/argparse.rst:1766 +#: ../../library/argparse.rst:1770 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('--raw', type=argparse.FileType('wb', 0))\n" @@ -2888,7 +2889,7 @@ msgid "" "raw=<_io.FileIO name='raw.dat' mode='wb'>)" msgstr "" -#: ../../library/argparse.rst:1772 +#: ../../library/argparse.rst:1776 msgid "" "FileType objects understand the pseudo-argument ``'-'`` and automatically " "convert this into :data:`sys.stdin` for readable :class:`FileType` objects " @@ -2898,7 +2899,7 @@ msgstr "" "`FileType` であれば :data:`sys.stdin` を、書き込み用の :class:`FileType` であ" "れば :data:`sys.stdout` に変換します::" -#: ../../library/argparse.rst:1776 +#: ../../library/argparse.rst:1780 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('infile', type=argparse.FileType('r'))\n" @@ -2906,15 +2907,15 @@ msgid "" "Namespace(infile=<_io.TextIOWrapper name='' encoding='UTF-8'>)" msgstr "" -#: ../../library/argparse.rst:1781 +#: ../../library/argparse.rst:1785 msgid "Added the *encodings* and *errors* parameters." msgstr "*encodings* と *errors* がパラメータに追加されました。" -#: ../../library/argparse.rst:1786 +#: ../../library/argparse.rst:1790 msgid "Argument groups" msgstr "引数グループ" -#: ../../library/argparse.rst:1791 +#: ../../library/argparse.rst:1795 msgid "" "By default, :class:`ArgumentParser` groups command-line arguments into " "\"positional arguments\" and \"options\" when displaying help messages. When " @@ -2927,7 +2928,7 @@ msgstr "" "デフォルトの動作よりも良い引数のグループ化方法がある場合、 :meth:" "`add_argument_group` メソッドで適切なグループを作成できます::" -#: ../../library/argparse.rst:1797 +#: ../../library/argparse.rst:1801 msgid "" ">>> parser = argparse.ArgumentParser(prog='PROG', add_help=False)\n" ">>> group = parser.add_argument_group('group')\n" @@ -2941,7 +2942,7 @@ msgid "" " --foo FOO foo help" msgstr "" -#: ../../library/argparse.rst:1808 +#: ../../library/argparse.rst:1812 msgid "" "The :meth:`add_argument_group` method returns an argument group object which " "has an :meth:`~ArgumentParser.add_argument` method just like a regular :" @@ -2958,7 +2959,7 @@ msgstr "" "に表示します。 :meth:`add_argument_group` メソッドには、この表示をカスタマイ" "ズするための *title* と *description* 引数があります::" -#: ../../library/argparse.rst:1816 +#: ../../library/argparse.rst:1820 msgid "" ">>> parser = argparse.ArgumentParser(prog='PROG', add_help=False)\n" ">>> group1 = parser.add_argument_group('group1', 'group1 description')\n" @@ -2979,7 +2980,7 @@ msgid "" " --bar BAR bar help" msgstr "" -#: ../../library/argparse.rst:1834 +#: ../../library/argparse.rst:1838 msgid "" "The optional, keyword-only parameters argument_default_ and " "conflict_handler_ allow for finer-grained control of the behavior of the " @@ -2988,7 +2989,7 @@ msgid "" "rather than the entire parser." msgstr "" -#: ../../library/argparse.rst:1839 +#: ../../library/argparse.rst:1843 msgid "" "Note that any arguments not in your user-defined groups will end up back in " "the usual \"positional arguments\" and \"optional arguments\" sections." @@ -2996,7 +2997,7 @@ msgstr "" "ユーザー定義グループにないすべての引数は通常の \"位置引数\" と \"オプション引" "数\" セクションに表示されます。" -#: ../../library/argparse.rst:1842 +#: ../../library/argparse.rst:1846 msgid "" "Calling :meth:`add_argument_group` on an argument group is deprecated. This " "feature was never supported and does not always work correctly. The function " @@ -3008,11 +3009,11 @@ msgstr "" "ん。この関数は継承を通じて思いがけず API に存在することになったもので、将来削" "除される予定です。" -#: ../../library/argparse.rst:1850 +#: ../../library/argparse.rst:1854 msgid "Mutual exclusion" msgstr "相互排他" -#: ../../library/argparse.rst:1854 +#: ../../library/argparse.rst:1858 msgid "" "Create a mutually exclusive group. :mod:`argparse` will make sure that only " "one of the arguments in the mutually exclusive group was present on the " @@ -3021,7 +3022,7 @@ msgstr "" "相互排他グループを作ります。:mod:`argparse` は相互排他グループの中でただ1つの" "引数のみが存在することを確認します::" -#: ../../library/argparse.rst:1858 +#: ../../library/argparse.rst:1862 msgid "" ">>> parser = argparse.ArgumentParser(prog='PROG')\n" ">>> group = parser.add_mutually_exclusive_group()\n" @@ -3036,7 +3037,7 @@ msgid "" "PROG: error: argument --bar: not allowed with argument --foo" msgstr "" -#: ../../library/argparse.rst:1870 +#: ../../library/argparse.rst:1874 msgid "" "The :meth:`add_mutually_exclusive_group` method also accepts a *required* " "argument, to indicate that at least one of the mutually exclusive arguments " @@ -3045,7 +3046,7 @@ msgstr "" ":meth:`add_mutually_exclusive_group` メソッドの引数 *required* に True 値を指" "定すると、その相互排他引数のどれか1つを選ぶことが要求されます::" -#: ../../library/argparse.rst:1874 +#: ../../library/argparse.rst:1878 msgid "" ">>> parser = argparse.ArgumentParser(prog='PROG')\n" ">>> group = parser.add_mutually_exclusive_group(required=True)\n" @@ -3056,7 +3057,7 @@ msgid "" "PROG: error: one of the arguments --foo --bar is required" msgstr "" -#: ../../library/argparse.rst:1882 +#: ../../library/argparse.rst:1886 msgid "" "Note that currently mutually exclusive argument groups do not support the " "*title* and *description* arguments of :meth:`~ArgumentParser." @@ -3064,7 +3065,7 @@ msgid "" "argument group that has a title and description. For example::" msgstr "" -#: ../../library/argparse.rst:1888 +#: ../../library/argparse.rst:1892 msgid "" ">>> parser = argparse.ArgumentParser(prog='PROG')\n" ">>> group = parser.add_argument_group('Group title', 'Group description')\n" @@ -3084,7 +3085,7 @@ msgid "" " --bar BAR bar help" msgstr "" -#: ../../library/argparse.rst:1905 +#: ../../library/argparse.rst:1909 msgid "" "Calling :meth:`add_argument_group` or :meth:`add_mutually_exclusive_group` " "on a mutually exclusive group is deprecated. These features were never " @@ -3097,11 +3098,11 @@ msgstr "" "の関数は継承により偶然 API に存在することになったもので、将来削除される予定で" "す。" -#: ../../library/argparse.rst:1913 +#: ../../library/argparse.rst:1917 msgid "Parser defaults" msgstr "パーサーのデフォルト値" -#: ../../library/argparse.rst:1917 +#: ../../library/argparse.rst:1921 msgid "" "Most of the time, the attributes of the object returned by :meth:" "`parse_args` will be fully determined by inspecting the command-line " @@ -3114,7 +3115,7 @@ msgstr "" "を使うと与えられたコマンドライン引数の内容によらず追加の属性を決定することが" "可能です::" -#: ../../library/argparse.rst:1923 +#: ../../library/argparse.rst:1927 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('foo', type=int)\n" @@ -3123,13 +3124,13 @@ msgid "" "Namespace(bar=42, baz='badger', foo=736)" msgstr "" -#: ../../library/argparse.rst:1929 +#: ../../library/argparse.rst:1933 msgid "" "Note that parser-level defaults always override argument-level defaults::" msgstr "" "パーサーレベルのデフォルト値は常に引数レベルのデフォルト値を上書きします::" -#: ../../library/argparse.rst:1931 +#: ../../library/argparse.rst:1935 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('--foo', default='bar')\n" @@ -3138,7 +3139,7 @@ msgid "" "Namespace(foo='spam')" msgstr "" -#: ../../library/argparse.rst:1937 +#: ../../library/argparse.rst:1941 msgid "" "Parser-level defaults can be particularly useful when working with multiple " "parsers. See the :meth:`~ArgumentParser.add_subparsers` method for an " @@ -3148,7 +3149,7 @@ msgstr "" "プの例については :meth:`~ArgumentParser.add_subparsers` メソッドを参照してく" "ださい。" -#: ../../library/argparse.rst:1943 +#: ../../library/argparse.rst:1947 msgid "" "Get the default value for a namespace attribute, as set by either :meth:" "`~ArgumentParser.add_argument` or by :meth:`~ArgumentParser.set_defaults`::" @@ -3156,7 +3157,7 @@ msgstr "" ":meth:`~ArgumentParser.add_argument` か :meth:`~ArgumentParser.set_defaults` " "によって指定された、 namespace の属性のデフォルト値を取得します::" -#: ../../library/argparse.rst:1947 +#: ../../library/argparse.rst:1951 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('--foo', default='badger')\n" @@ -3164,11 +3165,11 @@ msgid "" "'badger'" msgstr "" -#: ../../library/argparse.rst:1954 +#: ../../library/argparse.rst:1958 msgid "Printing help" msgstr "ヘルプの表示" -#: ../../library/argparse.rst:1956 +#: ../../library/argparse.rst:1960 msgid "" "In most typical applications, :meth:`~ArgumentParser.parse_args` will take " "care of formatting and printing any usage or error messages. However, " @@ -3178,7 +3179,7 @@ msgstr "" "使用法やエラーメッセージのフォーマットと表示について面倒を見ます。しかし、い" "くつかのフォーマットメソッドが利用できます:" -#: ../../library/argparse.rst:1962 +#: ../../library/argparse.rst:1966 msgid "" "Print a brief description of how the :class:`ArgumentParser` should be " "invoked on the command line. If *file* is ``None``, :data:`sys.stdout` is " @@ -3187,7 +3188,7 @@ msgstr "" ":class:`ArgumentParser` がコマンドラインからどう実行されるべきかの短い説明を" "表示します。 *file* が ``None`` の時は、 :data:`sys.stdout` に出力されます。" -#: ../../library/argparse.rst:1968 +#: ../../library/argparse.rst:1972 msgid "" "Print a help message, including the program usage and information about the " "arguments registered with the :class:`ArgumentParser`. If *file* is " @@ -3197,7 +3198,7 @@ msgstr "" "含むヘルプメッセージを表示します。 *file* が ``None`` の時は、 :data:`sys." "stdout` に出力されます。" -#: ../../library/argparse.rst:1972 +#: ../../library/argparse.rst:1976 msgid "" "There are also variants of these methods that simply return a string instead " "of printing it:" @@ -3205,7 +3206,7 @@ msgstr "" "これらのメソッドの、表示する代わりにシンプルに文字列を返すバージョンもありま" "す:" -#: ../../library/argparse.rst:1977 +#: ../../library/argparse.rst:1981 msgid "" "Return a string containing a brief description of how the :class:" "`ArgumentParser` should be invoked on the command line." @@ -3213,7 +3214,7 @@ msgstr "" ":class:`ArgumentParser` がコマンドラインからどう実行されるべきかの短い説明を" "格納した文字列を返します。" -#: ../../library/argparse.rst:1982 +#: ../../library/argparse.rst:1986 msgid "" "Return a string containing a help message, including the program usage and " "information about the arguments registered with the :class:`ArgumentParser`." @@ -3221,11 +3222,11 @@ msgstr "" "プログラムの使用法と :class:`ArgumentParser` に登録された引数についての情報を" "含むヘルプメッセージを格納した文字列を返します。" -#: ../../library/argparse.rst:1987 +#: ../../library/argparse.rst:1991 msgid "Partial parsing" msgstr "部分解析" -#: ../../library/argparse.rst:1991 +#: ../../library/argparse.rst:1995 msgid "" "Sometimes a script may only parse a few of the command-line arguments, " "passing the remaining arguments on to another script or program. In these " @@ -3242,7 +3243,7 @@ msgstr "" "エラーを生成しません。代わりに、評価された namespace オブジェクトと、残りの引" "数文字列のリストからなる2要素タプルを返します。" -#: ../../library/argparse.rst:2000 +#: ../../library/argparse.rst:2004 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('--foo', action='store_true')\n" @@ -3251,7 +3252,7 @@ msgid "" "(Namespace(bar='BAR', foo=True), ['--badger', 'spam'])" msgstr "" -#: ../../library/argparse.rst:2007 +#: ../../library/argparse.rst:2011 msgid "" ":ref:`Prefix matching ` rules apply to :meth:" "`~ArgumentParser.parse_known_args`. The parser may consume an option even if " @@ -3263,11 +3264,11 @@ msgstr "" "先頭文字に過ぎない場合でも、パーサは引数リストに残さずに、オプションを受け取" "る場合があります。" -#: ../../library/argparse.rst:2014 +#: ../../library/argparse.rst:2018 msgid "Customizing file parsing" msgstr "ファイル解析のカスタマイズ" -#: ../../library/argparse.rst:2018 +#: ../../library/argparse.rst:2022 msgid "" "Arguments that are read from a file (see the *fromfile_prefix_chars* keyword " "argument to the :class:`ArgumentParser` constructor) are read one argument " @@ -3279,7 +3280,7 @@ msgstr "" "す。 :meth:`convert_arg_line_to_args` を変更することでこの動作をカスタマイズ" "できます。" -#: ../../library/argparse.rst:2023 +#: ../../library/argparse.rst:2027 msgid "" "This method takes a single argument *arg_line* which is a string read from " "the argument file. It returns a list of arguments parsed from this string. " @@ -3289,7 +3290,7 @@ msgstr "" "け取ります。そしてその文字列を解析した結果の引数のリストを返します。このメ" "ソッドはファイルから1行読みこむごとに、順番に呼ばれます。" -#: ../../library/argparse.rst:2027 +#: ../../library/argparse.rst:2031 msgid "" "A useful override of this method is one that treats each space-separated " "word as an argument. The following example demonstrates how to do this::" @@ -3297,25 +3298,25 @@ msgstr "" "このメソッドをオーバーライドすると便利なこととして、スペースで区切られた行の" "単語1つ1つを別々の引数として扱えます。次の例でその方法を示します::" -#: ../../library/argparse.rst:2030 +#: ../../library/argparse.rst:2034 msgid "" "class MyArgumentParser(argparse.ArgumentParser):\n" " def convert_arg_line_to_args(self, arg_line):\n" " return arg_line.split()" msgstr "" -#: ../../library/argparse.rst:2036 +#: ../../library/argparse.rst:2040 msgid "Exiting methods" msgstr "終了メソッド" -#: ../../library/argparse.rst:2040 +#: ../../library/argparse.rst:2044 msgid "" "This method terminates the program, exiting with the specified *status* and, " "if given, it prints a *message* to :data:`sys.stderr` before that. The user " "can override this method to handle these steps differently::" msgstr "" -#: ../../library/argparse.rst:2044 +#: ../../library/argparse.rst:2048 msgid "" "class ErrorCatchingArgumentParser(argparse.ArgumentParser):\n" " def exit(self, status=0, message=None):\n" @@ -3324,17 +3325,17 @@ msgid "" " exit(status)" msgstr "" -#: ../../library/argparse.rst:2052 +#: ../../library/argparse.rst:2056 msgid "" "This method prints a usage message, including the *message*, to :data:`sys." "stderr` and terminates the program with a status code of 2." msgstr "" -#: ../../library/argparse.rst:2057 +#: ../../library/argparse.rst:2061 msgid "Intermixed parsing" msgstr "混在した引数の解析" -#: ../../library/argparse.rst:2062 +#: ../../library/argparse.rst:2066 msgid "" "A number of Unix commands allow the user to intermix optional arguments with " "positional arguments. The :meth:`~ArgumentParser.parse_intermixed_args` " @@ -3346,7 +3347,7 @@ msgstr "" "parse_known_intermixed_args` メソッドは、このような方法での解析をサポートして" "います。" -#: ../../library/argparse.rst:2067 +#: ../../library/argparse.rst:2071 msgid "" "These parsers do not support all the argparse features, and will raise " "exceptions if unsupported features are used. In particular, subparsers, and " @@ -3357,7 +3358,7 @@ msgstr "" "使われた場合、例外を送出します。特に、サブパーサーや、位置引数とオプション引" "数を両方含むような相互排他的なグループは、サポートされていません。" -#: ../../library/argparse.rst:2072 +#: ../../library/argparse.rst:2076 msgid "" "The following example shows the difference between :meth:`~ArgumentParser." "parse_known_args` and :meth:`~ArgumentParser.parse_intermixed_args`: the " @@ -3368,7 +3369,7 @@ msgstr "" "parse_intermixed_args` の違いを表しています: 前者は ``['2', '3']`` を、解析さ" "れない引数として返し、後者は全ての位置引数を ``rest`` に入れて返しています::" -#: ../../library/argparse.rst:2078 +#: ../../library/argparse.rst:2082 msgid "" ">>> parser = argparse.ArgumentParser()\n" ">>> parser.add_argument('--foo')\n" @@ -3380,7 +3381,7 @@ msgid "" "Namespace(cmd='doit', foo='bar', rest=[1, 2, 3])" msgstr "" -#: ../../library/argparse.rst:2087 +#: ../../library/argparse.rst:2091 msgid "" ":meth:`~ArgumentParser.parse_known_intermixed_args` returns a two item tuple " "containing the populated namespace and the list of remaining argument " @@ -3392,15 +3393,15 @@ msgstr "" ":meth:`~ArgumentParser.parse_intermixed_args` は、解析されない引数が残された" "場合にはエラーを送出します。" -#: ../../library/argparse.rst:2096 +#: ../../library/argparse.rst:2100 msgid "Exceptions" msgstr "例外" -#: ../../library/argparse.rst:2100 +#: ../../library/argparse.rst:2104 msgid "An error from creating or using an argument (optional or positional)." msgstr "引数 (オプション引数または位置引数) の生成時または利用時のエラーです。" -#: ../../library/argparse.rst:2102 +#: ../../library/argparse.rst:2106 msgid "" "The string value of this exception is the message, augmented with " "information about the argument that caused it." @@ -3408,30 +3409,30 @@ msgstr "" "この例外の文字列表現は、エラーの原因となった引数についての情報を補足するメッ" "セージです。" -#: ../../library/argparse.rst:2107 +#: ../../library/argparse.rst:2111 msgid "" "Raised when something goes wrong converting a command line string to a type." msgstr "" "コマンドラインの文字列を、指定された型に変換するのに失敗した時に送出されま" "す。" -#: ../../library/argparse.rst:2111 +#: ../../library/argparse.rst:2115 msgid "Guides and Tutorials" msgstr "ガイドとチュートリアル" -#: ../../library/argparse.rst:796 +#: ../../library/argparse.rst:800 msgid "? (question mark)" msgstr "? (クエスチョンマーク)" -#: ../../library/argparse.rst:796 ../../library/argparse.rst:830 -#: ../../library/argparse.rst:844 +#: ../../library/argparse.rst:800 ../../library/argparse.rst:834 +#: ../../library/argparse.rst:848 msgid "in argparse module" msgstr "argparse モジュール内" -#: ../../library/argparse.rst:830 +#: ../../library/argparse.rst:834 msgid "* (asterisk)" msgstr "* (アスタリスク)" -#: ../../library/argparse.rst:844 +#: ../../library/argparse.rst:848 msgid "+ (plus)" msgstr "+ (プラス記号)" diff --git a/tutorial/errors.po b/tutorial/errors.po index 6b8da944c..778ffe737 100644 --- a/tutorial/errors.po +++ b/tutorial/errors.po @@ -17,7 +17,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.13\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-10-11 14:17+0000\n" +"POT-Creation-Date: 2024-10-26 20:15+0000\n" "PO-Revision-Date: 2021-06-28 01:50+0000\n" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -818,7 +818,7 @@ msgid "" "executing finally clause\n" "Traceback (most recent call last):\n" " File \"\", line 1, in \n" -" divide(\"2\", \"0\")\n" +" divide(\"2\", \"1\")\n" " ~~~~~~^^^^^^^^^^\n" " File \"\", line 3, in divide\n" " result = x / y\n"