|
8 | 8 | msgstr ""
|
9 | 9 | "Project-Id-Version: Python 3.12\n"
|
10 | 10 | "Report-Msgid-Bugs-To: \n"
|
11 |
| -"POT-Creation-Date: 2023-06-21 00:18+0200\n" |
| 11 | +"POT-Creation-Date: 2023-09-24 21:54+0000\n" |
12 | 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
13 | 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 | 14 | " Language-Team: LANGUAGE <[email protected]>\n"
|
@@ -201,197 +201,201 @@ msgstr ""
|
201 | 201 | msgid "The *max_tasks_per_child* argument was added to allow users to control the lifetime of workers in the pool."
|
202 | 202 | msgstr ""
|
203 | 203 |
|
204 |
| -#: ../../library/concurrent.futures.rst:299 |
| 204 | +#: ../../library/concurrent.futures.rst:296 |
| 205 | +msgid "On POSIX systems, if your application has multiple threads and the :mod:`multiprocessing` context uses the ``\"fork\"`` start method: The :func:`os.fork` function called internally to spawn workers may raise a :exc:`DeprecationWarning`. Pass a *mp_context* configured to use a different start method. See the :func:`os.fork` documentation for further explanation." |
| 206 | +msgstr "" |
| 207 | + |
| 208 | +#: ../../library/concurrent.futures.rst:307 |
205 | 209 | msgid "ProcessPoolExecutor Example"
|
206 | 210 | msgstr ""
|
207 | 211 |
|
208 |
| -#: ../../library/concurrent.futures.rst:337 |
| 212 | +#: ../../library/concurrent.futures.rst:345 |
209 | 213 | msgid "Future Objects"
|
210 | 214 | msgstr ""
|
211 | 215 |
|
212 |
| -#: ../../library/concurrent.futures.rst:339 |
| 216 | +#: ../../library/concurrent.futures.rst:347 |
213 | 217 | msgid "The :class:`Future` class encapsulates the asynchronous execution of a callable. :class:`Future` instances are created by :meth:`Executor.submit`."
|
214 | 218 | msgstr ""
|
215 | 219 |
|
216 |
| -#: ../../library/concurrent.futures.rst:344 |
| 220 | +#: ../../library/concurrent.futures.rst:352 |
217 | 221 | msgid "Encapsulates the asynchronous execution of a callable. :class:`Future` instances are created by :meth:`Executor.submit` and should not be created directly except for testing."
|
218 | 222 | msgstr ""
|
219 | 223 |
|
220 |
| -#: ../../library/concurrent.futures.rst:350 |
| 224 | +#: ../../library/concurrent.futures.rst:358 |
221 | 225 | msgid "Attempt to cancel the call. If the call is currently being executed or finished running and cannot be cancelled then the method will return ``False``, otherwise the call will be cancelled and the method will return ``True``."
|
222 | 226 | msgstr ""
|
223 | 227 |
|
224 |
| -#: ../../library/concurrent.futures.rst:357 |
| 228 | +#: ../../library/concurrent.futures.rst:365 |
225 | 229 | msgid "Return ``True`` if the call was successfully cancelled."
|
226 | 230 | msgstr ""
|
227 | 231 |
|
228 |
| -#: ../../library/concurrent.futures.rst:361 |
| 232 | +#: ../../library/concurrent.futures.rst:369 |
229 | 233 | msgid "Return ``True`` if the call is currently being executed and cannot be cancelled."
|
230 | 234 | msgstr ""
|
231 | 235 |
|
232 |
| -#: ../../library/concurrent.futures.rst:366 |
| 236 | +#: ../../library/concurrent.futures.rst:374 |
233 | 237 | msgid "Return ``True`` if the call was successfully cancelled or finished running."
|
234 | 238 | msgstr ""
|
235 | 239 |
|
236 |
| -#: ../../library/concurrent.futures.rst:371 |
| 240 | +#: ../../library/concurrent.futures.rst:379 |
237 | 241 | msgid "Return the value returned by the call. If the call hasn't yet completed then this method will wait up to *timeout* seconds. If the call hasn't completed in *timeout* seconds, then a :exc:`TimeoutError` will be raised. *timeout* can be an int or float. If *timeout* is not specified or ``None``, there is no limit to the wait time."
|
238 | 242 | msgstr ""
|
239 | 243 |
|
240 |
| -#: ../../library/concurrent.futures.rst:378 |
241 |
| -#: ../../library/concurrent.futures.rst:392 |
| 244 | +#: ../../library/concurrent.futures.rst:386 |
| 245 | +#: ../../library/concurrent.futures.rst:400 |
242 | 246 | msgid "If the future is cancelled before completing then :exc:`.CancelledError` will be raised."
|
243 | 247 | msgstr ""
|
244 | 248 |
|
245 |
| -#: ../../library/concurrent.futures.rst:381 |
| 249 | +#: ../../library/concurrent.futures.rst:389 |
246 | 250 | msgid "If the call raised an exception, this method will raise the same exception."
|
247 | 251 | msgstr ""
|
248 | 252 |
|
249 |
| -#: ../../library/concurrent.futures.rst:385 |
| 253 | +#: ../../library/concurrent.futures.rst:393 |
250 | 254 | msgid "Return the exception raised by the call. If the call hasn't yet completed then this method will wait up to *timeout* seconds. If the call hasn't completed in *timeout* seconds, then a :exc:`TimeoutError` will be raised. *timeout* can be an int or float. If *timeout* is not specified or ``None``, there is no limit to the wait time."
|
251 | 255 | msgstr ""
|
252 | 256 |
|
253 |
| -#: ../../library/concurrent.futures.rst:395 |
| 257 | +#: ../../library/concurrent.futures.rst:403 |
254 | 258 | msgid "If the call completed without raising, ``None`` is returned."
|
255 | 259 | msgstr ""
|
256 | 260 |
|
257 |
| -#: ../../library/concurrent.futures.rst:399 |
| 261 | +#: ../../library/concurrent.futures.rst:407 |
258 | 262 | msgid "Attaches the callable *fn* to the future. *fn* will be called, with the future as its only argument, when the future is cancelled or finishes running."
|
259 | 263 | msgstr ""
|
260 | 264 |
|
261 |
| -#: ../../library/concurrent.futures.rst:403 |
| 265 | +#: ../../library/concurrent.futures.rst:411 |
262 | 266 | msgid "Added callables are called in the order that they were added and are always called in a thread belonging to the process that added them. If the callable raises an :exc:`Exception` subclass, it will be logged and ignored. If the callable raises a :exc:`BaseException` subclass, the behavior is undefined."
|
263 | 267 | msgstr ""
|
264 | 268 |
|
265 |
| -#: ../../library/concurrent.futures.rst:409 |
| 269 | +#: ../../library/concurrent.futures.rst:417 |
266 | 270 | msgid "If the future has already completed or been cancelled, *fn* will be called immediately."
|
267 | 271 | msgstr ""
|
268 | 272 |
|
269 |
| -#: ../../library/concurrent.futures.rst:412 |
| 273 | +#: ../../library/concurrent.futures.rst:420 |
270 | 274 | msgid "The following :class:`Future` methods are meant for use in unit tests and :class:`Executor` implementations."
|
271 | 275 | msgstr ""
|
272 | 276 |
|
273 |
| -#: ../../library/concurrent.futures.rst:417 |
| 277 | +#: ../../library/concurrent.futures.rst:425 |
274 | 278 | msgid "This method should only be called by :class:`Executor` implementations before executing the work associated with the :class:`Future` and by unit tests."
|
275 | 279 | msgstr ""
|
276 | 280 |
|
277 |
| -#: ../../library/concurrent.futures.rst:421 |
| 281 | +#: ../../library/concurrent.futures.rst:429 |
278 | 282 | msgid "If the method returns ``False`` then the :class:`Future` was cancelled, i.e. :meth:`Future.cancel` was called and returned ``True``. Any threads waiting on the :class:`Future` completing (i.e. through :func:`as_completed` or :func:`wait`) will be woken up."
|
279 | 283 | msgstr ""
|
280 | 284 |
|
281 |
| -#: ../../library/concurrent.futures.rst:426 |
| 285 | +#: ../../library/concurrent.futures.rst:434 |
282 | 286 | msgid "If the method returns ``True`` then the :class:`Future` was not cancelled and has been put in the running state, i.e. calls to :meth:`Future.running` will return ``True``."
|
283 | 287 | msgstr ""
|
284 | 288 |
|
285 |
| -#: ../../library/concurrent.futures.rst:430 |
| 289 | +#: ../../library/concurrent.futures.rst:438 |
286 | 290 | msgid "This method can only be called once and cannot be called after :meth:`Future.set_result` or :meth:`Future.set_exception` have been called."
|
287 | 291 | msgstr ""
|
288 | 292 |
|
289 |
| -#: ../../library/concurrent.futures.rst:436 |
| 293 | +#: ../../library/concurrent.futures.rst:444 |
290 | 294 | msgid "Sets the result of the work associated with the :class:`Future` to *result*."
|
291 | 295 | msgstr ""
|
292 | 296 |
|
293 |
| -#: ../../library/concurrent.futures.rst:439 |
294 |
| -#: ../../library/concurrent.futures.rst:452 |
| 297 | +#: ../../library/concurrent.futures.rst:447 |
| 298 | +#: ../../library/concurrent.futures.rst:460 |
295 | 299 | msgid "This method should only be used by :class:`Executor` implementations and unit tests."
|
296 | 300 | msgstr ""
|
297 | 301 |
|
298 |
| -#: ../../library/concurrent.futures.rst:442 |
299 |
| -#: ../../library/concurrent.futures.rst:455 |
| 302 | +#: ../../library/concurrent.futures.rst:450 |
| 303 | +#: ../../library/concurrent.futures.rst:463 |
300 | 304 | msgid "This method raises :exc:`concurrent.futures.InvalidStateError` if the :class:`Future` is already done."
|
301 | 305 | msgstr ""
|
302 | 306 |
|
303 |
| -#: ../../library/concurrent.futures.rst:449 |
| 307 | +#: ../../library/concurrent.futures.rst:457 |
304 | 308 | msgid "Sets the result of the work associated with the :class:`Future` to the :class:`Exception` *exception*."
|
305 | 309 | msgstr ""
|
306 | 310 |
|
307 |
| -#: ../../library/concurrent.futures.rst:461 |
| 311 | +#: ../../library/concurrent.futures.rst:469 |
308 | 312 | msgid "Module Functions"
|
309 | 313 | msgstr ""
|
310 | 314 |
|
311 |
| -#: ../../library/concurrent.futures.rst:465 |
| 315 | +#: ../../library/concurrent.futures.rst:473 |
312 | 316 | msgid "Wait for the :class:`Future` instances (possibly created by different :class:`Executor` instances) given by *fs* to complete. Duplicate futures given to *fs* are removed and will be returned only once. Returns a named 2-tuple of sets. The first set, named ``done``, contains the futures that completed (finished or cancelled futures) before the wait completed. The second set, named ``not_done``, contains the futures that did not complete (pending or running futures)."
|
313 | 317 | msgstr ""
|
314 | 318 |
|
315 |
| -#: ../../library/concurrent.futures.rst:473 |
| 319 | +#: ../../library/concurrent.futures.rst:481 |
316 | 320 | msgid "*timeout* can be used to control the maximum number of seconds to wait before returning. *timeout* can be an int or float. If *timeout* is not specified or ``None``, there is no limit to the wait time."
|
317 | 321 | msgstr ""
|
318 | 322 |
|
319 |
| -#: ../../library/concurrent.futures.rst:477 |
| 323 | +#: ../../library/concurrent.futures.rst:485 |
320 | 324 | msgid "*return_when* indicates when this function should return. It must be one of the following constants:"
|
321 | 325 | msgstr ""
|
322 | 326 |
|
323 |
| -#: ../../library/concurrent.futures.rst:483 |
| 327 | +#: ../../library/concurrent.futures.rst:491 |
324 | 328 | msgid "Constant"
|
325 | 329 | msgstr ""
|
326 | 330 |
|
327 |
| -#: ../../library/concurrent.futures.rst:483 |
| 331 | +#: ../../library/concurrent.futures.rst:491 |
328 | 332 | msgid "Description"
|
329 | 333 | msgstr ""
|
330 | 334 |
|
331 |
| -#: ../../library/concurrent.futures.rst:485 |
| 335 | +#: ../../library/concurrent.futures.rst:493 |
332 | 336 | msgid ":const:`FIRST_COMPLETED`"
|
333 | 337 | msgstr ""
|
334 | 338 |
|
335 |
| -#: ../../library/concurrent.futures.rst:485 |
| 339 | +#: ../../library/concurrent.futures.rst:493 |
336 | 340 | msgid "The function will return when any future finishes or is cancelled."
|
337 | 341 | msgstr ""
|
338 | 342 |
|
339 |
| -#: ../../library/concurrent.futures.rst:488 |
| 343 | +#: ../../library/concurrent.futures.rst:496 |
340 | 344 | msgid ":const:`FIRST_EXCEPTION`"
|
341 | 345 | msgstr ""
|
342 | 346 |
|
343 |
| -#: ../../library/concurrent.futures.rst:488 |
| 347 | +#: ../../library/concurrent.futures.rst:496 |
344 | 348 | msgid "The function will return when any future finishes by raising an exception. If no future raises an exception then it is equivalent to :const:`ALL_COMPLETED`."
|
345 | 349 | msgstr ""
|
346 | 350 |
|
347 |
| -#: ../../library/concurrent.futures.rst:494 |
| 351 | +#: ../../library/concurrent.futures.rst:502 |
348 | 352 | msgid ":const:`ALL_COMPLETED`"
|
349 | 353 | msgstr ""
|
350 | 354 |
|
351 |
| -#: ../../library/concurrent.futures.rst:494 |
| 355 | +#: ../../library/concurrent.futures.rst:502 |
352 | 356 | msgid "The function will return when all futures finish or are cancelled."
|
353 | 357 | msgstr ""
|
354 | 358 |
|
355 |
| -#: ../../library/concurrent.futures.rst:500 |
| 359 | +#: ../../library/concurrent.futures.rst:508 |
356 | 360 | msgid "Returns an iterator over the :class:`Future` instances (possibly created by different :class:`Executor` instances) given by *fs* that yields futures as they complete (finished or cancelled futures). Any futures given by *fs* that are duplicated will be returned once. Any futures that completed before :func:`as_completed` is called will be yielded first. The returned iterator raises a :exc:`TimeoutError` if :meth:`~iterator.__next__` is called and the result isn't available after *timeout* seconds from the original call to :func:`as_completed`. *timeout* can be an int or float. If *timeout* is not specified or ``None``, there is no limit to the wait time."
|
357 | 361 | msgstr ""
|
358 | 362 |
|
359 |
| -#: ../../library/concurrent.futures.rst:514 |
| 363 | +#: ../../library/concurrent.futures.rst:522 |
360 | 364 | msgid ":pep:`3148` -- futures - execute computations asynchronously"
|
361 | 365 | msgstr ""
|
362 | 366 |
|
363 |
| -#: ../../library/concurrent.futures.rst:514 |
| 367 | +#: ../../library/concurrent.futures.rst:522 |
364 | 368 | msgid "The proposal which described this feature for inclusion in the Python standard library."
|
365 | 369 | msgstr ""
|
366 | 370 |
|
367 |
| -#: ../../library/concurrent.futures.rst:519 |
| 371 | +#: ../../library/concurrent.futures.rst:527 |
368 | 372 | msgid "Exception classes"
|
369 | 373 | msgstr ""
|
370 | 374 |
|
371 |
| -#: ../../library/concurrent.futures.rst:525 |
| 375 | +#: ../../library/concurrent.futures.rst:533 |
372 | 376 | msgid "Raised when a future is cancelled."
|
373 | 377 | msgstr ""
|
374 | 378 |
|
375 |
| -#: ../../library/concurrent.futures.rst:529 |
| 379 | +#: ../../library/concurrent.futures.rst:537 |
376 | 380 | msgid "A deprecated alias of :exc:`TimeoutError`, raised when a future operation exceeds the given timeout."
|
377 | 381 | msgstr ""
|
378 | 382 |
|
379 |
| -#: ../../library/concurrent.futures.rst:534 |
| 383 | +#: ../../library/concurrent.futures.rst:542 |
380 | 384 | msgid "This class was made an alias of :exc:`TimeoutError`."
|
381 | 385 | msgstr ""
|
382 | 386 |
|
383 |
| -#: ../../library/concurrent.futures.rst:539 |
| 387 | +#: ../../library/concurrent.futures.rst:547 |
384 | 388 | msgid "Derived from :exc:`RuntimeError`, this exception class is raised when an executor is broken for some reason, and cannot be used to submit or execute new tasks."
|
385 | 389 | msgstr ""
|
386 | 390 |
|
387 |
| -#: ../../library/concurrent.futures.rst:547 |
| 391 | +#: ../../library/concurrent.futures.rst:555 |
388 | 392 | msgid "Raised when an operation is performed on a future that is not allowed in the current state."
|
389 | 393 | msgstr ""
|
390 | 394 |
|
391 |
| -#: ../../library/concurrent.futures.rst:556 |
| 395 | +#: ../../library/concurrent.futures.rst:564 |
392 | 396 | msgid "Derived from :exc:`~concurrent.futures.BrokenExecutor`, this exception class is raised when one of the workers of a :class:`ThreadPoolExecutor` has failed initializing."
|
393 | 397 | msgstr ""
|
394 | 398 |
|
395 |
| -#: ../../library/concurrent.futures.rst:566 |
| 399 | +#: ../../library/concurrent.futures.rst:574 |
396 | 400 | msgid "Derived from :exc:`~concurrent.futures.BrokenExecutor` (formerly :exc:`RuntimeError`), this exception class is raised when one of the workers of a :class:`ProcessPoolExecutor` has terminated in a non-clean fashion (for example, if it was killed from the outside)."
|
397 | 401 | msgstr ""
|
0 commit comments