[ Web Proxy ]
URL:
Viewing:
https://github-redirect.dependabot.com/python/python-docs-ja/blob/3.14/library/code.po
[Back]
[Original]
python-docs-ja/library/code.po at 3.14 python/python-docs-ja GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python
python-docs-ja
Repository navigation
Code
Issues
2
(2)
Pull requests
Actions
Security and quality
Insights
More
items
Files
Expand file tree
3.14
Breadcrumbs
python-docs-ja
/
library
/
code.po
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
344 lines (311 loc) 18.3 KB
3.14
Breadcrumbs
python-docs-ja
/
library
/
code.po
Copy path
Top
File metadata and controls
Code
Blame
344 lines (311 loc) 18.3 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
#
SOME DESCRIPTIVE TITLE.
#
Copyright (C) 2001 Python Software Foundation
#
This file is distributed under the same license as the Python package.
#
FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#
Translators:
#
python-doc bot, 2025
#
#,
fuzzy
msgid ""
msgstr ""
"
Project-Id-Version
:
Python 3.15\n
"
"
Report-Msgid-Bugs-To
:
\n
"
"
POT-Creation-Date
:
2026-10-11 18:31+0000\n
"
"
PO-Revision-Date
:
2025-09-16 00:00+0000\n
"
"
Last-Translator
:
python-doc bot, 2025\n
"
"
Language-Team
:
Japanese (https://app.transifex.com/python-doc/teams/5390/
"
"
ja/)\n
"
"
Language
:
ja\n
"
"
MIME-Version
:
1.0\n
"
"
Content-Type
:
text/plain; charset=UTF-8\n
"
"
Content-Transfer-Encoding
:
8bit\n
"
"
Plural-Forms
:
nplurals=1; plural=0;\n
"
#:
../../library/code.rst:2
msgid
":mod:`!code` --- Interpreter base classes"
msgstr
":mod:`!code` --- "
#:
../../library/code.rst:7
msgid
"**Source code:** :source:`Lib/code.py`"
msgstr
"**:** :source:`Lib/code.py`"
#:
../../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
""
"``code`` read-eval-print (--)Python"
""
""
#:
../../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 a mapping to use as the namespace 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
""
"()"
"("
") *locals* "
" "
"``'__name__'`` ``'__console__'`` ``'__doc__'`` "
"``None`` "
#:
../../library/code.rst:25
msgid
""
"Note that functions and classes objects created under an :class:`!"
"InteractiveInterpreter` instance will belong to the namespace specified by "
"*locals*. They are only pickleable if *locals* is the namespace of an "
"existing module."
msgstr
""
#:
../../library/code.rst:34
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. If *local_exit* "
"is true, ``exit()`` and ``quit()`` in the console will not raise :exc:"
"`SystemExit`, but instead return to the calling code."
msgstr
""
"Python "
" :class:`InteractiveInterpreter` ``sys."
"ps1`` ``sys.ps2`` "
"*local_exit* ``exit()`` ``quit()`` :exc:"
"`SystemExit` "
#:
../../library/code.rst:40
../../library/code.rst:58
msgid
"Added *local_exit* parameter."
msgstr
"*local_exit* "
#:
../../library/code.rst:45
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. If *local_exit* is "
"provided, it is passed to the :class:`InteractiveConsole` constructor. The :"
"meth:`~InteractiveConsole.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
""
"read-eval-print :class:"
"`InteractiveConsole` *readfunc* "
" :meth:`InteractiveConsole.raw_input` "
" *local* "
" :class:`InteractiveConsole` "
"*local_exit* :class:`InteractiveConsole` "
" :meth:`~InteractiveConsole.interact` "
" "
"*banner* *exitmsg* "
""
#:
../../library/code.rst:55
msgid
"Added *exitmsg* parameter."
msgstr
"*exitmsg* ."
#:
../../library/code.rst:63
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
""
"Python(read-eval-print)"
""
"()"
" ** "
""
#:
../../library/code.rst:70
msgid
""
"*source* is the source string; *filename* is the optional filename from "
"which source was read, defaulting to ``'<input>'``; and *symbol* is the "
"optional grammar start symbol, which should be ``'single'`` (the default), "
"``'eval'`` or ``'exec'``."
msgstr
""
"*source* *filename* "
" ``'<input>'`` *symbol* "
"``'single'`` () ``'eval'`` ``'exec'`` "
""
#:
../../library/code.rst:75
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
""
"(``compile(source, "
"filename, symbol)`` ) ``None`` "
" :exc:`SyntaxError` "
" :exc:`OverflowError` "
" :exc:`ValueError` "
#:
../../library/code.rst:85
msgid
"Interactive Interpreter Objects"
msgstr
""
#:
../../library/code.rst:90
msgid
""
"Compile and run some source in the interpreter. Arguments are the same as "
"for :func:`compile_command`; the default for *filename* is ``'<input>'``, "
"and for *symbol* is ``'single'``. One of several things can happen:"
msgstr
""
" :func:"
"`compile_command` *filename* ``'<input>'`` "
" *symbol* ``'single'`` "
":"
#:
../../library/code.rst:94
msgid
""
"The input is incorrect; :func:`compile_command` raised an exception "
"(usually :exc:`SyntaxError`). A syntax traceback will be printed by calling "
"the :meth:`showsyntaxerror` method. :meth:`runsource` returns ``False``."
msgstr
""
#:
../../library/code.rst:99
msgid
""
"The input is incomplete, and more input is required; :func:`compile_command` "
"returned ``None``. :meth:`runsource` returns ``True``."
msgstr
""
" :func:`compile_command` ``None`` "
" :meth:`runsource` ``True`` "
#:
../../library/code.rst:102
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
""
" :func:`compile_command` (:"
"exc:`SystemExit` ) :meth:`runcode` "
" :meth:`runsource` ``False`` "
#:
../../library/code.rst:106
msgid
""
"The return value can be used to decide whether to use ``sys.ps1`` or ``sys."
"ps2`` to prompt the next line."
msgstr
""
" ``sys.ps1`` ``sys.ps2`` "
""
#:
../../library/code.rst:112
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
""
""
" :meth:`showtraceback` :"
"exc:`SystemExit` "
#:
../../library/code.rst:116
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
""
":exc:`KeyboardInterrupt` "
""
""
#:
../../library/code.rst:123
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 ``'<string>'`` when reading from a "
"string. The output is written by the :meth:`write` method."
msgstr
""
""
" *filename* "
"Python"
" ``'<string>'`` "
" :meth:`write` "
#:
../../library/code.rst:132
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
""
""
" :meth:"
"`write` "
#:
../../library/code.rst:136
msgid
""
"The full chained traceback is displayed instead of just the primary "
"traceback."
msgstr
""
""
#:
../../library/code.rst:142
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
""
"(``sys.stderr``)"
""
#:
../../library/code.rst:149
msgid
"Interactive Console Objects"
msgstr
""
#:
../../library/code.rst:151
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
""
":class:`InteractiveConsole` :class:`InteractiveInterpreter` "
""
""
#:
../../library/code.rst:158
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
""
" Python "
"*banner* "
" Python "
" (!) "
""
#:
../../library/code.rst:164
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
""
" *exitmsg* "
" *exitmsg* "
"``None`` "
#:
../../library/code.rst:168
msgid
"To suppress printing any banner, pass an empty string."
msgstr
""
#:
../../library/code.rst:171
msgid
"Print an exit message when exiting."
msgstr
""
#:
../../library/code.rst:177
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:`~InteractiveInterpreter.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
""
""
""
" :meth:"
"`~InteractiveInterpreter.runsource` "
""
""
" ``True`` "
" ``False`` ( :meth:`!runsource` )"
#:
../../library/code.rst:189
msgid
"Remove any unhandled source text from the input buffer."
msgstr
""
#:
../../library/code.rst:194
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
""
""
"EOF :exc:`EOFError` "
" ``sys.stdin`` "
""
Footer
© 2026 GitHub, Inc.
Footer navigation
Terms
Privacy
Security
Status
Community
Docs
Contact
Manage cookies
Do not share my personal information
You cant perform that action at this time.
Web Proxy Viewer |
New URL
|
Original Page