| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,8 +28,8 @@ msgid "" | |||
| 28 | 28 | "The :mod:`argparse` module offers several higher level features not natively " | |
| 29 | 29 | "provided by the :mod:`optparse` module, including:" | |
| 30 | 30 | msgstr "" | |
| 31 | - "Das Modul :mod:`argparse` bietet mehrere höhere Funktionen, die das " | ||
| 32 | - "Modul :mod:`optparse` von sich aus nicht bereitstellt, darunter:" | ||
| 31 | + "Das Modul :mod:`argparse` bietet mehrere höhere Funktionen, die das Modul :" | ||
| 32 | + "mod:`optparse` von sich aus nicht bereitstellt, darunter:" | ||
| 33 | 33 | ||
| 34 | 34 | #: ../../howto/argparse-optparse.rst:13 | |
| 35 | 35 | msgid "Handling positional arguments." | |
@@ -66,9 +66,9 @@ msgid "" | |||
| 66 | 66 | "named options and positional arguments in the declarative interface mean " | |
| 67 | 67 | "that the API has diverged from that of ``optparse`` over time." | |
| 68 | 68 | msgstr "" | |
| 69 | - "Ursprünglich versuchte das Modul :mod:`argparse`, die Kompatibilität " | ||
| 70 | - "mit :mod:`optparse` zu erhalten. Die grundlegenden Entwurfsunterschiede " | ||
| 71 | - "zwischen einer deklarativen Verarbeitung von Befehlszeilenoptionen (die die " | ||
| 69 | + "Ursprünglich versuchte das Modul :mod:`argparse`, die Kompatibilität mit :" | ||
| 70 | + "mod:`optparse` zu erhalten. Die grundlegenden Entwurfsunterschiede zwischen " | ||
| 71 | + "einer deklarativen Verarbeitung von Befehlszeilenoptionen (die die " | ||
| 72 | 72 | "Verarbeitung positioneller Argumente dem Anwendungscode überlässt) und der " | |
| 73 | 73 | "Unterstützung sowohl benannter Optionen als auch positioneller Argumente in " | |
| 74 | 74 | "der deklarativen Schnittstelle führen jedoch dazu, dass sich die API im " | |
@@ -97,43 +97,41 @@ msgstr "" | |||
| 97 | 97 | ||
| 98 | 98 | #: ../../howto/argparse-optparse.rst:35 | |
| 99 | 99 | msgid "" | |
| 100 | - "For applications that do choose to migrate from :mod:`optparse` " | ||
| 101 | - "to :mod:`argparse`, the following suggestions should be helpful:" | ||
| 100 | + "For applications that do choose to migrate from :mod:`optparse` to :mod:" | ||
| 101 | + "`argparse`, the following suggestions should be helpful:" | ||
| 102 | 102 | msgstr "" | |
| 103 | - "Für Anwendungen, die sich für die Migration von :mod:`optparse` " | ||
| 104 | - "nach :mod:`argparse` entscheiden, dürften die folgenden Vorschläge hilfreich " | ||
| 105 | - "sein:" | ||
| 103 | + "Für Anwendungen, die sich für die Migration von :mod:`optparse` nach :mod:" | ||
| 104 | + "`argparse` entscheiden, dürften die folgenden Vorschläge hilfreich sein:" | ||
| 106 | 105 | ||
| 107 | 106 | #: ../../howto/argparse-optparse.rst:38 | |
| 108 | 107 | msgid "" | |
| 109 | - "Replace all :meth:`optparse.OptionParser.add_option` calls " | ||
| 110 | - "with :meth:`ArgumentParser.add_argument` calls." | ||
| 108 | + "Replace all :meth:`optparse.OptionParser.add_option` calls with :meth:" | ||
| 109 | + "`ArgumentParser.add_argument` calls." | ||
| 111 | 110 | msgstr "" | |
| 112 | 111 | "Ersetze alle Aufrufe von :meth:`optparse.OptionParser.add_option` durch " | |
| 113 | 112 | "Aufrufe von :meth:`ArgumentParser.add_argument`." | |
| 114 | 113 | ||
| 115 | 114 | #: ../../howto/argparse-optparse.rst:41 | |
| 116 | 115 | msgid "" | |
| 117 | - "Replace ``(options, args) = parser.parse_args()`` with ``args = " | ||
| 118 | - "parser.parse_args()`` and add additional :meth:`ArgumentParser.add_argument` " | ||
| 119 | - "calls for the positional arguments. Keep in mind that what was previously " | ||
| 120 | - "called ``options``, now in the :mod:`argparse` context is called ``args``." | ||
| 116 | + "Replace ``(options, args) = parser.parse_args()`` with ``args = parser." | ||
| 117 | + "parse_args()`` and add additional :meth:`ArgumentParser.add_argument` calls " | ||
| 118 | + "for the positional arguments. Keep in mind that what was previously called " | ||
| 119 | + "``options``, now in the :mod:`argparse` context is called ``args``." | ||
| 121 | 120 | msgstr "" | |
| 122 | - "Ersetze ``(options, args) = parser.parse_args()`` durch ``args = " | ||
| 123 | - "parser.parse_args()`` und füge für die positionellen Argumente weitere " | ||
| 124 | - "Aufrufe von :meth:`ArgumentParser.add_argument` hinzu. Bedenke, dass das, " | ||
| 125 | - "was früher ``options`` hieß, im Kontext von :mod:`argparse` jetzt ``args`` " | ||
| 126 | - "heißt." | ||
| 121 | + "Ersetze ``(options, args) = parser.parse_args()`` durch ``args = parser." | ||
| 122 | + "parse_args()`` und füge für die positionellen Argumente weitere Aufrufe von :" | ||
| 123 | + "meth:`ArgumentParser.add_argument` hinzu. Bedenke, dass das, was früher " | ||
| 124 | + "``options`` hieß, im Kontext von :mod:`argparse` jetzt ``args`` heißt." | ||
| 127 | 125 | ||
| 128 | 126 | #: ../../howto/argparse-optparse.rst:46 | |
| 129 | 127 | msgid "" | |
| 130 | - "Replace :meth:`optparse.OptionParser.disable_interspersed_args` by " | ||
| 131 | - "using :meth:`~ArgumentParser.parse_intermixed_args` instead " | ||
| 132 | - "of :meth:`~ArgumentParser.parse_args`." | ||
| 128 | + "Replace :meth:`optparse.OptionParser.disable_interspersed_args` by using :" | ||
| 129 | + "meth:`~ArgumentParser.parse_intermixed_args` instead of :meth:" | ||
| 130 | + "`~ArgumentParser.parse_args`." | ||
| 133 | 131 | msgstr "" | |
| 134 | - "Ersetze :meth:`optparse.OptionParser.disable_interspersed_args`, indem " | ||
| 135 | - "du :meth:`~ArgumentParser.parse_intermixed_args` anstelle " | ||
| 136 | - "von :meth:`~ArgumentParser.parse_args` verwendest." | ||
| 132 | + "Ersetze :meth:`optparse.OptionParser.disable_interspersed_args`, indem du :" | ||
| 133 | + "meth:`~ArgumentParser.parse_intermixed_args` anstelle von :meth:" | ||
| 134 | + "`~ArgumentParser.parse_args` verwendest." | ||
| 137 | 135 | ||
| 138 | 136 | #: ../../howto/argparse-optparse.rst:50 | |
| 139 | 137 | msgid "" | |
@@ -153,13 +151,12 @@ msgstr "" | |||
| 153 | 151 | ||
| 154 | 152 | #: ../../howto/argparse-optparse.rst:56 | |
| 155 | 153 | msgid "" | |
| 156 | - "Replace :class:`optparse.Values` with :class:`Namespace` " | ||
| 157 | - "and :exc:`optparse.OptionError` and :exc:`optparse.OptionValueError` " | ||
| 158 | - "with :exc:`ArgumentError`." | ||
| 154 | + "Replace :class:`optparse.Values` with :class:`Namespace` and :exc:`optparse." | ||
| 155 | + "OptionError` and :exc:`optparse.OptionValueError` with :exc:`ArgumentError`." | ||
| 159 | 156 | msgstr "" | |
| 160 | - "Ersetze :class:`optparse.Values` durch :class:`Namespace` " | ||
| 161 | - "sowie :exc:`optparse.OptionError` und :exc:`optparse.OptionValueError` " | ||
| 162 | - "durch :exc:`ArgumentError`." | ||
| 157 | + "Ersetze :class:`optparse.Values` durch :class:`Namespace` sowie :exc:" | ||
| 158 | + "`optparse.OptionError` und :exc:`optparse.OptionValueError` durch :exc:" | ||
| 159 | + "`ArgumentError`." | ||
| 163 | 160 | ||
| 164 | 161 | #: ../../howto/argparse-optparse.rst:60 | |
| 165 | 162 | msgid "" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments