@@ -14,7 +14,7 @@ msgid ""
14
14
msgstr ""
15
15
"Project-Id-Version : Python 3.7\n "
16
16
"Report-Msgid-Bugs-To : \n "
17
- "POT-Creation-Date : 2019-04-21 11:16 +0900\n "
17
+ "POT-Creation-Date : 2019-05-30 11:32 +0900\n "
18
18
"PO-Revision-Date : 2017-02-16 17:49+0000\n "
19
19
"Last-Translator : tomo, 2018\n "
20
20
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -90,8 +90,8 @@ msgid ""
90
90
"The preferred way to use a Lock is an :keyword:`async with` statement::"
91
91
msgstr ""
92
92
93
- #: ../../library/asyncio-sync.rst:51 ../../library/asyncio-sync.rst:178
94
- #: ../../library/asyncio-sync.rst:274
93
+ #: ../../library/asyncio-sync.rst:51 ../../library/asyncio-sync.rst:185
94
+ #: ../../library/asyncio-sync.rst:281
95
95
msgid "which is equivalent to::"
96
96
msgstr ""
97
97
@@ -105,95 +105,107 @@ msgid ""
105
105
"returns ``True``."
106
106
msgstr ""
107
107
108
- #: ../../library/asyncio-sync.rst:71
109
- msgid "Release the lock."
108
+ #: ../../library/asyncio-sync.rst:69
109
+ msgid ""
110
+ "When more than one coroutine is blocked in :meth:`acquire` waiting for the "
111
+ "lock to be unlocked, only one coroutine eventually proceeds."
110
112
msgstr ""
111
113
112
114
#: ../../library/asyncio-sync.rst:73
115
+ msgid ""
116
+ "Acquiring a lock is *fair*: the coroutine that proceeds will be the first "
117
+ "coroutine that started waiting on the lock."
118
+ msgstr ""
119
+
120
+ #: ../../library/asyncio-sync.rst:78
121
+ msgid "Release the lock."
122
+ msgstr ""
123
+
124
+ #: ../../library/asyncio-sync.rst:80
113
125
msgid "When the lock is *locked*, reset it to *unlocked* and return."
114
126
msgstr ""
115
127
116
- #: ../../library/asyncio-sync.rst:75
128
+ #: ../../library/asyncio-sync.rst:82
117
129
msgid "If the lock is *unlocked*, a :exc:`RuntimeError` is raised."
118
130
msgstr ""
119
131
120
- #: ../../library/asyncio-sync.rst:79
132
+ #: ../../library/asyncio-sync.rst:86
121
133
msgid "Return ``True`` if the lock is *locked*."
122
134
msgstr ""
123
135
124
- #: ../../library/asyncio-sync.rst:83
136
+ #: ../../library/asyncio-sync.rst:90
125
137
msgid "Event"
126
138
msgstr "Event"
127
139
128
- #: ../../library/asyncio-sync.rst:87
140
+ #: ../../library/asyncio-sync.rst:94
129
141
msgid "An event object. Not thread-safe."
130
142
msgstr ""
131
143
132
- #: ../../library/asyncio-sync.rst:89
144
+ #: ../../library/asyncio-sync.rst:96
133
145
msgid ""
134
146
"An asyncio event can be used to notify multiple asyncio tasks that some "
135
147
"event has happened."
136
148
msgstr ""
137
149
138
- #: ../../library/asyncio-sync.rst:92
150
+ #: ../../library/asyncio-sync.rst:99
139
151
msgid ""
140
152
"An Event object manages an internal flag that can be set to *true* with the "
141
153
":meth:`set` method and reset to *false* with the :meth:`clear` method. The "
142
154
":meth:`wait` method blocks until the flag is set to *true*. The flag is set"
143
155
" to *false* initially."
144
156
msgstr ""
145
157
146
- #: ../../library/asyncio-sync.rst:99
158
+ #: ../../library/asyncio-sync.rst:106
147
159
msgid "Example::"
148
160
msgstr "以下はプログラム例です::"
149
161
150
- #: ../../library/asyncio-sync.rst:124
162
+ #: ../../library/asyncio-sync.rst:131
151
163
msgid "Wait until the event is set."
152
164
msgstr ""
153
165
154
- #: ../../library/asyncio-sync.rst:126
166
+ #: ../../library/asyncio-sync.rst:133
155
167
msgid ""
156
168
"If the event is set, return ``True`` immediately. Otherwise block until "
157
169
"another task calls :meth:`set`."
158
170
msgstr ""
159
171
160
- #: ../../library/asyncio-sync.rst:131
172
+ #: ../../library/asyncio-sync.rst:138
161
173
msgid "Set the event."
162
174
msgstr ""
163
175
164
- #: ../../library/asyncio-sync.rst:133
176
+ #: ../../library/asyncio-sync.rst:140
165
177
msgid "All tasks waiting for event to be set will be immediately awakened."
166
178
msgstr ""
167
179
168
- #: ../../library/asyncio-sync.rst:138
180
+ #: ../../library/asyncio-sync.rst:145
169
181
msgid "Clear (unset) the event."
170
182
msgstr ""
171
183
172
- #: ../../library/asyncio-sync.rst:140
184
+ #: ../../library/asyncio-sync.rst:147
173
185
msgid ""
174
186
"Tasks awaiting on :meth:`wait` will now block until the :meth:`set` method "
175
187
"is called again."
176
188
msgstr ""
177
189
178
- #: ../../library/asyncio-sync.rst:145
190
+ #: ../../library/asyncio-sync.rst:152
179
191
msgid "Return ``True`` if the event is set."
180
192
msgstr ""
181
193
182
- #: ../../library/asyncio-sync.rst:149
194
+ #: ../../library/asyncio-sync.rst:156
183
195
msgid "Condition"
184
196
msgstr "Condition"
185
197
186
- #: ../../library/asyncio-sync.rst:153
198
+ #: ../../library/asyncio-sync.rst:160
187
199
msgid "A Condition object. Not thread-safe."
188
200
msgstr ""
189
201
190
- #: ../../library/asyncio-sync.rst:155
202
+ #: ../../library/asyncio-sync.rst:162
191
203
msgid ""
192
204
"An asyncio condition primitive can be used by a task to wait for some event "
193
205
"to happen and then get exclusive access to a shared resource."
194
206
msgstr ""
195
207
196
- #: ../../library/asyncio-sync.rst:159
208
+ #: ../../library/asyncio-sync.rst:166
197
209
msgid ""
198
210
"In essence, a Condition object combines the functionality of an "
199
211
":class:`Event` and a :class:`Lock`. It is possible to have multiple "
@@ -202,158 +214,158 @@ msgid ""
202
214
"states of that shared resource."
203
215
msgstr ""
204
216
205
- #: ../../library/asyncio-sync.rst:165
217
+ #: ../../library/asyncio-sync.rst:172
206
218
msgid ""
207
219
"The optional *lock* argument must be a :class:`Lock` object or ``None``. In"
208
220
" the latter case a new Lock object is created automatically."
209
221
msgstr ""
210
222
211
- #: ../../library/asyncio-sync.rst:169
223
+ #: ../../library/asyncio-sync.rst:176
212
224
msgid ""
213
225
"The preferred way to use a Condition is an :keyword:`async with` statement::"
214
226
msgstr ""
215
227
216
- #: ../../library/asyncio-sync.rst:191
228
+ #: ../../library/asyncio-sync.rst:198
217
229
msgid "Acquire the underlying lock."
218
230
msgstr "下層でのロックを獲得します。"
219
231
220
- #: ../../library/asyncio-sync.rst:193
232
+ #: ../../library/asyncio-sync.rst:200
221
233
msgid ""
222
234
"This method waits until the underlying lock is *unlocked*, sets it to "
223
235
"*locked* and returns ``True``."
224
236
msgstr ""
225
237
226
- #: ../../library/asyncio-sync.rst:198
238
+ #: ../../library/asyncio-sync.rst:205
227
239
msgid ""
228
240
"Wake up at most *n* tasks (1 by default) waiting on this condition. The "
229
241
"method is no-op if no tasks are waiting."
230
242
msgstr ""
231
243
232
- #: ../../library/asyncio-sync.rst:201 ../../library/asyncio-sync.rst:216
244
+ #: ../../library/asyncio-sync.rst:208 ../../library/asyncio-sync.rst:223
233
245
msgid ""
234
246
"The lock must be acquired before this method is called and released shortly "
235
247
"after. If called with an *unlocked* lock a :exc:`RuntimeError` error is "
236
248
"raised."
237
249
msgstr ""
238
250
239
- #: ../../library/asyncio-sync.rst:207
251
+ #: ../../library/asyncio-sync.rst:214
240
252
msgid "Return ``True`` if the underlying lock is acquired."
241
253
msgstr "下層のロックを獲得していれば ``True`` を返します。"
242
254
243
- #: ../../library/asyncio-sync.rst:211
255
+ #: ../../library/asyncio-sync.rst:218
244
256
msgid "Wake up all tasks waiting on this condition."
245
257
msgstr ""
246
258
247
- #: ../../library/asyncio-sync.rst:213
259
+ #: ../../library/asyncio-sync.rst:220
248
260
msgid "This method acts like :meth:`notify`, but wakes up all waiting tasks."
249
261
msgstr ""
250
262
251
- #: ../../library/asyncio-sync.rst:222
263
+ #: ../../library/asyncio-sync.rst:229
252
264
msgid "Release the underlying lock."
253
265
msgstr "下層のロックを解除します。"
254
266
255
- #: ../../library/asyncio-sync.rst:224
267
+ #: ../../library/asyncio-sync.rst:231
256
268
msgid "When invoked on an unlocked lock, a :exc:`RuntimeError` is raised."
257
269
msgstr "アンロック状態のロックに対して呼び出された場合、:exc:`RuntimeError` が送出されます。"
258
270
259
- #: ../../library/asyncio-sync.rst:229
271
+ #: ../../library/asyncio-sync.rst:236
260
272
msgid "Wait until notified."
261
273
msgstr "通知を受けるまで待機します。"
262
274
263
- #: ../../library/asyncio-sync.rst:231
275
+ #: ../../library/asyncio-sync.rst:238
264
276
msgid ""
265
277
"If the calling task has not acquired the lock when this method is called, a "
266
278
":exc:`RuntimeError` is raised."
267
279
msgstr ""
268
280
269
- #: ../../library/asyncio-sync.rst:234
281
+ #: ../../library/asyncio-sync.rst:241
270
282
msgid ""
271
283
"This method releases the underlying lock, and then blocks until it is "
272
284
"awakened by a :meth:`notify` or :meth:`notify_all` call. Once awakened, the "
273
285
"Condition re-acquires its lock and this method returns ``True``."
274
286
msgstr ""
275
287
276
- #: ../../library/asyncio-sync.rst:241
288
+ #: ../../library/asyncio-sync.rst:248
277
289
msgid "Wait until a predicate becomes *true*."
278
290
msgstr ""
279
291
280
- #: ../../library/asyncio-sync.rst:243
292
+ #: ../../library/asyncio-sync.rst:250
281
293
msgid ""
282
294
"The predicate must be a callable which result will be interpreted as a "
283
295
"boolean value. The final value is the return value."
284
296
msgstr ""
285
297
286
- #: ../../library/asyncio-sync.rst:249
298
+ #: ../../library/asyncio-sync.rst:256
287
299
msgid "Semaphore"
288
300
msgstr "Semaphore"
289
301
290
- #: ../../library/asyncio-sync.rst:253
302
+ #: ../../library/asyncio-sync.rst:260
291
303
msgid "A Semaphore object. Not thread-safe."
292
304
msgstr ""
293
305
294
- #: ../../library/asyncio-sync.rst:255
306
+ #: ../../library/asyncio-sync.rst:262
295
307
msgid ""
296
308
"A semaphore manages an internal counter which is decremented by each "
297
309
":meth:`acquire` call and incremented by each :meth:`release` call. The "
298
310
"counter can never go below zero; when :meth:`acquire` finds that it is zero,"
299
311
" it blocks, waiting until some task calls :meth:`release`."
300
312
msgstr ""
301
313
302
- #: ../../library/asyncio-sync.rst:261
314
+ #: ../../library/asyncio-sync.rst:268
303
315
msgid ""
304
316
"The optional *value* argument gives the initial value for the internal "
305
317
"counter (``1`` by default). If the given value is less than ``0`` a "
306
318
":exc:`ValueError` is raised."
307
319
msgstr ""
308
320
309
- #: ../../library/asyncio-sync.rst:265
321
+ #: ../../library/asyncio-sync.rst:272
310
322
msgid ""
311
323
"The preferred way to use a Semaphore is an :keyword:`async with` statement::"
312
324
msgstr ""
313
325
314
- #: ../../library/asyncio-sync.rst:287
326
+ #: ../../library/asyncio-sync.rst:294
315
327
msgid "Acquire a semaphore."
316
328
msgstr "セマフォを獲得します。"
317
329
318
- #: ../../library/asyncio-sync.rst:289
330
+ #: ../../library/asyncio-sync.rst:296
319
331
msgid ""
320
332
"If the internal counter is greater than zero, decrement it by one and return"
321
333
" ``True`` immediately. If it is zero, wait until a :meth:`release` is "
322
334
"called and return ``True``."
323
335
msgstr ""
324
336
325
- #: ../../library/asyncio-sync.rst:295
337
+ #: ../../library/asyncio-sync.rst:302
326
338
msgid "Returns ``True`` if semaphore can not be acquired immediately."
327
339
msgstr "セマフォを直ちに獲得できない場合 ``True`` を返します。"
328
340
329
- #: ../../library/asyncio-sync.rst:299
341
+ #: ../../library/asyncio-sync.rst:306
330
342
msgid ""
331
343
"Release a semaphore, incrementing the internal counter by one. Can wake up a"
332
344
" task waiting to acquire the semaphore."
333
345
msgstr ""
334
346
335
- #: ../../library/asyncio-sync.rst:302
347
+ #: ../../library/asyncio-sync.rst:309
336
348
msgid ""
337
349
"Unlike :class:`BoundedSemaphore`, :class:`Semaphore` allows making more "
338
350
"``release()`` calls than ``acquire()`` calls."
339
351
msgstr ""
340
352
341
- #: ../../library/asyncio-sync.rst:307
353
+ #: ../../library/asyncio-sync.rst:314
342
354
msgid "BoundedSemaphore"
343
355
msgstr "BoundedSemaphore"
344
356
345
- #: ../../library/asyncio-sync.rst:311
357
+ #: ../../library/asyncio-sync.rst:318
346
358
msgid "A bounded semaphore object. Not thread-safe."
347
359
msgstr ""
348
360
349
- #: ../../library/asyncio-sync.rst:313
361
+ #: ../../library/asyncio-sync.rst:320
350
362
msgid ""
351
363
"Bounded Semaphore is a version of :class:`Semaphore` that raises a "
352
364
":exc:`ValueError` in :meth:`~Semaphore.release` if it increases the internal"
353
365
" counter above the initial *value*."
354
366
msgstr ""
355
367
356
- #: ../../library/asyncio-sync.rst:323
368
+ #: ../../library/asyncio-sync.rst:330
357
369
msgid ""
358
370
"Acquiring a lock using ``await lock`` or ``yield from lock`` and/or "
359
371
":keyword:`with` statement (``with await lock``, ``with (yield from lock)``) "
0 commit comments