# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2023, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR , YEAR.
#
# Translators:
# Claudio Rogerio Carvalho Filho , 2019
# i17obot , 2020
# Rafael Fontenelle , 2024
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-06-23 16:56+0000\n"
"PO-Revision-Date: 2019-09-01 03:33+0000\n"
"Last-Translator: Rafael Fontenelle , 2024\n"
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
"teams/5390/pt_BR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: pt_BR\n"
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % "
"1000000 == 0 ? 1 : 2;\n"
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:2
msgid ":mod:`code` --- Interpreter base classes"
msgstr ":mod:`code` --- Classes Bases do Intrprete"
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:7
msgid "**Source code:** :source:`Lib/code.py`"
msgstr "**Cdigo Fonte:** :source:`Lib/code.py`"
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:11
msgid ""
"The ``code`` module provides facilities to implement read-eval-print loops "
"in Python. Two classes and convenience functions are included which can be "
"used to build applications which provide an interactive interpreter prompt."
msgstr ""
"O mdulo ``code`` fornece facilidades para implementarmos loops de leitura-"
"eval-escrita no cdigo Python. So includas duas classes e funes de "
"convenincia que podem ser usadas para criar aplicativos que fornecem um "
"prompt de interpretao interativa."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:18
msgid ""
"This class deals with parsing and interpreter state (the user's namespace); "
"it does not deal with input buffering or prompting or input file naming (the "
"filename is always passed in explicitly). The optional *locals* argument "
"specifies the dictionary in which code will be executed; it defaults to a "
"newly created dictionary with key ``'__name__'`` set to ``'__console__'`` "
"and key ``'__doc__'`` set to ``None``."
msgstr ""
"Esta classe trata de analisar e interpretar o estado (espao de nome do "
"usurio); o mesmo no lida com buffer de entrada ou solicitao ou nomeao "
"de arquivo de entrada (o nome do arquivo sempre passado explicitamente). O "
"argumento opcional *local* especifica o dicionrio no qual o cdigo ser "
"executado; ele padro para um dicionrio recm-criado com a chave "
"``'__name__'`` set to ``'__console__'`` and key ``'__doc__'`` definido com "
"``None``."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:28
msgid ""
"Closely emulate the behavior of the interactive Python interpreter. This "
"class builds on :class:`InteractiveInterpreter` and adds prompting using the "
"familiar ``sys.ps1`` and ``sys.ps2``, and input buffering."
msgstr ""
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:35
msgid ""
"Convenience function to run a read-eval-print loop. This creates a new "
"instance of :class:`InteractiveConsole` and sets *readfunc* to be used as "
"the :meth:`InteractiveConsole.raw_input` method, if provided. If *local* is "
"provided, it is passed to the :class:`InteractiveConsole` constructor for "
"use as the default namespace for the interpreter loop. The :meth:`interact` "
"method of the instance is then run with *banner* and *exitmsg* passed as the "
"banner and exit message to use, if provided. The console object is "
"discarded after use."
msgstr ""
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:44
msgid "Added *exitmsg* parameter."
msgstr "Parmetro adicionado *exitmsg*."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:50
msgid ""
"This function is useful for programs that want to emulate Python's "
"interpreter main loop (a.k.a. the read-eval-print loop). The tricky part is "
"to determine when the user has entered an incomplete command that can be "
"completed by entering more text (as opposed to a complete command or a "
"syntax error). This function *almost* always makes the same decision as the "
"real interpreter main loop."
msgstr ""
"Esta funo til para programas que desejam emular o lao principal do "
"interpretador Python (tambm conhecido como lao de leitura-execuo-"
"impresso). A parte complicada determinar quando o usurio digitou um "
"comando incompleto que pode ser concludo inserindo mais texto (em vez de um "
"comando completo ou um erro de sintaxe). Esta funo *quase* sempre toma a "
"mesma deciso que o lao principal do interpretador real."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:57
msgid ""
"*source* is the source string; *filename* is the optional filename from "
"which source was read, defaulting to ``''``; and *symbol* is the "
"optional grammar start symbol, which should be ``'single'`` (the default), "
"``'eval'`` or ``'exec'``."
msgstr ""
"*source* a string fonte; *filename* o nome do arquivo opcional do qual a "
"fonte foi lida, sendo o padro ``''``; e *symbol* o smbolo "
"opcional de incio da gramtica, que deve ser ``'single'`` (o padro), "
"``'eval'`` ou ``'exec'``."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:62
msgid ""
"Returns a code object (the same as ``compile(source, filename, symbol)``) if "
"the command is complete and valid; ``None`` if the command is incomplete; "
"raises :exc:`SyntaxError` if the command is complete and contains a syntax "
"error, or raises :exc:`OverflowError` or :exc:`ValueError` if the command "
"contains an invalid literal."
msgstr ""
"Retorna um objeto cdigo (o mesmo que ``compile(source, filename, symbol)``) "
"se o comando for completo e vlido; ``None`` se o comando estiver "
"incompleto; levanta :exc:`SyntaxError` se o comando estiver completo e "
"contm um erro de sintaxe, ou levanta :exc:`OverflowError` ou :exc:"
"`ValueError` se o comando contiver um literal invlido."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:72
msgid "Interactive Interpreter Objects"
msgstr "Objetos de Intrprete Interativo"
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:77
msgid ""
"Compile and run some source in the interpreter. Arguments are the same as "
"for :func:`compile_command`; the default for *filename* is ``''``, "
"and for *symbol* is ``'single'``. One of several things can happen:"
msgstr ""
"Compila e executa alguma fonte no interpretador. Os argumentos so os mesmos "
"de :func:`compile_command`; o padro para *filename* ``''``, e para "
"*symbol* ``'single'``. Uma de vrias coisas pode acontecer:"
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:81
msgid ""
"The input is incorrect; :func:`compile_command` raised an exception (:exc:"
"`SyntaxError` or :exc:`OverflowError`). A syntax traceback will be printed "
"by calling the :meth:`showsyntaxerror` method. :meth:`runsource` returns "
"``False``."
msgstr ""
"A entrada est incorreta; :func:`compile_command` levantou uma exceo (:exc:"
"`SyntaxError` ou :exc:`OverflowError`). Um rastreamento de sintaxe ser "
"impresso chamando o mtodo :meth:`showsyntaxerror`. :meth:`runsource` "
"retorna ``False``."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:86
msgid ""
"The input is incomplete, and more input is required; :func:`compile_command` "
"returned ``None``. :meth:`runsource` returns ``True``."
msgstr ""
"A entrada est incompleta e so necessrias mais entradas; :func:"
"`compile_command` retornou ``None``. :meth:`runsource` retorna ``True``."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:89
msgid ""
"The input is complete; :func:`compile_command` returned a code object. The "
"code is executed by calling the :meth:`runcode` (which also handles run-time "
"exceptions, except for :exc:`SystemExit`). :meth:`runsource` returns "
"``False``."
msgstr ""
"A entrada est completa; :func:`compile_command` retornou um objeto cdigo. "
"O cdigo executado chamando :meth:`runcode` (que tambm lida com excees "
"de tempo de execuo, exceto :exc:`SystemExit`). :meth:`runsource` retorna "
"``False``."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:93
msgid ""
"The return value can be used to decide whether to use ``sys.ps1`` or ``sys."
"ps2`` to prompt the next line."
msgstr ""
"O valor de retorno pode ser usado para decidir se usar ``sys.ps1`` ou ``sys."
"ps2`` para solicitar a prxima linha."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:99
msgid ""
"Execute a code object. When an exception occurs, :meth:`showtraceback` is "
"called to display a traceback. All exceptions are caught except :exc:"
"`SystemExit`, which is allowed to propagate."
msgstr ""
"Executa um objeto cdigo. Quando ocorre uma exceo, :meth:`showtraceback` "
"chamado para exibir um traceback. Todas as excees so capturadas, exceto :"
"exc:`SystemExit`, que pode ser propagada."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:103
msgid ""
"A note about :exc:`KeyboardInterrupt`: this exception may occur elsewhere in "
"this code, and may not always be caught. The caller should be prepared to "
"deal with it."
msgstr ""
"Uma observao sobre :exc:`KeyboardInterrupt`: esta exceo pode ocorrer em "
"outro lugar neste cdigo e nem sempre pode ser detectada. O chamador deve "
"estar preparado para lidar com isso."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:110
msgid ""
"Display the syntax error that just occurred. This does not display a stack "
"trace because there isn't one for syntax errors. If *filename* is given, it "
"is stuffed into the exception instead of the default filename provided by "
"Python's parser, because it always uses ``''`` when reading from a "
"string. The output is written by the :meth:`write` method."
msgstr ""
"Exibe o erro de sintaxe que acabou de ocorrer. Isso no exibe um stack trace "
"(situao da pilha de execuo) porque no h um para erros de sintaxe. Se "
"*filename* for fornecido, ele ser inserido na exceo em vez do nome de "
"arquivo padro fornecido pelo analisador do Python, porque ele sempre usa "
"``''`` ao ler uma string. A sada escrita pelo mtodo :meth:"
"`write`."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:119
msgid ""
"Display the exception that just occurred. We remove the first stack item "
"because it is within the interpreter object implementation. The output is "
"written by the :meth:`write` method."
msgstr ""
"Exibe a exceo que acabou de ocorrer. Removemos o primeiro item da pilha "
"porque ele est dentro da implementao do objeto interpretador. A sada "
"escrita pelo mtodo :meth:`write`."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:123
msgid ""
"The full chained traceback is displayed instead of just the primary "
"traceback."
msgstr ""
"O traceback encadeado completo exibido em vez de apenas o traceback "
"primrio."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:129
msgid ""
"Write a string to the standard error stream (``sys.stderr``). Derived "
"classes should override this to provide the appropriate output handling as "
"needed."
msgstr ""
"Escreve uma string no fluxo de erro padro (``sys.stderr``). As classes "
"derivadas devem substituir isso para fornecer o tratamento de sada "
"apropriado conforme necessrio."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:136
msgid "Interactive Console Objects"
msgstr "Objetos de Console Interativos"
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:138
msgid ""
"The :class:`InteractiveConsole` class is a subclass of :class:"
"`InteractiveInterpreter`, and so offers all the methods of the interpreter "
"objects as well as the following additions."
msgstr ""
"A classe :class:`InteractiveConsole` uma subclasse de :class:"
"`InteractiveInterpreter` e, portanto, oferece todos os mtodos dos objetos "
"interpretadores, bem como as seguintes adies."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:145
msgid ""
"Closely emulate the interactive Python console. The optional *banner* "
"argument specify the banner to print before the first interaction; by "
"default it prints a banner similar to the one printed by the standard Python "
"interpreter, followed by the class name of the console object in parentheses "
"(so as not to confuse this with the real interpreter -- since it's so "
"close!)."
msgstr ""
"Emula de forma muito semelhante o console interativo do Python. O argumento "
"opcional *banner* especifica o banner a ser impresso antes da primeira "
"interao; por padro ele imprime um banner semelhante ao impresso pelo "
"interpretador Python padro, seguido pelo nome da classe do objeto console "
"entre parnteses (para no confundir isso com o interpretador real -- j que "
"est to prximo!)."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:151
msgid ""
"The optional *exitmsg* argument specifies an exit message printed when "
"exiting. Pass the empty string to suppress the exit message. If *exitmsg* is "
"not given or ``None``, a default message is printed."
msgstr ""
"O argumento opcional *exitmsg* especifica uma mensagem de sada impressa ao "
"sair. Passe a string vazia para suprimir a mensagem de sada. Se *exitmsg* "
"no for fornecido ou ``None``, uma mensagem padro ser impressa."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:155
msgid "To suppress printing any banner, pass an empty string."
msgstr "Para suprimir a impresso de qualquer banner, passe uma string vazia."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:158
msgid "Print an exit message when exiting."
msgstr "Imprima uma mensagem de sada ao sair."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:164
msgid ""
"Push a line of source text to the interpreter. The line should not have a "
"trailing newline; it may have internal newlines. The line is appended to a "
"buffer and the interpreter's :meth:`runsource` method is called with the "
"concatenated contents of the buffer as source. If this indicates that the "
"command was executed or invalid, the buffer is reset; otherwise, the command "
"is incomplete, and the buffer is left as it was after the line was "
"appended. The return value is ``True`` if more input is required, ``False`` "
"if the line was dealt with in some way (this is the same as :meth:"
"`runsource`)."
msgstr ""
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:176
msgid "Remove any unhandled source text from the input buffer."
msgstr "Remove qualquer texto fonte no tratado do buffer de entrada."
#: /home/runner/work/python-docs-tx-translations/python-docs-tx-translations/cpython/Doc/library/code.rst:181
msgid ""
"Write a prompt and read a line. The returned line does not include the "
"trailing newline. When the user enters the EOF key sequence, :exc:"
"`EOFError` is raised. The base implementation reads from ``sys.stdin``; a "
"subclass may replace this with a different implementation."
msgstr ""
"Escreve um prompt e leia uma linha. A linha retornada no inclui a nova "
"linha final. Quando o usurio insere a sequncia de teclas de fim de linha, "
"uma exceo :exc:`EOFError` levantada. A implementao base l ``sys."
"stdin``; uma subclasse pode substituir isso por uma implementao diferente."