@@ -15,7 +15,7 @@ msgid ""
15
15
msgstr ""
16
16
"Project-Id-Version : Python 3.7\n "
17
17
"Report-Msgid-Bugs-To : \n "
18
- "POT-Creation-Date : 2019-01-01 10:14 +0900\n "
18
+ "POT-Creation-Date : 2019-05-25 11:30 +0900\n "
19
19
"PO-Revision-Date : 2017-02-16 17:47+0000\n "
20
20
"Last-Translator : 秘湯 <xwhhsprings@gmail.com>, 2017\n "
21
21
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -80,25 +80,30 @@ msgstr ""
80
80
81
81
#: ../../library/_thread.rst:56
82
82
msgid ""
83
- "Raise a :exc:`KeyboardInterrupt` exception in the main thread. A subthread "
84
- "can use this function to interrupt the main thread."
83
+ "Simulate the effect of a :data:`signal.SIGINT` signal arriving in the main "
84
+ "thread. A thread can use this function to interrupt the main thread."
85
85
msgstr ""
86
- "メインスレッドで :exc:`KeyboardInterrupt` "
87
- "を送出します。サブスレッドはこの関数を使ってメインスレッドに割り込みをかけることができます。"
88
86
89
- #: ../../library/_thread.rst:62
87
+ #: ../../library/_thread.rst:59
88
+ msgid ""
89
+ "If :data:`signal.SIGINT` isn't handled by Python (it was set to "
90
+ ":data:`signal.SIG_DFL` or :data:`signal.SIG_IGN`), this function does "
91
+ "nothing."
92
+ msgstr ""
93
+
94
+ #: ../../library/_thread.rst:66
90
95
msgid ""
91
96
"Raise the :exc:`SystemExit` exception. When not caught, this will cause the"
92
97
" thread to exit silently."
93
98
msgstr ":exc:`SystemExit` を送出します。それが捕えられないときは、静かにスレッドを終了させます。"
94
99
95
- #: ../../library/_thread.rst:76
100
+ #: ../../library/_thread.rst:80
96
101
msgid ""
97
102
"Return a new lock object. Methods of locks are described below. The lock "
98
103
"is initially unlocked."
99
104
msgstr "新しいロックオブジェクトを返します。ロックのメソッドはこの後に記述されます。ロックは初期状態としてアンロック状態です。"
100
105
101
- #: ../../library/_thread.rst:82
106
+ #: ../../library/_thread.rst:86
102
107
msgid ""
103
108
"Return the 'thread identifier' of the current thread. This is a nonzero "
104
109
"integer. Its value has no direct meaning; it is intended as a magic cookie "
@@ -110,7 +115,7 @@ msgstr ""
110
115
"例えばスレッド特有のデータの辞書に索引をつけるためのような、マジッククッキーとして意図されています。スレッドが終了し、他のスレッドが作られたとき、スレッド"
111
116
" ID は再利用されるかもしれません。"
112
117
113
- #: ../../library/_thread.rst:90
118
+ #: ../../library/_thread.rst:94
114
119
msgid ""
115
120
"Return the thread stack size used when creating new threads. The optional "
116
121
"*size* argument specifies the stack size to be used for subsequently created"
@@ -129,12 +134,12 @@ msgid ""
129
134
"information)."
130
135
msgstr ""
131
136
132
- #: ../../library/_thread.rst:105
137
+ #: ../../library/_thread.rst:109
133
138
msgid ""
134
139
":ref:`Availability <availability>`: Windows, systems with POSIX threads."
135
140
msgstr ""
136
141
137
- #: ../../library/_thread.rst:110
142
+ #: ../../library/_thread.rst:114
138
143
msgid ""
139
144
"The maximum value allowed for the *timeout* parameter of "
140
145
":meth:`Lock.acquire`. Specifying a timeout greater than this value will "
@@ -143,11 +148,11 @@ msgstr ""
143
148
":meth:`Lock.acquire` の *timeout* 引数に許される最大値です。これ以上の値を timeout に指定すると "
144
149
":exc:`OverflowError` を発生させます。"
145
150
146
- #: ../../library/_thread.rst:117
151
+ #: ../../library/_thread.rst:121
147
152
msgid "Lock objects have the following methods:"
148
153
msgstr "ロックオブジェクトは次のようなメソッドを持っています:"
149
154
150
- #: ../../library/_thread.rst:122
155
+ #: ../../library/_thread.rst:126
151
156
msgid ""
152
157
"Without any optional argument, this method acquires the lock "
153
158
"unconditionally, if necessary waiting until it is released by another thread"
@@ -157,7 +162,7 @@ msgstr ""
157
162
"オプションの引数なしで使用すると、このメソッドは他のスレッドがロックしているかどうかにかかわらずロックを獲得します。ただし、他のスレッドがすでにロックしている場合には解除されるまで待ってからロックを獲得します"
158
163
" (同時にロックを獲得できるスレッドはひとつだけであり、これこそがロックの存在理由です)。"
159
164
160
- #: ../../library/_thread.rst:126
165
+ #: ../../library/_thread.rst:130
161
166
msgid ""
162
167
"If the integer *waitflag* argument is present, the action depends on its "
163
168
"value: if it is zero, the lock is only acquired if it can be acquired "
@@ -167,7 +172,7 @@ msgstr ""
167
172
"整数の引数 *waitflag* を指定すると、その値によって動作が変わります。引数が ``0`` "
168
173
"のときは、待たずにすぐ獲得できる場合にだけロックを獲得します。``0`` 以外の値を与えると、先の例と同様、ロックの状態にかかわらず獲得をおこないます。"
169
174
170
- #: ../../library/_thread.rst:131
175
+ #: ../../library/_thread.rst:135
171
176
msgid ""
172
177
"If the floating-point *timeout* argument is present and positive, it "
173
178
"specifies the maximum wait time in seconds before returning. A negative "
@@ -177,43 +182,43 @@ msgstr ""
177
182
"*timeout* 引数に正の float 値が指定された場合、返る前に待つ最大の時間を秒数で指定します。負の *timeout* "
178
183
"引数は無制限に待つことを指定します。*waitflag* が 0 の時は *timeout* を指定することはできません。"
179
184
180
- #: ../../library/_thread.rst:136
185
+ #: ../../library/_thread.rst:140
181
186
msgid ""
182
187
"The return value is ``True`` if the lock is acquired successfully, ``False``"
183
188
" if not."
184
189
msgstr "なお、ロックを獲得できた場合は ``True``、できなかった場合は ``False`` を返します。"
185
190
186
- #: ../../library/_thread.rst:139
191
+ #: ../../library/_thread.rst:143
187
192
msgid "The *timeout* parameter is new."
188
193
msgstr "新しい *timeout* 引数。"
189
194
190
- #: ../../library/_thread.rst:142
195
+ #: ../../library/_thread.rst:146
191
196
msgid "Lock acquires can now be interrupted by signals on POSIX."
192
197
msgstr "POSIX ではロックの取得がシグナルに割り込まれるようになりました。"
193
198
194
- #: ../../library/_thread.rst:148
199
+ #: ../../library/_thread.rst:152
195
200
msgid ""
196
201
"Releases the lock. The lock must have been acquired earlier, but not "
197
202
"necessarily by the same thread."
198
203
msgstr "ロックを解放します。そのロックは既に獲得されたものでなければなりませんが、しかし同じスレッドによって獲得されたものである必要はありません。"
199
204
200
- #: ../../library/_thread.rst:154
205
+ #: ../../library/_thread.rst:158
201
206
msgid ""
202
207
"Return the status of the lock: ``True`` if it has been acquired by some "
203
208
"thread, ``False`` if not."
204
209
msgstr "ロックの状態を返します: 同じスレッドによって獲得されたものなら ``True`` 、違うのなら ``False`` を返します。"
205
210
206
- #: ../../library/_thread.rst:157
211
+ #: ../../library/_thread.rst:161
207
212
msgid ""
208
213
"In addition to these methods, lock objects can also be used via the "
209
214
":keyword:`with` statement, e.g.::"
210
215
msgstr "これらのメソッドに加えて、ロックオブジェクトは :keyword:`with` 文を通じて以下の例のように使うこともできます。 ::"
211
216
212
- #: ../../library/_thread.rst:167
217
+ #: ../../library/_thread.rst:171
213
218
msgid "**Caveats:**"
214
219
msgstr "**警告:**"
215
220
216
- #: ../../library/_thread.rst:171
221
+ #: ../../library/_thread.rst:175
217
222
msgid ""
218
223
"Threads interact strangely with interrupts: the :exc:`KeyboardInterrupt` "
219
224
"exception will be received by an arbitrary thread. (When the :mod:`signal` "
@@ -222,15 +227,15 @@ msgstr ""
222
227
"スレッドは割り込みと奇妙な相互作用をします: :exc:`KeyboardInterrupt` 例外は任意のスレッドによって受け取られます。 "
223
228
"(:mod:`signal` モジュールが利用可能なとき、割り込みは常にメインスレッドへ行きます。)"
224
229
225
- #: ../../library/_thread.rst:175
230
+ #: ../../library/_thread.rst:179
226
231
msgid ""
227
232
"Calling :func:`sys.exit` or raising the :exc:`SystemExit` exception is "
228
233
"equivalent to calling :func:`_thread.exit`."
229
234
msgstr ""
230
235
":func:`sys.exit` を呼び出す、あるいは :exc:`SystemExit` 例外を送出することは、 "
231
236
":func:`_thread.exit` を呼び出すことと同じです。"
232
237
233
- #: ../../library/_thread.rst:178
238
+ #: ../../library/_thread.rst:182
234
239
msgid ""
235
240
"It is not possible to interrupt the :meth:`acquire` method on a lock --- the"
236
241
" :exc:`KeyboardInterrupt` exception will happen after the lock has been "
@@ -239,7 +244,7 @@ msgstr ""
239
244
"ロックの :meth:`acquire` メソッドに割り込むことはできません --- :exc:`KeyboardInterrupt` "
240
245
"例外は、ロックが獲得された後に発生します。"
241
246
242
- #: ../../library/_thread.rst:181
247
+ #: ../../library/_thread.rst:185
243
248
msgid ""
244
249
"When the main thread exits, it is system defined whether the other threads "
245
250
"survive. On most systems, they are killed without executing :keyword:`try` "
@@ -248,7 +253,7 @@ msgstr ""
248
253
"メインスレッドが終了したとき、他のスレッドが生き残るかどうかは、システムに依存します。多くのシステムでは、 :keyword:`try` ... "
249
254
":keyword:`finally` 節や、オブジェクトデストラクタを実行せずに終了されます。"
250
255
251
- #: ../../library/_thread.rst:186
256
+ #: ../../library/_thread.rst:190
252
257
msgid ""
253
258
"When the main thread exits, it does not do any of its usual cleanup (except "
254
259
"that :keyword:`try` ... :keyword:`finally` clauses are honored), and the "
0 commit comments