@@ -28,7 +28,7 @@ msgstr ""
2828
2929#: ../../c-api/exceptions.rst:8
3030msgid "Exception Handling"
31- msgstr "Tratamento de Exceções "
31+ msgstr "Tratamento de exceções "
3232
3333#: ../../c-api/exceptions.rst:10
3434msgid ""
@@ -225,7 +225,7 @@ msgstr ""
225225
226226#: ../../c-api/exceptions.rst:123
227227msgid "Raising exceptions"
228- msgstr "Lançando exceções"
228+ msgstr "Levantando exceções"
229229
230230#: ../../c-api/exceptions.rst:125
231231msgid ""
@@ -478,6 +478,8 @@ msgid ""
478478"Similar to :c:func:`PyErr_SyntaxLocationObject`, but also sets the "
479479"*end_lineno* and *end_col_offset* information for the current exception."
480480msgstr ""
481+ "Similar a :c:func:`PyErr_SyntaxLocationObject`, mas também define as "
482+ "informações *end_lineno* e *end_col_offset* para a exceção atual."
481483
482484#: ../../c-api/exceptions.rst:322
483485msgid ""
@@ -513,23 +515,32 @@ msgid ""
513515"Get the source line in *filename* at line *lineno*. *filename* should be a "
514516"Python :class:`str` object."
515517msgstr ""
518+ "Obtém a linha de código-fonte em *filename* na linha *lineno*. *filename* "
519+ "deve ser um objeto :class:`str` Python."
516520
517521#: ../../c-api/exceptions.rst:347
518522msgid ""
519523"On success, this function returns a Python string object with the found "
520524"line. On failure, this function returns ``NULL`` without an exception set."
521525msgstr ""
526+ "Em caso de sucesso, esta função retorna um objeto string do Python com a "
527+ "linha encontrada. Em caso de falha, esta função retorna ``NULL`` sem definir "
528+ "uma exceção."
522529
523530#: ../../c-api/exceptions.rst:353
524531msgid ""
525532"Similar to :c:func:`PyErr_ProgramTextObject`, but *filename* is a :c:expr:"
526533"`const char *`, which is decoded with the :term:`filesystem encoding and "
527534"error handler`, instead of a Python object reference."
528535msgstr ""
536+ "Semelhante a :c:func:`PyErr_ProgramTextObject`, mas *filename* é um :c:expr:"
537+ "`const char *`, que é decodificado com :term:`tratador de erros e "
538+ "codificação do sistema de arquivos`, em vez de uma referência de objeto "
539+ "Python."
529540
530541#: ../../c-api/exceptions.rst:360
531542msgid "Issuing warnings"
532- msgstr "Emitindo advertências "
543+ msgstr "Emitindo avisos "
533544
534545#: ../../c-api/exceptions.rst:362
535546msgid ""
@@ -569,6 +580,12 @@ msgid ""
569580"stack frame. A *stack_level* of 1 is the function calling :c:func:"
570581"`PyErr_WarnEx`, 2 is the function above that, and so forth."
571582msgstr ""
583+ "Emite uma mensagem de aviso. O argumento *category* é uma categoria de aviso "
584+ "(veja abaixo) ou ``NULL``; o argumento *message* é uma string codificada em "
585+ "UTF-8. *stack_level* é um número positivo que indica o número de quadros da "
586+ "pilha; o aviso será emitido a partir da linha de código atualmente em "
587+ "execução nesse quadro da pilha. Um *stack_level* de 1 é a função que chama :"
588+ "c:func:`PyErr_WarnEx`, 2 é a função acima dessa e assim por diante."
572589
573590#: ../../c-api/exceptions.rst:384
574591msgid ""
@@ -578,13 +595,21 @@ msgid ""
578595"warning categories are available as global variables whose names are "
579596"enumerated at :ref:`standardwarningcategories`."
580597msgstr ""
598+ "As categorias de aviso devem ser subclasses de :c:data:`PyExc_Warning`; :c:"
599+ "data:`PyExc_Warning` é uma subclasse de :c:data:`PyExc_Exception`; a "
600+ "categoria de aviso padrão é :c:data:`PyExc_RuntimeWarning`. As categorias de "
601+ "aviso padrão do Python estão disponíveis como variáveis globais cujos nomes "
602+ "estão enumerados em :ref:`standardwarningcategories`."
581603
582604#: ../../c-api/exceptions.rst:390
583605msgid ""
584606"For information about warning control, see the documentation for the :mod:"
585607"`warnings` module and the :option:`-W` option in the command line "
586608"documentation. There is no C API for warning control."
587609msgstr ""
610+ "Para obter informações sobre o controle de avisos, consulte a documentação "
611+ "do módulo :mod:`warnings` e a opção :option:`-W` na documentação da linha de "
612+ "comando. Não existe uma API C para o controle de avisos."
588613
589614#: ../../c-api/exceptions.rst:397
590615msgid ""
@@ -593,13 +618,21 @@ msgid ""
593618"warn_explicit`; see there for more information. The *module* and *registry* "
594619"arguments may be set to ``NULL`` to get the default effect described there."
595620msgstr ""
621+ "Emite uma mensagem de aviso com controle explícito sobre todos os atributos "
622+ "de aviso. Trata-se de um invólucro simples em torno da função Python :func:"
623+ "`warnings.warn_explicit`; consulte-a para obter mais informações. Os "
624+ "argumentos *module* e *registry* podem ser definidos como ``NULL`` para "
625+ "obter o efeito padrão descrito nessa função."
596626
597627#: ../../c-api/exceptions.rst:408
598628msgid ""
599629"Similar to :c:func:`PyErr_WarnExplicitObject` except that *message* and "
600630"*module* are UTF-8 encoded strings, and *filename* is decoded from the :term:"
601631"`filesystem encoding and error handler`."
602632msgstr ""
633+ "Semelhante a :c:func:`PyErr_WarnExplicitObject`, exceto que *message* e "
634+ "*module* são strings codificadas em UTF-8 e *filename* é decodificado a "
635+ "partir do :term:`tratador de erros e codificação do sistema de arquivos`."
603636
604637#: ../../c-api/exceptions.rst:415
605638msgid ""
0 commit comments