@@ -3077,7 +3077,7 @@ msgstr "as ações de \"armazenar\" também são listadas aqui."
30773077
30783078#: ../../library/optparse.rst:1967
30793079msgid "\" typed\" actions are additionally listed here."
3080- msgstr ""
3080+ msgstr "as ações \" typed \" também são listadas aqui. "
30813081
30823082#: ../../library/optparse.rst:1971
30833083msgid ""
@@ -3086,12 +3086,18 @@ msgid ""
30863086"assigns the default type, ``\" string\" ``, to options with no explicit type "
30873087"whose action is listed in :attr:`ALWAYS_TYPED_ACTIONS`."
30883088msgstr ""
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`."
30893093
30903094#: ../../library/optparse.rst:1976
30913095msgid ""
30923096"In order to actually implement your new action, you must override Option's :"
30933097"meth:`take_action` method and add a case that recognizes your action."
30943098msgstr ""
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."
30953101
30963102#: ../../library/optparse.rst:1979
30973103msgid ""
@@ -3102,46 +3108,65 @@ msgid ""
31023108"existing list with them. That is, if ``--names`` is an ``\" extend\" `` "
31033109"option of type ``\" string\" ``, the command line ::"
31043110msgstr ""
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 ::"
31053117
31063118#: ../../library/optparse.rst:1988
31073119msgid "would result in a list ::"
3108- msgstr ""
3120+ msgstr "resultaria em uma lista :: "
31093121
31103122#: ../../library/optparse.rst:1992
31113123msgid "Again we define a subclass of Option::"
3112- msgstr ""
3124+ msgstr "Novamente, nós definimos uma subclasse de Option:: "
31133125
31143126#: ../../library/optparse.rst:2009
31153127msgid "Features of note:"
3116- msgstr ""
3128+ msgstr "Características de nota: "
31173129
31183130#: ../../library/optparse.rst:2011
31193131msgid ""
31203132"``\" extend\" `` both expects a value on the command-line and stores that "
31213133"value somewhere, so it goes in both :attr:`~Option.STORE_ACTIONS` and :attr:"
31223134"`~Option.TYPED_ACTIONS`."
31233135msgstr ""
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`."
31243139
31253140#: ../../library/optparse.rst:2015
31263141msgid ""
31273142"to ensure that :mod:`optparse` assigns the default type of ``\" string\" `` to "
31283143"``\" extend\" `` actions, we put the ``\" extend\" `` action in :attr:`~Option."
31293144"ALWAYS_TYPED_ACTIONS` as well."
31303145msgstr ""
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."
31313149
31323150#: ../../library/optparse.rst:2019
31333151msgid ""
31343152":meth:`MyOption.take_action` implements just this one new action, and passes "
31353153"control back to :meth:`Option.take_action` for the standard :mod:`optparse` "
31363154"actions."
31373155msgstr ""
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`."
31383159
31393160#: ../../library/optparse.rst:2023
31403161msgid ""
31413162"``values`` is an instance of the optparse_parser.Values class, which "
31423163"provides the very useful :meth:`ensure_value` method. :meth:`ensure_value` "
31433164"is essentially :func:`getattr` with a safety valve; it is called as ::"
31443165msgstr ""
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 ::"
31453170
31463171#: ../../library/optparse.rst:2029
31473172msgid ""