@@ -3077,7 +3077,7 @@ msgstr "as ações de \"armazenar\" também são listadas aqui."
3077
3077
3078
3078
#: ../../library/optparse.rst:1967
3079
3079
msgid "\" typed\" actions are additionally listed here."
3080
- msgstr ""
3080
+ msgstr "as ações \" typed \" também são listadas aqui. "
3081
3081
3082
3082
#: ../../library/optparse.rst:1971
3083
3083
msgid ""
@@ -3086,12 +3086,18 @@ msgid ""
3086
3086
"assigns the default type, ``\" string\" ``, to options with no explicit type "
3087
3087
"whose action is listed in :attr:`ALWAYS_TYPED_ACTIONS`."
3088
3088
msgstr ""
3089
+ "Ações que sempre assumem um tipo (ou seja, cujas opções sempre assumem um "
3090
+ "valor) são listadas aqui adicionalmente. O único efeito disso é que :mod:"
3091
+ "`optparse` atribui o tipo padrão, ``\" string\" ``, a opções sem tipo "
3092
+ "explícito cuja ação é listada em :attr:`ALWAYS_TYPED_ACTIONS`."
3089
3093
3090
3094
#: ../../library/optparse.rst:1976
3091
3095
msgid ""
3092
3096
"In order to actually implement your new action, you must override Option's :"
3093
3097
"meth:`take_action` method and add a case that recognizes your action."
3094
3098
msgstr ""
3099
+ "Para realmente implementar sua nova ação, você deve substituir o método :"
3100
+ "meth:`take_action` de Option e adicionar um caso que reconheça sua ação."
3095
3101
3096
3102
#: ../../library/optparse.rst:1979
3097
3103
msgid ""
@@ -3102,46 +3108,65 @@ msgid ""
3102
3108
"existing list with them. That is, if ``--names`` is an ``\" extend\" `` "
3103
3109
"option of type ``\" string\" ``, the command line ::"
3104
3110
msgstr ""
3111
+ "Por exemplo, vamos adicionar uma ação ``\" extend\" ``. Isso é semelhante à "
3112
+ "ação padrão ``\" append\" ``, mas em vez de pegar um único valor da linha de "
3113
+ "comando e anexá-lo a uma lista existente, ``\" extend\" `` pegará vários "
3114
+ "valores em uma única string delimitada por vírgulas e estenderá uma lista "
3115
+ "existente com eles. Ou seja, se ``--names`` for uma opção ``\" extend\" `` do "
3116
+ "tipo ``\" string\" ``, a linha de comando ::"
3105
3117
3106
3118
#: ../../library/optparse.rst:1988
3107
3119
msgid "would result in a list ::"
3108
- msgstr ""
3120
+ msgstr "resultaria em uma lista :: "
3109
3121
3110
3122
#: ../../library/optparse.rst:1992
3111
3123
msgid "Again we define a subclass of Option::"
3112
- msgstr ""
3124
+ msgstr "Novamente, nós definimos uma subclasse de Option:: "
3113
3125
3114
3126
#: ../../library/optparse.rst:2009
3115
3127
msgid "Features of note:"
3116
- msgstr ""
3128
+ msgstr "Características de nota: "
3117
3129
3118
3130
#: ../../library/optparse.rst:2011
3119
3131
msgid ""
3120
3132
"``\" extend\" `` both expects a value on the command-line and stores that "
3121
3133
"value somewhere, so it goes in both :attr:`~Option.STORE_ACTIONS` and :attr:"
3122
3134
"`~Option.TYPED_ACTIONS`."
3123
3135
msgstr ""
3136
+ "``\" extend\" `` espera um valor na linha de comando e armazena esse valor em "
3137
+ "algum lugar, então ele vai em :attr:`~Option.STORE_ACTIONS` e :attr:`~Option."
3138
+ "TYPED_ACTIONS`."
3124
3139
3125
3140
#: ../../library/optparse.rst:2015
3126
3141
msgid ""
3127
3142
"to ensure that :mod:`optparse` assigns the default type of ``\" string\" `` to "
3128
3143
"``\" extend\" `` actions, we put the ``\" extend\" `` action in :attr:`~Option."
3129
3144
"ALWAYS_TYPED_ACTIONS` as well."
3130
3145
msgstr ""
3146
+ "para garantir que :mod:`optparse` atribua o tipo padrão de ``\" string\" `` às "
3147
+ "ações ``\" extend\" ``, colocamos a ação ``\" extend\" `` em :attr:`~Option."
3148
+ "ALWAYS_TYPED_ACTIONS` também."
3131
3149
3132
3150
#: ../../library/optparse.rst:2019
3133
3151
msgid ""
3134
3152
":meth:`MyOption.take_action` implements just this one new action, and passes "
3135
3153
"control back to :meth:`Option.take_action` for the standard :mod:`optparse` "
3136
3154
"actions."
3137
3155
msgstr ""
3156
+ ":meth:`MyOption.take_action` implementa apenas esta nova ação e passa o "
3157
+ "controle de volta para :meth:`Option.take_action` para as ações padrão :mod:"
3158
+ "`optparse`."
3138
3159
3139
3160
#: ../../library/optparse.rst:2023
3140
3161
msgid ""
3141
3162
"``values`` is an instance of the optparse_parser.Values class, which "
3142
3163
"provides the very useful :meth:`ensure_value` method. :meth:`ensure_value` "
3143
3164
"is essentially :func:`getattr` with a safety valve; it is called as ::"
3144
3165
msgstr ""
3166
+ "``values`` é uma instância da classe optparse_parser.Values, que fornece o "
3167
+ "método muito útil :meth:`ensure_value`. :meth:`ensure_value` é "
3168
+ "essencialmente :func:`getattr` com uma válvula de segurança; é chamado "
3169
+ "como ::"
3145
3170
3146
3171
#: ../../library/optparse.rst:2029
3147
3172
msgid ""
0 commit comments