11# SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2020, Python Software Foundation
2+ # Copyright (C) 2001 Python Software Foundation
33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
66#, fuzzy
77msgid ""
88msgstr ""
9- "Project-Id-Version : Python 3.9 \n "
9+ "Project-Id-Version : Python 3.14 \n "
1010"Report-Msgid-Bugs-To : \n "
11- "POT-Creation-Date : 2020 -05-31 09:25 +0000\n "
12- "PO-Revision-Date : 2017-02-16 23:02 +0000\n "
13- "Language-Team : Indonesian (https://www .transifex.com/python-doc/teams/5390/id/)\n "
11+ "POT-Creation-Date : 2025 -05-09 14:19 +0000\n "
12+ "PO-Revision-Date : 2021-06-28 00:56 +0000\n "
13+ "Language-Team : Indonesian (https://app .transifex.com/python-doc/teams/5390/id/)\n "
1414"MIME-Version : 1.0\n "
1515"Content-Type : text/plain; charset=UTF-8\n "
1616"Content-Transfer-Encoding : 8bit\n "
1717"Language : id\n "
1818"Plural-Forms : nplurals=1; plural=0;\n "
1919
2020#: ../../library/code.rst:2
21- msgid ":mod:`code` --- Interpreter base classes"
21+ msgid ":mod:`! code` --- Interpreter base classes"
2222msgstr ""
2323
2424#: ../../library/code.rst:7
@@ -37,35 +37,42 @@ msgid ""
3737"This class deals with parsing and interpreter state (the user's namespace); "
3838"it does not deal with input buffering or prompting or input file naming (the"
3939" filename is always passed in explicitly). The optional *locals* argument "
40- "specifies the dictionary in which code will be executed; it defaults to a "
41- "newly created dictionary with key ``'__name__'`` set to ``'__console__'`` "
42- "and key ``'__doc__'`` set to ``None``."
40+ "specifies a mapping to use as the namespace in which code will be executed; "
41+ "it defaults to a newly created dictionary with key ``'__name__'`` set to "
42+ "``'__console__'`` and key ``'__doc__'`` set to ``None``."
4343msgstr ""
4444
4545#: ../../library/code.rst:28
4646msgid ""
4747"Closely emulate the behavior of the interactive Python interpreter. This "
4848"class builds on :class:`InteractiveInterpreter` and adds prompting using the"
49- " familiar ``sys.ps1`` and ``sys.ps2``, and input buffering."
49+ " familiar ``sys.ps1`` and ``sys.ps2``, and input buffering. If *local_exit* "
50+ "is true, ``exit()`` and ``quit()`` in the console will not raise "
51+ ":exc:`SystemExit`, but instead return to the calling code."
5052msgstr ""
5153
52- #: ../../library/code.rst:35
54+ #: ../../library/code.rst:34 ../../library/code.rst:52
55+ msgid "Added *local_exit* parameter."
56+ msgstr ""
57+
58+ #: ../../library/code.rst:39
5359msgid ""
5460"Convenience function to run a read-eval-print loop. This creates a new "
5561"instance of :class:`InteractiveConsole` and sets *readfunc* to be used as "
5662"the :meth:`InteractiveConsole.raw_input` method, if provided. If *local* is"
5763" provided, it is passed to the :class:`InteractiveConsole` constructor for "
58- "use as the default namespace for the interpreter loop. The :meth:`interact`"
59- " method of the instance is then run with *banner* and *exitmsg* passed as "
60- "the banner and exit message to use, if provided. The console object is "
61- "discarded after use."
64+ "use as the default namespace for the interpreter loop. If *local_exit* is "
65+ "provided, it is passed to the :class:`InteractiveConsole` constructor. The "
66+ ":meth:`~InteractiveConsole.interact` method of the instance is then run with"
67+ " *banner* and *exitmsg* passed as the banner and exit message to use, if "
68+ "provided. The console object is discarded after use."
6269msgstr ""
6370
64- #: ../../library/code.rst:44
71+ #: ../../library/code.rst:49
6572msgid "Added *exitmsg* parameter."
6673msgstr ""
6774
68- #: ../../library/code.rst:50
75+ #: ../../library/code.rst:57
6976msgid ""
7077"This function is useful for programs that want to emulate Python's "
7178"interpreter main loop (a.k.a. the read-eval-print loop). The tricky part is"
@@ -75,15 +82,15 @@ msgid ""
7582" real interpreter main loop."
7683msgstr ""
7784
78- #: ../../library/code.rst:57
85+ #: ../../library/code.rst:64
7986msgid ""
8087"*source* is the source string; *filename* is the optional filename from "
8188"which source was read, defaulting to ``'<input>'``; and *symbol* is the "
8289"optional grammar start symbol, which should be ``'single'`` (the default), "
8390"``'eval'`` or ``'exec'``."
8491msgstr ""
8592
86- #: ../../library/code.rst:62
93+ #: ../../library/code.rst:69
8794msgid ""
8895"Returns a code object (the same as ``compile(source, filename, symbol)``) if"
8996" the command is complete and valid; ``None`` if the command is incomplete; "
@@ -92,60 +99,60 @@ msgid ""
9299"contains an invalid literal."
93100msgstr ""
94101
95- #: ../../library/code.rst:72
102+ #: ../../library/code.rst:79
96103msgid "Interactive Interpreter Objects"
97104msgstr ""
98105
99- #: ../../library/code.rst:77
106+ #: ../../library/code.rst:84
100107msgid ""
101108"Compile and run some source in the interpreter. Arguments are the same as "
102109"for :func:`compile_command`; the default for *filename* is ``'<input>'``, "
103110"and for *symbol* is ``'single'``. One of several things can happen:"
104111msgstr ""
105112
106- #: ../../library/code.rst:81
113+ #: ../../library/code.rst:88
107114msgid ""
108115"The input is incorrect; :func:`compile_command` raised an exception "
109116"(:exc:`SyntaxError` or :exc:`OverflowError`). A syntax traceback will be "
110117"printed by calling the :meth:`showsyntaxerror` method. :meth:`runsource` "
111118"returns ``False``."
112119msgstr ""
113120
114- #: ../../library/code.rst:86
121+ #: ../../library/code.rst:93
115122msgid ""
116123"The input is incomplete, and more input is required; :func:`compile_command`"
117124" returned ``None``. :meth:`runsource` returns ``True``."
118125msgstr ""
119126
120- #: ../../library/code.rst:89
127+ #: ../../library/code.rst:96
121128msgid ""
122129"The input is complete; :func:`compile_command` returned a code object. The "
123130"code is executed by calling the :meth:`runcode` (which also handles run-time"
124131" exceptions, except for :exc:`SystemExit`). :meth:`runsource` returns "
125132"``False``."
126133msgstr ""
127134
128- #: ../../library/code.rst:93
135+ #: ../../library/code.rst:100
129136msgid ""
130137"The return value can be used to decide whether to use ``sys.ps1`` or "
131138"``sys.ps2`` to prompt the next line."
132139msgstr ""
133140
134- #: ../../library/code.rst:99
141+ #: ../../library/code.rst:106
135142msgid ""
136143"Execute a code object. When an exception occurs, :meth:`showtraceback` is "
137144"called to display a traceback. All exceptions are caught except "
138145":exc:`SystemExit`, which is allowed to propagate."
139146msgstr ""
140147
141- #: ../../library/code.rst:103
148+ #: ../../library/code.rst:110
142149msgid ""
143150"A note about :exc:`KeyboardInterrupt`: this exception may occur elsewhere in"
144151" this code, and may not always be caught. The caller should be prepared to "
145152"deal with it."
146153msgstr ""
147154
148- #: ../../library/code.rst:110
155+ #: ../../library/code.rst:117
149156msgid ""
150157"Display the syntax error that just occurred. This does not display a stack "
151158"trace because there isn't one for syntax errors. If *filename* is given, it "
@@ -154,38 +161,38 @@ msgid ""
154161"string. The output is written by the :meth:`write` method."
155162msgstr ""
156163
157- #: ../../library/code.rst:119
164+ #: ../../library/code.rst:126
158165msgid ""
159166"Display the exception that just occurred. We remove the first stack item "
160167"because it is within the interpreter object implementation. The output is "
161168"written by the :meth:`write` method."
162169msgstr ""
163170
164- #: ../../library/code.rst:123
171+ #: ../../library/code.rst:130
165172msgid ""
166173"The full chained traceback is displayed instead of just the primary "
167174"traceback."
168175msgstr ""
169176
170- #: ../../library/code.rst:129
177+ #: ../../library/code.rst:136
171178msgid ""
172179"Write a string to the standard error stream (``sys.stderr``). Derived "
173180"classes should override this to provide the appropriate output handling as "
174181"needed."
175182msgstr ""
176183
177- #: ../../library/code.rst:136
184+ #: ../../library/code.rst:143
178185msgid "Interactive Console Objects"
179186msgstr ""
180187
181- #: ../../library/code.rst:138
188+ #: ../../library/code.rst:145
182189msgid ""
183190"The :class:`InteractiveConsole` class is a subclass of "
184191":class:`InteractiveInterpreter`, and so offers all the methods of the "
185192"interpreter objects as well as the following additions."
186193msgstr ""
187194
188- #: ../../library/code.rst:145
195+ #: ../../library/code.rst:152
189196msgid ""
190197"Closely emulate the interactive Python console. The optional *banner* "
191198"argument specify the banner to print before the first interaction; by "
@@ -195,39 +202,39 @@ msgid ""
195202"it's so close!)."
196203msgstr ""
197204
198- #: ../../library/code.rst:151
205+ #: ../../library/code.rst:158
199206msgid ""
200207"The optional *exitmsg* argument specifies an exit message printed when "
201208"exiting. Pass the empty string to suppress the exit message. If *exitmsg* is"
202209" not given or ``None``, a default message is printed."
203210msgstr ""
204211
205- #: ../../library/code.rst:155
212+ #: ../../library/code.rst:162
206213msgid "To suppress printing any banner, pass an empty string."
207214msgstr ""
208215
209- #: ../../library/code.rst:158
216+ #: ../../library/code.rst:165
210217msgid "Print an exit message when exiting."
211218msgstr ""
212219
213- #: ../../library/code.rst:164
220+ #: ../../library/code.rst:171
214221msgid ""
215222"Push a line of source text to the interpreter. The line should not have a "
216223"trailing newline; it may have internal newlines. The line is appended to a "
217- "buffer and the interpreter's :meth:`runsource` method is called with the "
218- "concatenated contents of the buffer as source. If this indicates that the "
219- "command was executed or invalid, the buffer is reset; otherwise, the command "
220- " is incomplete, and the buffer is left as it was after the line was "
221- "appended. The return value is ``True`` if more input is required, ``False`` "
222- " if the line was dealt with in some way (this is the same as "
223- ":meth:`runsource`)."
224+ "buffer and the interpreter's :meth:`~InteractiveInterpreter. runsource` "
225+ "method is called with the concatenated contents of the buffer as source. If"
226+ " this indicates that the command was executed or invalid, the buffer is "
227+ "reset; otherwise, the command is incomplete, and the buffer is left as it "
228+ "was after the line was appended. The return value is ``True`` if more input"
229+ " is required, ``False`` if the line was dealt with in some way (this is the "
230+ "same as :meth:`! runsource`)."
224231msgstr ""
225232
226- #: ../../library/code.rst:176
233+ #: ../../library/code.rst:183
227234msgid "Remove any unhandled source text from the input buffer."
228235msgstr ""
229236
230- #: ../../library/code.rst:181
237+ #: ../../library/code.rst:188
231238msgid ""
232239"Write a prompt and read a line. The returned line does not include the "
233240"trailing newline. When the user enters the EOF key sequence, "
0 commit comments