@@ -14,7 +14,7 @@ msgid ""
1414msgstr ""
1515"Project-Id-Version : Python 3.7\n "
1616"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 "
1818"PO-Revision-Date : 2017-02-16 17:49+0000\n "
1919"Last-Translator : tomo, 2018\n "
2020"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -90,8 +90,8 @@ msgid ""
9090"The preferred way to use a Lock is an :keyword:`async with` statement::"
9191msgstr ""
9292
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
9595msgid "which is equivalent to::"
9696msgstr ""
9797
@@ -105,95 +105,107 @@ msgid ""
105105"returns ``True``."
106106msgstr ""
107107
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."
110112msgstr ""
111113
112114#: ../../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
113125msgid "When the lock is *locked*, reset it to *unlocked* and return."
114126msgstr ""
115127
116- #: ../../library/asyncio-sync.rst:75
128+ #: ../../library/asyncio-sync.rst:82
117129msgid "If the lock is *unlocked*, a :exc:`RuntimeError` is raised."
118130msgstr ""
119131
120- #: ../../library/asyncio-sync.rst:79
132+ #: ../../library/asyncio-sync.rst:86
121133msgid "Return ``True`` if the lock is *locked*."
122134msgstr ""
123135
124- #: ../../library/asyncio-sync.rst:83
136+ #: ../../library/asyncio-sync.rst:90
125137msgid "Event"
126138msgstr "Event"
127139
128- #: ../../library/asyncio-sync.rst:87
140+ #: ../../library/asyncio-sync.rst:94
129141msgid "An event object. Not thread-safe."
130142msgstr ""
131143
132- #: ../../library/asyncio-sync.rst:89
144+ #: ../../library/asyncio-sync.rst:96
133145msgid ""
134146"An asyncio event can be used to notify multiple asyncio tasks that some "
135147"event has happened."
136148msgstr ""
137149
138- #: ../../library/asyncio-sync.rst:92
150+ #: ../../library/asyncio-sync.rst:99
139151msgid ""
140152"An Event object manages an internal flag that can be set to *true* with the "
141153":meth:`set` method and reset to *false* with the :meth:`clear` method. The "
142154":meth:`wait` method blocks until the flag is set to *true*. The flag is set"
143155" to *false* initially."
144156msgstr ""
145157
146- #: ../../library/asyncio-sync.rst:99
158+ #: ../../library/asyncio-sync.rst:106
147159msgid "Example::"
148160msgstr "以下はプログラム例です::"
149161
150- #: ../../library/asyncio-sync.rst:124
162+ #: ../../library/asyncio-sync.rst:131
151163msgid "Wait until the event is set."
152164msgstr ""
153165
154- #: ../../library/asyncio-sync.rst:126
166+ #: ../../library/asyncio-sync.rst:133
155167msgid ""
156168"If the event is set, return ``True`` immediately. Otherwise block until "
157169"another task calls :meth:`set`."
158170msgstr ""
159171
160- #: ../../library/asyncio-sync.rst:131
172+ #: ../../library/asyncio-sync.rst:138
161173msgid "Set the event."
162174msgstr ""
163175
164- #: ../../library/asyncio-sync.rst:133
176+ #: ../../library/asyncio-sync.rst:140
165177msgid "All tasks waiting for event to be set will be immediately awakened."
166178msgstr ""
167179
168- #: ../../library/asyncio-sync.rst:138
180+ #: ../../library/asyncio-sync.rst:145
169181msgid "Clear (unset) the event."
170182msgstr ""
171183
172- #: ../../library/asyncio-sync.rst:140
184+ #: ../../library/asyncio-sync.rst:147
173185msgid ""
174186"Tasks awaiting on :meth:`wait` will now block until the :meth:`set` method "
175187"is called again."
176188msgstr ""
177189
178- #: ../../library/asyncio-sync.rst:145
190+ #: ../../library/asyncio-sync.rst:152
179191msgid "Return ``True`` if the event is set."
180192msgstr ""
181193
182- #: ../../library/asyncio-sync.rst:149
194+ #: ../../library/asyncio-sync.rst:156
183195msgid "Condition"
184196msgstr "Condition"
185197
186- #: ../../library/asyncio-sync.rst:153
198+ #: ../../library/asyncio-sync.rst:160
187199msgid "A Condition object. Not thread-safe."
188200msgstr ""
189201
190- #: ../../library/asyncio-sync.rst:155
202+ #: ../../library/asyncio-sync.rst:162
191203msgid ""
192204"An asyncio condition primitive can be used by a task to wait for some event "
193205"to happen and then get exclusive access to a shared resource."
194206msgstr ""
195207
196- #: ../../library/asyncio-sync.rst:159
208+ #: ../../library/asyncio-sync.rst:166
197209msgid ""
198210"In essence, a Condition object combines the functionality of an "
199211":class:`Event` and a :class:`Lock`. It is possible to have multiple "
@@ -202,158 +214,158 @@ msgid ""
202214"states of that shared resource."
203215msgstr ""
204216
205- #: ../../library/asyncio-sync.rst:165
217+ #: ../../library/asyncio-sync.rst:172
206218msgid ""
207219"The optional *lock* argument must be a :class:`Lock` object or ``None``. In"
208220" the latter case a new Lock object is created automatically."
209221msgstr ""
210222
211- #: ../../library/asyncio-sync.rst:169
223+ #: ../../library/asyncio-sync.rst:176
212224msgid ""
213225"The preferred way to use a Condition is an :keyword:`async with` statement::"
214226msgstr ""
215227
216- #: ../../library/asyncio-sync.rst:191
228+ #: ../../library/asyncio-sync.rst:198
217229msgid "Acquire the underlying lock."
218230msgstr "下層でのロックを獲得します。"
219231
220- #: ../../library/asyncio-sync.rst:193
232+ #: ../../library/asyncio-sync.rst:200
221233msgid ""
222234"This method waits until the underlying lock is *unlocked*, sets it to "
223235"*locked* and returns ``True``."
224236msgstr ""
225237
226- #: ../../library/asyncio-sync.rst:198
238+ #: ../../library/asyncio-sync.rst:205
227239msgid ""
228240"Wake up at most *n* tasks (1 by default) waiting on this condition. The "
229241"method is no-op if no tasks are waiting."
230242msgstr ""
231243
232- #: ../../library/asyncio-sync.rst:201 ../../library/asyncio-sync.rst:216
244+ #: ../../library/asyncio-sync.rst:208 ../../library/asyncio-sync.rst:223
233245msgid ""
234246"The lock must be acquired before this method is called and released shortly "
235247"after. If called with an *unlocked* lock a :exc:`RuntimeError` error is "
236248"raised."
237249msgstr ""
238250
239- #: ../../library/asyncio-sync.rst:207
251+ #: ../../library/asyncio-sync.rst:214
240252msgid "Return ``True`` if the underlying lock is acquired."
241253msgstr "下層のロックを獲得していれば ``True`` を返します。"
242254
243- #: ../../library/asyncio-sync.rst:211
255+ #: ../../library/asyncio-sync.rst:218
244256msgid "Wake up all tasks waiting on this condition."
245257msgstr ""
246258
247- #: ../../library/asyncio-sync.rst:213
259+ #: ../../library/asyncio-sync.rst:220
248260msgid "This method acts like :meth:`notify`, but wakes up all waiting tasks."
249261msgstr ""
250262
251- #: ../../library/asyncio-sync.rst:222
263+ #: ../../library/asyncio-sync.rst:229
252264msgid "Release the underlying lock."
253265msgstr "下層のロックを解除します。"
254266
255- #: ../../library/asyncio-sync.rst:224
267+ #: ../../library/asyncio-sync.rst:231
256268msgid "When invoked on an unlocked lock, a :exc:`RuntimeError` is raised."
257269msgstr "アンロック状態のロックに対して呼び出された場合、:exc:`RuntimeError` が送出されます。"
258270
259- #: ../../library/asyncio-sync.rst:229
271+ #: ../../library/asyncio-sync.rst:236
260272msgid "Wait until notified."
261273msgstr "通知を受けるまで待機します。"
262274
263- #: ../../library/asyncio-sync.rst:231
275+ #: ../../library/asyncio-sync.rst:238
264276msgid ""
265277"If the calling task has not acquired the lock when this method is called, a "
266278":exc:`RuntimeError` is raised."
267279msgstr ""
268280
269- #: ../../library/asyncio-sync.rst:234
281+ #: ../../library/asyncio-sync.rst:241
270282msgid ""
271283"This method releases the underlying lock, and then blocks until it is "
272284"awakened by a :meth:`notify` or :meth:`notify_all` call. Once awakened, the "
273285"Condition re-acquires its lock and this method returns ``True``."
274286msgstr ""
275287
276- #: ../../library/asyncio-sync.rst:241
288+ #: ../../library/asyncio-sync.rst:248
277289msgid "Wait until a predicate becomes *true*."
278290msgstr ""
279291
280- #: ../../library/asyncio-sync.rst:243
292+ #: ../../library/asyncio-sync.rst:250
281293msgid ""
282294"The predicate must be a callable which result will be interpreted as a "
283295"boolean value. The final value is the return value."
284296msgstr ""
285297
286- #: ../../library/asyncio-sync.rst:249
298+ #: ../../library/asyncio-sync.rst:256
287299msgid "Semaphore"
288300msgstr "Semaphore"
289301
290- #: ../../library/asyncio-sync.rst:253
302+ #: ../../library/asyncio-sync.rst:260
291303msgid "A Semaphore object. Not thread-safe."
292304msgstr ""
293305
294- #: ../../library/asyncio-sync.rst:255
306+ #: ../../library/asyncio-sync.rst:262
295307msgid ""
296308"A semaphore manages an internal counter which is decremented by each "
297309":meth:`acquire` call and incremented by each :meth:`release` call. The "
298310"counter can never go below zero; when :meth:`acquire` finds that it is zero,"
299311" it blocks, waiting until some task calls :meth:`release`."
300312msgstr ""
301313
302- #: ../../library/asyncio-sync.rst:261
314+ #: ../../library/asyncio-sync.rst:268
303315msgid ""
304316"The optional *value* argument gives the initial value for the internal "
305317"counter (``1`` by default). If the given value is less than ``0`` a "
306318":exc:`ValueError` is raised."
307319msgstr ""
308320
309- #: ../../library/asyncio-sync.rst:265
321+ #: ../../library/asyncio-sync.rst:272
310322msgid ""
311323"The preferred way to use a Semaphore is an :keyword:`async with` statement::"
312324msgstr ""
313325
314- #: ../../library/asyncio-sync.rst:287
326+ #: ../../library/asyncio-sync.rst:294
315327msgid "Acquire a semaphore."
316328msgstr "セマフォを獲得します。"
317329
318- #: ../../library/asyncio-sync.rst:289
330+ #: ../../library/asyncio-sync.rst:296
319331msgid ""
320332"If the internal counter is greater than zero, decrement it by one and return"
321333" ``True`` immediately. If it is zero, wait until a :meth:`release` is "
322334"called and return ``True``."
323335msgstr ""
324336
325- #: ../../library/asyncio-sync.rst:295
337+ #: ../../library/asyncio-sync.rst:302
326338msgid "Returns ``True`` if semaphore can not be acquired immediately."
327339msgstr "セマフォを直ちに獲得できない場合 ``True`` を返します。"
328340
329- #: ../../library/asyncio-sync.rst:299
341+ #: ../../library/asyncio-sync.rst:306
330342msgid ""
331343"Release a semaphore, incrementing the internal counter by one. Can wake up a"
332344" task waiting to acquire the semaphore."
333345msgstr ""
334346
335- #: ../../library/asyncio-sync.rst:302
347+ #: ../../library/asyncio-sync.rst:309
336348msgid ""
337349"Unlike :class:`BoundedSemaphore`, :class:`Semaphore` allows making more "
338350"``release()`` calls than ``acquire()`` calls."
339351msgstr ""
340352
341- #: ../../library/asyncio-sync.rst:307
353+ #: ../../library/asyncio-sync.rst:314
342354msgid "BoundedSemaphore"
343355msgstr "BoundedSemaphore"
344356
345- #: ../../library/asyncio-sync.rst:311
357+ #: ../../library/asyncio-sync.rst:318
346358msgid "A bounded semaphore object. Not thread-safe."
347359msgstr ""
348360
349- #: ../../library/asyncio-sync.rst:313
361+ #: ../../library/asyncio-sync.rst:320
350362msgid ""
351363"Bounded Semaphore is a version of :class:`Semaphore` that raises a "
352364":exc:`ValueError` in :meth:`~Semaphore.release` if it increases the internal"
353365" counter above the initial *value*."
354366msgstr ""
355367
356- #: ../../library/asyncio-sync.rst:323
368+ #: ../../library/asyncio-sync.rst:330
357369msgid ""
358370"Acquiring a lock using ``await lock`` or ``yield from lock`` and/or "
359371":keyword:`with` statement (``with await lock``, ``with (yield from lock)``) "
0 commit comments