-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathatexit.po
165 lines (149 loc) · 7.69 KB
/
atexit.po
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
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2021, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Arihiro TAKASE, 2017
# Masato HASHIMOTO <[email protected]>, 2017
# tomo, 2019
# Shin Saito, 2021
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.9\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-06-30 06:46+0000\n"
"PO-Revision-Date: 2017-02-16 17:50+0000\n"
"Last-Translator: Shin Saito, 2021\n"
"Language-Team: Japanese (https://www.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/atexit.rst:2
msgid ":mod:`atexit` --- Exit handlers"
msgstr ":mod:`atexit` --- 終了ハンドラ"
#: ../../library/atexit.rst:12
msgid ""
"The :mod:`atexit` module defines functions to register and unregister "
"cleanup functions. Functions thus registered are automatically executed "
"upon normal interpreter termination. :mod:`atexit` runs these functions in "
"the *reverse* order in which they were registered; if you register ``A``, "
"``B``, and ``C``, at interpreter termination time they will be run in the "
"order ``C``, ``B``, ``A``."
msgstr ""
":mod:`atexit` モジュールは、クリーンアップ関数の登録およびその解除を行う関数"
"を定義します。登録された関数はインタプリタの通常終了時に自動的に実行されま"
"す。:mod:`atexit` はそれら関数を登録した順と *逆に* 実行します; ``A``、"
"``B``、``C`` の順に登録した場合、インタプリタ終了時に ``C``、``B``、``A`` の"
"順に実行されます。"
#: ../../library/atexit.rst:19
msgid ""
"**Note:** The functions registered via this module are not called when the "
"program is killed by a signal not handled by Python, when a Python fatal "
"internal error is detected, or when :func:`os._exit` is called."
msgstr ""
"**注意:** このモジュールを使用して登録された関数は、プログラムが Python が扱"
"わないシグナルによって kill された場合、Python 内部で致命的なエラーが検出され"
"た場合、あるいは :func:`os._exit` が呼び出された場合は実行されません。"
#: ../../library/atexit.rst:23
msgid ""
"When used with C-API subinterpreters, registered functions are local to the "
"interpreter they were registered in."
msgstr ""
"C-API のサブインタープリタで使われているとき、登録された関数は登録先のイン"
"タープリタのローカルな関数になります。"
#: ../../library/atexit.rst:29
msgid ""
"Register *func* as a function to be executed at termination. Any optional "
"arguments that are to be passed to *func* must be passed as arguments to :"
"func:`register`. It is possible to register the same function and arguments "
"more than once."
msgstr ""
"*func* を終了時に実行する関数として登録します。*func* に渡す引数は :func:"
"`register` の引数として指定しなければなりません。同じ関数を同じ引数で複数回登"
"録できます。"
#: ../../library/atexit.rst:34
msgid ""
"At normal program termination (for instance, if :func:`sys.exit` is called "
"or the main module's execution completes), all functions registered are "
"called in last in, first out order. The assumption is that lower level "
"modules will normally be imported before higher level modules and thus must "
"be cleaned up later."
msgstr ""
"通常のプログラムの終了時、例えば :func:`sys.exit` が呼び出されるとき、あるい"
"は、メインモジュールの実行が完了したときに、登録された全ての関数を、最後に登"
"録されたものから順に呼び出します。通常、より低レベルのモジュールはより高レベ"
"ルのモジュールより前に import されるので、後で後始末が行われるという仮定に基"
"づいています。"
#: ../../library/atexit.rst:40
msgid ""
"If an exception is raised during execution of the exit handlers, a traceback "
"is printed (unless :exc:`SystemExit` is raised) and the exception "
"information is saved. After all exit handlers have had a chance to run, the "
"last exception to be raised is re-raised."
msgstr ""
"終了ハンドラの実行中に例外が発生すると、(:exc:`SystemExit` 以外の場合は)ト"
"レースバックを表示して、例外の情報を保存します。全ての終了ハンドラに動作する"
"チャンスを与えた後に、最後に送出された例外を再送出します。"
#: ../../library/atexit.rst:45
msgid ""
"This function returns *func*, which makes it possible to use it as a "
"decorator."
msgstr "この関数は *func* を返し、これをデコレータとして利用できます。"
#: ../../library/atexit.rst:51
msgid ""
"Remove *func* from the list of functions to be run at interpreter shutdown. :"
"func:`unregister` silently does nothing if *func* was not previously "
"registered. If *func* has been registered more than once, every occurrence "
"of that function in the :mod:`atexit` call stack will be removed. Equality "
"comparisons (``==``) are used internally during unregistration, so function "
"references do not need to have matching identities."
msgstr ""
"関数 *func* をインタプリタ終了時に実行する関数のリストから削除します。*func* "
"が登録されていなければ、:func:`unregister` は何もしません。*func* が2回以上登"
"録されている場合は :mod:`atexit` のコールスタックにおける *func* のすべての出"
"現が削除されます。削除の際の比較には等価比較 (``==``) が使われます。したがっ"
"て削除したいものと同一の関数を *func* に指定する必要はありません。"
#: ../../library/atexit.rst:62
msgid "Module :mod:`readline`"
msgstr ":mod:`readline` モジュール"
#: ../../library/atexit.rst:62
msgid ""
"Useful example of :mod:`atexit` to read and write :mod:`readline` history "
"files."
msgstr ""
":mod:`readline` ヒストリファイルを読み書きするための :mod:`atexit` の有用な例"
"です。"
#: ../../library/atexit.rst:69
msgid ":mod:`atexit` Example"
msgstr ":mod:`atexit` の例"
#: ../../library/atexit.rst:71
msgid ""
"The following simple example demonstrates how a module can initialize a "
"counter from a file when it is imported and save the counter's updated value "
"automatically when the program terminates without relying on the application "
"making an explicit call into this module at termination. ::"
msgstr ""
"次の簡単な例では、あるモジュールを import した時にカウンタを初期化しておき、"
"プログラムが終了するときにアプリケーションがこのモジュールを明示的に呼び出さ"
"なくてもカウンタが更新されるようにする方法を示しています。 ::"
#: ../../library/atexit.rst:94
msgid ""
"Positional and keyword arguments may also be passed to :func:`register` to "
"be passed along to the registered function when it is called::"
msgstr ""
":func:`register` に指定した位置引数とキーワード引数は登録した関数を呼び出す際"
"に渡されます::"
#: ../../library/atexit.rst:106
msgid "Usage as a :term:`decorator`::"
msgstr ":term:`デコレータ <decorator>` として利用する例::"
#: ../../library/atexit.rst:114
msgid "This only works with functions that can be called without arguments."
msgstr ""
"デコレータとして利用できるのは、その関数が引数なしで呼び出された場合に限られ"
"ます。"