From 613220f4609da16bf8b84e99d22c809135d697c3 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 31 Jul 2025 23:52:51 +0000 Subject: [PATCH] Update translations from Transifex --- library/bisect.po | 74 +- library/concurrent.futures.po | 140 +- library/concurrent.interpreters.po | 11 +- library/http.cookies.po | 64 +- library/multiprocessing.po | 1286 +- library/typing.po | 4 +- whatsnew/3.14.po | 1205 +- whatsnew/changelog.po | 27238 ++++++++++++++------------- 8 files changed, 15067 insertions(+), 14955 deletions(-) diff --git a/library/bisect.po b/library/bisect.po index 8816330dc..0d789179e 100644 --- a/library/bisect.po +++ b/library/bisect.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-09 14:19+0000\n" +"POT-Creation-Date: 2025-07-31 14:20+0000\n" "PO-Revision-Date: 2025-07-18 18:48+0000\n" "Last-Translator: Rafael Fontenelle , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -50,10 +50,20 @@ msgid "" msgstr "" #: ../../library/bisect.rst:29 +msgid "" +"The functions in this module are not thread-safe. If multiple threads " +"concurrently use :mod:`bisect` functions on the same sequence, this may " +"result in undefined behaviour. Likewise, if the provided sequence is mutated " +"by a different thread while a :mod:`bisect` function is operating on it, the " +"result is undefined. For example, using :py:func:`~bisect.insort_left` on " +"the same list from multiple threads may result in the list becoming unsorted." +msgstr "" + +#: ../../library/bisect.rst:39 msgid "The following functions are provided:" msgstr "次の関数が用意されています:" -#: ../../library/bisect.rst:34 +#: ../../library/bisect.rst:44 msgid "" "Locate the insertion point for *x* in *a* to maintain sorted order. The " "parameters *lo* and *hi* may be used to specify a subset of the list which " @@ -69,7 +79,7 @@ msgstr "" "insert()`` の第一引数として使うのに適しています。*a* はすでにソートされている" "ものとします。" -#: ../../library/bisect.rst:41 +#: ../../library/bisect.rst:51 msgid "" "The returned insertion point *ip* partitions the array *a* into two slices " "such that ``all(elem < x for elem in a[lo : ip])`` is true for the left " @@ -77,31 +87,31 @@ msgid "" "slice." msgstr "" -#: ../../library/bisect.rst:46 +#: ../../library/bisect.rst:56 msgid "" "*key* specifies a :term:`key function` of one argument that is used to " "extract a comparison key from each element in the array. To support " "searching complex records, the key function is not applied to the *x* value." msgstr "" -#: ../../library/bisect.rst:50 +#: ../../library/bisect.rst:60 msgid "" "If *key* is ``None``, the elements are compared directly and no key function " "is called." msgstr "" -#: ../../library/bisect.rst:53 ../../library/bisect.rst:67 -#: ../../library/bisect.rst:85 ../../library/bisect.rst:105 +#: ../../library/bisect.rst:63 ../../library/bisect.rst:77 +#: ../../library/bisect.rst:95 ../../library/bisect.rst:115 msgid "Added the *key* parameter." msgstr "*key* パラメータが追加されました。" -#: ../../library/bisect.rst:60 +#: ../../library/bisect.rst:70 msgid "" "Similar to :py:func:`~bisect.bisect_left`, but returns an insertion point " "which comes after (to the right of) any existing entries of *x* in *a*." msgstr "" -#: ../../library/bisect.rst:63 +#: ../../library/bisect.rst:73 msgid "" "The returned insertion point *ip* partitions the array *a* into two slices " "such that ``all(elem <= x for elem in a[lo : ip])`` is true for the left " @@ -109,65 +119,65 @@ msgid "" "slice." msgstr "" -#: ../../library/bisect.rst:73 +#: ../../library/bisect.rst:83 msgid "Insert *x* in *a* in sorted order." msgstr "*x* を *a* にソート順で挿入します。" -#: ../../library/bisect.rst:75 +#: ../../library/bisect.rst:85 msgid "" "This function first runs :py:func:`~bisect.bisect_left` to locate an " "insertion point. Next, it runs the :meth:`!insert` method on *a* to insert " "*x* at the appropriate position to maintain sort order." msgstr "" -#: ../../library/bisect.rst:79 ../../library/bisect.rst:99 +#: ../../library/bisect.rst:89 ../../library/bisect.rst:109 msgid "" "To support inserting records in a table, the *key* function (if any) is " "applied to *x* for the search step but not for the insertion step." msgstr "" -#: ../../library/bisect.rst:82 ../../library/bisect.rst:102 +#: ../../library/bisect.rst:92 ../../library/bisect.rst:112 msgid "" "Keep in mind that the *O*\\ (log *n*) search is dominated by the slow *O*\\ " "(*n*) insertion step." msgstr "" -#: ../../library/bisect.rst:92 +#: ../../library/bisect.rst:102 msgid "" "Similar to :py:func:`~bisect.insort_left`, but inserting *x* in *a* after " "any existing entries of *x*." msgstr "" -#: ../../library/bisect.rst:95 +#: ../../library/bisect.rst:105 msgid "" "This function first runs :py:func:`~bisect.bisect_right` to locate an " "insertion point. Next, it runs the :meth:`!insert` method on *a* to insert " "*x* at the appropriate position to maintain sort order." msgstr "" -#: ../../library/bisect.rst:110 +#: ../../library/bisect.rst:120 msgid "Performance Notes" msgstr "パフォーマンスに関するメモ" -#: ../../library/bisect.rst:112 +#: ../../library/bisect.rst:122 msgid "" "When writing time sensitive code using *bisect()* and *insort()*, keep these " "thoughts in mind:" msgstr "" -#: ../../library/bisect.rst:115 +#: ../../library/bisect.rst:125 msgid "" "Bisection is effective for searching ranges of values. For locating specific " "values, dictionaries are more performant." msgstr "" -#: ../../library/bisect.rst:118 +#: ../../library/bisect.rst:128 msgid "" "The *insort()* functions are *O*\\ (*n*) because the logarithmic search step " "is dominated by the linear time insertion step." msgstr "" -#: ../../library/bisect.rst:121 +#: ../../library/bisect.rst:131 msgid "" "The search functions are stateless and discard key function results after " "they are used. Consequently, if the search functions are used in a loop, " @@ -178,14 +188,14 @@ msgid "" "shown in the examples section below)." msgstr "" -#: ../../library/bisect.rst:131 +#: ../../library/bisect.rst:141 msgid "" "`Sorted Collections `_ is a " "high performance module that uses *bisect* to managed sorted collections of " "data." msgstr "" -#: ../../library/bisect.rst:135 +#: ../../library/bisect.rst:145 msgid "" "The `SortedCollection recipe `_ uses bisect to build a full-featured collection class " @@ -198,11 +208,11 @@ msgstr "" "activestate.com/recipes/577197-sortedcollection/>`_\\ 。キーは、探索中に不必" "要な呼び出しをさせないために、予め計算しておきます。" -#: ../../library/bisect.rst:143 +#: ../../library/bisect.rst:153 msgid "Searching Sorted Lists" msgstr "ソート済みリストの探索" -#: ../../library/bisect.rst:145 +#: ../../library/bisect.rst:155 msgid "" "The above `bisect functions`_ are useful for finding insertion points but " "can be tricky or awkward to use for common searching tasks. The following " @@ -210,7 +220,7 @@ msgid "" "sorted lists::" msgstr "" -#: ../../library/bisect.rst:150 +#: ../../library/bisect.rst:160 msgid "" "def index(a, x):\n" " 'Locate the leftmost value exactly equal to x'\n" @@ -248,11 +258,11 @@ msgid "" " raise ValueError" msgstr "" -#: ../../library/bisect.rst:187 +#: ../../library/bisect.rst:197 msgid "Examples" msgstr "使用例" -#: ../../library/bisect.rst:191 +#: ../../library/bisect.rst:201 msgid "" "The :py:func:`~bisect.bisect` function can be useful for numeric table " "lookups. This example uses :py:func:`~bisect.bisect` to look up a letter " @@ -260,7 +270,7 @@ msgid "" "90 and up is an 'A', 80 to 89 is a 'B', and so on::" msgstr "" -#: ../../library/bisect.rst:196 +#: ../../library/bisect.rst:206 msgid "" ">>> def grade(score, breakpoints=[60, 70, 80, 90], grades='FDCBA'):\n" "... i = bisect(breakpoints, score)\n" @@ -270,14 +280,14 @@ msgid "" "['F', 'A', 'C', 'C', 'B', 'A', 'A']" msgstr "" -#: ../../library/bisect.rst:203 +#: ../../library/bisect.rst:213 msgid "" "The :py:func:`~bisect.bisect` and :py:func:`~bisect.insort` functions also " "work with lists of tuples. The *key* argument can serve to extract the " "field used for ordering records in a table::" msgstr "" -#: ../../library/bisect.rst:207 +#: ../../library/bisect.rst:217 msgid "" ">>> from collections import namedtuple\n" ">>> from operator import attrgetter\n" @@ -310,13 +320,13 @@ msgid "" " Movie(name='Titanic', released=1997, director='Cameron')]" msgstr "" -#: ../../library/bisect.rst:237 +#: ../../library/bisect.rst:247 msgid "" "If the key function is expensive, it is possible to avoid repeated function " "calls by searching a list of precomputed keys to find the index of a record::" msgstr "" -#: ../../library/bisect.rst:240 +#: ../../library/bisect.rst:250 msgid "" ">>> data = [('red', 5), ('blue', 1), ('yellow', 8), ('black', 0)]\n" ">>> data.sort(key=lambda r: r[1]) # Or use operator.itemgetter(1).\n" diff --git a/library/concurrent.futures.po b/library/concurrent.futures.po index 74b696033..562dbf258 100644 --- a/library/concurrent.futures.po +++ b/library/concurrent.futures.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-06-20 14:21+0000\n" +"POT-Creation-Date: 2025-07-31 14:20+0000\n" "PO-Revision-Date: 2025-07-18 18:48+0000\n" "Last-Translator: Rafael Fontenelle , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -318,7 +318,7 @@ msgid "" msgstr "" #: ../../library/concurrent.futures.rst:188 -#: ../../library/concurrent.futures.rst:386 +#: ../../library/concurrent.futures.rst:391 msgid "Added the *initializer* and *initargs* arguments." msgstr "*initializer* と *initargs* 引数が追加されました。" @@ -531,7 +531,15 @@ msgstr "" ":class:`ProcessPoolExecutor` に渡された呼び出し可能オブジェクトから :class:" "`Executor` や :class:`Future` メソッドを呼ぶとデッドロックに陥ります。" -#: ../../library/concurrent.futures.rst:347 +#: ../../library/concurrent.futures.rst:345 +msgid "" +"Note that the restrictions on functions and arguments needing to picklable " +"as per :class:`multiprocessing.Process` apply when using :meth:`~Executor." +"submit` and :meth:`~Executor.map` on a :class:`ProcessPoolExecutor`. A " +"function defined in a REPL or a lambda should not be expected to work." +msgstr "" + +#: ../../library/concurrent.futures.rst:352 msgid "" "An :class:`Executor` subclass that executes calls asynchronously using a " "pool of at most *max_workers* processes. If *max_workers* is ``None`` or " @@ -546,7 +554,7 @@ msgid "" "`multiprocessing-start-methods`." msgstr "" -#: ../../library/concurrent.futures.rst:361 +#: ../../library/concurrent.futures.rst:366 msgid "" "*initializer* is an optional callable that is called at the start of each " "worker process; *initargs* is a tuple of arguments passed to the " @@ -555,7 +563,7 @@ msgid "" "well as any attempt to submit more jobs to the pool." msgstr "" -#: ../../library/concurrent.futures.rst:367 +#: ../../library/concurrent.futures.rst:372 msgid "" "*max_tasks_per_child* is an optional argument that specifies the maximum " "number of tasks a single process can execute before it will exit and be " @@ -566,7 +574,7 @@ msgid "" "with the \"fork\" start method." msgstr "" -#: ../../library/concurrent.futures.rst:375 +#: ../../library/concurrent.futures.rst:380 msgid "" "When one of the worker processes terminates abruptly, a :exc:`~concurrent." "futures.process.BrokenProcessPool` error is now raised. Previously, " @@ -574,19 +582,19 @@ msgid "" "often freeze or deadlock." msgstr "" -#: ../../library/concurrent.futures.rst:382 +#: ../../library/concurrent.futures.rst:387 msgid "" "The *mp_context* argument was added to allow users to control the " "start_method for worker processes created by the pool." msgstr "" -#: ../../library/concurrent.futures.rst:388 +#: ../../library/concurrent.futures.rst:393 msgid "" "The *max_tasks_per_child* argument was added to allow users to control the " "lifetime of workers in the pool." msgstr "" -#: ../../library/concurrent.futures.rst:392 +#: ../../library/concurrent.futures.rst:397 msgid "" "On POSIX systems, if your application has multiple threads and the :mod:" "`multiprocessing` context uses the ``\"fork\"`` start method: The :func:`os." @@ -595,13 +603,13 @@ msgid "" "start method. See the :func:`os.fork` documentation for further explanation." msgstr "" -#: ../../library/concurrent.futures.rst:400 +#: ../../library/concurrent.futures.rst:405 msgid "" "*max_workers* uses :func:`os.process_cpu_count` by default, instead of :func:" "`os.cpu_count`." msgstr "" -#: ../../library/concurrent.futures.rst:404 +#: ../../library/concurrent.futures.rst:409 msgid "" "The default process start method (see :ref:`multiprocessing-start-methods`) " "changed away from *fork*. If you require the *fork* start method for :class:" @@ -609,7 +617,7 @@ msgid "" "get_context(\"fork\")``." msgstr "" -#: ../../library/concurrent.futures.rst:412 +#: ../../library/concurrent.futures.rst:417 msgid "" "Attempt to terminate all living worker processes immediately by calling :" "meth:`Process.terminate ` on each of " @@ -617,14 +625,14 @@ msgid "" "all other resources associated with the executor are freed." msgstr "" -#: ../../library/concurrent.futures.rst:417 -#: ../../library/concurrent.futures.rst:429 +#: ../../library/concurrent.futures.rst:422 +#: ../../library/concurrent.futures.rst:434 msgid "" "After calling this method the caller should no longer submit tasks to the " "executor." msgstr "" -#: ../../library/concurrent.futures.rst:424 +#: ../../library/concurrent.futures.rst:429 msgid "" "Attempt to kill all living worker processes immediately by calling :meth:" "`Process.kill ` on each of them. Internally, " @@ -632,11 +640,11 @@ msgid "" "resources associated with the executor are freed." msgstr "" -#: ../../library/concurrent.futures.rst:437 +#: ../../library/concurrent.futures.rst:442 msgid "ProcessPoolExecutor Example" msgstr "ProcessPoolExecutor の例" -#: ../../library/concurrent.futures.rst:440 +#: ../../library/concurrent.futures.rst:445 msgid "" "import concurrent.futures\n" "import math\n" @@ -672,11 +680,11 @@ msgid "" " main()" msgstr "" -#: ../../library/concurrent.futures.rst:475 +#: ../../library/concurrent.futures.rst:480 msgid "Future Objects" msgstr "Future オブジェクト" -#: ../../library/concurrent.futures.rst:477 +#: ../../library/concurrent.futures.rst:482 msgid "" "The :class:`Future` class encapsulates the asynchronous execution of a " "callable. :class:`Future` instances are created by :meth:`Executor.submit`." @@ -685,7 +693,7 @@ msgstr "" "す。 :class:`Future` のインスタンスは :meth:`Executor.submit` によって生成さ" "れます。" -#: ../../library/concurrent.futures.rst:482 +#: ../../library/concurrent.futures.rst:487 msgid "" "Encapsulates the asynchronous execution of a callable. :class:`Future` " "instances are created by :meth:`Executor.submit` and should not be created " @@ -695,7 +703,7 @@ msgstr "" "スタンスは :meth:`Executor.submit` で生成され、テストを除いて直接生成すべきで" "はありません。" -#: ../../library/concurrent.futures.rst:488 +#: ../../library/concurrent.futures.rst:493 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 " @@ -703,22 +711,22 @@ msgid "" "``True``." msgstr "" -#: ../../library/concurrent.futures.rst:495 +#: ../../library/concurrent.futures.rst:500 msgid "Return ``True`` if the call was successfully cancelled." msgstr "呼び出しが正常にキャンセルされた場合 ``True`` を返します。" -#: ../../library/concurrent.futures.rst:499 +#: ../../library/concurrent.futures.rst:504 msgid "" "Return ``True`` if the call is currently being executed and cannot be " "cancelled." msgstr "現在呼び出しが実行中でキャンセルできない場合 ``True`` を返します。" -#: ../../library/concurrent.futures.rst:504 +#: ../../library/concurrent.futures.rst:509 msgid "" "Return ``True`` if the call was successfully cancelled or finished running." msgstr "呼び出しが正常にキャンセルされたか終了した場合 ``True`` を返します。" -#: ../../library/concurrent.futures.rst:509 +#: ../../library/concurrent.futures.rst:514 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 " @@ -732,8 +740,8 @@ msgstr "" "floatを指定できます。もし *timeout* が指定されていないか、 ``None`` であれ" "ば、待機時間に制限はありません。" -#: ../../library/concurrent.futures.rst:516 -#: ../../library/concurrent.futures.rst:530 +#: ../../library/concurrent.futures.rst:521 +#: ../../library/concurrent.futures.rst:535 msgid "" "If the future is cancelled before completing then :exc:`.CancelledError` " "will be raised." @@ -741,12 +749,12 @@ msgstr "" "future が完了する前にキャンセルされた場合 :exc:`CancelledError` が送出されま" "す。" -#: ../../library/concurrent.futures.rst:519 +#: ../../library/concurrent.futures.rst:524 msgid "" "If the call raised an exception, this method will raise the same exception." msgstr "" -#: ../../library/concurrent.futures.rst:523 +#: ../../library/concurrent.futures.rst:528 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 " @@ -760,11 +768,11 @@ msgstr "" "かfloatを指定できます。 *timeout* が指定されていないか、 ``None`` であれば、" "待機時間に制限はありません。" -#: ../../library/concurrent.futures.rst:533 +#: ../../library/concurrent.futures.rst:538 msgid "If the call completed without raising, ``None`` is returned." msgstr "呼び出しが例外を送出することなく完了した場合、``None`` を返します。" -#: ../../library/concurrent.futures.rst:537 +#: ../../library/concurrent.futures.rst:542 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 " @@ -774,7 +782,7 @@ msgstr "" "ルされたか、実行を終了した際に、future をそのただ一つの引数として *fn* が呼び" "出されます。" -#: ../../library/concurrent.futures.rst:541 +#: ../../library/concurrent.futures.rst:546 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 " @@ -788,7 +796,7 @@ msgstr "" "ます。呼び出し可能オブジェクトが :exc:`BaseException` のサブクラスを送出した" "場合の動作は未定義です。" -#: ../../library/concurrent.futures.rst:547 +#: ../../library/concurrent.futures.rst:552 msgid "" "If the future has already completed or been cancelled, *fn* will be called " "immediately." @@ -796,7 +804,7 @@ msgstr "" "もしfutureがすでに完了しているか、キャンセル済みであれば、*fn* は即座に実行さ" "れます。" -#: ../../library/concurrent.futures.rst:550 +#: ../../library/concurrent.futures.rst:555 msgid "" "The following :class:`Future` methods are meant for use in unit tests and :" "class:`Executor` implementations." @@ -804,7 +812,7 @@ msgstr "" "以下の :class:`Future` メソッドは、ユニットテストでの使用と :class:" "`Executor` を実装することを意図しています。" -#: ../../library/concurrent.futures.rst:555 +#: ../../library/concurrent.futures.rst:560 msgid "" "This method should only be called by :class:`Executor` implementations " "before executing the work associated with the :class:`Future` and by unit " @@ -813,7 +821,7 @@ msgstr "" "このメソッドは、:class:`Future` に関連付けられたワークやユニットテストによる" "ワークの実行前に、 :class:`Executor` の実装によってのみ呼び出してください。" -#: ../../library/concurrent.futures.rst:559 +#: ../../library/concurrent.futures.rst:564 msgid "" "If the method returns ``False`` then the :class:`Future` was cancelled, i." "e. :meth:`Future.cancel` was called and returned ``True``. Any threads " @@ -825,7 +833,7 @@ msgstr "" "class:`Future` の完了を (:func:`as_completed` または :func:`wait` により) " "待機するすべてのスレッドが起動します。" -#: ../../library/concurrent.futures.rst:564 +#: ../../library/concurrent.futures.rst:569 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` " @@ -835,7 +843,7 @@ msgstr "" "状態に移行されています。つまり、 :meth:`Future.running` を呼び出すと " "``True`` が返ります。" -#: ../../library/concurrent.futures.rst:568 +#: ../../library/concurrent.futures.rst:573 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." @@ -844,13 +852,13 @@ msgstr "" "は :meth:`Future.set_exception` がキャンセルされた後には呼び出すことができま" "せん。" -#: ../../library/concurrent.futures.rst:574 +#: ../../library/concurrent.futures.rst:579 msgid "" "Sets the result of the work associated with the :class:`Future` to *result*." msgstr ":class:`Future` に関連付けられたワークの結果を *result* に設定します。" -#: ../../library/concurrent.futures.rst:577 -#: ../../library/concurrent.futures.rst:590 +#: ../../library/concurrent.futures.rst:582 +#: ../../library/concurrent.futures.rst:595 msgid "" "This method should only be used by :class:`Executor` implementations and " "unit tests." @@ -858,14 +866,14 @@ msgstr "" "このメソッドは、 :class:`Executor` の実装またはユニットテストによってのみ使用" "してください。" -#: ../../library/concurrent.futures.rst:580 -#: ../../library/concurrent.futures.rst:593 +#: ../../library/concurrent.futures.rst:585 +#: ../../library/concurrent.futures.rst:598 msgid "" "This method raises :exc:`concurrent.futures.InvalidStateError` if the :class:" "`Future` is already done." msgstr "" -#: ../../library/concurrent.futures.rst:587 +#: ../../library/concurrent.futures.rst:592 msgid "" "Sets the result of the work associated with the :class:`Future` to the :" "class:`Exception` *exception*." @@ -873,11 +881,11 @@ msgstr "" ":class:`Future` に関連付けられたワークの結果を :class:`Exception` " "*exception* に設定します。" -#: ../../library/concurrent.futures.rst:599 +#: ../../library/concurrent.futures.rst:604 msgid "Module Functions" msgstr "モジュール関数" -#: ../../library/concurrent.futures.rst:603 +#: ../../library/concurrent.futures.rst:608 msgid "" "Wait for the :class:`Future` instances (possibly created by different :class:" "`Executor` instances) given by *fs* to complete. Duplicate futures given to " @@ -888,7 +896,7 @@ msgid "" "running futures)." msgstr "" -#: ../../library/concurrent.futures.rst:611 +#: ../../library/concurrent.futures.rst:616 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 " @@ -898,7 +906,7 @@ msgstr "" "浮動小数点数をとります。*timeout* が指定されないか ``None`` の場合、無期限に" "待機します。" -#: ../../library/concurrent.futures.rst:615 +#: ../../library/concurrent.futures.rst:620 msgid "" "*return_when* indicates when this function should return. It must be one of " "the following constants:" @@ -906,30 +914,30 @@ msgstr "" "*return_when* でこの関数がいつ結果を返すか指定します。指定できる値は以下の 定" "数のどれか一つです:" -#: ../../library/concurrent.futures.rst:621 +#: ../../library/concurrent.futures.rst:626 msgid "Constant" msgstr "定数" -#: ../../library/concurrent.futures.rst:622 +#: ../../library/concurrent.futures.rst:627 msgid "Description" msgstr "説明" -#: ../../library/concurrent.futures.rst:625 +#: ../../library/concurrent.futures.rst:630 msgid "The function will return when any future finishes or is cancelled." msgstr "いずれかのフューチャが終了したかキャンセルされたときに返します。" -#: ../../library/concurrent.futures.rst:628 +#: ../../library/concurrent.futures.rst:633 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`." msgstr "" -#: ../../library/concurrent.futures.rst:633 +#: ../../library/concurrent.futures.rst:638 msgid "The function will return when all futures finish or are cancelled." msgstr "すべてのフューチャが終了したかキャンセルされたときに返します。" -#: ../../library/concurrent.futures.rst:637 +#: ../../library/concurrent.futures.rst:642 msgid "" "Returns an iterator over the :class:`Future` instances (possibly created by " "different :class:`Executor` instances) given by *fs* that yields futures as " @@ -942,69 +950,69 @@ msgid "" "*timeout* is not specified or ``None``, there is no limit to the wait time." msgstr "" -#: ../../library/concurrent.futures.rst:650 +#: ../../library/concurrent.futures.rst:655 msgid ":pep:`3148` -- futures - execute computations asynchronously" msgstr ":pep:`3148` -- futures - execute computations asynchronously" -#: ../../library/concurrent.futures.rst:651 +#: ../../library/concurrent.futures.rst:656 msgid "" "The proposal which described this feature for inclusion in the Python " "standard library." msgstr "この機能を Python 標準ライブラリに含めることを述べた提案です。" -#: ../../library/concurrent.futures.rst:656 +#: ../../library/concurrent.futures.rst:661 msgid "Exception classes" msgstr "例外クラス" -#: ../../library/concurrent.futures.rst:662 +#: ../../library/concurrent.futures.rst:667 msgid "Raised when a future is cancelled." msgstr "future がキャンセルされたときに送出されます。" -#: ../../library/concurrent.futures.rst:666 +#: ../../library/concurrent.futures.rst:671 msgid "" "A deprecated alias of :exc:`TimeoutError`, raised when a future operation " "exceeds the given timeout." msgstr "" -#: ../../library/concurrent.futures.rst:671 +#: ../../library/concurrent.futures.rst:676 msgid "This class was made an alias of :exc:`TimeoutError`." msgstr "このクラスは :exc:`TimeoutError` のエイリアスになりました。" -#: ../../library/concurrent.futures.rst:676 +#: ../../library/concurrent.futures.rst:681 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." msgstr "" -#: ../../library/concurrent.futures.rst:684 +#: ../../library/concurrent.futures.rst:689 msgid "" "Raised when an operation is performed on a future that is not allowed in the " "current state." msgstr "" -#: ../../library/concurrent.futures.rst:693 +#: ../../library/concurrent.futures.rst:698 msgid "" "Derived from :exc:`~concurrent.futures.BrokenExecutor`, this exception class " "is raised when one of the workers of a :class:`~concurrent.futures." "ThreadPoolExecutor` has failed initializing." msgstr "" -#: ../../library/concurrent.futures.rst:704 +#: ../../library/concurrent.futures.rst:709 msgid "" "Derived from :exc:`~concurrent.futures.thread.BrokenThreadPool`, this " "exception class is raised when one of the workers of a :class:`~concurrent." "futures.InterpreterPoolExecutor` has failed initializing." msgstr "" -#: ../../library/concurrent.futures.rst:713 +#: ../../library/concurrent.futures.rst:718 msgid "" "Raised from :class:`~concurrent.futures.InterpreterPoolExecutor` when the " "given initializer fails or from :meth:`~concurrent.futures.Executor.submit` " "when there's an uncaught exception from the submitted task." msgstr "" -#: ../../library/concurrent.futures.rst:724 +#: ../../library/concurrent.futures.rst:729 msgid "" "Derived from :exc:`~concurrent.futures.BrokenExecutor` (formerly :exc:" "`RuntimeError`), this exception class is raised when one of the workers of " diff --git a/library/concurrent.interpreters.po b/library/concurrent.interpreters.po index 4800c8f33..52993be8c 100644 --- a/library/concurrent.interpreters.po +++ b/library/concurrent.interpreters.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-07-25 14:21+0000\n" +"POT-Creation-Date: 2025-07-31 14:20+0000\n" "PO-Revision-Date: 2025-07-18 18:48+0000\n" "Last-Translator: Rafael Fontenelle , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -210,11 +210,10 @@ msgstr "" #: ../../library/concurrent.interpreters.rst:136 msgid "" "All that said, interpreters do naturally support certain flavors of " -"concurrency, as a powerful side effect of that isolation. There's a powerful " -"side effect of that isolation. It enables a different approach to " -"concurrency than you can take with async or threads. It's a similar " -"concurrency model to CSP or the actor model, a model which is relatively " -"easy to reason about." +"concurrency. There's a powerful side effect of that isolation. It enables a " +"different approach to concurrency than you can take with async or threads. " +"It's a similar concurrency model to CSP or the actor model, a model which is " +"relatively easy to reason about." msgstr "" #: ../../library/concurrent.interpreters.rst:143 diff --git a/library/http.cookies.po b/library/http.cookies.po index 148abe640..006c1ade8 100644 --- a/library/http.cookies.po +++ b/library/http.cookies.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-09 14:19+0000\n" +"POT-Creation-Date: 2025-07-31 14:20+0000\n" "PO-Revision-Date: 2025-07-18 18:49+0000\n" "Last-Translator: Rafael Fontenelle , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -187,8 +187,8 @@ msgstr "" "ブラウザがJavaScriptをサポートしている場合、HTTPヘッダを送信した場合と同様に" "動作する埋め込み可能なJavaScript snippetを返します。" -#: ../../library/http.cookies.rst:111 ../../library/http.cookies.rst:224 -#: ../../library/http.cookies.rst:232 +#: ../../library/http.cookies.rst:111 ../../library/http.cookies.rst:227 +#: ../../library/http.cookies.rst:235 msgid "The meaning for *attrs* is the same as in :meth:`output`." msgstr "*attrs* の意味は :meth:`output` と同じです。" @@ -235,15 +235,15 @@ msgstr "" #: ../../library/http.cookies.rst:151 msgid "" -"The attribute :attr:`samesite` specifies that the browser is not allowed to " -"send the cookie along with cross-site requests. This helps to mitigate CSRF " -"attacks. Valid values for this attribute are \"Strict\" and \"Lax\"." +"The attribute :attr:`samesite` controls when the browser sends the cookie " +"with cross-site requests. This helps to mitigate CSRF attacks. Valid values " +"are \"Strict\" (only sent with same-site requests), \"Lax\" (sent with same-" +"site requests and top-level navigations), and \"None\" (sent with same-site " +"and cross-site requests). When using \"None\", the \"secure\" attribute must " +"also be set, as required by modern browsers." msgstr "" -":attr:`samesite` 属性は、ブラウザーがクロスサイトリクエストに加えて cookie の" -"送信も禁止することを指定します。これは CSRF 攻撃の軽減に役立ちます。この属性" -"い有効な値は、 \"Strict\" と \"Lax\" です。" -#: ../../library/http.cookies.rst:155 +#: ../../library/http.cookies.rst:158 msgid "" "The attribute :attr:`partitioned` indicates to user agents that these cross-" "site cookies *should* only be available in the same top-level context that " @@ -251,7 +251,7 @@ msgid "" "**must** also set ``Secure``." msgstr "" -#: ../../library/http.cookies.rst:160 +#: ../../library/http.cookies.rst:163 msgid "" "In addition, it is recommended to use the ``__Host`` prefix when setting " "partitioned cookies to make them bound to the hostname and not the " @@ -259,11 +259,11 @@ msgid "" "State)`_ for full details and examples." msgstr "" -#: ../../library/http.cookies.rst:168 +#: ../../library/http.cookies.rst:171 msgid "The keys are case-insensitive and their default value is ``''``." msgstr "キーの大小文字は区別されません。そのデフォルト値は ``''`` です。" -#: ../../library/http.cookies.rst:170 +#: ../../library/http.cookies.rst:173 msgid "" ":meth:`!__eq__` now takes :attr:`~Morsel.key` and :attr:`~Morsel.value` into " "account." @@ -271,7 +271,7 @@ msgstr "" ":meth:`!__eq__` は :attr:`~Morsel.key` 及び :attr:`~Morsel.value` を考慮する" "ようになりました。" -#: ../../library/http.cookies.rst:174 +#: ../../library/http.cookies.rst:177 msgid "" "Attributes :attr:`~Morsel.key`, :attr:`~Morsel.value` and :attr:`~Morsel." "coded_value` are read-only. Use :meth:`~Morsel.set` for setting them." @@ -279,35 +279,35 @@ msgstr "" ":attr:`~Morsel.key` と :attr:`~Morsel.value` 、 :attr:`~Morsel.coded_value` " "属性は読み出し専用です。設定には、 :meth:`~Morsel.set` を使用してください。" -#: ../../library/http.cookies.rst:179 +#: ../../library/http.cookies.rst:182 msgid "Added support for the :attr:`samesite` attribute." msgstr ":attr:`samesite` 属性がサポートされました。" -#: ../../library/http.cookies.rst:182 +#: ../../library/http.cookies.rst:185 msgid "Added support for the :attr:`partitioned` attribute." msgstr "" -#: ../../library/http.cookies.rst:188 +#: ../../library/http.cookies.rst:191 msgid "The value of the cookie." msgstr "クッキーの値。" -#: ../../library/http.cookies.rst:193 +#: ../../library/http.cookies.rst:196 msgid "The encoded value of the cookie --- this is what should be sent." msgstr "実際に送信する形式にエンコードされたcookieの値。" -#: ../../library/http.cookies.rst:198 +#: ../../library/http.cookies.rst:201 msgid "The name of the cookie." msgstr "cookieの名前。" -#: ../../library/http.cookies.rst:203 +#: ../../library/http.cookies.rst:206 msgid "Set the *key*, *value* and *coded_value* attributes." msgstr "属性 *key* 、 *value* 、 *coded_value* に値をセットします。" -#: ../../library/http.cookies.rst:208 +#: ../../library/http.cookies.rst:211 msgid "Whether *K* is a member of the set of keys of a :class:`Morsel`." msgstr "*K* が :class:`Morsel` のキーであるかどうかを判定します。" -#: ../../library/http.cookies.rst:213 +#: ../../library/http.cookies.rst:216 msgid "" "Return a string representation of the Morsel, suitable to be sent as an HTTP " "header. By default, all the attributes are included, unless *attrs* is " @@ -318,7 +318,7 @@ msgstr "" "デフォルトですべての属性を含めます。 *attrs* を指定する場合、属性をリストで渡" "さなければなりません。 *header* のデフォルトは ``\"Set-Cookie:\"`` です。" -#: ../../library/http.cookies.rst:221 +#: ../../library/http.cookies.rst:224 msgid "" "Return an embeddable JavaScript snippet, which, if run on a browser which " "supports JavaScript, will act the same as if the HTTP header was sent." @@ -326,13 +326,13 @@ msgstr "" "ブラウザがJavaScriptをサポートしている場合、HTTPヘッダを送信した場合と同様に" "動作する埋め込み可能なJavaScript snippetを返します。" -#: ../../library/http.cookies.rst:229 +#: ../../library/http.cookies.rst:232 msgid "" "Return a string representing the Morsel, without any surrounding HTTP or " "JavaScript." msgstr "Moselの文字列表現をHTTPやJavaScriptで囲まずに出力します。" -#: ../../library/http.cookies.rst:237 +#: ../../library/http.cookies.rst:240 msgid "" "Update the values in the Morsel dictionary with the values in the dictionary " "*values*. Raise an error if any of the keys in the *values* dict is not a " @@ -341,19 +341,19 @@ msgstr "" "Morsel 辞書の値を辞書 *values* の値で更新します。*values* 辞書のキーのいずれ" "かが有効な :rfc:`2109` 属性でない場合エラーを送出します。" -#: ../../library/http.cookies.rst:241 +#: ../../library/http.cookies.rst:244 msgid "an error is raised for invalid keys." msgstr "不正なキーではエラーが送出されます。" -#: ../../library/http.cookies.rst:247 +#: ../../library/http.cookies.rst:250 msgid "Return a shallow copy of the Morsel object." msgstr "Morsel オブジェクトの浅いコピーを返します。" -#: ../../library/http.cookies.rst:249 +#: ../../library/http.cookies.rst:252 msgid "return a Morsel object instead of a dict." msgstr "辞書ではなく Morsel オブジェクトを返します。" -#: ../../library/http.cookies.rst:255 +#: ../../library/http.cookies.rst:258 msgid "" "Raise an error if key is not a valid :rfc:`2109` attribute, otherwise behave " "the same as :meth:`dict.setdefault`." @@ -361,16 +361,16 @@ msgstr "" "キーが有効な :rfc:`2109` 属性でない場合エラーを送出します。そうでない場合は :" "meth:`dict.setdefault` と同じように振る舞います。" -#: ../../library/http.cookies.rst:262 +#: ../../library/http.cookies.rst:265 msgid "Example" msgstr "使用例" -#: ../../library/http.cookies.rst:264 +#: ../../library/http.cookies.rst:267 msgid "" "The following example demonstrates how to use the :mod:`http.cookies` module." msgstr "次の例は :mod:`http.cookies` の使い方を示したものです。" -#: ../../library/http.cookies.rst:266 +#: ../../library/http.cookies.rst:269 msgid "" ">>> from http import cookies\n" ">>> C = cookies.SimpleCookie()\n" diff --git a/library/multiprocessing.po b/library/multiprocessing.po index 48014d876..fd6d4d3e1 100644 --- a/library/multiprocessing.po +++ b/library/multiprocessing.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-07-25 14:21+0000\n" +"POT-Creation-Date: 2025-07-31 14:20+0000\n" "PO-Revision-Date: 2025-07-18 18:49+0000\n" "Last-Translator: Rafael Fontenelle , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -173,11 +173,19 @@ msgstr "" "なぜ ``if __name__ == '__main__'`` という記述が必要かは :ref:" "`multiprocessing-programming` を参照してください。" -#: ../../library/multiprocessing.rst:105 +#: ../../library/multiprocessing.rst:100 +msgid "" +"The arguments to :class:`Process` usually need to be unpickleable from " +"within the child process. If you tried typing the above example directly " +"into a REPL it could lead to an :exc:`AttributeError` in the child process " +"trying to locate the *f* function in the ``__main__`` module." +msgstr "" + +#: ../../library/multiprocessing.rst:109 msgid "Contexts and start methods" msgstr "コンテキストと開始方式" -#: ../../library/multiprocessing.rst:107 +#: ../../library/multiprocessing.rst:111 msgid "" "Depending on the platform, :mod:`multiprocessing` supports three ways to " "start a process. These *start methods* are" @@ -185,11 +193,11 @@ msgstr "" "プラットフォームにもよりますが、:mod:`multiprocessing` はプロセスを開始するた" "めに 3 つの方法をサポートしています。それら *開始方式* は以下のとおりです" -#: ../../library/multiprocessing.rst:112 +#: ../../library/multiprocessing.rst:116 msgid "*spawn*" msgstr "*spawn*" -#: ../../library/multiprocessing.rst:113 +#: ../../library/multiprocessing.rst:117 msgid "" "The parent process starts a fresh Python interpreter process. The child " "process will only inherit those resources necessary to run the process " @@ -204,16 +212,16 @@ msgstr "" "ません。この方式を使用したプロセスの開始は *fork* や *forkserver* に比べ遅く" "なります。" -#: ../../library/multiprocessing.rst:120 +#: ../../library/multiprocessing.rst:124 msgid "" "Available on POSIX and Windows platforms. The default on Windows and macOS." msgstr "" -#: ../../library/multiprocessing.rst:124 +#: ../../library/multiprocessing.rst:128 msgid "*fork*" msgstr "*fork*" -#: ../../library/multiprocessing.rst:125 +#: ../../library/multiprocessing.rst:129 msgid "" "The parent process uses :func:`os.fork` to fork the Python interpreter. The " "child process, when it begins, is effectively identical to the parent " @@ -225,18 +233,18 @@ msgstr "" "ロセスのリソースはすべて子プロセスに継承されます。マルチスレッドプロセスの" "フォークは安全性に問題があることに注意してください。" -#: ../../library/multiprocessing.rst:131 +#: ../../library/multiprocessing.rst:135 msgid "Available on POSIX systems." msgstr "" -#: ../../library/multiprocessing.rst:133 +#: ../../library/multiprocessing.rst:137 msgid "" "This is no longer the default start method on any platform. Code that " "requires *fork* must explicitly specify that via :func:`get_context` or :" "func:`set_start_method`." msgstr "" -#: ../../library/multiprocessing.rst:138 +#: ../../library/multiprocessing.rst:142 msgid "" "If Python is able to detect that your process has multiple threads, the :" "func:`os.fork` function that this start method calls internally will raise " @@ -244,11 +252,11 @@ msgid "" "fork` documentation for further explanation." msgstr "" -#: ../../library/multiprocessing.rst:146 +#: ../../library/multiprocessing.rst:150 msgid "*forkserver*" msgstr "*forkserver*" -#: ../../library/multiprocessing.rst:147 +#: ../../library/multiprocessing.rst:151 msgid "" "When the program starts and selects the *forkserver* start method, a server " "process is spawned. From then on, whenever a new process is needed, the " @@ -258,38 +266,38 @@ msgid "" "for it to use :func:`os.fork`. No unnecessary resources are inherited." msgstr "" -#: ../../library/multiprocessing.rst:155 +#: ../../library/multiprocessing.rst:159 msgid "" "Available on POSIX platforms which support passing file descriptors over " "Unix pipes such as Linux. The default on those." msgstr "" -#: ../../library/multiprocessing.rst:158 +#: ../../library/multiprocessing.rst:162 msgid "This became the default start method on POSIX platforms." msgstr "" -#: ../../library/multiprocessing.rst:161 +#: ../../library/multiprocessing.rst:165 msgid "" "*spawn* added on all POSIX platforms, and *forkserver* added for some POSIX " "platforms. Child processes no longer inherit all of the parents inheritable " "handles on Windows." msgstr "" -#: ../../library/multiprocessing.rst:169 +#: ../../library/multiprocessing.rst:173 msgid "" "On macOS, the *spawn* start method is now the default. The *fork* start " "method should be considered unsafe as it can lead to crashes of the " "subprocess as macOS system libraries may start threads. See :issue:`33725`." msgstr "" -#: ../../library/multiprocessing.rst:175 +#: ../../library/multiprocessing.rst:179 msgid "" "On POSIX platforms the default start method was changed from *fork* to " "*forkserver* to retain the performance but avoid common multithreaded " "process incompatibilities. See :gh:`84559`." msgstr "" -#: ../../library/multiprocessing.rst:180 +#: ../../library/multiprocessing.rst:184 msgid "" "On POSIX using the *spawn* or *forkserver* start methods will also start a " "*resource tracker* process which tracks the unlinked named system resources " @@ -304,7 +312,7 @@ msgid "" "space in the main memory.)" msgstr "" -#: ../../library/multiprocessing.rst:193 +#: ../../library/multiprocessing.rst:197 msgid "" "To select a start method you use the :func:`set_start_method` in the ``if " "__name__ == '__main__'`` clause of the main module. For example::" @@ -312,7 +320,7 @@ msgstr "" "開始方式はメインモジュールの ``if __name__ == '__main__'`` 節内で、関数 :" "func:`set_start_method` によって指定します。以下に例を示します::" -#: ../../library/multiprocessing.rst:197 +#: ../../library/multiprocessing.rst:201 msgid "" "import multiprocessing as mp\n" "\n" @@ -328,13 +336,13 @@ msgid "" " p.join()" msgstr "" -#: ../../library/multiprocessing.rst:210 +#: ../../library/multiprocessing.rst:214 msgid "" ":func:`set_start_method` should not be used more than once in the program." msgstr "" "関数 :func:`set_start_method` はプログラム内で複数回使用してはいけません。" -#: ../../library/multiprocessing.rst:213 +#: ../../library/multiprocessing.rst:217 msgid "" "Alternatively, you can use :func:`get_context` to obtain a context object. " "Context objects have the same API as the multiprocessing module, and allow " @@ -345,7 +353,7 @@ msgstr "" "ジュールと同じ API を持ち、同じプログラム内で複数の開始方式を使用できま" "す。 ::" -#: ../../library/multiprocessing.rst:218 +#: ../../library/multiprocessing.rst:222 msgid "" "import multiprocessing as mp\n" "\n" @@ -361,7 +369,7 @@ msgid "" " p.join()" msgstr "" -#: ../../library/multiprocessing.rst:231 +#: ../../library/multiprocessing.rst:235 msgid "" "Note that objects related to one context may not be compatible with " "processes for a different context. In particular, locks created using the " @@ -373,15 +381,17 @@ msgstr "" "て作成されたロックは、*spawn* あるいは *forkserver* を使用して開始されたプロ" "セスに渡すことはできません。 " -#: ../../library/multiprocessing.rst:236 +#: ../../library/multiprocessing.rst:240 msgid "" -"A library which wants to use a particular start method should probably use :" -"func:`get_context` to avoid interfering with the choice of the library user." +"Libraries using :mod:`multiprocessing` or :class:`~concurrent.futures." +"ProcessPoolExecutor` should be designed to allow their users to provide " +"their own multiprocessing context. Using a specific context of your own " +"within a library can lead to incompatibilities with the rest of the library " +"user's application. Always document if your library requires a specific " +"start method." msgstr "" -"特定の開始方式の使用を要求するライブラリは :func:`get_context` を使用してライ" -"ブラリ利用者の選択を阻害しないようにするべきです。" -#: ../../library/multiprocessing.rst:242 +#: ../../library/multiprocessing.rst:249 msgid "" "The ``'spawn'`` and ``'forkserver'`` start methods generally cannot be used " "with \"frozen\" executables (i.e., binaries produced by packages like " @@ -389,11 +399,11 @@ msgid "" "method may work if code does not use threads." msgstr "" -#: ../../library/multiprocessing.rst:249 +#: ../../library/multiprocessing.rst:256 msgid "Exchanging objects between processes" msgstr "プロセス間でのオブジェクト交換" -#: ../../library/multiprocessing.rst:251 +#: ../../library/multiprocessing.rst:258 msgid "" ":mod:`multiprocessing` supports two types of communication channel between " "processes:" @@ -401,11 +411,11 @@ msgstr "" ":mod:`multiprocessing` モジュールでは、プロセス間通信の手段が2つ用意されてい" "ます。それぞれ以下に詳細を示します:" -#: ../../library/multiprocessing.rst:254 +#: ../../library/multiprocessing.rst:261 msgid "**Queues**" msgstr "**キュー (Queue)**" -#: ../../library/multiprocessing.rst:256 +#: ../../library/multiprocessing.rst:263 msgid "" "The :class:`Queue` class is a near clone of :class:`queue.Queue`. For " "example::" @@ -413,7 +423,7 @@ msgstr "" ":class:`Queue` クラスは :class:`queue.Queue` クラスとほとんど同じように使うこ" "とができます。以下に例を示します::" -#: ../../library/multiprocessing.rst:259 +#: ../../library/multiprocessing.rst:266 msgid "" "from multiprocessing import Process, Queue\n" "\n" @@ -428,17 +438,17 @@ msgid "" " p.join()" msgstr "" -#: ../../library/multiprocessing.rst:271 +#: ../../library/multiprocessing.rst:278 msgid "" "Queues are thread and process safe. Any object put into a :mod:" "`~multiprocessing` queue will be serialized." msgstr "" -#: ../../library/multiprocessing.rst:274 +#: ../../library/multiprocessing.rst:281 msgid "**Pipes**" msgstr "**パイプ (Pipe)**" -#: ../../library/multiprocessing.rst:276 +#: ../../library/multiprocessing.rst:283 msgid "" "The :func:`Pipe` function returns a pair of connection objects connected by " "a pipe which by default is duplex (two-way). For example::" @@ -446,7 +456,7 @@ msgstr "" ":func:`Pipe` 関数はパイプで繋がれたコネクションオブジェクトのペアを返します。" "デフォルトでは双方向性パイプを返します。以下に例を示します::" -#: ../../library/multiprocessing.rst:279 +#: ../../library/multiprocessing.rst:286 msgid "" "from multiprocessing import Process, Pipe\n" "\n" @@ -462,7 +472,7 @@ msgid "" " p.join()" msgstr "" -#: ../../library/multiprocessing.rst:292 +#: ../../library/multiprocessing.rst:299 msgid "" "The two connection objects returned by :func:`Pipe` represent the two ends " "of the pipe. Each connection object has :meth:`~Connection.send` and :meth:" @@ -479,17 +489,17 @@ msgstr "" "スがパイプの別々の端を同時に使用するならば、データが破壊される危険性はありま" "せん。" -#: ../../library/multiprocessing.rst:300 +#: ../../library/multiprocessing.rst:307 msgid "" "The :meth:`~Connection.send` method serializes the object and :meth:" "`~Connection.recv` re-creates the object." msgstr "" -#: ../../library/multiprocessing.rst:304 +#: ../../library/multiprocessing.rst:311 msgid "Synchronization between processes" msgstr "プロセス間の同期" -#: ../../library/multiprocessing.rst:306 +#: ../../library/multiprocessing.rst:313 msgid "" ":mod:`multiprocessing` contains equivalents of all the synchronization " "primitives from :mod:`threading`. For instance one can use a lock to ensure " @@ -499,7 +509,7 @@ msgstr "" "を備えています。以下の例では、ロックを使用して、一度に1つのプロセスしか標準出" "力に書き込まないようにしています::" -#: ../../library/multiprocessing.rst:310 +#: ../../library/multiprocessing.rst:317 msgid "" "from multiprocessing import Process, Lock\n" "\n" @@ -517,7 +527,7 @@ msgid "" " Process(target=f, args=(lock, num)).start()" msgstr "" -#: ../../library/multiprocessing.rst:325 +#: ../../library/multiprocessing.rst:332 msgid "" "Without using the lock output from the different processes is liable to get " "all mixed up." @@ -525,11 +535,11 @@ msgstr "" "ロックを使用しないで標準出力に書き込んだ場合は、各プロセスからの出力がごちゃ" "まぜになってしまいます。" -#: ../../library/multiprocessing.rst:330 +#: ../../library/multiprocessing.rst:337 msgid "Sharing state between processes" msgstr "プロセス間での状態の共有" -#: ../../library/multiprocessing.rst:332 +#: ../../library/multiprocessing.rst:339 msgid "" "As mentioned above, when doing concurrent programming it is usually best to " "avoid using shared state as far as possible. This is particularly true when " @@ -539,7 +549,7 @@ msgstr "" "ぎり状態を共有しないのが定石です。複数のプロセスを使用するときは特にそうで" "しょう。" -#: ../../library/multiprocessing.rst:336 +#: ../../library/multiprocessing.rst:343 msgid "" "However, if you really do need to use some shared data then :mod:" "`multiprocessing` provides a couple of ways of doing so." @@ -547,11 +557,11 @@ msgstr "" "しかし、どうしてもプロセス間のデータ共有が必要な場合のために :mod:" "`multiprocessing` モジュールには2つの方法が用意されています。" -#: ../../library/multiprocessing.rst:339 +#: ../../library/multiprocessing.rst:346 msgid "**Shared memory**" msgstr "**共有メモリ (Shared memory)**" -#: ../../library/multiprocessing.rst:341 +#: ../../library/multiprocessing.rst:348 msgid "" "Data can be stored in a shared memory map using :class:`Value` or :class:" "`Array`. For example, the following code ::" @@ -560,7 +570,7 @@ msgstr "" "`Array` クラスを使用することができます。以下のサンプルコードを使って、この機" "能についてみていきましょう ::" -#: ../../library/multiprocessing.rst:344 +#: ../../library/multiprocessing.rst:351 msgid "" "from multiprocessing import Process, Value, Array\n" "\n" @@ -581,17 +591,17 @@ msgid "" " print(arr[:])" msgstr "" -#: ../../library/multiprocessing.rst:362 ../../library/multiprocessing.rst:412 +#: ../../library/multiprocessing.rst:369 ../../library/multiprocessing.rst:419 msgid "will print ::" msgstr "このサンプルコードを実行すると以下のように表示されます ::" -#: ../../library/multiprocessing.rst:364 +#: ../../library/multiprocessing.rst:371 msgid "" "3.1415927\n" "[0, -1, -2, -3, -4, -5, -6, -7, -8, -9]" msgstr "" -#: ../../library/multiprocessing.rst:367 +#: ../../library/multiprocessing.rst:374 msgid "" "The ``'d'`` and ``'i'`` arguments used when creating ``num`` and ``arr`` are " "typecodes of the kind used by the :mod:`array` module: ``'d'`` indicates a " @@ -603,7 +613,7 @@ msgstr "" "ている ``'d'`` は倍精度浮動小数、 ``'i'`` は符号付整数を表します。これらの共" "有オブジェクトは、プロセスセーフでありスレッドセーフです。" -#: ../../library/multiprocessing.rst:372 +#: ../../library/multiprocessing.rst:379 msgid "" "For more flexibility in using shared memory one can use the :mod:" "`multiprocessing.sharedctypes` module which supports the creation of " @@ -613,11 +623,11 @@ msgstr "" "`multiprocessing.sharedctypes` モジュールを使用します。このモジュールは共有メ" "モリから割り当てられた任意の ctypes オブジェクトの生成をサポートします。" -#: ../../library/multiprocessing.rst:376 +#: ../../library/multiprocessing.rst:383 msgid "**Server process**" msgstr "**サーバープロセス (Server process)**" -#: ../../library/multiprocessing.rst:378 +#: ../../library/multiprocessing.rst:385 msgid "" "A manager object returned by :func:`Manager` controls a server process which " "holds Python objects and allows other processes to manipulate them using " @@ -628,7 +638,7 @@ msgstr "" "他のプロセスがプロキシ経由でその Python オブジェクトを操作することができま" "す。" -#: ../../library/multiprocessing.rst:382 +#: ../../library/multiprocessing.rst:389 msgid "" "A manager returned by :func:`Manager` will support types :class:`list`, :" "class:`dict`, :class:`set`, :class:`~managers.Namespace`, :class:`Lock`, :" @@ -637,7 +647,7 @@ msgid "" "`Value` and :class:`Array`. For example, ::" msgstr "" -#: ../../library/multiprocessing.rst:388 +#: ../../library/multiprocessing.rst:395 msgid "" "from multiprocessing import Process, Manager\n" "\n" @@ -664,14 +674,14 @@ msgid "" " print(s)" msgstr "" -#: ../../library/multiprocessing.rst:414 +#: ../../library/multiprocessing.rst:421 msgid "" "{0.25: None, 1: '1', '2': 2}\n" "[9, 8, 7, 6, 5, 4, 3, 2, 1, 0]\n" "{'a', 'b'}" msgstr "" -#: ../../library/multiprocessing.rst:418 +#: ../../library/multiprocessing.rst:425 msgid "" "Server process managers are more flexible than using shared memory objects " "because they can be made to support arbitrary object types. Also, a single " @@ -684,11 +694,11 @@ msgstr "" "ロセスによって共有することもできます。しかし、共有メモリより動作が遅いという" "欠点があります。" -#: ../../library/multiprocessing.rst:425 +#: ../../library/multiprocessing.rst:432 msgid "Using a pool of workers" msgstr "ワーカープロセスのプールを使用" -#: ../../library/multiprocessing.rst:427 +#: ../../library/multiprocessing.rst:434 msgid "" "The :class:`~multiprocessing.pool.Pool` class represents a pool of worker " "processes. It has methods which allows tasks to be offloaded to the worker " @@ -698,11 +708,11 @@ msgstr "" "能を備えています。このクラスには、異なる方法でワーカープロセスへタスクを割り" "当てるいくつかのメソッドがあります。" -#: ../../library/multiprocessing.rst:431 +#: ../../library/multiprocessing.rst:438 msgid "For example::" msgstr "例えば::" -#: ../../library/multiprocessing.rst:433 +#: ../../library/multiprocessing.rst:440 msgid "" "from multiprocessing import Pool, TimeoutError\n" "import time\n" @@ -751,7 +761,7 @@ msgid "" " print(\"Now the pool is closed and no longer available\")" msgstr "" -#: ../../library/multiprocessing.rst:475 +#: ../../library/multiprocessing.rst:482 msgid "" "Note that the methods of a pool should only ever be used by the process " "which created it." @@ -759,7 +769,7 @@ msgstr "" "プールオブジェクトのメソッドは、そのプールを作成したプロセスのみが呼び出すべ" "きです。" -#: ../../library/multiprocessing.rst:480 +#: ../../library/multiprocessing.rst:487 msgid "" "Functionality within this package requires that the ``__main__`` module be " "importable by the children. This is covered in :ref:`multiprocessing-" @@ -774,7 +784,7 @@ msgstr "" "`multiprocessing.pool.Pool` のサンプルはインタラクティブシェル上では動作しな" "いからです。以下に例を示します::" -#: ../../library/multiprocessing.rst:486 +#: ../../library/multiprocessing.rst:493 msgid "" ">>> from multiprocessing import Pool\n" ">>> p = Pool(5)\n" @@ -797,7 +807,7 @@ msgid "" "'_frozen_importlib.BuiltinImporter'>)>" msgstr "" -#: ../../library/multiprocessing.rst:503 +#: ../../library/multiprocessing.rst:510 msgid "" "(If you try this it will actually output three full tracebacks interleaved " "in a semi-random fashion, and then you may have to stop the parent process " @@ -806,11 +816,11 @@ msgstr "" "(もしこのコードを試すなら、実際には3つの完全なトレースバックがばらばらの順番" "で出力されますし、親プロセスを何らかの方法で止める必要があります。)" -#: ../../library/multiprocessing.rst:509 +#: ../../library/multiprocessing.rst:516 msgid "Reference" msgstr "リファレンス" -#: ../../library/multiprocessing.rst:511 +#: ../../library/multiprocessing.rst:518 msgid "" "The :mod:`multiprocessing` package mostly replicates the API of the :mod:" "`threading` module." @@ -818,11 +828,11 @@ msgstr "" ":mod:`multiprocessing` パッケージは :mod:`threading` モジュールの API とほと" "んど同じです。" -#: ../../library/multiprocessing.rst:516 +#: ../../library/multiprocessing.rst:523 msgid ":class:`Process` and exceptions" msgstr ":class:`Process` クラスと例外" -#: ../../library/multiprocessing.rst:521 +#: ../../library/multiprocessing.rst:528 msgid "" "Process objects represent activity that is run in a separate process. The :" "class:`Process` class has equivalents of all the methods of :class:" @@ -832,7 +842,7 @@ msgstr "" "は :class:`threading.Thread` クラスのすべてのメソッドと同じインターフェースを" "提供します。" -#: ../../library/multiprocessing.rst:525 +#: ../../library/multiprocessing.rst:532 msgid "" "The constructor should always be called with keyword arguments. *group* " "should always be ``None``; it exists solely for compatibility with :class:" @@ -846,7 +856,7 @@ msgid "" "creating process." msgstr "" -#: ../../library/multiprocessing.rst:536 +#: ../../library/multiprocessing.rst:543 msgid "" "By default, no arguments are passed to *target*. The *args* argument, which " "defaults to ``()``, can be used to specify a list or tuple of the arguments " @@ -856,25 +866,67 @@ msgstr "" "ルトは``()``)は、*target* に渡す引数のリストまたはタプルを指定するために使用" "されます。" -#: ../../library/multiprocessing.rst:540 +#: ../../library/multiprocessing.rst:547 msgid "" "If a subclass overrides the constructor, it must make sure it invokes the " -"base class constructor (:meth:`Process.__init__`) before doing anything else " +"base class constructor (``super().__init__()``) before doing anything else " "to the process." msgstr "" -"サブクラスがコンストラクターをオーバーライドする場合は、そのプロセスに対する" -"処理を行う前に基底クラスのコンストラクター (:meth:`Process.__init__`) を実行" -"しなければなりません。" -#: ../../library/multiprocessing.rst:544 +#: ../../library/multiprocessing.rst:553 +msgid "" +"In general, all arguments to :class:`Process` must be picklable. This is " +"frequently observed when trying to create a :class:`Process` or use a :class:" +"`concurrent.futures.ProcessPoolExecutor` from a REPL with a locally defined " +"*target* function." +msgstr "" + +#: ../../library/multiprocessing.rst:558 +msgid "" +"Passing a callable object defined in the current REPL session causes the " +"child process to die via an uncaught :exc:`AttributeError` exception when " +"starting as *target* must have been defined within an importable module in " +"order to be loaded during unpickling." +msgstr "" + +#: ../../library/multiprocessing.rst:563 +msgid "Example of this uncatchable error from the child::" +msgstr "" + +#: ../../library/multiprocessing.rst:565 +msgid "" +">>> import multiprocessing as mp\n" +">>> def knigit():\n" +"... print(\"Ni!\")\n" +"...\n" +">>> process = mp.Process(target=knigit)\n" +">>> process.start()\n" +">>> Traceback (most recent call last):\n" +" File \".../multiprocessing/spawn.py\", line ..., in spawn_main\n" +" File \".../multiprocessing/spawn.py\", line ..., in _main\n" +"AttributeError: module '__main__' has no attribute 'knigit'\n" +">>> process\n" +"" +msgstr "" + +#: ../../library/multiprocessing.rst:578 +msgid "" +"See :ref:`multiprocessing-programming-spawn`. While this restriction is not " +"true if using the ``\"fork\"`` start method, as of Python ``3.14`` that is " +"no longer the default on any platform. See :ref:`multiprocessing-start-" +"methods`. See also :gh:`132898`." +msgstr "" + +#: ../../library/multiprocessing.rst:584 msgid "Added the *daemon* parameter." msgstr "" -#: ../../library/multiprocessing.rst:549 +#: ../../library/multiprocessing.rst:589 msgid "Method representing the process's activity." msgstr "プロセスが実行する処理を表すメソッドです。" -#: ../../library/multiprocessing.rst:551 +#: ../../library/multiprocessing.rst:591 msgid "" "You may override this method in a subclass. The standard :meth:`run` method " "invokes the callable object passed to the object's constructor as the target " @@ -886,7 +938,7 @@ msgstr "" "ブジェクトを呼び出します。もしコンストラクターに *args* もしくは *kwargs* 引" "数が渡されていれば、呼び出すオブジェクトにこれらの引数を渡します。" -#: ../../library/multiprocessing.rst:556 +#: ../../library/multiprocessing.rst:596 msgid "" "Using a list or tuple as the *args* argument passed to :class:`Process` " "achieves the same effect." @@ -894,11 +946,11 @@ msgstr "" ":class:`Process` に渡される *args* の引数にリストやタプルを使っても、同じ効果" "が得られます。" -#: ../../library/multiprocessing.rst:559 +#: ../../library/multiprocessing.rst:599 msgid "Example::" msgstr "以下はプログラム例です::" -#: ../../library/multiprocessing.rst:561 +#: ../../library/multiprocessing.rst:601 msgid "" ">>> from multiprocessing import Process\n" ">>> p = Process(target=print, args=[1])\n" @@ -909,11 +961,11 @@ msgid "" "1" msgstr "" -#: ../../library/multiprocessing.rst:571 +#: ../../library/multiprocessing.rst:611 msgid "Start the process's activity." msgstr "プロセスの処理を開始するためのメソッドです。" -#: ../../library/multiprocessing.rst:573 +#: ../../library/multiprocessing.rst:613 msgid "" "This must be called at most once per process object. It arranges for the " "object's :meth:`run` method to be invoked in a separate process." @@ -921,7 +973,7 @@ msgstr "" "各 Process オブジェクトに対し、このメソッドが2回以上呼び出されてはいけませ" "ん。各プロセスでオブジェクトの :meth:`run` メソッドを呼び出す準備を行います。" -#: ../../library/multiprocessing.rst:578 +#: ../../library/multiprocessing.rst:618 msgid "" "If the optional argument *timeout* is ``None`` (the default), the method " "blocks until the process whose :meth:`join` method is called terminates. If " @@ -937,11 +989,11 @@ msgstr "" "注意してください。\n" "プロセスの :attr:`exitcode` を確認し終了したかどうかを判断してください。" -#: ../../library/multiprocessing.rst:585 +#: ../../library/multiprocessing.rst:625 msgid "A process can be joined many times." msgstr "1つのプロセスは何回も join されることができます。" -#: ../../library/multiprocessing.rst:587 +#: ../../library/multiprocessing.rst:627 msgid "" "A process cannot join itself because this would cause a deadlock. It is an " "error to attempt to join a process before it has been started." @@ -950,7 +1002,7 @@ msgstr "" "すことがあるからです。プロセスが start される前に join しようとするとエラーが" "発生します。" -#: ../../library/multiprocessing.rst:592 +#: ../../library/multiprocessing.rst:632 msgid "" "The process's name. The name is a string used for identification purposes " "only. It has no semantics. Multiple processes may be given the same name." @@ -958,7 +1010,7 @@ msgstr "" "プロセスの名前。名前は識別のためだけに使用される文字列です。それ自体には特別" "な意味はありません。複数のプロセスに同じ名前が与えられても構いません。" -#: ../../library/multiprocessing.rst:596 +#: ../../library/multiprocessing.rst:636 msgid "" "The initial name is set by the constructor. If no explicit name is provided " "to the constructor, a name of the form 'Process-N\\ :sub:`1`:N\\ :sub:" @@ -970,11 +1022,11 @@ msgstr "" "`k`' 形式の名前が構築されます。ここでそれぞれの N\\ :sub:`k` はその親のN番目" "の子供です。" -#: ../../library/multiprocessing.rst:603 +#: ../../library/multiprocessing.rst:643 msgid "Return whether the process is alive." msgstr "プロセスが実行中かを判別します。" -#: ../../library/multiprocessing.rst:605 +#: ../../library/multiprocessing.rst:645 msgid "" "Roughly, a process object is alive from the moment the :meth:`start` method " "returns until the child process terminates." @@ -982,7 +1034,7 @@ msgstr "" "おおまかに言って、プロセスオブジェクトは :meth:`start` メソッドを呼び出してか" "ら子プロセス終了までの期間が実行中となります。" -#: ../../library/multiprocessing.rst:610 +#: ../../library/multiprocessing.rst:650 msgid "" "The process's daemon flag, a Boolean value. This must be set before :meth:" "`start` is called." @@ -990,11 +1042,11 @@ msgstr "" "デーモンプロセスであるかのフラグであり、ブール値です。この属性は :meth:" "`start` が呼び出される前に設定されている必要があります。" -#: ../../library/multiprocessing.rst:613 +#: ../../library/multiprocessing.rst:653 msgid "The initial value is inherited from the creating process." msgstr "初期値は作成するプロセスから継承します。" -#: ../../library/multiprocessing.rst:615 +#: ../../library/multiprocessing.rst:655 msgid "" "When a process exits, it attempts to terminate all of its daemonic child " "processes." @@ -1002,7 +1054,7 @@ msgstr "" "あるプロセスが終了するとき、そのプロセスはその子プロセスであるデーモンプロセ" "スすべてを終了させようとします。" -#: ../../library/multiprocessing.rst:618 +#: ../../library/multiprocessing.rst:658 msgid "" "Note that a daemonic process is not allowed to create child processes. " "Otherwise a daemonic process would leave its children orphaned if it gets " @@ -1016,7 +1068,7 @@ msgstr "" "プロセスはUnix デーモンやサービスでは **なく** 通常のプロセスであり、非デーモ" "ンプロセスが終了すると終了されます (そして join されません)。" -#: ../../library/multiprocessing.rst:624 +#: ../../library/multiprocessing.rst:664 msgid "" "In addition to the :class:`threading.Thread` API, :class:`Process` objects " "also support the following attributes and methods:" @@ -1024,36 +1076,36 @@ msgstr "" ":class:`threading.Thread` クラスの API に加えて :class:`Process` クラスのオブ" "ジェクトには以下の属性およびメソッドがあります:" -#: ../../library/multiprocessing.rst:629 +#: ../../library/multiprocessing.rst:669 msgid "" "Return the process ID. Before the process is spawned, this will be ``None``." msgstr "プロセスIDを返します。プロセスの生成前は ``None`` が設定されています。" -#: ../../library/multiprocessing.rst:634 +#: ../../library/multiprocessing.rst:674 msgid "" "The child's exit code. This will be ``None`` if the process has not yet " "terminated." msgstr "" -#: ../../library/multiprocessing.rst:637 +#: ../../library/multiprocessing.rst:677 msgid "" "If the child's :meth:`run` method returned normally, the exit code will be " "0. If it terminated via :func:`sys.exit` with an integer argument *N*, the " "exit code will be *N*." msgstr "" -#: ../../library/multiprocessing.rst:641 +#: ../../library/multiprocessing.rst:681 msgid "" "If the child terminated due to an exception not caught within :meth:`run`, " "the exit code will be 1. If it was terminated by signal *N*, the exit code " "will be the negative value *-N*." msgstr "" -#: ../../library/multiprocessing.rst:647 +#: ../../library/multiprocessing.rst:687 msgid "The process's authentication key (a byte string)." msgstr "プロセスの認証キーです (バイト文字列です)。" -#: ../../library/multiprocessing.rst:649 +#: ../../library/multiprocessing.rst:689 msgid "" "When :mod:`multiprocessing` is initialized the main process is assigned a " "random string using :func:`os.urandom`." @@ -1061,7 +1113,7 @@ msgstr "" ":mod:`multiprocessing` モジュールがメインプロセスにより初期化される場合に" "は、 :func:`os.urandom` 関数を使用してランダムな値が設定されます。" -#: ../../library/multiprocessing.rst:652 +#: ../../library/multiprocessing.rst:692 msgid "" "When a :class:`Process` object is created, it will inherit the " "authentication key of its parent process, although this may be changed by " @@ -1071,38 +1123,38 @@ msgstr "" "承します。もしくは :attr:`authkey` に別のバイト文字列を設定することもできま" "す。" -#: ../../library/multiprocessing.rst:656 +#: ../../library/multiprocessing.rst:696 msgid "See :ref:`multiprocessing-auth-keys`." msgstr "詳細は :ref:`multiprocessing-auth-keys` を参照してください。" -#: ../../library/multiprocessing.rst:660 +#: ../../library/multiprocessing.rst:700 msgid "" "A numeric handle of a system object which will become \"ready\" when the " "process ends." msgstr "" "プロセスが終了するときに \"ready\" となるシステムオブジェクトの数値ハンドル。" -#: ../../library/multiprocessing.rst:663 +#: ../../library/multiprocessing.rst:703 msgid "" "You can use this value if you want to wait on several events at once using :" "func:`multiprocessing.connection.wait`. Otherwise calling :meth:`join` is " "simpler." msgstr "" -#: ../../library/multiprocessing.rst:667 +#: ../../library/multiprocessing.rst:707 msgid "" "On Windows, this is an OS handle usable with the ``WaitForSingleObject`` and " "``WaitForMultipleObjects`` family of API calls. On POSIX, this is a file " "descriptor usable with primitives from the :mod:`select` module." msgstr "" -#: ../../library/multiprocessing.rst:675 +#: ../../library/multiprocessing.rst:715 msgid "" "Terminate the process. Works on POSIX using the :py:const:`~signal.SIGINT` " "signal. Behavior on Windows is undefined." msgstr "" -#: ../../library/multiprocessing.rst:678 +#: ../../library/multiprocessing.rst:718 msgid "" "By default, this terminates the child process by raising :exc:" "`KeyboardInterrupt`. This behavior can be altered by setting the respective " @@ -1110,13 +1162,13 @@ msgid "" "`~signal.SIGINT`." msgstr "" -#: ../../library/multiprocessing.rst:682 +#: ../../library/multiprocessing.rst:722 msgid "" "Note: if the child process catches and discards :exc:`KeyboardInterrupt`, " "the process will not be terminated." msgstr "" -#: ../../library/multiprocessing.rst:685 +#: ../../library/multiprocessing.rst:725 msgid "" "Note: the default behavior will also set :attr:`exitcode` to ``1`` as if an " "uncaught exception was raised in the child process. To have a different :" @@ -1124,14 +1176,14 @@ msgid "" "``exit(your_code)``." msgstr "" -#: ../../library/multiprocessing.rst:694 +#: ../../library/multiprocessing.rst:734 msgid "" "Terminate the process. On POSIX this is done using the :py:const:`~signal." "SIGTERM` signal; on Windows :c:func:`!TerminateProcess` is used. Note that " "exit handlers and finally clauses, etc., will not be executed." msgstr "" -#: ../../library/multiprocessing.rst:698 +#: ../../library/multiprocessing.rst:738 msgid "" "Note that descendant processes of the process will *not* be terminated -- " "they will simply become orphaned." @@ -1139,7 +1191,7 @@ msgstr "" "このメソッドにより終了するプロセスの子孫プロセスは、終了 *しません* 。そう" "いった子孫プロセスは単純に孤児になります。" -#: ../../library/multiprocessing.rst:703 +#: ../../library/multiprocessing.rst:743 msgid "" "If this method is used when the associated process is using a pipe or queue " "then the pipe or queue is liable to become corrupted and may become unusable " @@ -1153,11 +1205,11 @@ msgstr "" "は、このプロセスが終了してしまうと他のプロセスのデッドロックの原因になるで" "しょう。" -#: ../../library/multiprocessing.rst:711 +#: ../../library/multiprocessing.rst:751 msgid "Same as :meth:`terminate` but using the ``SIGKILL`` signal on POSIX." msgstr "" -#: ../../library/multiprocessing.rst:717 +#: ../../library/multiprocessing.rst:757 msgid "" "Close the :class:`Process` object, releasing all resources associated with " "it. :exc:`ValueError` is raised if the underlying process is still " @@ -1169,7 +1221,7 @@ msgstr "" "meth:`close` が成功した場合、:class:`Process` オブジェクトの他のメソッドや属" "性は、ほとんどが :exc:`ValueError` を送出します。" -#: ../../library/multiprocessing.rst:725 +#: ../../library/multiprocessing.rst:765 msgid "" "Note that the :meth:`start`, :meth:`join`, :meth:`is_alive`, :meth:" "`terminate` and :attr:`exitcode` methods should only be called by the " @@ -1179,11 +1231,11 @@ msgstr "" "meth:`is_alive`, :meth:`terminate` と :attr:`exitcode` のメソッドを呼び出すべ" "きです。" -#: ../../library/multiprocessing.rst:729 +#: ../../library/multiprocessing.rst:769 msgid "Example usage of some of the methods of :class:`Process`:" msgstr "以下の例では :class:`Process` のメソッドの使い方を示しています:" -#: ../../library/multiprocessing.rst:731 +#: ../../library/multiprocessing.rst:771 msgid "" ">>> import multiprocessing, time, signal\n" ">>> mp_context = multiprocessing.get_context('spawn')\n" @@ -1201,17 +1253,17 @@ msgid "" "True" msgstr "" -#: ../../library/multiprocessing.rst:750 +#: ../../library/multiprocessing.rst:790 msgid "The base class of all :mod:`multiprocessing` exceptions." msgstr "すべての :mod:`multiprocessing` 例外の基底クラスです。" -#: ../../library/multiprocessing.rst:754 +#: ../../library/multiprocessing.rst:794 msgid "" "Exception raised by :meth:`Connection.recv_bytes_into` when the supplied " "buffer object is too small for the message read." msgstr "" -#: ../../library/multiprocessing.rst:757 +#: ../../library/multiprocessing.rst:797 msgid "" "If ``e`` is an instance of :exc:`BufferTooShort` then ``e.args[0]`` will " "give the message as a byte string." @@ -1219,20 +1271,20 @@ msgstr "" "``e`` が :exc:`BufferTooShort` のインスタンスであるとすると、 ``e.args[0]`` " "はそのメッセージをバイト文字列で与えるものです。" -#: ../../library/multiprocessing.rst:762 +#: ../../library/multiprocessing.rst:802 msgid "Raised when there is an authentication error." msgstr "認証エラーがあった場合に送出されます。" -#: ../../library/multiprocessing.rst:766 +#: ../../library/multiprocessing.rst:806 msgid "Raised by methods with a timeout when the timeout expires." msgstr "" "タイムアウトをサポートするメソッドでタイムアウトが過ぎたときに送出されます。" -#: ../../library/multiprocessing.rst:769 +#: ../../library/multiprocessing.rst:809 msgid "Pipes and Queues" msgstr "パイプ (Pipe) とキュー (Queue)" -#: ../../library/multiprocessing.rst:771 +#: ../../library/multiprocessing.rst:811 msgid "" "When using multiple processes, one generally uses message passing for " "communication between processes and avoids having to use any synchronization " @@ -1241,7 +1293,7 @@ msgstr "" "複数のプロセスを使う場合、一般的にはメッセージパッシングをプロセス間通信に使" "用し、ロックのような同期プリミティブを使用しないようにします。" -#: ../../library/multiprocessing.rst:775 +#: ../../library/multiprocessing.rst:815 msgid "" "For passing messages one can use :func:`Pipe` (for a connection between two " "processes) or a queue (which allows multiple producers and consumers)." @@ -1250,7 +1302,7 @@ msgstr "" "キュー (複数のメッセージ生成プロセス (producer)、消費プロセス (consumer) の実" "現用) を使うことができます。" -#: ../../library/multiprocessing.rst:778 +#: ../../library/multiprocessing.rst:818 msgid "" "The :class:`Queue`, :class:`SimpleQueue` and :class:`JoinableQueue` types " "are multi-producer, multi-consumer :abbr:`FIFO (first-in, first-out)` queues " @@ -1266,7 +1318,7 @@ msgstr "" "た :meth:`~queue.Queue.task_done` と :meth:`~queue.Queue.join` メソッドがない" "ことが違う点です。" -#: ../../library/multiprocessing.rst:785 +#: ../../library/multiprocessing.rst:825 msgid "" "If you use :class:`JoinableQueue` then you **must** call :meth:" "`JoinableQueue.task_done` for each task removed from the queue or else the " @@ -1278,7 +1330,7 @@ msgstr "" "ないと、いつか完了していないタスクを数えるためのセマフォがオーバーフローし、" "例外を発生させるでしょう。" -#: ../../library/multiprocessing.rst:790 +#: ../../library/multiprocessing.rst:830 msgid "" "One difference from other Python queue implementations, is that :mod:" "`multiprocessing` queues serializes all objects that are put into them " @@ -1286,7 +1338,7 @@ msgid "" "object that does not share memory with the original object." msgstr "" -#: ../../library/multiprocessing.rst:795 +#: ../../library/multiprocessing.rst:835 msgid "" "Note that one can also create a shared queue by using a manager object -- " "see :ref:`multiprocessing-managers`." @@ -1294,7 +1346,7 @@ msgstr "" "管理オブジェクトを使用することで共有キューを作成できることも覚えておいてくだ" "さい。詳細は :ref:`multiprocessing-managers` を参照してください。" -#: ../../library/multiprocessing.rst:800 +#: ../../library/multiprocessing.rst:840 msgid "" ":mod:`multiprocessing` uses the usual :exc:`queue.Empty` and :exc:`queue." "Full` exceptions to signal a timeout. They are not available in the :mod:" @@ -1305,7 +1357,7 @@ msgstr "" "`multiprocessing` の名前空間では利用できないため、:mod:`queue` からインポート" "する必要があります。" -#: ../../library/multiprocessing.rst:807 +#: ../../library/multiprocessing.rst:847 msgid "" "When an object is put on a queue, the object is pickled and a background " "thread later flushes the pickled data to an underlying pipe. This has some " @@ -1320,7 +1372,7 @@ msgstr "" "では、かわりに :ref:`manager ` を使ってキューを作成" "することができるからです。" -#: ../../library/multiprocessing.rst:814 +#: ../../library/multiprocessing.rst:854 msgid "" "After putting an object on an empty queue there may be an infinitesimal " "delay before the queue's :meth:`~Queue.empty` method returns :const:`False` " @@ -1331,7 +1383,7 @@ msgstr "" "meth:`~Queue.get_nowait` が :exc:`queue.Empty` を発生させることなく制御が呼び" "出し元に返ってしまうことがあります。" -#: ../../library/multiprocessing.rst:819 +#: ../../library/multiprocessing.rst:859 msgid "" "If multiple processes are enqueuing objects, it is possible for the objects " "to be received at the other end out-of-order. However, objects enqueued by " @@ -1343,7 +1395,7 @@ msgstr "" "のプロセスから詰め込まれたオブジェクトは、それらのオブジェクト間では、必ず期" "待どおりの順序になります。" -#: ../../library/multiprocessing.rst:826 +#: ../../library/multiprocessing.rst:866 msgid "" "If a process is killed using :meth:`Process.terminate` or :func:`os.kill` " "while it is trying to use a :class:`Queue`, then the data in the queue is " @@ -1355,7 +1407,7 @@ msgstr "" "くなります。終了した後で他のプロセスがキューを利用しようとすると、例外を発生" "させる可能性があります。" -#: ../../library/multiprocessing.rst:833 +#: ../../library/multiprocessing.rst:873 msgid "" "As mentioned above, if a child process has put items on a queue (and it has " "not used :meth:`JoinableQueue.cancel_join_thread ` を使用しないなら) そのプロセスはバッファーされたすべての" "要素がパイプへフラッシュされるまで終了しません。" -#: ../../library/multiprocessing.rst:838 +#: ../../library/multiprocessing.rst:878 msgid "" "This means that if you try joining that process you may get a deadlock " "unless you are sure that all items which have been put on the queue have " @@ -1381,7 +1433,7 @@ msgstr "" "セスは終了時に非デーモンのすべての子プロセスを join しようとしてハングアップ" "する可能性があります。" -#: ../../library/multiprocessing.rst:843 +#: ../../library/multiprocessing.rst:883 msgid "" "Note that a queue created using a manager does not have this issue. See :" "ref:`multiprocessing-programming`." @@ -1389,7 +1441,7 @@ msgstr "" "マネージャーを使用して作成されたキューではこの問題はありません。詳細は :ref:" "`multiprocessing-programming` を参照してください。" -#: ../../library/multiprocessing.rst:846 +#: ../../library/multiprocessing.rst:886 msgid "" "For an example of the usage of queues for interprocess communication see :" "ref:`multiprocessing-examples`." @@ -1397,7 +1449,7 @@ msgstr "" "プロセス間通信におけるキューの使用例を知りたいなら :ref:`multiprocessing-" "examples` を参照してください。" -#: ../../library/multiprocessing.rst:852 +#: ../../library/multiprocessing.rst:892 msgid "" "Returns a pair ``(conn1, conn2)`` of :class:`~multiprocessing.connection." "Connection` objects representing the ends of a pipe." @@ -1405,7 +1457,7 @@ msgstr "" "パイプの両端を表す :class:`~multiprocessing.connection.Connection` オブジェク" "トのペア ``(conn1, conn2)`` を返します。" -#: ../../library/multiprocessing.rst:856 +#: ../../library/multiprocessing.rst:896 msgid "" "If *duplex* is ``True`` (the default) then the pipe is bidirectional. If " "*duplex* is ``False`` then the pipe is unidirectional: ``conn1`` can only be " @@ -1416,14 +1468,14 @@ msgstr "" "``False`` ならパイプは一方向性で、``conn1`` はメッセージの受信専用、" "``conn2`` はメッセージの送信専用になります。" -#: ../../library/multiprocessing.rst:861 +#: ../../library/multiprocessing.rst:901 msgid "" "The :meth:`~multiprocessing.Connection.send` method serializes the object " "using :mod:`pickle` and the :meth:`~multiprocessing.Connection.recv` re-" "creates the object." msgstr "" -#: ../../library/multiprocessing.rst:866 +#: ../../library/multiprocessing.rst:906 msgid "" "Returns a process shared queue implemented using a pipe and a few locks/" "semaphores. When a process first puts an item on the queue a feeder thread " @@ -1433,7 +1485,7 @@ msgstr "" "す。あるプロセスが最初に要素をキューへ追加するとき、バッファーからパイプの中" "へオブジェクトを転送する供給スレッドが開始されます。" -#: ../../library/multiprocessing.rst:870 +#: ../../library/multiprocessing.rst:910 msgid "" "The usual :exc:`queue.Empty` and :exc:`queue.Full` exceptions from the " "standard library's :mod:`queue` module are raised to signal timeouts." @@ -1441,7 +1493,7 @@ msgstr "" "標準ライブラリの :mod:`queue` モジュールの通常の :exc:`queue.Empty` や :exc:" "`queue.Full` 例外がタイムアウトを伝えるために送出されます。" -#: ../../library/multiprocessing.rst:873 +#: ../../library/multiprocessing.rst:913 msgid "" ":class:`Queue` implements all the methods of :class:`queue.Queue` except " "for :meth:`~queue.Queue.task_done` and :meth:`~queue.Queue.join`." @@ -1449,7 +1501,7 @@ msgstr "" ":class:`Queue` は :meth:`~queue.Queue.task_done` や :meth:`~queue.Queue." "join` を除く :class:`queue.Queue` のすべてのメソッドを実装します。" -#: ../../library/multiprocessing.rst:878 +#: ../../library/multiprocessing.rst:918 msgid "" "Return the approximate size of the queue. Because of multithreading/" "multiprocessing semantics, this number is not reliable." @@ -1457,13 +1509,13 @@ msgstr "" "おおよそのキューのサイズを返します。マルチスレッディング/マルチプロセスの特性" "上、この数値は信用できません。" -#: ../../library/multiprocessing.rst:881 +#: ../../library/multiprocessing.rst:921 msgid "" "Note that this may raise :exc:`NotImplementedError` on platforms like macOS " "where ``sem_getvalue()`` is not implemented." msgstr "" -#: ../../library/multiprocessing.rst:886 +#: ../../library/multiprocessing.rst:926 msgid "" "Return ``True`` if the queue is empty, ``False`` otherwise. Because of " "multithreading/multiprocessing semantics, this is not reliable." @@ -1471,11 +1523,11 @@ msgstr "" "キューが空っぽなら ``True`` を、そうでなければ ``False`` を返します。マルチス" "レッディング/マルチプロセシングの特性上、これは信用できません。" -#: ../../library/multiprocessing.rst:889 +#: ../../library/multiprocessing.rst:929 msgid "May raise an :exc:`OSError` on closed queues. (not guaranteed)" msgstr "" -#: ../../library/multiprocessing.rst:893 +#: ../../library/multiprocessing.rst:933 msgid "" "Return ``True`` if the queue is full, ``False`` otherwise. Because of " "multithreading/multiprocessing semantics, this is not reliable." @@ -1483,7 +1535,7 @@ msgstr "" "キューがいっぱいなら ``True`` を、そうでなければ ``False`` を返します。マルチ" "スレッディング/マルチプロセシングの特性上、これは信用できません。" -#: ../../library/multiprocessing.rst:898 +#: ../../library/multiprocessing.rst:938 msgid "" "Put obj into the queue. If the optional argument *block* is ``True`` (the " "default) and *timeout* is ``None`` (the default), block if necessary until a " @@ -1501,17 +1553,17 @@ msgstr "" "利用可能な場合はキューに要素を追加します。そうでなければ :exc:`queue.Full` 例" "外が発生します(その場合 *timeout* は無視されます)。" -#: ../../library/multiprocessing.rst:907 +#: ../../library/multiprocessing.rst:947 msgid "" "If the queue is closed, :exc:`ValueError` is raised instead of :exc:" "`AssertionError`." msgstr "" -#: ../../library/multiprocessing.rst:913 +#: ../../library/multiprocessing.rst:953 msgid "Equivalent to ``put(obj, False)``." msgstr "``put(obj, False)`` と等価です。" -#: ../../library/multiprocessing.rst:917 +#: ../../library/multiprocessing.rst:957 msgid "" "Remove and return an item from the queue. If optional args *block* is " "``True`` (the default) and *timeout* is ``None`` (the default), block if " @@ -1529,17 +1581,17 @@ msgstr "" "要素を返します。そうでなければ :exc:`queue.Empty` 例外が発生します(その場合 " "*timeout* は無視されます)。" -#: ../../library/multiprocessing.rst:925 +#: ../../library/multiprocessing.rst:965 msgid "" "If the queue is closed, :exc:`ValueError` is raised instead of :exc:" "`OSError`." msgstr "" -#: ../../library/multiprocessing.rst:931 +#: ../../library/multiprocessing.rst:971 msgid "Equivalent to ``get(False)``." msgstr "``get(False)`` と等価です。" -#: ../../library/multiprocessing.rst:933 +#: ../../library/multiprocessing.rst:973 msgid "" ":class:`multiprocessing.Queue` has a few additional methods not found in :" "class:`queue.Queue`. These methods are usually unnecessary for most code:" @@ -1547,24 +1599,24 @@ msgstr "" ":class:`multiprocessing.Queue` は :class:`queue.Queue` にはない追加メソッドが" "あります。 これらのメソッドは通常、ほとんどのコードに必要ありません:" -#: ../../library/multiprocessing.rst:939 ../../library/multiprocessing.rst:987 +#: ../../library/multiprocessing.rst:979 ../../library/multiprocessing.rst:1027 msgid "Close the queue: release internal resources." msgstr "" -#: ../../library/multiprocessing.rst:941 +#: ../../library/multiprocessing.rst:981 msgid "" "A queue must not be used anymore after it is closed. For example, :meth:" "`~Queue.get`, :meth:`~Queue.put` and :meth:`~Queue.empty` methods must no " "longer be called." msgstr "" -#: ../../library/multiprocessing.rst:945 +#: ../../library/multiprocessing.rst:985 msgid "" "The background thread will quit once it has flushed all buffered data to the " "pipe. This is called automatically when the queue is garbage collected." msgstr "" -#: ../../library/multiprocessing.rst:951 +#: ../../library/multiprocessing.rst:991 msgid "" "Join the background thread. This can only be used after :meth:`close` has " "been called. It blocks until the background thread exits, ensuring that all " @@ -1575,7 +1627,7 @@ msgstr "" "シュされるのを保証するため、バックグラウンドスレッドが終了するまでブロックし" "ます。" -#: ../../library/multiprocessing.rst:955 +#: ../../library/multiprocessing.rst:995 msgid "" "By default if a process is not the creator of the queue then on exit it will " "attempt to join the queue's background thread. The process can call :meth:" @@ -1586,7 +1638,7 @@ msgstr "" "`join_thread` が何もしないように :meth:`cancel_join_thread` を呼び出すことが" "できます。" -#: ../../library/multiprocessing.rst:961 +#: ../../library/multiprocessing.rst:1001 msgid "" "Prevent :meth:`join_thread` from blocking. In particular, this prevents the " "background thread from being joined automatically when the process exits -- " @@ -1596,7 +1648,7 @@ msgstr "" "ドスレッドがそのプロセスの終了時に自動的に join されるのを防ぎます。詳細は :" "meth:`join_thread` を参照してください。" -#: ../../library/multiprocessing.rst:965 +#: ../../library/multiprocessing.rst:1005 msgid "" "A better name for this method might be ``allow_exit_without_flush()``. It " "is likely to cause enqueued data to be lost, and you almost certainly will " @@ -1610,7 +1662,7 @@ msgstr "" "されたデータを下位層のパイプにフラッシュすることなくカレントプロセスを直ちに" "終了する必要があり、かつ失われるデータに関心がない場合です。" -#: ../../library/multiprocessing.rst:974 +#: ../../library/multiprocessing.rst:1014 msgid "" "This class's functionality requires a functioning shared semaphore " "implementation on the host operating system. Without one, the functionality " @@ -1625,36 +1677,36 @@ msgstr "" "する時に :exc:`ImportError` が発生します。詳細は :issue:`3770` を参照してくだ" "さい。同様のことが、以下に列挙されている特殊なキューでも成り立ちます。" -#: ../../library/multiprocessing.rst:983 +#: ../../library/multiprocessing.rst:1023 msgid "" "It is a simplified :class:`Queue` type, very close to a locked :class:`Pipe`." msgstr "" "単純化された :class:`Queue` 型です。ロックされた :class:`Pipe` と非常に似てい" "ます。" -#: ../../library/multiprocessing.rst:989 +#: ../../library/multiprocessing.rst:1029 msgid "" "A queue must not be used anymore after it is closed. For example, :meth:" "`get`, :meth:`put` and :meth:`empty` methods must no longer be called." msgstr "" -#: ../../library/multiprocessing.rst:997 +#: ../../library/multiprocessing.rst:1037 msgid "Return ``True`` if the queue is empty, ``False`` otherwise." msgstr "キューが空ならば ``True`` を、そうでなければ ``False`` を返します。" -#: ../../library/multiprocessing.rst:999 +#: ../../library/multiprocessing.rst:1039 msgid "Always raises an :exc:`OSError` if the SimpleQueue is closed." msgstr "" -#: ../../library/multiprocessing.rst:1003 +#: ../../library/multiprocessing.rst:1043 msgid "Remove and return an item from the queue." msgstr "キューから要素を削除して返します。" -#: ../../library/multiprocessing.rst:1007 +#: ../../library/multiprocessing.rst:1047 msgid "Put *item* into the queue." msgstr "*item* をキューに追加します。" -#: ../../library/multiprocessing.rst:1012 +#: ../../library/multiprocessing.rst:1052 msgid "" ":class:`JoinableQueue`, a :class:`Queue` subclass, is a queue which " "additionally has :meth:`task_done` and :meth:`join` methods." @@ -1662,7 +1714,7 @@ msgstr "" ":class:`JoinableQueue` は :class:`Queue` のサブクラスであり、 :meth:" "`task_done` や :meth:`join` メソッドが追加されているキューです。" -#: ../../library/multiprocessing.rst:1017 +#: ../../library/multiprocessing.rst:1057 msgid "" "Indicate that a formerly enqueued task is complete. Used by queue " "consumers. For each :meth:`~Queue.get` used to fetch a task, a subsequent " @@ -1674,7 +1726,7 @@ msgstr "" "`~Queue.get` に対して、 後続の :meth:`task_done` 呼び出しはタスクの処理が完了" "したことをキューへ伝えます。" -#: ../../library/multiprocessing.rst:1022 +#: ../../library/multiprocessing.rst:1062 msgid "" "If a :meth:`~queue.Queue.join` is currently blocking, it will resume when " "all items have been processed (meaning that a :meth:`task_done` call was " @@ -1684,19 +1736,19 @@ msgstr "" "れたときに復帰します( :meth:`task_done` 呼び出しが すべての要素からキュー内" "へ :meth:`~Queue.put` されたと受け取ったことを意味します)。" -#: ../../library/multiprocessing.rst:1026 +#: ../../library/multiprocessing.rst:1066 msgid "" "Raises a :exc:`ValueError` if called more times than there were items placed " "in the queue." msgstr "" "キューにある要素より多く呼び出された場合 :exc:`ValueError` が発生します。" -#: ../../library/multiprocessing.rst:1032 +#: ../../library/multiprocessing.rst:1072 msgid "Block until all items in the queue have been gotten and processed." msgstr "" "キューにあるすべてのアイテムが取り出されて処理されるまでブロックします。" -#: ../../library/multiprocessing.rst:1034 +#: ../../library/multiprocessing.rst:1074 msgid "" "The count of unfinished tasks goes up whenever an item is added to the " "queue. The count goes down whenever a consumer calls :meth:`task_done` to " @@ -1709,15 +1761,15 @@ msgstr "" "と数が減ります。 未完了タスク数がゼロになると :meth:`~queue.Queue.join` はブ" "ロッキングを解除します。" -#: ../../library/multiprocessing.rst:1042 +#: ../../library/multiprocessing.rst:1082 msgid "Miscellaneous" msgstr "その他" -#: ../../library/multiprocessing.rst:1046 +#: ../../library/multiprocessing.rst:1086 msgid "Return list of all live children of the current process." msgstr "カレントプロセスのすべてのアクティブな子プロセスのリストを返します。" -#: ../../library/multiprocessing.rst:1048 +#: ../../library/multiprocessing.rst:1088 msgid "" "Calling this has the side effect of \"joining\" any processes which have " "already finished." @@ -1725,58 +1777,58 @@ msgstr "" "これを呼び出すと \"join\" してすでに終了しているプロセスには副作用がありま" "す。" -#: ../../library/multiprocessing.rst:1053 +#: ../../library/multiprocessing.rst:1093 msgid "Return the number of CPUs in the system." msgstr "システムの CPU 数を返します。" -#: ../../library/multiprocessing.rst:1055 +#: ../../library/multiprocessing.rst:1095 msgid "" "This number is not equivalent to the number of CPUs the current process can " "use. The number of usable CPUs can be obtained with :func:`os." "process_cpu_count` (or ``len(os.sched_getaffinity(0))``)." msgstr "" -#: ../../library/multiprocessing.rst:1059 +#: ../../library/multiprocessing.rst:1099 msgid "" "When the number of CPUs cannot be determined a :exc:`NotImplementedError` is " "raised." msgstr "" -#: ../../library/multiprocessing.rst:1063 +#: ../../library/multiprocessing.rst:1103 msgid ":func:`os.cpu_count` :func:`os.process_cpu_count`" msgstr "" -#: ../../library/multiprocessing.rst:1068 +#: ../../library/multiprocessing.rst:1108 msgid "" "The return value can also be overridden using the :option:`-X cpu_count <-" "X>` flag or :envvar:`PYTHON_CPU_COUNT` as this is merely a wrapper around " "the :mod:`os` cpu count APIs." msgstr "" -#: ../../library/multiprocessing.rst:1074 +#: ../../library/multiprocessing.rst:1114 msgid "" "Return the :class:`Process` object corresponding to the current process." msgstr "カレントプロセスに対応する :class:`Process` オブジェクトを返します。" -#: ../../library/multiprocessing.rst:1076 +#: ../../library/multiprocessing.rst:1116 msgid "An analogue of :func:`threading.current_thread`." msgstr ":func:`threading.current_thread` とよく似た関数です。" -#: ../../library/multiprocessing.rst:1080 +#: ../../library/multiprocessing.rst:1120 msgid "" "Return the :class:`Process` object corresponding to the parent process of " "the :func:`current_process`. For the main process, ``parent_process`` will " "be ``None``." msgstr "" -#: ../../library/multiprocessing.rst:1088 +#: ../../library/multiprocessing.rst:1128 msgid "" "Add support for when a program which uses :mod:`multiprocessing` has been " "frozen to produce an executable. (Has been tested with **py2exe**, " "**PyInstaller** and **cx_Freeze**.)" msgstr "" -#: ../../library/multiprocessing.rst:1092 +#: ../../library/multiprocessing.rst:1132 msgid "" "One needs to call this function straight after the ``if __name__ == " "'__main__'`` line of the main module. For example::" @@ -1784,7 +1836,7 @@ msgstr "" "メインモジュールの ``if __name__ == '__main__'`` の直後にこの関数を呼び出す必" "要があります。以下に例を示します::" -#: ../../library/multiprocessing.rst:1095 +#: ../../library/multiprocessing.rst:1135 msgid "" "from multiprocessing import Process, freeze_support\n" "\n" @@ -1796,7 +1848,7 @@ msgid "" " Process(target=f).start()" msgstr "" -#: ../../library/multiprocessing.rst:1104 +#: ../../library/multiprocessing.rst:1144 msgid "" "If the ``freeze_support()`` line is omitted then trying to run the frozen " "executable will raise :exc:`RuntimeError`." @@ -1804,7 +1856,7 @@ msgstr "" "もし ``freeze_support()`` の行がない場合、フリーズされた実行可能形式を実行し" "ようとすると :exc:`RuntimeError` を発生させます。" -#: ../../library/multiprocessing.rst:1107 +#: ../../library/multiprocessing.rst:1147 msgid "" "Calling ``freeze_support()`` has no effect when the start method is not " "*spawn*. In addition, if the module is being run normally by the Python " @@ -1812,7 +1864,7 @@ msgid "" "no effect." msgstr "" -#: ../../library/multiprocessing.rst:1114 +#: ../../library/multiprocessing.rst:1154 msgid "" "Returns a list of the supported start methods, the first of which is the " "default. The possible start methods are ``'fork'``, ``'spawn'`` and " @@ -1820,7 +1872,7 @@ msgid "" "`multiprocessing-start-methods`." msgstr "" -#: ../../library/multiprocessing.rst:1123 +#: ../../library/multiprocessing.rst:1163 msgid "" "Return a context object which has the same attributes as the :mod:" "`multiprocessing` module." @@ -1828,7 +1880,7 @@ msgstr "" ":mod:`multiprocessing` モジュールと同じ属性を持つコンテキストオブジェクトを返" "します。" -#: ../../library/multiprocessing.rst:1126 +#: ../../library/multiprocessing.rst:1166 msgid "" "If *method* is ``None`` then the default context is returned. Note that if " "the global start method has not been set, this will set it to the default " @@ -1837,11 +1889,11 @@ msgid "" "is not available. See :ref:`multiprocessing-start-methods`." msgstr "" -#: ../../library/multiprocessing.rst:1137 +#: ../../library/multiprocessing.rst:1177 msgid "Return the name of start method used for starting processes." msgstr "開始するプロセスで使用する開始方式名を返します。" -#: ../../library/multiprocessing.rst:1139 +#: ../../library/multiprocessing.rst:1179 msgid "" "If the global start method has not been set and *allow_none* is ``False``, " "then the start method is set to the default and the name is returned. If the " @@ -1849,13 +1901,13 @@ msgid "" "returned." msgstr "" -#: ../../library/multiprocessing.rst:1144 +#: ../../library/multiprocessing.rst:1184 msgid "" "The return value can be ``'fork'``, ``'spawn'``, ``'forkserver'`` or " "``None``. See :ref:`multiprocessing-start-methods`." msgstr "" -#: ../../library/multiprocessing.rst:1151 +#: ../../library/multiprocessing.rst:1191 msgid "" "On macOS, the *spawn* start method is now the default. The *fork* start " "method should be considered unsafe as it can lead to crashes of the " @@ -1865,7 +1917,7 @@ msgstr "" "ブプロセスのクラッシュを引き起こす可能性があるため、安全ではありません。 :" "issue:`33725` を参照。" -#: ../../library/multiprocessing.rst:1157 +#: ../../library/multiprocessing.rst:1197 msgid "" "Set the path of the Python interpreter to use when starting a child process. " "(By default :data:`sys.executable` is used). Embedders will probably need " @@ -1875,23 +1927,23 @@ msgstr "" "す。(デフォルトでは :data:`sys.executable` が使用されます)。コードに組み込む" "ときは、おそらく次のようにする必要があります ::" -#: ../../library/multiprocessing.rst:1161 +#: ../../library/multiprocessing.rst:1201 msgid "set_executable(os.path.join(sys.exec_prefix, 'pythonw.exe'))" msgstr "" -#: ../../library/multiprocessing.rst:1163 +#: ../../library/multiprocessing.rst:1203 msgid "before they can create child processes." msgstr "子プロセスを作成する前に行ってください。" -#: ../../library/multiprocessing.rst:1165 +#: ../../library/multiprocessing.rst:1205 msgid "Now supported on POSIX when the ``'spawn'`` start method is used." msgstr "" -#: ../../library/multiprocessing.rst:1168 +#: ../../library/multiprocessing.rst:1208 msgid "Accepts a :term:`path-like object`." msgstr ":term:`path-like object` を受け入れるようになりました。" -#: ../../library/multiprocessing.rst:1173 +#: ../../library/multiprocessing.rst:1213 msgid "" "Set a list of module names for the forkserver main process to attempt to " "import so that their already imported state is inherited by forked " @@ -1900,19 +1952,19 @@ msgid "" "process." msgstr "" -#: ../../library/multiprocessing.rst:1179 +#: ../../library/multiprocessing.rst:1219 msgid "" "For this to work, it must be called before the forkserver process has been " "launched (before creating a :class:`Pool` or starting a :class:`Process`)." msgstr "" -#: ../../library/multiprocessing.rst:1182 +#: ../../library/multiprocessing.rst:1222 msgid "" "Only meaningful when using the ``'forkserver'`` start method. See :ref:" "`multiprocessing-start-methods`." msgstr "" -#: ../../library/multiprocessing.rst:1189 +#: ../../library/multiprocessing.rst:1229 msgid "" "Set the method which should be used to start child processes. The *method* " "argument can be ``'fork'``, ``'spawn'`` or ``'forkserver'``. Raises :exc:" @@ -1922,7 +1974,7 @@ msgid "" "then the context is set to the default context." msgstr "" -#: ../../library/multiprocessing.rst:1196 +#: ../../library/multiprocessing.rst:1236 msgid "" "Note that this should be called at most once, and it should be protected " "inside the ``if __name__ == '__main__'`` clause of the main module." @@ -1930,11 +1982,11 @@ msgstr "" "これは一度しか呼び出すことができず、その場所もメインモジュールの ``if " "__name__ == '__main__'`` 節内で保護された状態でなければなりません。" -#: ../../library/multiprocessing.rst:1200 +#: ../../library/multiprocessing.rst:1240 msgid "See :ref:`multiprocessing-start-methods`." msgstr "" -#: ../../library/multiprocessing.rst:1206 +#: ../../library/multiprocessing.rst:1246 msgid "" ":mod:`multiprocessing` contains no analogues of :func:`threading." "active_count`, :func:`threading.enumerate`, :func:`threading.settrace`, :" @@ -1945,11 +1997,11 @@ msgstr "" "enumerate`, :func:`threading.settrace`, :func:`threading.setprofile`, :class:" "`threading.Timer` や :class:`threading.local` のような関数はありません。" -#: ../../library/multiprocessing.rst:1213 +#: ../../library/multiprocessing.rst:1253 msgid "Connection Objects" msgstr "Connection オブジェクト" -#: ../../library/multiprocessing.rst:1217 +#: ../../library/multiprocessing.rst:1257 msgid "" "Connection objects allow the sending and receiving of picklable objects or " "strings. They can be thought of as message oriented connected sockets." @@ -1958,7 +2010,7 @@ msgstr "" "送ったり、受け取ったりします。そういったオブジェクトはメッセージ指向の接続ソ" "ケットと考えられます。" -#: ../../library/multiprocessing.rst:1220 +#: ../../library/multiprocessing.rst:1260 msgid "" "Connection objects are usually created using :func:`Pipe ` -- see also :ref:`multiprocessing-listeners-clients`." @@ -1967,7 +2019,7 @@ msgstr "" "て作成されます。 詳細は :ref:`multiprocessing-listeners-clients` も参照してく" "ださい。" -#: ../../library/multiprocessing.rst:1228 +#: ../../library/multiprocessing.rst:1268 msgid "" "Send an object to the other end of the connection which should be read " "using :meth:`recv`." @@ -1975,7 +2027,7 @@ msgstr "" "コネクションの相手側へ :meth:`recv` を使用して読み込むオブジェクトを送りま" "す。" -#: ../../library/multiprocessing.rst:1231 +#: ../../library/multiprocessing.rst:1271 msgid "" "The object must be picklable. Very large pickles (approximately 32 MiB+, " "though it depends on the OS) may raise a :exc:`ValueError` exception." @@ -1984,7 +2036,7 @@ msgstr "" "に大きすぎる (OS にも依りますが、およそ 32 MiB+) と、 :exc:`ValueError` 例外" "が送出されることがあります。" -#: ../../library/multiprocessing.rst:1236 +#: ../../library/multiprocessing.rst:1276 msgid "" "Return an object sent from the other end of the connection using :meth:" "`send`. Blocks until there is something to receive. Raises :exc:`EOFError` " @@ -1994,23 +2046,23 @@ msgstr "" "す。 何か受け取るまでブロックします。何も受け取らずにコネクションの相手側でク" "ローズされた場合 :exc:`EOFError` が発生します。" -#: ../../library/multiprocessing.rst:1243 +#: ../../library/multiprocessing.rst:1283 msgid "Return the file descriptor or handle used by the connection." msgstr "コネクションが使用するハンドラーか、ファイル記述子を返します。" -#: ../../library/multiprocessing.rst:1247 +#: ../../library/multiprocessing.rst:1287 msgid "Close the connection." msgstr "コネクションをクローズします。" -#: ../../library/multiprocessing.rst:1249 +#: ../../library/multiprocessing.rst:1289 msgid "This is called automatically when the connection is garbage collected." msgstr "コネクションがガベージコレクトされるときに自動的に呼び出されます。" -#: ../../library/multiprocessing.rst:1253 +#: ../../library/multiprocessing.rst:1293 msgid "Return whether there is any data available to be read." msgstr "読み込み可能なデータがあるかどうかを返します。" -#: ../../library/multiprocessing.rst:1255 +#: ../../library/multiprocessing.rst:1295 msgid "" "If *timeout* is not specified then it will return immediately. If *timeout* " "is a number then this specifies the maximum time in seconds to block. If " @@ -2020,7 +2072,7 @@ msgstr "" "と、最大指定した秒数をブロッキングします。 *timeout* に ``None`` を指定すると" "タイムアウトせずにずっとブロッキングします。" -#: ../../library/multiprocessing.rst:1259 +#: ../../library/multiprocessing.rst:1299 msgid "" "Note that multiple connection objects may be polled at once by using :func:" "`multiprocessing.connection.wait`." @@ -2028,12 +2080,12 @@ msgstr "" ":func:`multiprocessing.connection.wait` を使って複数のコネクションオブジェク" "トを同時にポーリングできることに注意してください。" -#: ../../library/multiprocessing.rst:1264 +#: ../../library/multiprocessing.rst:1304 msgid "Send byte data from a :term:`bytes-like object` as a complete message." msgstr "" ":term:`bytes-like object` から完全なメッセージとしてバイトデータを送ります。" -#: ../../library/multiprocessing.rst:1266 +#: ../../library/multiprocessing.rst:1306 msgid "" "If *offset* is given then data is read from that position in *buffer*. If " "*size* is given then that many bytes will be read from buffer. Very large " @@ -2045,7 +2097,7 @@ msgstr "" "なバッファー (OS に依存しますが、およそ 32MiB+) を指定すると、 :exc:" "`ValueError` 例外が発生するかもしれません。" -#: ../../library/multiprocessing.rst:1273 +#: ../../library/multiprocessing.rst:1313 msgid "" "Return a complete message of byte data sent from the other end of the " "connection as a string. Blocks until there is something to receive. Raises :" @@ -2056,7 +2108,7 @@ msgstr "" "返します。何か受け取るまでブロックします。受け取るデータが何も残っておらず、" "相手側がコネクションを閉じていた場合、 :exc:`EOFError` が送出されます。" -#: ../../library/multiprocessing.rst:1278 +#: ../../library/multiprocessing.rst:1318 msgid "" "If *maxlength* is specified and the message is longer than *maxlength* then :" "exc:`OSError` is raised and the connection will no longer be readable." @@ -2064,7 +2116,7 @@ msgstr "" "*maxlength* を指定していて、かつメッセージが *maxlength* より長い場合、 :exc:" "`OSError` が発生してコネクションからそれ以上読めなくなります。" -#: ../../library/multiprocessing.rst:1282 +#: ../../library/multiprocessing.rst:1322 msgid "" "This function used to raise :exc:`IOError`, which is now an alias of :exc:" "`OSError`." @@ -2072,7 +2124,7 @@ msgstr "" "この関数は以前は :exc:`IOError` を送出していました。今では :exc:`OSError` の" "別名です。" -#: ../../library/multiprocessing.rst:1289 +#: ../../library/multiprocessing.rst:1329 msgid "" "Read into *buffer* a complete message of byte data sent from the other end " "of the connection and return the number of bytes in the message. Blocks " @@ -2083,7 +2135,7 @@ msgstr "" "ジのバイト数を返します。 何か受け取るまでブロックします。何も受け取らずにコネ" "クションの相手側でクローズされた場合 :exc:`EOFError` が発生します。" -#: ../../library/multiprocessing.rst:1295 +#: ../../library/multiprocessing.rst:1335 msgid "" "*buffer* must be a writable :term:`bytes-like object`. If *offset* is given " "then the message will be written into the buffer from that position. Offset " @@ -2093,7 +2145,7 @@ msgstr "" "*offset* が与えられたら、その位置からバッファーへメッセージが書き込まれま" "す。 オフセットは *buffer* バイトよりも小さい正の数でなければなりません。" -#: ../../library/multiprocessing.rst:1300 +#: ../../library/multiprocessing.rst:1340 msgid "" "If the buffer is too short then a :exc:`BufferTooShort` exception is raised " "and the complete message is available as ``e.args[0]`` where ``e`` is the " @@ -2102,7 +2154,7 @@ msgstr "" "バッファーがあまりに小さいと :exc:`BufferTooShort` 例外が発生します。 ``e`` " "が例外インスタンスとすると完全なメッセージは ``e.args[0]`` で確認できます。" -#: ../../library/multiprocessing.rst:1304 +#: ../../library/multiprocessing.rst:1344 msgid "" "Connection objects themselves can now be transferred between processes " "using :meth:`Connection.send` and :meth:`Connection.recv`." @@ -2110,18 +2162,18 @@ msgstr "" ":meth:`Connection.send` と :meth:`Connection.recv` を使用して Connection オブ" "ジェクト自体をプロセス間で転送できるようになりました。" -#: ../../library/multiprocessing.rst:1308 +#: ../../library/multiprocessing.rst:1348 msgid "" "Connection objects also now support the context management protocol -- see :" "ref:`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the " "connection object, and :meth:`~contextmanager.__exit__` calls :meth:`close`." msgstr "" -#: ../../library/multiprocessing.rst:1312 +#: ../../library/multiprocessing.rst:1352 msgid "For example:" msgstr "例えば:" -#: ../../library/multiprocessing.rst:1314 +#: ../../library/multiprocessing.rst:1354 msgid "" ">>> from multiprocessing import Pipe\n" ">>> a, b = Pipe()\n" @@ -2141,7 +2193,7 @@ msgid "" "array('i', [0, 1, 2, 3, 4, 0, 0, 0, 0, 0])" msgstr "" -#: ../../library/multiprocessing.rst:1337 +#: ../../library/multiprocessing.rst:1377 msgid "" "The :meth:`Connection.recv` method automatically unpickles the data it " "receives, which can be a security risk unless you can trust the process " @@ -2151,7 +2203,7 @@ msgstr "" "す。それはメッセージを送ったプロセスが信頼できる場合を除いてセキュリティリス" "クになります。" -#: ../../library/multiprocessing.rst:1341 +#: ../../library/multiprocessing.rst:1381 msgid "" "Therefore, unless the connection object was produced using :func:`Pipe` you " "should only use the :meth:`~Connection.recv` and :meth:`~Connection.send` " @@ -2163,7 +2215,7 @@ msgstr "" "`~Connection.send` メソッドのみを使用すべきです。詳細は :ref:" "`multiprocessing-auth-keys` を参照してください。" -#: ../../library/multiprocessing.rst:1348 +#: ../../library/multiprocessing.rst:1388 msgid "" "If a process is killed while it is trying to read or write to a pipe then " "the data in the pipe is likely to become corrupted, because it may become " @@ -2173,11 +2225,11 @@ msgstr "" "境界がどこなのか分からなくなってしまうので、そのパイプ内のデータは破損してし" "まいがちです。" -#: ../../library/multiprocessing.rst:1354 +#: ../../library/multiprocessing.rst:1394 msgid "Synchronization primitives" msgstr "同期プリミティブ" -#: ../../library/multiprocessing.rst:1358 +#: ../../library/multiprocessing.rst:1398 msgid "" "Generally synchronization primitives are not as necessary in a multiprocess " "program as they are in a multithreaded program. See the documentation for :" @@ -2187,7 +2239,7 @@ msgstr "" "ティブを必要としません。詳細は :mod:`threading` モジュールのドキュメントを参" "照してください。" -#: ../../library/multiprocessing.rst:1362 +#: ../../library/multiprocessing.rst:1402 msgid "" "Note that one can also create synchronization primitives by using a manager " "object -- see :ref:`multiprocessing-managers`." @@ -2195,19 +2247,19 @@ msgstr "" "マネージャーオブジェクトを使用して同期プリミティブを作成できることも覚えてお" "いてください。詳細は :ref:`multiprocessing-managers` を参照してください。" -#: ../../library/multiprocessing.rst:1367 +#: ../../library/multiprocessing.rst:1407 msgid "A barrier object: a clone of :class:`threading.Barrier`." msgstr "バリアーオブジェクト: :class:`threading.Barrier` のクローンです。" -#: ../../library/multiprocessing.rst:1373 +#: ../../library/multiprocessing.rst:1413 msgid "" "A bounded semaphore object: a close analog of :class:`threading." "BoundedSemaphore`." msgstr "" "有限セマフォオブジェクト: :class:`threading.BoundedSemaphore` の類似物です。" -#: ../../library/multiprocessing.rst:1376 -#: ../../library/multiprocessing.rst:1528 +#: ../../library/multiprocessing.rst:1416 +#: ../../library/multiprocessing.rst:1568 msgid "" "A solitary difference from its close analog exists: its ``acquire`` method's " "first argument is named *block*, as is consistent with :meth:`Lock.acquire`." @@ -2216,7 +2268,7 @@ msgstr "" "``acquire`` メソッドの第一引数名は *block* で、:meth:`Lock.acquire` と一致し" "ています。" -#: ../../library/multiprocessing.rst:1380 +#: ../../library/multiprocessing.rst:1420 msgid "" "On macOS, this is indistinguishable from :class:`Semaphore` because " "``sem_getvalue()`` is not implemented on that platform." @@ -2224,11 +2276,11 @@ msgstr "" "macOS では ``sem_getvalue()`` が実装されていないので :class:`Semaphore` と区" "別がつきません。" -#: ../../library/multiprocessing.rst:1385 +#: ../../library/multiprocessing.rst:1425 msgid "A condition variable: an alias for :class:`threading.Condition`." msgstr "状態変数: :class:`threading.Condition` の別名です。" -#: ../../library/multiprocessing.rst:1387 +#: ../../library/multiprocessing.rst:1427 msgid "" "If *lock* is specified then it should be a :class:`Lock` or :class:`RLock` " "object from :mod:`multiprocessing`." @@ -2236,16 +2288,16 @@ msgstr "" "*lock* を指定するなら :mod:`multiprocessing` の :class:`Lock` か :class:" "`RLock` オブジェクトにすべきです。" -#: ../../library/multiprocessing.rst:1390 -#: ../../library/multiprocessing.rst:1942 +#: ../../library/multiprocessing.rst:1430 +#: ../../library/multiprocessing.rst:1982 msgid "The :meth:`~threading.Condition.wait_for` method was added." msgstr ":meth:`~threading.Condition.wait_for` メソッドが追加されました。" -#: ../../library/multiprocessing.rst:1395 +#: ../../library/multiprocessing.rst:1435 msgid "A clone of :class:`threading.Event`." msgstr ":class:`threading.Event` のクローンです。" -#: ../../library/multiprocessing.rst:1400 +#: ../../library/multiprocessing.rst:1440 msgid "" "A non-recursive lock object: a close analog of :class:`threading.Lock`. Once " "a process or thread has acquired a lock, subsequent attempts to acquire it " @@ -2263,7 +2315,7 @@ msgstr "" "り、プロセスとスレッドに適用される :class:`multiprocessing.Lock` に引き継がれ" "ています。" -#: ../../library/multiprocessing.rst:1408 +#: ../../library/multiprocessing.rst:1448 msgid "" "Note that :class:`Lock` is actually a factory function which returns an " "instance of ``multiprocessing.synchronize.Lock`` initialized with a default " @@ -2273,7 +2325,7 @@ msgstr "" "た ``multiprocessing.synchronize.Lock`` のインスタンスを返すことに注意してく" "ださい。" -#: ../../library/multiprocessing.rst:1412 +#: ../../library/multiprocessing.rst:1452 msgid "" ":class:`Lock` supports the :term:`context manager` protocol and thus may be " "used in :keyword:`with` statements." @@ -2281,12 +2333,12 @@ msgstr "" ":class:`Lock` は :term:`context manager` プロトコルをサポートしています。つま" "り :keyword:`with` 文で使うことができます。" -#: ../../library/multiprocessing.rst:1417 -#: ../../library/multiprocessing.rst:1475 +#: ../../library/multiprocessing.rst:1457 +#: ../../library/multiprocessing.rst:1515 msgid "Acquire a lock, blocking or non-blocking." msgstr "ブロックあり、またはブロックなしでロックを獲得します。" -#: ../../library/multiprocessing.rst:1419 +#: ../../library/multiprocessing.rst:1459 msgid "" "With the *block* argument set to ``True`` (the default), the method call " "will block until the lock is in an unlocked state, then set it to locked and " @@ -2298,7 +2350,7 @@ msgstr "" "てから ``True`` を返します。 :meth:`threading.Lock.acquire` の最初の引数とは" "名前が違っているので注意してください。" -#: ../../library/multiprocessing.rst:1424 +#: ../../library/multiprocessing.rst:1464 msgid "" "With the *block* argument set to ``False``, the method call does not block. " "If the lock is currently in a locked state, return ``False``; otherwise set " @@ -2308,7 +2360,7 @@ msgstr "" "態であれば、直ちに ``False`` を返します。それ以外の場合には、ロックをロック状" "態にして ``True`` を返します。" -#: ../../library/multiprocessing.rst:1428 +#: ../../library/multiprocessing.rst:1468 msgid "" "When invoked with a positive, floating-point value for *timeout*, block for " "at most the number of seconds specified by *timeout* as long as the lock can " @@ -2330,7 +2382,7 @@ msgstr "" "されます。ロックを獲得した場合は ``True`` 、タイムアウトした場合は ``False`` " "で戻ります。" -#: ../../library/multiprocessing.rst:1443 +#: ../../library/multiprocessing.rst:1483 msgid "" "Release a lock. This can be called from any process or thread, not only the " "process or thread which originally acquired the lock." @@ -2338,7 +2390,7 @@ msgstr "" "ロックを解放します。これはロックを獲得したプロセスやスレッドだけでなく、任意" "のプロセスやスレッドから呼ぶことができます。" -#: ../../library/multiprocessing.rst:1446 +#: ../../library/multiprocessing.rst:1486 msgid "" "Behavior is the same as in :meth:`threading.Lock.release` except that when " "invoked on an unlocked lock, a :exc:`ValueError` is raised." @@ -2346,12 +2398,12 @@ msgstr "" ":meth:`threading.Lock.release` と同じように振舞いますが、ロックされていない場" "合に呼び出すと :exc:`ValueError` となる点だけが違います。" -#: ../../library/multiprocessing.rst:1452 -#: ../../library/multiprocessing.rst:1519 +#: ../../library/multiprocessing.rst:1492 +#: ../../library/multiprocessing.rst:1559 msgid "Return a boolean indicating whether this object is locked right now." msgstr "" -#: ../../library/multiprocessing.rst:1459 +#: ../../library/multiprocessing.rst:1499 msgid "" "A recursive lock object: a close analog of :class:`threading.RLock`. A " "recursive lock must be released by the process or thread that acquired it. " @@ -2365,7 +2417,7 @@ msgstr "" "ロセスやスレッドはブロックされずに再度獲得出来ます。そのプロセスやスレッドは" "獲得した回数ぶん解放しなければなりません。" -#: ../../library/multiprocessing.rst:1465 +#: ../../library/multiprocessing.rst:1505 msgid "" "Note that :class:`RLock` is actually a factory function which returns an " "instance of ``multiprocessing.synchronize.RLock`` initialized with a default " @@ -2375,7 +2427,7 @@ msgstr "" "た ``multiprocessing.synchronize.Lock`` のインスタンスを返すことに注意してく" "ださい。" -#: ../../library/multiprocessing.rst:1469 +#: ../../library/multiprocessing.rst:1509 msgid "" ":class:`RLock` supports the :term:`context manager` protocol and thus may be " "used in :keyword:`with` statements." @@ -2383,7 +2435,7 @@ msgstr "" ":class:`RLock` は :term:`context manager` プロトコルをサポートしています。つ" "まり :keyword:`with` 文で使うことができます。" -#: ../../library/multiprocessing.rst:1477 +#: ../../library/multiprocessing.rst:1517 msgid "" "When invoked with the *block* argument set to ``True``, block until the lock " "is in an unlocked state (not owned by any process or thread) unless the lock " @@ -2403,7 +2455,7 @@ msgstr "" "`threading.RLock.acquire` の実装とはこの最初の引数の振る舞いが、その名前自身" "を始めとしていくつか違うので注意してください。" -#: ../../library/multiprocessing.rst:1487 +#: ../../library/multiprocessing.rst:1527 msgid "" "When invoked with the *block* argument set to ``False``, do not block. If " "the lock has already been acquired (and thus is owned) by another process or " @@ -2423,7 +2475,7 @@ msgstr "" "acquire では再帰レベルがインクリメントされて即座に返ります。全体読めばわかる" "とは思いますが一応。---)" -#: ../../library/multiprocessing.rst:1495 +#: ../../library/multiprocessing.rst:1535 msgid "" "Use and behaviors of the *timeout* argument are the same as in :meth:`Lock." "acquire`. Note that some of these behaviors of *timeout* differ from the " @@ -2433,7 +2485,7 @@ msgstr "" "*timeout* 引数の振る舞いがいくつかの点で :meth:`threading.RLock.acquire` と異" "なるので注意してください。" -#: ../../library/multiprocessing.rst:1502 +#: ../../library/multiprocessing.rst:1542 msgid "" "Release a lock, decrementing the recursion level. If after the decrement " "the recursion level is zero, reset the lock to unlocked (not owned by any " @@ -2450,7 +2502,7 @@ msgstr "" "合、ロックの状態はロックのままで、呼び出し側のプロセスもしくはスレッドに所有" "されたままになります。" -#: ../../library/multiprocessing.rst:1510 +#: ../../library/multiprocessing.rst:1550 msgid "" "Only call this method when the calling process or thread owns the lock. An :" "exc:`AssertionError` is raised if this method is called by a process or " @@ -2464,11 +2516,11 @@ msgstr "" "送出されます。同じ状況での :meth:`threading.RLock.release` 実装とは例外の型が" "異なるので注意してください。" -#: ../../library/multiprocessing.rst:1526 +#: ../../library/multiprocessing.rst:1566 msgid "A semaphore object: a close analog of :class:`threading.Semaphore`." msgstr "セマフォオブジェクト: :class:`threading.Semaphore` のクローンです。" -#: ../../library/multiprocessing.rst:1533 +#: ../../library/multiprocessing.rst:1573 msgid "" "On macOS, ``sem_timedwait`` is unsupported, so calling ``acquire()`` with a " "timeout will emulate that function's behavior using a sleeping loop." @@ -2477,7 +2529,7 @@ msgstr "" "ムアウトを与えて呼ぶと、ループ内でスリープすることでこの関数がエミュレートさ" "れます。" -#: ../../library/multiprocessing.rst:1538 +#: ../../library/multiprocessing.rst:1578 msgid "" "Some of this package's functionality requires a functioning shared semaphore " "implementation on the host operating system. Without one, the :mod:" @@ -2491,11 +2543,11 @@ msgstr "" "のインポート時に :exc:`ImportError` が発生します。詳細は :issue:`3770` を参照" "してください。" -#: ../../library/multiprocessing.rst:1546 +#: ../../library/multiprocessing.rst:1586 msgid "Shared :mod:`ctypes` Objects" msgstr "共有 :mod:`ctypes` オブジェクト" -#: ../../library/multiprocessing.rst:1548 +#: ../../library/multiprocessing.rst:1588 msgid "" "It is possible to create shared objects using shared memory which can be " "inherited by child processes." @@ -2503,7 +2555,7 @@ msgstr "" "子プロセスにより継承される共有メモリを使用する共有オブジェクトを作成すること" "ができます。" -#: ../../library/multiprocessing.rst:1553 +#: ../../library/multiprocessing.rst:1593 msgid "" "Return a :mod:`ctypes` object allocated from shared memory. By default the " "return value is actually a synchronized wrapper for the object. The object " @@ -2513,8 +2565,8 @@ msgstr "" "トでは、返り値は実際のオブジェクトの同期ラッパーです。オブジェクトそれ自身" "は、 :class:`Value` の *value* 属性によってアクセスできます。" -#: ../../library/multiprocessing.rst:1557 -#: ../../library/multiprocessing.rst:1644 +#: ../../library/multiprocessing.rst:1597 +#: ../../library/multiprocessing.rst:1684 msgid "" "*typecode_or_type* determines the type of the returned object: it is either " "a ctypes type or a one character typecode of the kind used by the :mod:" @@ -2524,7 +2576,7 @@ msgstr "" "か :mod:`array` モジュールで使用されるような1文字の型コードかのどちらか一方で" "す。 *\\*args* は型のコンストラクターへ渡されます。" -#: ../../library/multiprocessing.rst:1561 +#: ../../library/multiprocessing.rst:1601 msgid "" "If *lock* is ``True`` (the default) then a new recursive lock object is " "created to synchronize access to the value. If *lock* is a :class:`Lock` " @@ -2539,7 +2591,7 @@ msgstr "" "れたオブジェクトへのアクセスはロックにより自動的に保護されません。そのため、" "必ずしも \"プロセスセーフ\" ではありません。" -#: ../../library/multiprocessing.rst:1568 +#: ../../library/multiprocessing.rst:1608 msgid "" "Operations like ``+=`` which involve a read and write are not atomic. So " "if, for instance, you want to atomically increment a shared value it is " @@ -2549,11 +2601,11 @@ msgstr "" "のため、たとえば自動的に共有の値を増加させたい場合、以下のようにするのでは不" "十分です ::" -#: ../../library/multiprocessing.rst:1572 +#: ../../library/multiprocessing.rst:1612 msgid "counter.value += 1" msgstr "" -#: ../../library/multiprocessing.rst:1574 +#: ../../library/multiprocessing.rst:1614 msgid "" "Assuming the associated lock is recursive (which it is by default) you can " "instead do ::" @@ -2561,19 +2613,19 @@ msgstr "" "関連するロックが再帰的 (それがデフォルトです) なら、かわりに次のようにしま" "す ::" -#: ../../library/multiprocessing.rst:1577 +#: ../../library/multiprocessing.rst:1617 msgid "" "with counter.get_lock():\n" " counter.value += 1" msgstr "" -#: ../../library/multiprocessing.rst:1580 -#: ../../library/multiprocessing.rst:1670 -#: ../../library/multiprocessing.rst:1685 +#: ../../library/multiprocessing.rst:1620 +#: ../../library/multiprocessing.rst:1710 +#: ../../library/multiprocessing.rst:1725 msgid "Note that *lock* is a keyword-only argument." msgstr "*lock* はキーワード専用引数であることに注意してください。" -#: ../../library/multiprocessing.rst:1584 +#: ../../library/multiprocessing.rst:1624 msgid "" "Return a ctypes array allocated from shared memory. By default the return " "value is actually a synchronized wrapper for the array." @@ -2581,7 +2633,7 @@ msgstr "" "共有メモリから割り当てられた ctypes 配列を返します。デフォルトでは、返り値は" "実際の配列の同期ラッパーです。" -#: ../../library/multiprocessing.rst:1587 +#: ../../library/multiprocessing.rst:1627 msgid "" "*typecode_or_type* determines the type of the elements of the returned " "array: it is either a ctypes type or a one character typecode of the kind " @@ -2596,7 +2648,7 @@ msgstr "" "期化されます。別の使用方法として *size_or_initializer* は配列の初期化に使用さ" "れるシーケンスになり、そのシーケンス長が配列の長さを決定します。" -#: ../../library/multiprocessing.rst:1594 +#: ../../library/multiprocessing.rst:1634 msgid "" "If *lock* is ``True`` (the default) then a new lock object is created to " "synchronize access to the value. If *lock* is a :class:`Lock` or :class:" @@ -2611,11 +2663,11 @@ msgstr "" "トへのアクセスはロックにより自動的に保護されません。そのため、必ずしも \"プロ" "セスセーフ\" ではありません。" -#: ../../library/multiprocessing.rst:1601 +#: ../../library/multiprocessing.rst:1641 msgid "Note that *lock* is a keyword only argument." msgstr "*lock* はキーワード引数としてのみ利用可能なことに注意してください。" -#: ../../library/multiprocessing.rst:1603 +#: ../../library/multiprocessing.rst:1643 msgid "" "Note that an array of :data:`ctypes.c_char` has *value* and *raw* attributes " "which allow one to use it to store and retrieve strings." @@ -2623,11 +2675,11 @@ msgstr "" ":data:`ctypes.c_char` の配列は文字列を格納して取り出せる *value* と *raw* 属" "性を持っていることを覚えておいてください。" -#: ../../library/multiprocessing.rst:1608 +#: ../../library/multiprocessing.rst:1648 msgid "The :mod:`multiprocessing.sharedctypes` module" msgstr ":mod:`multiprocessing.sharedctypes` モジュール" -#: ../../library/multiprocessing.rst:1613 +#: ../../library/multiprocessing.rst:1653 msgid "" "The :mod:`multiprocessing.sharedctypes` module provides functions for " "allocating :mod:`ctypes` objects from shared memory which can be inherited " @@ -2636,7 +2688,7 @@ msgstr "" ":mod:`multiprocessing.sharedctypes` モジュールは子プロセスに継承される共有メ" "モリの :mod:`ctypes` オブジェクトを割り当てる関数を提供します。" -#: ../../library/multiprocessing.rst:1619 +#: ../../library/multiprocessing.rst:1659 msgid "" "Although it is possible to store a pointer in shared memory remember that " "this will refer to a location in the address space of a specific process. " @@ -2650,11 +2702,11 @@ msgstr "" "のプロセスからそのポインターを逆参照しようとするとクラッシュを引き起こす可能" "性があります。" -#: ../../library/multiprocessing.rst:1627 +#: ../../library/multiprocessing.rst:1667 msgid "Return a ctypes array allocated from shared memory." msgstr "共有メモリから割り当てられた ctypes 配列を返します。" -#: ../../library/multiprocessing.rst:1629 +#: ../../library/multiprocessing.rst:1669 msgid "" "*typecode_or_type* determines the type of the elements of the returned " "array: it is either a ctypes type or a one character typecode of the kind " @@ -2670,7 +2722,7 @@ msgstr "" "されるシーケンスを設定することもでき、その場合はシーケンスの長さが配列の長さ" "になります。" -#: ../../library/multiprocessing.rst:1636 +#: ../../library/multiprocessing.rst:1676 msgid "" "Note that setting and getting an element is potentially non-atomic -- use :" "func:`Array` instead to make sure that access is automatically synchronized " @@ -2680,11 +2732,11 @@ msgstr "" "ください。ロックを使用して自動的に同期化されたアクセスを保証するには :func:" "`Array` を使用してください。" -#: ../../library/multiprocessing.rst:1642 +#: ../../library/multiprocessing.rst:1682 msgid "Return a ctypes object allocated from shared memory." msgstr "共有メモリから割り当てられた ctypes オブジェクトを返します。" -#: ../../library/multiprocessing.rst:1648 +#: ../../library/multiprocessing.rst:1688 msgid "" "Note that setting and getting the value is potentially non-atomic -- use :" "func:`Value` instead to make sure that access is automatically synchronized " @@ -2694,7 +2746,7 @@ msgstr "" "ださい。ロックを使用して自動的に同期化されたアクセスを保証するには :func:" "`Value` を使用してください。" -#: ../../library/multiprocessing.rst:1652 +#: ../../library/multiprocessing.rst:1692 msgid "" "Note that an array of :data:`ctypes.c_char` has ``value`` and ``raw`` " "attributes which allow one to use it to store and retrieve strings -- see " @@ -2704,7 +2756,7 @@ msgstr "" "``raw`` 属性を持っていることを覚えておいてください。詳細は :mod:`ctypes` を参" "照してください。" -#: ../../library/multiprocessing.rst:1658 +#: ../../library/multiprocessing.rst:1698 msgid "" "The same as :func:`RawArray` except that depending on the value of *lock* a " "process-safe synchronization wrapper may be returned instead of a raw ctypes " @@ -2713,8 +2765,8 @@ msgstr "" ":func:`RawArray` と同様ですが、 *lock* の値によっては ctypes 配列をそのまま返" "す代わりに、プロセスセーフな同期ラッパーが返されます。" -#: ../../library/multiprocessing.rst:1662 -#: ../../library/multiprocessing.rst:1678 +#: ../../library/multiprocessing.rst:1702 +#: ../../library/multiprocessing.rst:1718 msgid "" "If *lock* is ``True`` (the default) then a new lock object is created to " "synchronize access to the value. If *lock* is a :class:`~multiprocessing." @@ -2729,7 +2781,7 @@ msgstr "" "が ``False`` なら、返された オブジェクトへのアクセスはロックにより自動的に保" "護されません。 そのため、必ずしも \"プロセスセーフ\" ではありません。" -#: ../../library/multiprocessing.rst:1674 +#: ../../library/multiprocessing.rst:1714 msgid "" "The same as :func:`RawValue` except that depending on the value of *lock* a " "process-safe synchronization wrapper may be returned instead of a raw ctypes " @@ -2738,7 +2790,7 @@ msgstr "" ":func:`RawValue` と同様ですが、 *lock* の値によっては ctypes オブジェクトをそ" "のまま返す代わりに、プロセスセーフな同期ラッパーが返されます。" -#: ../../library/multiprocessing.rst:1689 +#: ../../library/multiprocessing.rst:1729 msgid "" "Return a ctypes object allocated from shared memory which is a copy of the " "ctypes object *obj*." @@ -2746,7 +2798,7 @@ msgstr "" "共有メモリから割り当てられた ctypes オブジェクト *obj* をコピーしたオブジェク" "トを返します。" -#: ../../library/multiprocessing.rst:1694 +#: ../../library/multiprocessing.rst:1734 msgid "" "Return a process-safe wrapper object for a ctypes object which uses *lock* " "to synchronize access. If *lock* is ``None`` (the default) then a :class:" @@ -2756,7 +2808,7 @@ msgstr "" "ラッパーオブジェクトを返します。 *lock* が ``None`` (デフォルト) なら、 :" "class:`multiprocessing.RLock` オブジェクトが自動的に作成されます。" -#: ../../library/multiprocessing.rst:1698 +#: ../../library/multiprocessing.rst:1738 msgid "" "A synchronized wrapper will have two methods in addition to those of the " "object it wraps: :meth:`get_obj` returns the wrapped object and :meth:" @@ -2766,7 +2818,7 @@ msgstr "" "`get_obj` はラップされたオブジェクトを返します。 :meth:`get_lock` は同期のた" "めに使用されるロックオブジェクトを返します。" -#: ../../library/multiprocessing.rst:1702 +#: ../../library/multiprocessing.rst:1742 msgid "" "Note that accessing the ctypes object through the wrapper can be a lot " "slower than accessing the raw ctypes object." @@ -2774,13 +2826,13 @@ msgstr "" "ラッパー経由で ctypes オブジェクトにアクセスすることは raw ctypes オブジェク" "トへアクセスするよりずっと遅くなることに注意してください。" -#: ../../library/multiprocessing.rst:1705 +#: ../../library/multiprocessing.rst:1745 msgid "Synchronized objects support the :term:`context manager` protocol." msgstr "" "synchronized オブジェクトは :term:`コンテキストマネージャ ` " "プロトコルをサポートしています。" -#: ../../library/multiprocessing.rst:1709 +#: ../../library/multiprocessing.rst:1749 msgid "" "The table below compares the syntax for creating shared ctypes objects from " "shared memory with the normal ctypes syntax. (In the table ``MyStruct`` is " @@ -2790,69 +2842,69 @@ msgstr "" "ための構文を比較します。 (``MyStruct`` テーブル内には :class:`ctypes." "Structure` のサブクラスがあります。)" -#: ../../library/multiprocessing.rst:1714 +#: ../../library/multiprocessing.rst:1754 msgid "ctypes" msgstr "ctypes" -#: ../../library/multiprocessing.rst:1714 +#: ../../library/multiprocessing.rst:1754 msgid "sharedctypes using type" msgstr "type を使用する sharedctypes" -#: ../../library/multiprocessing.rst:1714 +#: ../../library/multiprocessing.rst:1754 msgid "sharedctypes using typecode" msgstr "typecode を使用する sharedctypes" -#: ../../library/multiprocessing.rst:1716 +#: ../../library/multiprocessing.rst:1756 msgid "c_double(2.4)" msgstr "c_double(2.4)" -#: ../../library/multiprocessing.rst:1716 +#: ../../library/multiprocessing.rst:1756 msgid "RawValue(c_double, 2.4)" msgstr "RawValue(c_double, 2.4)" -#: ../../library/multiprocessing.rst:1716 +#: ../../library/multiprocessing.rst:1756 msgid "RawValue('d', 2.4)" msgstr "RawValue('d', 2.4)" -#: ../../library/multiprocessing.rst:1717 +#: ../../library/multiprocessing.rst:1757 msgid "MyStruct(4, 6)" msgstr "MyStruct(4, 6)" -#: ../../library/multiprocessing.rst:1717 +#: ../../library/multiprocessing.rst:1757 msgid "RawValue(MyStruct, 4, 6)" msgstr "RawValue(MyStruct, 4, 6)" -#: ../../library/multiprocessing.rst:1718 +#: ../../library/multiprocessing.rst:1758 msgid "(c_short * 7)()" msgstr "(c_short * 7)()" -#: ../../library/multiprocessing.rst:1718 +#: ../../library/multiprocessing.rst:1758 msgid "RawArray(c_short, 7)" msgstr "RawArray(c_short, 7)" -#: ../../library/multiprocessing.rst:1718 +#: ../../library/multiprocessing.rst:1758 msgid "RawArray('h', 7)" msgstr "RawArray('h', 7)" -#: ../../library/multiprocessing.rst:1719 +#: ../../library/multiprocessing.rst:1759 msgid "(c_int * 3)(9, 2, 8)" msgstr "(c_int * 3)(9, 2, 8)" -#: ../../library/multiprocessing.rst:1719 +#: ../../library/multiprocessing.rst:1759 msgid "RawArray(c_int, (9, 2, 8))" msgstr "RawArray(c_int, (9, 2, 8))" -#: ../../library/multiprocessing.rst:1719 +#: ../../library/multiprocessing.rst:1759 msgid "RawArray('i', (9, 2, 8))" msgstr "RawArray('i', (9, 2, 8))" -#: ../../library/multiprocessing.rst:1723 +#: ../../library/multiprocessing.rst:1763 msgid "" "Below is an example where a number of ctypes objects are modified by a child " "process::" msgstr "以下に子プロセスが多くの ctypes オブジェクトを変更する例を紹介します::" -#: ../../library/multiprocessing.rst:1726 +#: ../../library/multiprocessing.rst:1766 msgid "" "from multiprocessing import Process, Lock\n" "from multiprocessing.sharedctypes import Value, Array\n" @@ -2887,11 +2939,11 @@ msgid "" " print([(a.x, a.y) for a in A])" msgstr "" -#: ../../library/multiprocessing.rst:1761 +#: ../../library/multiprocessing.rst:1801 msgid "The results printed are ::" msgstr "結果は以下のように表示されます ::" -#: ../../library/multiprocessing.rst:1763 +#: ../../library/multiprocessing.rst:1803 msgid "" "49\n" "0.1111111111111111\n" @@ -2899,11 +2951,11 @@ msgid "" "[(3.515625, 39.0625), (33.0625, 4.0), (5.640625, 90.25)]" msgstr "" -#: ../../library/multiprocessing.rst:1774 +#: ../../library/multiprocessing.rst:1814 msgid "Managers" msgstr "マネージャー" -#: ../../library/multiprocessing.rst:1776 +#: ../../library/multiprocessing.rst:1816 msgid "" "Managers provide a way to create data which can be shared between different " "processes, including sharing over a network between processes running on " @@ -2917,7 +2969,7 @@ msgstr "" "す。他のプロセスはプロキシ経由で共有オブジェクトへアクセスすることができま" "す。" -#: ../../library/multiprocessing.rst:1785 +#: ../../library/multiprocessing.rst:1825 msgid "" "Returns a started :class:`~multiprocessing.managers.SyncManager` object " "which can be used for sharing objects between processes. The returned " @@ -2929,7 +2981,7 @@ msgstr "" "トは生成される子プロセスに対応付けられ、共有オブジェクトを作成するメソッド" "や、共有オブジェクトに対応するプロキシを返すメソッドを持ちます。" -#: ../../library/multiprocessing.rst:1793 +#: ../../library/multiprocessing.rst:1833 msgid "" "Manager processes will be shutdown as soon as they are garbage collected or " "their parent process exits. The manager classes are defined in the :mod:" @@ -2939,11 +2991,11 @@ msgstr "" "ます。マネージャークラスは :mod:`multiprocessing.managers` モジュールで定義さ" "れています:" -#: ../../library/multiprocessing.rst:1799 +#: ../../library/multiprocessing.rst:1839 msgid "Create a BaseManager object." msgstr "BaseManager オブジェクトを作成します。" -#: ../../library/multiprocessing.rst:1801 +#: ../../library/multiprocessing.rst:1841 msgid "" "Once created one should call :meth:`start` or ``get_server()." "serve_forever()`` to ensure that the manager object refers to a started " @@ -2953,7 +3005,7 @@ msgstr "" "マネージャーオブジェクトが、開始されたマネージャープロセスを確実に参照するよ" "うにしてください。" -#: ../../library/multiprocessing.rst:1804 +#: ../../library/multiprocessing.rst:1844 msgid "" "*address* is the address on which the manager process listens for new " "connections. If *address* is ``None`` then an arbitrary one is chosen." @@ -2961,7 +3013,7 @@ msgstr "" "*address* はマネージャープロセスが新たなコネクションを待ち受けるアドレスで" "す。*address* が ``None`` の場合、任意のアドレスが設定されます。" -#: ../../library/multiprocessing.rst:1807 +#: ../../library/multiprocessing.rst:1847 msgid "" "*authkey* is the authentication key which will be used to check the validity " "of incoming connections to the server process. If *authkey* is ``None`` " @@ -2973,19 +3025,19 @@ msgstr "" "``current_process().authkey`` が使用されます。*authkey* を使用する場合はバイ" "ト文字列でなければなりません。" -#: ../../library/multiprocessing.rst:1812 +#: ../../library/multiprocessing.rst:1852 msgid "" "*serializer* must be ``'pickle'`` (use :mod:`pickle` serialization) or " "``'xmlrpclib'`` (use :mod:`xmlrpc.client` serialization)." msgstr "" -#: ../../library/multiprocessing.rst:1815 +#: ../../library/multiprocessing.rst:1855 msgid "" "*ctx* is a context object, or ``None`` (use the current context). See the :" "func:`get_context` function." msgstr "" -#: ../../library/multiprocessing.rst:1818 +#: ../../library/multiprocessing.rst:1858 msgid "" "*shutdown_timeout* is a timeout in seconds used to wait until the process " "used by the manager completes in the :meth:`shutdown` method. If the " @@ -2993,11 +3045,11 @@ msgid "" "also times out, the process is killed." msgstr "" -#: ../../library/multiprocessing.rst:1823 +#: ../../library/multiprocessing.rst:1863 msgid "Added the *shutdown_timeout* parameter." msgstr "*shutdown_timeout* パラメータを追加しました。" -#: ../../library/multiprocessing.rst:1828 +#: ../../library/multiprocessing.rst:1868 msgid "" "Start a subprocess to start the manager. If *initializer* is not ``None`` " "then the subprocess will call ``initializer(*initargs)`` when it starts." @@ -3006,7 +3058,7 @@ msgstr "" "``None`` でなければ、サブプロセスは開始時に ``initializer(*initargs)`` を呼び" "出します。" -#: ../../library/multiprocessing.rst:1833 +#: ../../library/multiprocessing.rst:1873 msgid "" "Returns a :class:`Server` object which represents the actual server under " "the control of the Manager. The :class:`Server` object supports the :meth:" @@ -3016,7 +3068,7 @@ msgstr "" "返します。 :class:`Server` オブジェクトは :meth:`serve_forever` メソッドをサ" "ポートします::" -#: ../../library/multiprocessing.rst:1837 +#: ../../library/multiprocessing.rst:1877 msgid "" ">>> from multiprocessing.managers import BaseManager\n" ">>> manager = BaseManager(address=('', 50000), authkey=b'abc')\n" @@ -3024,22 +3076,22 @@ msgid "" ">>> server.serve_forever()" msgstr "" -#: ../../library/multiprocessing.rst:1842 +#: ../../library/multiprocessing.rst:1882 msgid ":class:`Server` additionally has an :attr:`address` attribute." msgstr ":class:`Server` はさらに :attr:`address` 属性も持っています。" -#: ../../library/multiprocessing.rst:1846 +#: ../../library/multiprocessing.rst:1886 msgid "Connect a local manager object to a remote manager process::" msgstr "ローカルからリモートのマネージャーオブジェクトへ接続します::" -#: ../../library/multiprocessing.rst:1848 +#: ../../library/multiprocessing.rst:1888 msgid "" ">>> from multiprocessing.managers import BaseManager\n" ">>> m = BaseManager(address=('127.0.0.1', 50000), authkey=b'abc')\n" ">>> m.connect()" msgstr "" -#: ../../library/multiprocessing.rst:1854 +#: ../../library/multiprocessing.rst:1894 msgid "" "Stop the process used by the manager. This is only available if :meth:" "`start` has been used to start the server process." @@ -3047,11 +3099,11 @@ msgstr "" "マネージャーが使用するプロセスを停止します。これはサーバープロセスを開始する" "ために :meth:`start` が使用された場合のみ有効です。" -#: ../../library/multiprocessing.rst:1857 +#: ../../library/multiprocessing.rst:1897 msgid "This can be called multiple times." msgstr "これは複数回呼び出すことができます。" -#: ../../library/multiprocessing.rst:1861 +#: ../../library/multiprocessing.rst:1901 msgid "" "A classmethod which can be used for registering a type or callable with the " "manager class." @@ -3059,7 +3111,7 @@ msgstr "" "マネージャークラスで呼び出し可能オブジェクト(callable)や型を登録するために使" "用されるクラスメソッドです。" -#: ../../library/multiprocessing.rst:1864 +#: ../../library/multiprocessing.rst:1904 msgid "" "*typeid* is a \"type identifier\" which is used to identify a particular " "type of shared object. This must be a string." @@ -3067,7 +3119,7 @@ msgstr "" "*typeid* は特に共有オブジェクトの型を識別するために使用される \"型識別子\" で" "す。これは文字列でなければなりません。" -#: ../../library/multiprocessing.rst:1867 +#: ../../library/multiprocessing.rst:1907 msgid "" "*callable* is a callable used for creating objects for this type " "identifier. If a manager instance will be connected to the server using " @@ -3079,7 +3131,7 @@ msgstr "" "サーバーに接続されているか、 *create_method* 引数が ``False`` の場合は、 " "``None`` でも構いません。" -#: ../../library/multiprocessing.rst:1873 +#: ../../library/multiprocessing.rst:1913 msgid "" "*proxytype* is a subclass of :class:`BaseProxy` which is used to create " "proxies for shared objects with this *typeid*. If ``None`` then a proxy " @@ -3089,7 +3141,7 @@ msgstr "" "される :class:`BaseProxy` のサブクラスです。 ``None`` の場合、プロキシクラス" "は自動的に作成されます。" -#: ../../library/multiprocessing.rst:1877 +#: ../../library/multiprocessing.rst:1917 msgid "" "*exposed* is used to specify a sequence of method names which proxies for " "this typeid should be allowed to access using :meth:`BaseProxy." @@ -3107,7 +3159,7 @@ msgstr "" "リックメソッド\" とは :meth:`~object.__call__` メソッドを持つものと名前が " "``'_'`` で始まらないあらゆる属性を意味します。)" -#: ../../library/multiprocessing.rst:1886 +#: ../../library/multiprocessing.rst:1926 msgid "" "*method_to_typeid* is a mapping used to specify the return type of those " "exposed methods which should return a proxy. It maps method names to typeid " @@ -3123,7 +3175,7 @@ msgstr "" "ではないか、マッピングが ``None`` の場合、そのメソッドによって返されるオブ" "ジェクトが値として (by value) コピーされます。" -#: ../../library/multiprocessing.rst:1893 +#: ../../library/multiprocessing.rst:1933 msgid "" "*create_method* determines whether a method should be created with name " "*typeid* which can be used to tell the server process to create a new shared " @@ -3133,15 +3185,15 @@ msgstr "" "サーバープロセスに伝える、名前 *typeid* のメソッドを作成するかを決定します。" "デフォルトでは ``True`` です。" -#: ../../library/multiprocessing.rst:1897 +#: ../../library/multiprocessing.rst:1937 msgid ":class:`BaseManager` instances also have one read-only property:" msgstr ":class:`BaseManager` インスタンスも読み出し専用属性を1つ持っています:" -#: ../../library/multiprocessing.rst:1901 +#: ../../library/multiprocessing.rst:1941 msgid "The address used by the manager." msgstr "マネージャーが使用するアドレスです。" -#: ../../library/multiprocessing.rst:1903 +#: ../../library/multiprocessing.rst:1943 msgid "" "Manager objects support the context management protocol -- see :ref:" "`typecontextmanager`. :meth:`~contextmanager.__enter__` starts the server " @@ -3154,7 +3206,7 @@ msgstr "" "始してから、マネージャーオブジェクトを返します。 :meth:`~contextmanager." "__exit__` は :meth:`shutdown` を呼び出します。" -#: ../../library/multiprocessing.rst:1909 +#: ../../library/multiprocessing.rst:1949 msgid "" "In previous versions :meth:`~contextmanager.__enter__` did not start the " "manager's server process if it was not already started." @@ -3162,7 +3214,7 @@ msgstr "" "旧バージョンでは、 :meth:`~contextmanager.__enter__` はマネージャーのサーバー" "プロセスがまだ開始していなかった場合でもプロセスを開始しませんでした。" -#: ../../library/multiprocessing.rst:1914 +#: ../../library/multiprocessing.rst:1954 msgid "" "A subclass of :class:`BaseManager` which can be used for the synchronization " "of processes. Objects of this type are returned by :func:`multiprocessing." @@ -3171,21 +3223,21 @@ msgstr "" "プロセス間の同期のために使用される :class:`BaseManager` のサブクラスです。 :" "func:`multiprocessing.Manager` はこの型のオブジェクトを返します。" -#: ../../library/multiprocessing.rst:1918 +#: ../../library/multiprocessing.rst:1958 msgid "" "Its methods create and return :ref:`multiprocessing-proxy_objects` for a " "number of commonly used data types to be synchronized across processes. This " "notably includes shared lists and dictionaries." msgstr "" -#: ../../library/multiprocessing.rst:1924 +#: ../../library/multiprocessing.rst:1964 msgid "" "Create a shared :class:`threading.Barrier` object and return a proxy for it." msgstr "" "共有 :class:`threading.Barrier` オブジェクトを作成して、そのプロキシを返しま" "す。" -#: ../../library/multiprocessing.rst:1931 +#: ../../library/multiprocessing.rst:1971 msgid "" "Create a shared :class:`threading.BoundedSemaphore` object and return a " "proxy for it." @@ -3193,7 +3245,7 @@ msgstr "" "共有 :class:`threading.BoundedSemaphore` オブジェクトを作成して、そのプロキシ" "を返します。" -#: ../../library/multiprocessing.rst:1936 +#: ../../library/multiprocessing.rst:1976 msgid "" "Create a shared :class:`threading.Condition` object and return a proxy for " "it." @@ -3201,7 +3253,7 @@ msgstr "" "共有 :class:`threading.Condition` オブジェクトを作成して、そのプロキシを返し" "ます。" -#: ../../library/multiprocessing.rst:1939 +#: ../../library/multiprocessing.rst:1979 msgid "" "If *lock* is supplied then it should be a proxy for a :class:`threading." "Lock` or :class:`threading.RLock` object." @@ -3209,37 +3261,37 @@ msgstr "" "*lock* が提供される場合 :class:`threading.Lock` か :class:`threading.RLock` " "オブジェクトのためのプロキシになります。" -#: ../../library/multiprocessing.rst:1947 +#: ../../library/multiprocessing.rst:1987 msgid "" "Create a shared :class:`threading.Event` object and return a proxy for it." msgstr "" "共有 :class:`threading.Event` オブジェクトを作成して、そのプロキシを返しま" "す。" -#: ../../library/multiprocessing.rst:1951 +#: ../../library/multiprocessing.rst:1991 msgid "" "Create a shared :class:`threading.Lock` object and return a proxy for it." msgstr "" "共有 :class:`threading.Lock` オブジェクトを作成して、そのプロキシを返します。" -#: ../../library/multiprocessing.rst:1955 +#: ../../library/multiprocessing.rst:1995 msgid "Create a shared :class:`Namespace` object and return a proxy for it." msgstr "" "共有 :class:`Namespace` オブジェクトを作成して、そのプロキシを返します。" -#: ../../library/multiprocessing.rst:1959 +#: ../../library/multiprocessing.rst:1999 msgid "Create a shared :class:`queue.Queue` object and return a proxy for it." msgstr "" "共有 :class:`queue.Queue` オブジェクトを作成して、そのプロキシを返します。" -#: ../../library/multiprocessing.rst:1963 +#: ../../library/multiprocessing.rst:2003 msgid "" "Create a shared :class:`threading.RLock` object and return a proxy for it." msgstr "" "共有 :class:`threading.RLock` オブジェクトを作成して、そのプロキシを返しま" "す。" -#: ../../library/multiprocessing.rst:1967 +#: ../../library/multiprocessing.rst:2007 msgid "" "Create a shared :class:`threading.Semaphore` object and return a proxy for " "it." @@ -3247,33 +3299,33 @@ msgstr "" "共有 :class:`threading.Semaphore` オブジェクトを作成して、そのプロキシを返し" "ます。" -#: ../../library/multiprocessing.rst:1972 +#: ../../library/multiprocessing.rst:2012 msgid "Create an array and return a proxy for it." msgstr "配列を作成して、そのプロキシを返します。" -#: ../../library/multiprocessing.rst:1976 +#: ../../library/multiprocessing.rst:2016 msgid "" "Create an object with a writable ``value`` attribute and return a proxy for " "it." msgstr "書き込み可能な ``value`` 属性を作成して、そのプロキシを返します。" -#: ../../library/multiprocessing.rst:1983 +#: ../../library/multiprocessing.rst:2023 msgid "Create a shared :class:`dict` object and return a proxy for it." msgstr "共有 :class:`dict` オブジェクトを作成して、そのプロキシを返します。" -#: ../../library/multiprocessing.rst:1988 +#: ../../library/multiprocessing.rst:2028 msgid "Create a shared :class:`list` object and return a proxy for it." msgstr "共有 :class:`list` オブジェクトを作成して、そのプロキシを返します。" -#: ../../library/multiprocessing.rst:1994 +#: ../../library/multiprocessing.rst:2034 msgid "Create a shared :class:`set` object and return a proxy for it." msgstr "" -#: ../../library/multiprocessing.rst:1996 +#: ../../library/multiprocessing.rst:2036 msgid ":class:`set` support was added." msgstr "" -#: ../../library/multiprocessing.rst:1999 +#: ../../library/multiprocessing.rst:2039 msgid "" "Shared objects are capable of being nested. For example, a shared container " "object such as a shared list can contain other shared objects which will all " @@ -3283,11 +3335,11 @@ msgstr "" "例えば、共有リストのような共有コンテナオブジェクトは、 :class:`SyncManager` " "がまとめて管理し同期を取っている他の共有オブジェクトを保持できます。" -#: ../../library/multiprocessing.rst:2006 +#: ../../library/multiprocessing.rst:2046 msgid "A type that can register with :class:`SyncManager`." msgstr ":class:`SyncManager` に登録することのできる型です。" -#: ../../library/multiprocessing.rst:2008 +#: ../../library/multiprocessing.rst:2048 msgid "" "A namespace object has no public methods, but does have writable attributes. " "Its representation shows the values of its attributes." @@ -3295,7 +3347,7 @@ msgstr "" "Namespace オブジェクトにはパブリックなメソッドはありませんが、書き込み可能な" "属性を持ちます。そのオブジェクト表現はその属性の値を表示します。" -#: ../../library/multiprocessing.rst:2011 +#: ../../library/multiprocessing.rst:2051 msgid "" "However, when using a proxy for a namespace object, an attribute beginning " "with ``'_'`` will be an attribute of the proxy and not an attribute of the " @@ -3304,7 +3356,7 @@ msgstr "" "しかし、Namespace オブジェクトのためにプロキシを使用するとき ``'_'`` が先頭に" "付く属性はプロキシの属性になり、参照対象の属性にはなりません:" -#: ../../library/multiprocessing.rst:2015 +#: ../../library/multiprocessing.rst:2055 msgid "" ">>> mp_context = multiprocessing.get_context('spawn')\n" ">>> manager = mp_context.Manager()\n" @@ -3316,11 +3368,11 @@ msgid "" "Namespace(x=10, y='hello')" msgstr "" -#: ../../library/multiprocessing.rst:2028 +#: ../../library/multiprocessing.rst:2068 msgid "Customized managers" msgstr "カスタマイズされたマネージャー" -#: ../../library/multiprocessing.rst:2030 +#: ../../library/multiprocessing.rst:2070 msgid "" "To create one's own manager, one creates a subclass of :class:`BaseManager` " "and uses the :meth:`~BaseManager.register` classmethod to register new types " @@ -3330,7 +3382,7 @@ msgstr "" "て、 マネージャークラスで呼び出し可能なオブジェクトか新たな型を登録するため" "に :meth:`~BaseManager.register` クラスメソッドを使用します。例えば::" -#: ../../library/multiprocessing.rst:2034 +#: ../../library/multiprocessing.rst:2074 msgid "" "from multiprocessing.managers import BaseManager\n" "\n" @@ -3352,11 +3404,11 @@ msgid "" " print(maths.mul(7, 8)) # prints 56" msgstr "" -#: ../../library/multiprocessing.rst:2055 +#: ../../library/multiprocessing.rst:2095 msgid "Using a remote manager" msgstr "リモートマネージャーを使用する" -#: ../../library/multiprocessing.rst:2057 +#: ../../library/multiprocessing.rst:2097 msgid "" "It is possible to run a manager server on one machine and have clients use " "it from other machines (assuming that the firewalls involved allow it)." @@ -3365,7 +3417,7 @@ msgstr "" "用するクライアントを持つことができます(ファイアウォールを通過できることが前" "提)。" -#: ../../library/multiprocessing.rst:2060 +#: ../../library/multiprocessing.rst:2100 msgid "" "Running the following commands creates a server for a single shared queue " "which remote clients can access::" @@ -3373,7 +3425,7 @@ msgstr "" "次のコマンドを実行することでリモートクライアントからアクセスを受け付ける1つの" "共有キューのためにサーバーを作成します::" -#: ../../library/multiprocessing.rst:2063 +#: ../../library/multiprocessing.rst:2103 msgid "" ">>> from multiprocessing.managers import BaseManager\n" ">>> from queue import Queue\n" @@ -3385,11 +3437,11 @@ msgid "" ">>> s.serve_forever()" msgstr "" -#: ../../library/multiprocessing.rst:2072 +#: ../../library/multiprocessing.rst:2112 msgid "One client can access the server as follows::" msgstr "あるクライアントからサーバーへのアクセスは次のようになります::" -#: ../../library/multiprocessing.rst:2074 +#: ../../library/multiprocessing.rst:2114 msgid "" ">>> from multiprocessing.managers import BaseManager\n" ">>> class QueueManager(BaseManager): pass\n" @@ -3401,11 +3453,11 @@ msgid "" ">>> queue.put('hello')" msgstr "" -#: ../../library/multiprocessing.rst:2082 +#: ../../library/multiprocessing.rst:2122 msgid "Another client can also use it::" msgstr "別のクライアントもそれを使用することができます::" -#: ../../library/multiprocessing.rst:2084 +#: ../../library/multiprocessing.rst:2124 msgid "" ">>> from multiprocessing.managers import BaseManager\n" ">>> class QueueManager(BaseManager): pass\n" @@ -3418,7 +3470,7 @@ msgid "" "'hello'" msgstr "" -#: ../../library/multiprocessing.rst:2093 +#: ../../library/multiprocessing.rst:2133 msgid "" "Local processes can also access that queue, using the code from above on the " "client to access it remotely::" @@ -3426,7 +3478,7 @@ msgstr "" "ローカルプロセスもそのキューへアクセスすることができます。クライアント上で上" "述のコードを使用してアクセスします::" -#: ../../library/multiprocessing.rst:2096 +#: ../../library/multiprocessing.rst:2136 msgid "" ">>> from multiprocessing import Process, Queue\n" ">>> from multiprocessing.managers import BaseManager\n" @@ -3448,11 +3500,11 @@ msgid "" ">>> s.serve_forever()" msgstr "" -#: ../../library/multiprocessing.rst:2118 +#: ../../library/multiprocessing.rst:2158 msgid "Proxy Objects" msgstr "Proxy オブジェクト" -#: ../../library/multiprocessing.rst:2120 +#: ../../library/multiprocessing.rst:2160 msgid "" "A proxy is an object which *refers* to a shared object which lives " "(presumably) in a different process. The shared object is said to be the " @@ -3462,7 +3514,7 @@ msgstr "" "ジェクトです。共有オブジェクトはプロキシの *参照対象* になるということができ" "ます。複数のプロキシオブジェクトが同じ参照対象を持つ可能性もあります。" -#: ../../library/multiprocessing.rst:2124 +#: ../../library/multiprocessing.rst:2164 msgid "" "A proxy object has methods which invoke corresponding methods of its " "referent (although not every method of the referent will necessarily be " @@ -3474,7 +3526,7 @@ msgstr "" "可能なわけではありません)。\n" "この方法で、プロキシオブジェクトはまるでその参照先と同じように使えます:" -#: ../../library/multiprocessing.rst:2128 +#: ../../library/multiprocessing.rst:2168 msgid "" ">>> mp_context = multiprocessing.get_context('spawn')\n" ">>> manager = mp_context.Manager()\n" @@ -3489,7 +3541,7 @@ msgid "" "[4, 9, 16]" msgstr "" -#: ../../library/multiprocessing.rst:2142 +#: ../../library/multiprocessing.rst:2182 msgid "" "Notice that applying :func:`str` to a proxy will return the representation " "of the referent, whereas applying :func:`repr` will return the " @@ -3499,7 +3551,7 @@ msgstr "" "て、 :func:`repr` を適用するとプロキシのオブジェクト表現を返すことに注意して" "ください。" -#: ../../library/multiprocessing.rst:2146 +#: ../../library/multiprocessing.rst:2186 msgid "" "An important feature of proxy objects is that they are picklable so they can " "be passed between processes. As such, a referent can contain :ref:" @@ -3512,7 +3564,7 @@ msgstr "" "これによって管理されたリスト、辞書、その他 :ref:`multiprocessing-" "proxy_objects` をネストできます:" -#: ../../library/multiprocessing.rst:2151 +#: ../../library/multiprocessing.rst:2191 msgid "" ">>> a = manager.list()\n" ">>> b = manager.list()\n" @@ -3524,12 +3576,12 @@ msgid "" "['hello'] ['hello']" msgstr "" -#: ../../library/multiprocessing.rst:2162 +#: ../../library/multiprocessing.rst:2202 msgid "Similarly, dict and list proxies may be nested inside one another::" msgstr "" "同様に、辞書とリストのプロキシも他のプロキシの内部に入れてネストできます::" -#: ../../library/multiprocessing.rst:2164 +#: ../../library/multiprocessing.rst:2204 msgid "" ">>> l_outer = manager.list([ manager.dict() for i in range(2) ])\n" ">>> d_first_inner = l_outer[0]\n" @@ -3543,7 +3595,7 @@ msgid "" "{'c': 3, 'z': 26}" msgstr "" -#: ../../library/multiprocessing.rst:2175 +#: ../../library/multiprocessing.rst:2215 msgid "" "If standard (non-proxy) :class:`list` or :class:`dict` objects are contained " "in a referent, modifications to those mutable values will not be propagated " @@ -3562,7 +3614,7 @@ msgstr "" "``__setitem__`` を起動します) 場合はマネージャーを通して変更が伝搬され、その" "要素を実際に変更するために、コンテナプロキシに変更後の値が再代入されます::" -#: ../../library/multiprocessing.rst:2183 +#: ../../library/multiprocessing.rst:2223 msgid "" "# create a list proxy and append a mutable object (a dictionary)\n" "lproxy = manager.list()\n" @@ -3576,14 +3628,14 @@ msgid "" "lproxy[0] = d" msgstr "" -#: ../../library/multiprocessing.rst:2194 +#: ../../library/multiprocessing.rst:2234 msgid "" "This approach is perhaps less convenient than employing nested :ref:" "`multiprocessing-proxy_objects` for most use cases but also demonstrates a " "level of control over the synchronization." msgstr "" -#: ../../library/multiprocessing.rst:2200 +#: ../../library/multiprocessing.rst:2240 msgid "" "The proxy types in :mod:`multiprocessing` do nothing to support comparisons " "by value. So, for instance, we have:" @@ -3591,48 +3643,48 @@ msgstr "" ":mod:`multiprocessing` のプロキシ型は値による比較に対して何もサポートしませ" "ん。そのため、例えば以下のようになります:" -#: ../../library/multiprocessing.rst:2203 +#: ../../library/multiprocessing.rst:2243 msgid "" ">>> manager.list([1,2,3]) == [1,2,3]\n" "False" msgstr "" -#: ../../library/multiprocessing.rst:2208 +#: ../../library/multiprocessing.rst:2248 msgid "" "One should just use a copy of the referent instead when making comparisons." msgstr "比較を行いたいときは参照対象のコピーを使用してください。" -#: ../../library/multiprocessing.rst:2212 +#: ../../library/multiprocessing.rst:2252 msgid "Proxy objects are instances of subclasses of :class:`BaseProxy`." msgstr "" "プロキシオブジェクトは :class:`BaseProxy` のサブクラスのインスタンスです。" -#: ../../library/multiprocessing.rst:2216 +#: ../../library/multiprocessing.rst:2256 msgid "Call and return the result of a method of the proxy's referent." msgstr "プロキシの参照対象のメソッドの実行結果を返します。" -#: ../../library/multiprocessing.rst:2218 +#: ../../library/multiprocessing.rst:2258 msgid "" "If ``proxy`` is a proxy whose referent is ``obj`` then the expression ::" msgstr "``proxy`` がプロキシで、プロキシ内の参照対象が ``obj`` ならこの式 ::" -#: ../../library/multiprocessing.rst:2220 +#: ../../library/multiprocessing.rst:2260 msgid "proxy._callmethod(methodname, args, kwds)" msgstr "" -#: ../../library/multiprocessing.rst:2222 +#: ../../library/multiprocessing.rst:2262 msgid "will evaluate the expression ::" msgstr "はこの式を評価します ::" -#: ../../library/multiprocessing.rst:2224 +#: ../../library/multiprocessing.rst:2264 msgid "getattr(obj, methodname)(*args, **kwds)" msgstr "" -#: ../../library/multiprocessing.rst:2226 +#: ../../library/multiprocessing.rst:2266 msgid "in the manager's process." msgstr "(マネージャープロセス内の)。" -#: ../../library/multiprocessing.rst:2228 +#: ../../library/multiprocessing.rst:2268 msgid "" "The returned value will be a copy of the result of the call or a proxy to a " "new shared object -- see documentation for the *method_to_typeid* argument " @@ -3642,7 +3694,7 @@ msgstr "" "シになります。詳細は :meth:`BaseManager.register` の *method_to_typeid* 引数" "のドキュメントを参照してください。" -#: ../../library/multiprocessing.rst:2232 +#: ../../library/multiprocessing.rst:2272 msgid "" "If an exception is raised by the call, then is re-raised by :meth:" "`_callmethod`. If some other exception is raised in the manager's process " @@ -3654,7 +3706,7 @@ msgstr "" "`RemoteError` 例外に変換されたものが :meth:`_callmethod` によって送出されま" "す。" -#: ../../library/multiprocessing.rst:2237 +#: ../../library/multiprocessing.rst:2277 msgid "" "Note in particular that an exception will be raised if *methodname* has not " "been *exposed*." @@ -3662,11 +3714,11 @@ msgstr "" "特に *methodname* が *公開* されていない場合は例外が発生することに注意してく" "ださい。" -#: ../../library/multiprocessing.rst:2240 +#: ../../library/multiprocessing.rst:2280 msgid "An example of the usage of :meth:`_callmethod`:" msgstr ":meth:`_callmethod` の使用例になります:" -#: ../../library/multiprocessing.rst:2242 +#: ../../library/multiprocessing.rst:2282 msgid "" ">>> l = manager.list(range(10))\n" ">>> l._callmethod('__len__')\n" @@ -3679,27 +3731,27 @@ msgid "" "IndexError: list index out of range" msgstr "" -#: ../../library/multiprocessing.rst:2256 +#: ../../library/multiprocessing.rst:2296 msgid "Return a copy of the referent." msgstr "参照対象のコピーを返します。" -#: ../../library/multiprocessing.rst:2258 +#: ../../library/multiprocessing.rst:2298 msgid "If the referent is unpicklable then this will raise an exception." msgstr "参照対象が unpickle 化できるなら例外を発生します。" -#: ../../library/multiprocessing.rst:2262 +#: ../../library/multiprocessing.rst:2302 msgid "Return a representation of the proxy object." msgstr "プロキシオブジェクトのオブジェクト表現を返します。" -#: ../../library/multiprocessing.rst:2266 +#: ../../library/multiprocessing.rst:2306 msgid "Return the representation of the referent." msgstr "参照対象のオブジェクト表現を返します。" -#: ../../library/multiprocessing.rst:2270 +#: ../../library/multiprocessing.rst:2310 msgid "Cleanup" msgstr "クリーンアップ" -#: ../../library/multiprocessing.rst:2272 +#: ../../library/multiprocessing.rst:2312 msgid "" "A proxy object uses a weakref callback so that when it gets garbage " "collected it deregisters itself from the manager which owns its referent." @@ -3708,7 +3760,7 @@ msgstr "" "ジェクトがガベージコレクトされるときにその参照対象が所有するマネージャーから" "その登録を取り消せるようにするためです。" -#: ../../library/multiprocessing.rst:2275 +#: ../../library/multiprocessing.rst:2315 msgid "" "A shared object gets deleted from the manager process when there are no " "longer any proxies referring to it." @@ -3716,11 +3768,11 @@ msgstr "" "共有オブジェクトはプロキシが参照しなくなったときにマネージャープロセスから削" "除されます。" -#: ../../library/multiprocessing.rst:2280 +#: ../../library/multiprocessing.rst:2320 msgid "Process Pools" msgstr "プロセスプール" -#: ../../library/multiprocessing.rst:2285 +#: ../../library/multiprocessing.rst:2325 msgid "" "One can create a pool of processes which will carry out tasks submitted to " "it with the :class:`Pool` class." @@ -3728,7 +3780,7 @@ msgstr "" ":class:`Pool` クラスでタスクを実行するプロセスのプールを作成することができま" "す。" -#: ../../library/multiprocessing.rst:2290 +#: ../../library/multiprocessing.rst:2330 msgid "" "A process pool object which controls a pool of worker processes to which " "jobs can be submitted. It supports asynchronous results with timeouts and " @@ -3738,14 +3790,14 @@ msgstr "" "御します。タイムアウトやコールバックのある非同期の実行をサポートし、並列 map " "実装を持ちます。" -#: ../../library/multiprocessing.rst:2294 +#: ../../library/multiprocessing.rst:2334 msgid "" "*processes* is the number of worker processes to use. If *processes* is " "``None`` then the number returned by :func:`os.process_cpu_count` is used." msgstr "" -#: ../../library/multiprocessing.rst:2297 -#: ../../library/multiprocessing.rst:2861 +#: ../../library/multiprocessing.rst:2337 +#: ../../library/multiprocessing.rst:2901 msgid "" "If *initializer* is not ``None`` then each worker process will call " "``initializer(*initargs)`` when it starts." @@ -3753,7 +3805,7 @@ msgstr "" "*initializer* が ``None`` ではない場合、各ワーカープロセスは開始時に " "``initializer(*initargs)`` を呼び出します。" -#: ../../library/multiprocessing.rst:2300 +#: ../../library/multiprocessing.rst:2340 msgid "" "*maxtasksperchild* is the number of tasks a worker process can complete " "before it will exit and be replaced with a fresh worker process, to enable " @@ -3766,7 +3818,7 @@ msgstr "" "*maxtasksperchild* は ``None`` で、これはワーカープロセスがプールと同じ期間だ" "け生き続けるということを意味します。" -#: ../../library/multiprocessing.rst:2305 +#: ../../library/multiprocessing.rst:2345 msgid "" "*context* can be used to specify the context used for starting the worker " "processes. Usually a pool is created using the function :func:" @@ -3778,7 +3830,7 @@ msgstr "" "ジェクトの :meth:`Pool` メソッドを使用して作成されます。どちらの場合でも " "*context* は適切に設定されます。" -#: ../../library/multiprocessing.rst:2311 +#: ../../library/multiprocessing.rst:2351 msgid "" "Note that the methods of the pool object should only be called by the " "process which created the pool." @@ -3786,7 +3838,7 @@ msgstr "" "プールオブジェクトのメソッドは、そのプールを作成したプロセスのみが呼び出すべ" "きです。" -#: ../../library/multiprocessing.rst:2315 +#: ../../library/multiprocessing.rst:2355 msgid "" ":class:`multiprocessing.pool` objects have internal resources that need to " "be properly managed (like any other resource) by using the pool as a context " @@ -3794,28 +3846,28 @@ msgid "" "to do this can lead to the process hanging on finalization." msgstr "" -#: ../../library/multiprocessing.rst:2320 +#: ../../library/multiprocessing.rst:2360 msgid "" "Note that it is **not correct** to rely on the garbage collector to destroy " "the pool as CPython does not assure that the finalizer of the pool will be " "called (see :meth:`object.__del__` for more information)." msgstr "" -#: ../../library/multiprocessing.rst:2324 +#: ../../library/multiprocessing.rst:2364 msgid "Added the *maxtasksperchild* parameter." msgstr "" -#: ../../library/multiprocessing.rst:2327 +#: ../../library/multiprocessing.rst:2367 msgid "Added the *context* parameter." msgstr "*context* パラメータを追加しました。" -#: ../../library/multiprocessing.rst:2330 +#: ../../library/multiprocessing.rst:2370 msgid "" "*processes* uses :func:`os.process_cpu_count` by default, instead of :func:" "`os.cpu_count`." msgstr "" -#: ../../library/multiprocessing.rst:2336 +#: ../../library/multiprocessing.rst:2376 msgid "" "Worker processes within a :class:`Pool` typically live for the complete " "duration of the Pool's work queue. A frequent pattern found in other systems " @@ -3833,7 +3885,7 @@ msgstr "" "す。 :class:`Pool` の *maxtasksperchild* 引数は、この能力をエンドユーザーに提" "供します。" -#: ../../library/multiprocessing.rst:2346 +#: ../../library/multiprocessing.rst:2386 msgid "" "Call *func* with arguments *args* and keyword arguments *kwds*. It blocks " "until the result is ready. Given this blocks, :meth:`apply_async` is better " @@ -3845,7 +3897,7 @@ msgstr "" "行作業により適しています。加えて、 *func* は、プール内の1つのワーカーだけで実" "行されます。" -#: ../../library/multiprocessing.rst:2353 +#: ../../library/multiprocessing.rst:2393 msgid "" "A variant of the :meth:`apply` method which returns a :class:" "`~multiprocessing.pool.AsyncResult` object." @@ -3853,8 +3905,8 @@ msgstr "" ":meth:`apply` メソッドの派生版で :class:`~multiprocessing.pool.AsyncResult` " "オブジェクトを返します。" -#: ../../library/multiprocessing.rst:2356 -#: ../../library/multiprocessing.rst:2387 +#: ../../library/multiprocessing.rst:2396 +#: ../../library/multiprocessing.rst:2427 msgid "" "If *callback* is specified then it should be a callable which accepts a " "single argument. When the result becomes ready *callback* is applied to it, " @@ -3866,8 +3918,8 @@ msgstr "" "ジェクトに対して適用されます。ただし呼び出しが失敗した場合は、代わりに " "*error_callback* が適用されます。" -#: ../../library/multiprocessing.rst:2361 -#: ../../library/multiprocessing.rst:2392 +#: ../../library/multiprocessing.rst:2401 +#: ../../library/multiprocessing.rst:2432 msgid "" "If *error_callback* is specified then it should be a callable which accepts " "a single argument. If the target function fails, then the *error_callback* " @@ -3877,8 +3929,8 @@ msgstr "" "ジェクトでなければなりません。対象の関数が失敗した場合、例外インスタンスを" "伴って *error_callback* が呼ばれます。" -#: ../../library/multiprocessing.rst:2365 -#: ../../library/multiprocessing.rst:2396 +#: ../../library/multiprocessing.rst:2405 +#: ../../library/multiprocessing.rst:2436 msgid "" "Callbacks should complete immediately since otherwise the thread which " "handles the results will get blocked." @@ -3886,7 +3938,7 @@ msgstr "" "コールバックは直ちに完了すべきです。なぜなら、そうしなければ、結果を扱うス" "レッドがブロックするからです。" -#: ../../library/multiprocessing.rst:2370 +#: ../../library/multiprocessing.rst:2410 msgid "" "A parallel equivalent of the :func:`map` built-in function (it supports only " "one *iterable* argument though, for multiple iterables see :meth:`starmap`). " @@ -3896,7 +3948,7 @@ msgstr "" "という違いはあります。もしも複数のイテラブルを使いたいのならば :meth:" "`starmap` を参照)。結果が出るまでブロックします。" -#: ../../library/multiprocessing.rst:2374 +#: ../../library/multiprocessing.rst:2414 msgid "" "This method chops the iterable into a number of chunks which it submits to " "the process pool as separate tasks. The (approximate) size of these chunks " @@ -3906,14 +3958,14 @@ msgstr "" "れ独立したタスクとして送ります。(概算の) チャンクサイズは *chunksize* を正の" "整数に設定することで指定できます。" -#: ../../library/multiprocessing.rst:2378 +#: ../../library/multiprocessing.rst:2418 msgid "" "Note that it may cause high memory usage for very long iterables. Consider " "using :meth:`imap` or :meth:`imap_unordered` with explicit *chunksize* " "option for better efficiency." msgstr "" -#: ../../library/multiprocessing.rst:2384 +#: ../../library/multiprocessing.rst:2424 msgid "" "A variant of the :meth:`.map` method which returns a :class:" "`~multiprocessing.pool.AsyncResult` object." @@ -3921,11 +3973,11 @@ msgstr "" ":meth:`.map` メソッドの派生版で :class:`~multiprocessing.pool.AsyncResult` オ" "ブジェクトを返します。" -#: ../../library/multiprocessing.rst:2401 +#: ../../library/multiprocessing.rst:2441 msgid "A lazier version of :meth:`.map`." msgstr ":meth:`.map` の遅延評価版です。" -#: ../../library/multiprocessing.rst:2403 +#: ../../library/multiprocessing.rst:2443 msgid "" "The *chunksize* argument is the same as the one used by the :meth:`.map` " "method. For very long iterables using a large value for *chunksize* can " @@ -3935,7 +3987,7 @@ msgstr "" "iterable がとても長いなら *chunksize* に大きな値を指定して使用する方がデフォ" "ルト値の ``1`` を使用するよりもジョブの完了が **かなり** 速くなります。" -#: ../../library/multiprocessing.rst:2408 +#: ../../library/multiprocessing.rst:2448 msgid "" "Also if *chunksize* is ``1`` then the :meth:`!next` method of the iterator " "returned by the :meth:`imap` method has an optional *timeout* parameter: " @@ -3947,7 +3999,7 @@ msgstr "" "``next(timeout)`` は、その結果が *timeout* 秒以内に返されないときに :exc:" "`multiprocessing.TimeoutError` を発生させます。" -#: ../../library/multiprocessing.rst:2415 +#: ../../library/multiprocessing.rst:2455 msgid "" "The same as :meth:`imap` except that the ordering of the results from the " "returned iterator should be considered arbitrary. (Only when there is only " @@ -3957,7 +4009,7 @@ msgstr "" "`imap` と同じです。 (ワーカープロセスが1つしかない場合のみ \"正しい\" 順番に" "なることが保証されます。)" -#: ../../library/multiprocessing.rst:2421 +#: ../../library/multiprocessing.rst:2461 msgid "" "Like :meth:`~multiprocessing.pool.Pool.map` except that the elements of the " "*iterable* are expected to be iterables that are unpacked as arguments." @@ -3965,7 +4017,7 @@ msgstr "" "*iterable* の要素が、引数として unpack されるイテレート可能オブジェクトである" "と期待される以外は、 :meth:`~multiprocessing.pool.Pool.map` と似ています。" -#: ../../library/multiprocessing.rst:2425 +#: ../../library/multiprocessing.rst:2465 msgid "" "Hence an *iterable* of ``[(1,2), (3, 4)]`` results in ``[func(1,2), " "func(3,4)]``." @@ -3973,7 +4025,7 @@ msgstr "" "そのため、*iterable* が ``[(1,2), (3, 4)]`` なら、結果は ``[func(1,2), " "func(3,4)]`` になります。" -#: ../../library/multiprocessing.rst:2432 +#: ../../library/multiprocessing.rst:2472 msgid "" "A combination of :meth:`starmap` and :meth:`map_async` that iterates over " "*iterable* of iterables and calls *func* with the iterables unpacked. " @@ -3983,7 +4035,7 @@ msgstr "" "ジェクトの *iterable* をイテレートして、 unpack したイテレート可能オブジェク" "トを伴って *func* を呼び出します。結果オブジェクトを返します。" -#: ../../library/multiprocessing.rst:2440 +#: ../../library/multiprocessing.rst:2480 msgid "" "Prevents any more tasks from being submitted to the pool. Once all the " "tasks have been completed the worker processes will exit." @@ -3991,7 +4043,7 @@ msgstr "" "これ以上プールでタスクが実行されないようにします。すべてのタスクが完了した後" "でワーカープロセスが終了します。" -#: ../../library/multiprocessing.rst:2445 +#: ../../library/multiprocessing.rst:2485 msgid "" "Stops the worker processes immediately without completing outstanding work. " "When the pool object is garbage collected :meth:`terminate` will be called " @@ -4000,7 +4052,7 @@ msgstr "" "実行中の処理を完了させずにワーカープロセスをすぐに停止します。プールオブジェ" "クトがガベージコレクトされるときに :meth:`terminate` が呼び出されます。" -#: ../../library/multiprocessing.rst:2451 +#: ../../library/multiprocessing.rst:2491 msgid "" "Wait for the worker processes to exit. One must call :meth:`close` or :meth:" "`terminate` before using :meth:`join`." @@ -4008,7 +4060,7 @@ msgstr "" "ワーカープロセスが終了するのを待ちます。 :meth:`join` を使用する前に :meth:" "`close` か :meth:`terminate` を呼び出さなければなりません。" -#: ../../library/multiprocessing.rst:2454 +#: ../../library/multiprocessing.rst:2494 msgid "" "Pool objects now support the context management protocol -- see :ref:" "`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the pool " @@ -4019,7 +4071,7 @@ msgstr "" "`~contextmanager.__enter__` は Pool オブジェクトを返します。また :meth:" "`~contextmanager.__exit__` は :meth:`terminate` を呼び出します。" -#: ../../library/multiprocessing.rst:2462 +#: ../../library/multiprocessing.rst:2502 msgid "" "The class of the result returned by :meth:`Pool.apply_async` and :meth:`Pool." "map_async`." @@ -4027,7 +4079,7 @@ msgstr "" ":meth:`Pool.apply_async` や :meth:`Pool.map_async` で返される結果のクラスで" "す。" -#: ../../library/multiprocessing.rst:2467 +#: ../../library/multiprocessing.rst:2507 msgid "" "Return the result when it arrives. If *timeout* is not ``None`` and the " "result does not arrive within *timeout* seconds then :exc:`multiprocessing." @@ -4039,15 +4091,15 @@ msgstr "" "発生します。リモートの呼び出しが例外を発生させる場合、その例外は :meth:`get` " "が再発生させます。" -#: ../../library/multiprocessing.rst:2474 +#: ../../library/multiprocessing.rst:2514 msgid "Wait until the result is available or until *timeout* seconds pass." msgstr "その結果が有効になるか *timeout* 秒経つまで待ちます。" -#: ../../library/multiprocessing.rst:2478 +#: ../../library/multiprocessing.rst:2518 msgid "Return whether the call has completed." msgstr "その呼び出しが完了しているかどうかを返します。" -#: ../../library/multiprocessing.rst:2482 +#: ../../library/multiprocessing.rst:2522 msgid "" "Return whether the call completed without raising an exception. Will raise :" "exc:`ValueError` if the result is not ready." @@ -4055,17 +4107,17 @@ msgstr "" "その呼び出しが例外を発生させることなく完了したかどうかを返します。その結果が" "返せる状態でない場合 :exc:`ValueError` が発生します。" -#: ../../library/multiprocessing.rst:2485 +#: ../../library/multiprocessing.rst:2525 msgid "" "If the result is not ready, :exc:`ValueError` is raised instead of :exc:" "`AssertionError`." msgstr "" -#: ../../library/multiprocessing.rst:2489 +#: ../../library/multiprocessing.rst:2529 msgid "The following example demonstrates the use of a pool::" msgstr "次の例はプールの使用例を紹介します::" -#: ../../library/multiprocessing.rst:2491 +#: ../../library/multiprocessing.rst:2531 msgid "" "from multiprocessing import Pool\n" "import time\n" @@ -4093,11 +4145,11 @@ msgid "" "TimeoutError" msgstr "" -#: ../../library/multiprocessing.rst:2516 +#: ../../library/multiprocessing.rst:2556 msgid "Listeners and Clients" msgstr "リスナーとクライアント" -#: ../../library/multiprocessing.rst:2521 +#: ../../library/multiprocessing.rst:2561 msgid "" "Usually message passing between processes is done using queues or by using :" "class:`~Connection` objects returned by :func:`~multiprocessing.Pipe`." @@ -4106,7 +4158,7 @@ msgstr "" "`~multiprocessing.Pipe` が返す :class:`~Connection` オブジェクトを使用しま" "す。" -#: ../../library/multiprocessing.rst:2525 +#: ../../library/multiprocessing.rst:2565 msgid "" "However, the :mod:`multiprocessing.connection` module allows some extra " "flexibility. It basically gives a high level message oriented API for " @@ -4120,14 +4172,14 @@ msgstr "" "ジュールを使用した *ダイジェスト認証* や同時の複数接続のポーリングもサポート" "します。" -#: ../../library/multiprocessing.rst:2534 +#: ../../library/multiprocessing.rst:2574 msgid "" "Send a randomly generated message to the other end of the connection and " "wait for a reply." msgstr "" "ランダム生成したメッセージをコネクションの相手側へ送信して応答を待ちます。" -#: ../../library/multiprocessing.rst:2537 +#: ../../library/multiprocessing.rst:2577 msgid "" "If the reply matches the digest of the message using *authkey* as the key " "then a welcome message is sent to the other end of the connection. " @@ -4137,7 +4189,7 @@ msgstr "" "合、 コネクションの相手側へ歓迎メッセージを送信します。 そうでなければ :exc:" "`~multiprocessing.AuthenticationError` を発生させます。" -#: ../../library/multiprocessing.rst:2543 +#: ../../library/multiprocessing.rst:2583 msgid "" "Receive a message, calculate the digest of the message using *authkey* as " "the key, and then send the digest back." @@ -4145,7 +4197,7 @@ msgstr "" "メッセージを受信して、そのキーとして *authkey* を使用するメッセージのダイジェ" "ストを計算し、ダイジェストを送り返します。" -#: ../../library/multiprocessing.rst:2546 +#: ../../library/multiprocessing.rst:2586 msgid "" "If a welcome message is not received, then :exc:`~multiprocessing." "AuthenticationError` is raised." @@ -4153,7 +4205,7 @@ msgstr "" "歓迎メッセージを受け取れない場合 :exc:`~multiprocessing.AuthenticationError` " "が発生します。" -#: ../../library/multiprocessing.rst:2551 +#: ../../library/multiprocessing.rst:2591 msgid "" "Attempt to set up a connection to the listener which is using address " "*address*, returning a :class:`~Connection`." @@ -4161,7 +4213,7 @@ msgstr "" "*address* で渡したアドレスを使用するリスナーに対してコネクションを確立しよう" "として :class:`~Connection` を返します。" -#: ../../library/multiprocessing.rst:2554 +#: ../../library/multiprocessing.rst:2594 msgid "" "The type of the connection is determined by *family* argument, but this can " "generally be omitted since it can usually be inferred from the format of " @@ -4171,8 +4223,8 @@ msgstr "" "マットから推測できるので、これは指定されません。 (:ref:`multiprocessing-" "address-formats` を参照してください)" -#: ../../library/multiprocessing.rst:2558 -#: ../../library/multiprocessing.rst:2593 +#: ../../library/multiprocessing.rst:2598 +#: ../../library/multiprocessing.rst:2633 msgid "" "If *authkey* is given and not ``None``, it should be a byte string and will " "be used as the secret key for an HMAC-based authentication challenge. No " @@ -4181,7 +4233,7 @@ msgid "" "`multiprocessing-auth-keys`." msgstr "" -#: ../../library/multiprocessing.rst:2566 +#: ../../library/multiprocessing.rst:2606 msgid "" "A wrapper for a bound socket or Windows named pipe which is 'listening' for " "connections." @@ -4189,7 +4241,7 @@ msgstr "" "コネクションを '待ち受ける' 束縛されたソケットか Windows の名前付きパイプの" "ラッパーです。" -#: ../../library/multiprocessing.rst:2569 +#: ../../library/multiprocessing.rst:2609 msgid "" "*address* is the address to be used by the bound socket or named pipe of the " "listener object." @@ -4197,7 +4249,7 @@ msgstr "" "*address* はリスナーオブジェクトの束縛されたソケットか名前付きパイプが使用す" "るアドレスです。" -#: ../../library/multiprocessing.rst:2574 +#: ../../library/multiprocessing.rst:2614 msgid "" "If an address of '0.0.0.0' is used, the address will not be a connectable " "end point on Windows. If you require a connectable end-point, you should use " @@ -4206,7 +4258,7 @@ msgstr "" "'0.0.0.0' のアドレスを使用する場合、Windows 上の終点へ接続することができませ" "ん。終点へ接続したい場合は '127.0.0.1' を使用すべきです。" -#: ../../library/multiprocessing.rst:2578 +#: ../../library/multiprocessing.rst:2618 msgid "" "*family* is the type of socket (or named pipe) to use. This can be one of " "the strings ``'AF_INET'`` (for a TCP socket), ``'AF_UNIX'`` (for a Unix " @@ -4229,7 +4281,7 @@ msgstr "" "``'AF_UNIX'`` で *address* が ``None`` の場合 :func:`tempfile.mkstemp` を使用" "して作成されたプライベートな一時ディレクトリにソケットが作成されます。" -#: ../../library/multiprocessing.rst:2589 +#: ../../library/multiprocessing.rst:2629 msgid "" "If the listener object uses a socket then *backlog* (1 by default) is passed " "to the :meth:`~socket.socket.listen` method of the socket once it has been " @@ -4239,7 +4291,7 @@ msgstr "" "*backlog* (デフォルトでは1つ) がソケットの :meth:`~socket.socket.listen` メ" "ソッドに対して渡されます。" -#: ../../library/multiprocessing.rst:2601 +#: ../../library/multiprocessing.rst:2641 msgid "" "Accept a connection on the bound socket or named pipe of the listener object " "and return a :class:`~Connection` object. If authentication is attempted and " @@ -4249,7 +4301,7 @@ msgstr "" "け付けて :class:`~Connection` オブジェクトを返します。 認証が失敗した場合 :" "exc:`~multiprocessing.AuthenticationError` が発生します。" -#: ../../library/multiprocessing.rst:2608 +#: ../../library/multiprocessing.rst:2648 msgid "" "Close the bound socket or named pipe of the listener object. This is called " "automatically when the listener is garbage collected. However it is " @@ -4259,15 +4311,15 @@ msgstr "" "れはリスナーがガベージコレクトされるときに自動的に呼ばれます。そうは言って" "も、明示的に close() を呼び出す方が望ましいです。" -#: ../../library/multiprocessing.rst:2612 +#: ../../library/multiprocessing.rst:2652 msgid "Listener objects have the following read-only properties:" msgstr "リスナーオブジェクトは次の読み出し専用属性を持っています:" -#: ../../library/multiprocessing.rst:2616 +#: ../../library/multiprocessing.rst:2656 msgid "The address which is being used by the Listener object." msgstr "リスナーオブジェクトが使用中のアドレスです。" -#: ../../library/multiprocessing.rst:2620 +#: ../../library/multiprocessing.rst:2660 msgid "" "The address from which the last accepted connection came. If this is " "unavailable then it is ``None``." @@ -4275,7 +4327,7 @@ msgstr "" "最後にコネクションを受け付けたアドレスです。有効なアドレスがない場合は " "``None`` になります。" -#: ../../library/multiprocessing.rst:2623 +#: ../../library/multiprocessing.rst:2663 msgid "" "Listener objects now support the context management protocol -- see :ref:" "`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the " @@ -4286,7 +4338,7 @@ msgstr "" "`~contextmanager.__enter__` はリスナーオブジェクトを返します。また :meth:" "`~contextmanager.__exit__` は :meth:`close` を呼び出します。" -#: ../../library/multiprocessing.rst:2630 +#: ../../library/multiprocessing.rst:2670 msgid "" "Wait till an object in *object_list* is ready. Returns the list of those " "objects in *object_list* which are ready. If *timeout* is a float then the " @@ -4299,21 +4351,21 @@ msgstr "" "ら、最大でその秒数だけ呼び出しがブロックします。*timeout* が ``None`` の場" "合、無制限の期間ブロックします。負のタイムアウトは0と等価です。" -#: ../../library/multiprocessing.rst:2636 +#: ../../library/multiprocessing.rst:2676 msgid "" "For both POSIX and Windows, an object can appear in *object_list* if it is" msgstr "" -#: ../../library/multiprocessing.rst:2639 +#: ../../library/multiprocessing.rst:2679 msgid "a readable :class:`~multiprocessing.connection.Connection` object;" msgstr "" "読み取り可能な :class:`~multiprocessing.connection.Connection` オブジェクト;" -#: ../../library/multiprocessing.rst:2640 +#: ../../library/multiprocessing.rst:2680 msgid "a connected and readable :class:`socket.socket` object; or" msgstr "接続された読み取り可能な :class:`socket.socket` オブジェクト; または" -#: ../../library/multiprocessing.rst:2641 +#: ../../library/multiprocessing.rst:2681 msgid "" "the :attr:`~multiprocessing.Process.sentinel` attribute of a :class:" "`~multiprocessing.Process` object." @@ -4321,7 +4373,7 @@ msgstr "" ":class:`~multiprocessing.Process` オブジェクトの :attr:`~multiprocessing." "Process.sentinel` 属性。" -#: ../../library/multiprocessing.rst:2644 +#: ../../library/multiprocessing.rst:2684 msgid "" "A connection or socket object is ready when there is data available to be " "read from it, or the other end has been closed." @@ -4329,7 +4381,7 @@ msgstr "" "読み取ることのできるデータがある場合、あるいは相手側の端が閉じられている場" "合、コネクションまたはソケットオブジェクトは準備ができています。" -#: ../../library/multiprocessing.rst:2647 +#: ../../library/multiprocessing.rst:2687 msgid "" "**POSIX**: ``wait(object_list, timeout)`` almost equivalent ``select." "select(object_list, [], [], timeout)``. The difference is that, if :func:" @@ -4337,7 +4389,7 @@ msgid "" "an error number of ``EINTR``, whereas :func:`wait` will not." msgstr "" -#: ../../library/multiprocessing.rst:2653 +#: ../../library/multiprocessing.rst:2693 msgid "" "**Windows**: An item in *object_list* must either be an integer handle which " "is waitable (according to the definition used by the documentation of the " @@ -4347,11 +4399,11 @@ msgid "" "handles.)" msgstr "" -#: ../../library/multiprocessing.rst:2663 +#: ../../library/multiprocessing.rst:2703 msgid "**Examples**" msgstr "**例**" -#: ../../library/multiprocessing.rst:2665 +#: ../../library/multiprocessing.rst:2705 msgid "" "The following server code creates a listener which uses ``'secret " "password'`` as an authentication key. It then waits for a connection and " @@ -4361,7 +4413,7 @@ msgstr "" "作成します。このサーバーはコネクションを待ってクライアントへデータを送信しま" "す::" -#: ../../library/multiprocessing.rst:2669 +#: ../../library/multiprocessing.rst:2709 msgid "" "from multiprocessing.connection import Listener\n" "from array import array\n" @@ -4379,13 +4431,13 @@ msgid "" " conn.send_bytes(array('i', [42, 1729]))" msgstr "" -#: ../../library/multiprocessing.rst:2684 +#: ../../library/multiprocessing.rst:2724 msgid "" "The following code connects to the server and receives some data from the " "server::" msgstr "次のコードはサーバーへ接続して、サーバーからデータを受信します::" -#: ../../library/multiprocessing.rst:2687 +#: ../../library/multiprocessing.rst:2727 msgid "" "from multiprocessing.connection import Client\n" "from array import array\n" @@ -4402,7 +4454,7 @@ msgid "" " print(arr) # => array('i', [42, 1729, 0, 0, 0])" msgstr "" -#: ../../library/multiprocessing.rst:2701 +#: ../../library/multiprocessing.rst:2741 msgid "" "The following code uses :func:`~multiprocessing.connection.wait` to wait for " "messages from multiple processes at once::" @@ -4410,7 +4462,7 @@ msgstr "" "次のコードは :func:`~multiprocessing.connection.wait` を使って複数のプロセス" "からのメッセージを同時に待ちます::" -#: ../../library/multiprocessing.rst:2704 +#: ../../library/multiprocessing.rst:2744 msgid "" "from multiprocessing import Process, Pipe, current_process\n" "from multiprocessing.connection import wait\n" @@ -4444,11 +4496,11 @@ msgid "" " print(msg)" msgstr "" -#: ../../library/multiprocessing.rst:2739 +#: ../../library/multiprocessing.rst:2779 msgid "Address Formats" msgstr "アドレスフォーマット" -#: ../../library/multiprocessing.rst:2741 +#: ../../library/multiprocessing.rst:2781 msgid "" "An ``'AF_INET'`` address is a tuple of the form ``(hostname, port)`` where " "*hostname* is a string and *port* is an integer." @@ -4456,13 +4508,13 @@ msgstr "" "``'AF_INET'`` アドレスは ``(hostname, port)`` のタプルになります。 " "*hostname* は文字列で *port* は整数です。" -#: ../../library/multiprocessing.rst:2744 +#: ../../library/multiprocessing.rst:2784 msgid "" "An ``'AF_UNIX'`` address is a string representing a filename on the " "filesystem." msgstr "``'AF_UNIX'`` アドレスはファイルシステム上のファイル名の文字列です。" -#: ../../library/multiprocessing.rst:2747 +#: ../../library/multiprocessing.rst:2787 msgid "" "An ``'AF_PIPE'`` address is a string of the form :samp:`r'\\\\\\\\\\\\.\\" "\\pipe\\\\\\\\{PipeName}'`. To use :func:`Client` to connect to a named " @@ -4476,7 +4528,7 @@ msgstr "" "`r'\\\\\\\\\\\\\\\\{ServerName}\\\\pipe\\\\\\\\{PipeName}'` 形式のアドレスを" "使用する必要があります。" -#: ../../library/multiprocessing.rst:2752 +#: ../../library/multiprocessing.rst:2792 msgid "" "Note that any string beginning with two backslashes is assumed by default to " "be an ``'AF_PIPE'`` address rather than an ``'AF_UNIX'`` address." @@ -4484,11 +4536,11 @@ msgstr "" "デフォルトでは、2つのバックスラッシュで始まる文字列は ``'AF_UNIX'`` よりも " "``'AF_PIPE'`` として推測されることに注意してください。" -#: ../../library/multiprocessing.rst:2759 +#: ../../library/multiprocessing.rst:2799 msgid "Authentication keys" msgstr "認証キー" -#: ../../library/multiprocessing.rst:2761 +#: ../../library/multiprocessing.rst:2801 msgid "" "When one uses :meth:`Connection.recv `, the data received " "is automatically unpickled. Unfortunately unpickling data from an untrusted " @@ -4501,7 +4553,7 @@ msgstr "" "`Listener` や :func:`Client` はダイジェスト認証を提供するために :mod:`hmac` " "モジュールを使用します。" -#: ../../library/multiprocessing.rst:2767 +#: ../../library/multiprocessing.rst:2807 msgid "" "An authentication key is a byte string which can be thought of as a " "password: once a connection is established both ends will demand proof that " @@ -4513,7 +4565,7 @@ msgstr "" "キーを要求します。(双方の終点が同じキーを使用して通信しようとしても、コネク" "ション上でそのキーを送信することは **できません**。)" -#: ../../library/multiprocessing.rst:2773 +#: ../../library/multiprocessing.rst:2813 msgid "" "If authentication is requested but no authentication key is specified then " "the return value of ``current_process().authkey`` is used (see :class:" @@ -4530,17 +4582,17 @@ msgstr "" "ます。 これは(デフォルトでは)複数プロセスのプログラムの全プロセスが相互にコネ" "クションを 確立するときに使用される1つの認証キーを共有することを意味します。" -#: ../../library/multiprocessing.rst:2781 +#: ../../library/multiprocessing.rst:2821 msgid "" "Suitable authentication keys can also be generated by using :func:`os." "urandom`." msgstr "適当な認証キーを :func:`os.urandom` を使用して生成することもできます。" -#: ../../library/multiprocessing.rst:2785 +#: ../../library/multiprocessing.rst:2825 msgid "Logging" msgstr "ログ記録" -#: ../../library/multiprocessing.rst:2787 +#: ../../library/multiprocessing.rst:2827 msgid "" "Some support for logging is available. Note, however, that the :mod:" "`logging` package does not use process shared locks so it is possible " @@ -4551,7 +4603,7 @@ msgstr "" "ジは、 (ハンドラー種別に依存して)違うプロセスからのメッセージがごちゃ混ぜにな" "るので、プロセスの共有ロックを使用しないことに注意してください。" -#: ../../library/multiprocessing.rst:2794 +#: ../../library/multiprocessing.rst:2834 msgid "" "Returns the logger used by :mod:`multiprocessing`. If necessary, a new one " "will be created." @@ -4559,14 +4611,14 @@ msgstr "" ":mod:`multiprocessing` が使用するロガーを返します。必要に応じて新たなロガーを" "作成します。" -#: ../../library/multiprocessing.rst:2797 +#: ../../library/multiprocessing.rst:2837 msgid "" "When first created the logger has level :const:`logging.NOTSET` and no " "default handler. Messages sent to this logger will not by default propagate " "to the root logger." msgstr "" -#: ../../library/multiprocessing.rst:2801 +#: ../../library/multiprocessing.rst:2841 msgid "" "Note that on Windows child processes will only inherit the level of the " "parent process's logger -- any other customization of the logger will not be " @@ -4575,7 +4627,7 @@ msgstr "" "Windows 上では子プロセスが親プロセスのロガーレベルを継承しないことに注意して" "ください。さらにその他のロガーのカスタマイズ内容もすべて継承されません。" -#: ../../library/multiprocessing.rst:2808 +#: ../../library/multiprocessing.rst:2848 msgid "" "This function performs a call to :func:`get_logger` but in addition to " "returning the logger created by get_logger, it adds a handler which sends " @@ -4589,11 +4641,11 @@ msgstr "" "へ出力を送るハンドラーを追加します。``level`` 引数を渡すことによってロガーの " "``levelname`` を変更できます。" -#: ../../library/multiprocessing.rst:2814 +#: ../../library/multiprocessing.rst:2854 msgid "Below is an example session with logging turned on::" msgstr "以下にロギングを有効にした例を紹介します::" -#: ../../library/multiprocessing.rst:2816 +#: ../../library/multiprocessing.rst:2856 msgid "" ">>> import multiprocessing, logging\n" ">>> logger = multiprocessing.log_to_stderr()\n" @@ -4609,17 +4661,17 @@ msgid "" "[INFO/SyncManager-...] manager exiting with exitcode 0" msgstr "" -#: ../../library/multiprocessing.rst:2829 +#: ../../library/multiprocessing.rst:2869 msgid "For a full table of logging levels, see the :mod:`logging` module." msgstr "" "完全なロギングレベルの表については :mod:`logging` モジュールを参照してくださ" "い。" -#: ../../library/multiprocessing.rst:2833 +#: ../../library/multiprocessing.rst:2873 msgid "The :mod:`multiprocessing.dummy` module" msgstr ":mod:`multiprocessing.dummy` モジュール" -#: ../../library/multiprocessing.rst:2838 +#: ../../library/multiprocessing.rst:2878 msgid "" ":mod:`multiprocessing.dummy` replicates the API of :mod:`multiprocessing` " "but is no more than a wrapper around the :mod:`threading` module." @@ -4627,7 +4679,7 @@ msgstr "" ":mod:`multiprocessing.dummy` は :mod:`multiprocessing` の API を複製します" "が :mod:`threading` モジュールのラッパーでしかありません。" -#: ../../library/multiprocessing.rst:2843 +#: ../../library/multiprocessing.rst:2883 msgid "" "In particular, the ``Pool`` function provided by :mod:`multiprocessing." "dummy` returns an instance of :class:`ThreadPool`, which is a subclass of :" @@ -4635,7 +4687,7 @@ msgid "" "worker threads rather than worker processes." msgstr "" -#: ../../library/multiprocessing.rst:2851 +#: ../../library/multiprocessing.rst:2891 msgid "" "A thread pool object which controls a pool of worker threads to which jobs " "can be submitted. :class:`ThreadPool` instances are fully interface " @@ -4645,18 +4697,18 @@ msgid "" "pool.Pool.terminate` manually." msgstr "" -#: ../../library/multiprocessing.rst:2858 +#: ../../library/multiprocessing.rst:2898 msgid "" "*processes* is the number of worker threads to use. If *processes* is " "``None`` then the number returned by :func:`os.process_cpu_count` is used." msgstr "" -#: ../../library/multiprocessing.rst:2864 +#: ../../library/multiprocessing.rst:2904 msgid "" "Unlike :class:`Pool`, *maxtasksperchild* and *context* cannot be provided." msgstr "" -#: ../../library/multiprocessing.rst:2868 +#: ../../library/multiprocessing.rst:2908 msgid "" "A :class:`ThreadPool` shares the same interface as :class:`Pool`, which is " "designed around a pool of processes and predates the introduction of the :" @@ -4666,7 +4718,7 @@ msgid "" "is not understood by any other libraries." msgstr "" -#: ../../library/multiprocessing.rst:2875 +#: ../../library/multiprocessing.rst:2915 msgid "" "Users should generally prefer to use :class:`concurrent.futures." "ThreadPoolExecutor`, which has a simpler interface that was designed around " @@ -4675,11 +4727,11 @@ msgid "" "`asyncio`." msgstr "" -#: ../../library/multiprocessing.rst:2885 +#: ../../library/multiprocessing.rst:2925 msgid "Programming guidelines" msgstr "プログラミングガイドライン" -#: ../../library/multiprocessing.rst:2887 +#: ../../library/multiprocessing.rst:2927 msgid "" "There are certain guidelines and idioms which should be adhered to when " "using :mod:`multiprocessing`." @@ -4687,26 +4739,26 @@ msgstr "" ":mod:`multiprocessing` を使用するときに守るべき一定のガイドラインとイディオム" "を挙げます。" -#: ../../library/multiprocessing.rst:2892 +#: ../../library/multiprocessing.rst:2932 msgid "All start methods" msgstr "すべての開始方式について" -#: ../../library/multiprocessing.rst:2894 +#: ../../library/multiprocessing.rst:2934 msgid "The following applies to all start methods." msgstr "以下はすべての開始方式に当てはまります。" -#: ../../library/multiprocessing.rst:2896 +#: ../../library/multiprocessing.rst:2936 msgid "Avoid shared state" msgstr "共有状態を避ける" -#: ../../library/multiprocessing.rst:2898 +#: ../../library/multiprocessing.rst:2938 msgid "" "As far as possible one should try to avoid shifting large amounts of data " "between processes." msgstr "" "できるだけプロセス間で巨大なデータを移動することは避けるようにすべきです。" -#: ../../library/multiprocessing.rst:2901 +#: ../../library/multiprocessing.rst:2941 msgid "" "It is probably best to stick to using queues or pipes for communication " "between processes rather than using the lower level synchronization " @@ -4715,19 +4767,19 @@ msgstr "" "プロセス間の通信には、:mod:`threading` モジュールの低レベルな同期プリミティブ" "を使うのではなく、キューやパイプを使うのが良いでしょう。" -#: ../../library/multiprocessing.rst:2905 +#: ../../library/multiprocessing.rst:2945 msgid "Picklability" msgstr "pickle 化の可能性" -#: ../../library/multiprocessing.rst:2907 +#: ../../library/multiprocessing.rst:2947 msgid "Ensure that the arguments to the methods of proxies are picklable." msgstr "プロキシのメソッドへの引数は、 pickle 化できるものにしてください。" -#: ../../library/multiprocessing.rst:2909 +#: ../../library/multiprocessing.rst:2949 msgid "Thread safety of proxies" msgstr "プロキシのスレッドセーフ性" -#: ../../library/multiprocessing.rst:2911 +#: ../../library/multiprocessing.rst:2951 msgid "" "Do not use a proxy object from more than one thread unless you protect it " "with a lock." @@ -4735,16 +4787,16 @@ msgstr "" "1 つのプロキシオブジェクトは、ロックで保護しないかぎり、2 つ以上のスレッドか" "ら使用してはいけません。" -#: ../../library/multiprocessing.rst:2914 +#: ../../library/multiprocessing.rst:2954 msgid "" "(There is never a problem with different processes using the *same* proxy.)" msgstr "(異なるプロセスで *同じ* プロキシを使用することは問題ではありません。)" -#: ../../library/multiprocessing.rst:2916 +#: ../../library/multiprocessing.rst:2956 msgid "Joining zombie processes" msgstr "ゾンビプロセスを join する" -#: ../../library/multiprocessing.rst:2918 +#: ../../library/multiprocessing.rst:2958 msgid "" "On POSIX when a process finishes but has not been joined it becomes a " "zombie. There should never be very many because each time a new process " @@ -4755,11 +4807,11 @@ msgid "" "explicitly join all the processes that you start." msgstr "" -#: ../../library/multiprocessing.rst:2926 +#: ../../library/multiprocessing.rst:2966 msgid "Better to inherit than pickle/unpickle" msgstr "pickle/unpickle より継承する方が良い" -#: ../../library/multiprocessing.rst:2928 +#: ../../library/multiprocessing.rst:2968 msgid "" "When using the *spawn* or *forkserver* start methods many types from :mod:" "`multiprocessing` need to be picklable so that child processes can use " @@ -4775,11 +4827,11 @@ msgstr "" "セスする必要のあるプロセスは上位プロセスからそれらを継承するようにすべきで" "す。" -#: ../../library/multiprocessing.rst:2936 +#: ../../library/multiprocessing.rst:2976 msgid "Avoid terminating processes" msgstr "プロセスの強制終了を避ける" -#: ../../library/multiprocessing.rst:2938 +#: ../../library/multiprocessing.rst:2978 msgid "" "Using the :meth:`Process.terminate ` " "method to stop a process is liable to cause any shared resources (such as " @@ -4791,7 +4843,7 @@ msgstr "" "(ロック、セマフォ、パイプやキューのような) 共有リソースを破壊したり他のプロセ" "スから利用できない状態を引き起こし易いです。" -#: ../../library/multiprocessing.rst:2944 +#: ../../library/multiprocessing.rst:2984 msgid "" "Therefore it is probably best to only consider using :meth:`Process." "terminate ` on processes which never use " @@ -4801,11 +4853,11 @@ msgstr "" "` を使用することを考慮することがおそらく最" "善の方法です。" -#: ../../library/multiprocessing.rst:2948 +#: ../../library/multiprocessing.rst:2988 msgid "Joining processes that use queues" msgstr "キューを使用するプロセスを join する" -#: ../../library/multiprocessing.rst:2950 +#: ../../library/multiprocessing.rst:2990 msgid "" "Bear in mind that a process that has put items in a queue will wait before " "terminating until all the buffered items are fed by the \"feeder\" thread to " @@ -4819,7 +4871,7 @@ msgstr "" "`Queue.cancel_join_thread ` メソッ" "ドを呼ぶことができます。)" -#: ../../library/multiprocessing.rst:2956 +#: ../../library/multiprocessing.rst:2996 msgid "" "This means that whenever you use a queue you need to make sure that all " "items which have been put on the queue will eventually be removed before the " @@ -4832,11 +4884,11 @@ msgstr "" "す。そうしないと、そのキューに要素が追加したプロセスの終了を保証できません。" "デーモンではないプロセスは自動的に join されることも覚えておいてください。" -#: ../../library/multiprocessing.rst:2962 +#: ../../library/multiprocessing.rst:3002 msgid "An example which will deadlock is the following::" msgstr "次の例はデッドロックを引き起こします::" -#: ../../library/multiprocessing.rst:2964 +#: ../../library/multiprocessing.rst:3004 msgid "" "from multiprocessing import Process, Queue\n" "\n" @@ -4851,7 +4903,7 @@ msgid "" " obj = queue.get()" msgstr "" -#: ../../library/multiprocessing.rst:2976 +#: ../../library/multiprocessing.rst:3016 msgid "" "A fix here would be to swap the last two lines (or simply remove the ``p." "join()`` line)." @@ -4859,11 +4911,11 @@ msgstr "" "修正するには最後の2行を入れ替えます(または単純に ``p.join()`` の行を削除しま" "す)。" -#: ../../library/multiprocessing.rst:2979 +#: ../../library/multiprocessing.rst:3019 msgid "Explicitly pass resources to child processes" msgstr "明示的に子プロセスへリソースを渡す" -#: ../../library/multiprocessing.rst:2981 +#: ../../library/multiprocessing.rst:3021 msgid "" "On POSIX using the *fork* start method, a child process can make use of a " "shared resource created in a parent process using a global resource. " @@ -4871,7 +4923,7 @@ msgid "" "for the child process." msgstr "" -#: ../../library/multiprocessing.rst:2986 +#: ../../library/multiprocessing.rst:3026 msgid "" "Apart from making the code (potentially) compatible with Windows and the " "other start methods this also ensures that as long as the child process is " @@ -4885,11 +4937,11 @@ msgstr "" "コレクトされたときに一部のリソースが開放されてしまう場合に重要かもしれませ" "ん。" -#: ../../library/multiprocessing.rst:2993 +#: ../../library/multiprocessing.rst:3033 msgid "So for instance ::" msgstr "そのため、例えば ::" -#: ../../library/multiprocessing.rst:2995 +#: ../../library/multiprocessing.rst:3035 msgid "" "from multiprocessing import Process, Lock\n" "\n" @@ -4902,11 +4954,11 @@ msgid "" " Process(target=f).start()" msgstr "" -#: ../../library/multiprocessing.rst:3005 +#: ../../library/multiprocessing.rst:3045 msgid "should be rewritten as ::" msgstr "は、次のように書き直すべきです ::" -#: ../../library/multiprocessing.rst:3007 +#: ../../library/multiprocessing.rst:3047 msgid "" "from multiprocessing import Process, Lock\n" "\n" @@ -4919,19 +4971,19 @@ msgid "" " Process(target=f, args=(lock,)).start()" msgstr "" -#: ../../library/multiprocessing.rst:3017 +#: ../../library/multiprocessing.rst:3057 msgid "Beware of replacing :data:`sys.stdin` with a \"file like object\"" msgstr ":data:`sys.stdin` を file-like オブジェクトに置き換えることに注意する" -#: ../../library/multiprocessing.rst:3019 +#: ../../library/multiprocessing.rst:3059 msgid ":mod:`multiprocessing` originally unconditionally called::" msgstr ":mod:`multiprocessing` は元々無条件に::" -#: ../../library/multiprocessing.rst:3021 +#: ../../library/multiprocessing.rst:3061 msgid "os.close(sys.stdin.fileno())" msgstr "" -#: ../../library/multiprocessing.rst:3023 +#: ../../library/multiprocessing.rst:3063 msgid "" "in the :meth:`multiprocessing.Process._bootstrap` method --- this resulted " "in issues with processes-in-processes. This has been changed to::" @@ -4940,13 +4992,13 @@ msgstr "" "た --- これはプロセス内プロセス (processes-in-processes) で問題が起こしてしま" "います。そこで、これは以下のように変更されました::" -#: ../../library/multiprocessing.rst:3026 +#: ../../library/multiprocessing.rst:3066 msgid "" "sys.stdin.close()\n" "sys.stdin = open(os.open(os.devnull, os.O_RDONLY), closefd=False)" msgstr "" -#: ../../library/multiprocessing.rst:3029 +#: ../../library/multiprocessing.rst:3069 msgid "" "Which solves the fundamental issue of processes colliding with each other " "resulting in a bad file descriptor error, but introduces a potential danger " @@ -4956,7 +5008,7 @@ msgid "" "data being flushed to the object multiple times, resulting in corruption." msgstr "" -#: ../../library/multiprocessing.rst:3036 +#: ../../library/multiprocessing.rst:3076 msgid "" "If you write a file-like object and implement your own caching, you can make " "it fork-safe by storing the pid whenever you append to the cache, and " @@ -4966,7 +5018,7 @@ msgstr "" "するときに常に pid を記録しておき、pid が変わったらキュッシュを捨てることで、" "フォークセーフにできます。例::" -#: ../../library/multiprocessing.rst:3040 +#: ../../library/multiprocessing.rst:3080 msgid "" "@property\n" "def cache(self):\n" @@ -4977,44 +5029,40 @@ msgid "" " return self._cache" msgstr "" -#: ../../library/multiprocessing.rst:3048 +#: ../../library/multiprocessing.rst:3088 msgid "" "For more information, see :issue:`5155`, :issue:`5313` and :issue:`5331`" msgstr "" "より詳しい情報は :issue:`5155` 、 :issue:`5313` 、 :issue:`5331` を見てくださ" "い" -#: ../../library/multiprocessing.rst:3054 +#: ../../library/multiprocessing.rst:3094 msgid "The *spawn* and *forkserver* start methods" msgstr "開始方式が *spawn* および *forkserver* の場合" -#: ../../library/multiprocessing.rst:3056 +#: ../../library/multiprocessing.rst:3096 msgid "" "There are a few extra restrictions which don't apply to the *fork* start " "method." msgstr "" -#: ../../library/multiprocessing.rst:3059 +#: ../../library/multiprocessing.rst:3099 msgid "More picklability" msgstr "さらなる pickle 化の可能性" -#: ../../library/multiprocessing.rst:3061 +#: ../../library/multiprocessing.rst:3101 msgid "" -"Ensure that all arguments to :meth:`Process.__init__` are picklable. Also, " -"if you subclass :class:`~multiprocessing.Process` then make sure that " -"instances will be picklable when the :meth:`Process.start ` method is called." +"Ensure that all arguments to :class:`~multiprocessing.Process` are " +"picklable. Also, if you subclass ``Process.__init__``, you must make sure " +"that instances will be picklable when the :meth:`Process.start " +"` method is called." msgstr "" -":meth:`Process.__init__` へのすべての引数は pickle 化できることを確認してくだ" -"さい。また :class:`~multiprocessing.Process` をサブクラス化する場合、そのイン" -"スタンスが :meth:`Process.start ` メソッドが呼" -"ばれたときに pickle 化できるようにしてください。" -#: ../../library/multiprocessing.rst:3066 +#: ../../library/multiprocessing.rst:3106 msgid "Global variables" msgstr "グローバル変数" -#: ../../library/multiprocessing.rst:3068 +#: ../../library/multiprocessing.rst:3108 msgid "" "Bear in mind that if code run in a child process tries to access a global " "variable, then the value it sees (if any) may not be the same as the value " @@ -5025,7 +5073,7 @@ msgstr "" "ロセスが見るその値は :meth:`Process.start ` が" "呼ばれたときの親プロセスの値と同じではない可能性があります。" -#: ../../library/multiprocessing.rst:3073 +#: ../../library/multiprocessing.rst:3113 msgid "" "However, global variables which are just module level constants cause no " "problems." @@ -5033,18 +5081,18 @@ msgstr "" "しかし、単にモジュールレベルの定数であるグローバル変数なら問題にはなりませ" "ん。" -#: ../../library/multiprocessing.rst:3078 +#: ../../library/multiprocessing.rst:3118 msgid "Safe importing of main module" msgstr "メインモジュールの安全なインポート" -#: ../../library/multiprocessing.rst:3080 +#: ../../library/multiprocessing.rst:3120 msgid "" "Make sure that the main module can be safely imported by a new Python " "interpreter without causing unintended side effects (such as starting a new " "process)." msgstr "" -#: ../../library/multiprocessing.rst:3084 +#: ../../library/multiprocessing.rst:3124 msgid "" "For example, using the *spawn* or *forkserver* start method running the " "following module would fail with a :exc:`RuntimeError`::" @@ -5052,7 +5100,7 @@ msgstr "" "例えば、開始方式に *spawn* あるいは *forkserver* を使用した場合に以下のモ" "ジュールを実行すると :exc:`RuntimeError` で失敗します::" -#: ../../library/multiprocessing.rst:3088 +#: ../../library/multiprocessing.rst:3128 msgid "" "from multiprocessing import Process\n" "\n" @@ -5063,7 +5111,7 @@ msgid "" "p.start()" msgstr "" -#: ../../library/multiprocessing.rst:3096 +#: ../../library/multiprocessing.rst:3136 msgid "" "Instead one should protect the \"entry point\" of the program by using ``if " "__name__ == '__main__':`` as follows::" @@ -5071,7 +5119,7 @@ msgstr "" "代わりに、次のように ``if __name__ == '__main__':`` を使用してプログラムの " "\"エントリポイント\" を保護すべきです::" -#: ../../library/multiprocessing.rst:3099 +#: ../../library/multiprocessing.rst:3139 msgid "" "from multiprocessing import Process, freeze_support, set_start_method\n" "\n" @@ -5085,7 +5133,7 @@ msgid "" " p.start()" msgstr "" -#: ../../library/multiprocessing.rst:3110 +#: ../../library/multiprocessing.rst:3150 msgid "" "(The ``freeze_support()`` line can be omitted if the program will be run " "normally instead of frozen.)" @@ -5093,7 +5141,7 @@ msgstr "" "(プログラムをフリーズせずに通常通り実行するなら ``freeze_support()`` 行は取り" "除けます。)" -#: ../../library/multiprocessing.rst:3113 +#: ../../library/multiprocessing.rst:3153 msgid "" "This allows the newly spawned Python interpreter to safely import the module " "and then run the module's ``foo()`` function." @@ -5101,7 +5149,7 @@ msgstr "" "これは新たに生成された Python インタープリターがそのモジュールを安全にイン" "ポートして、モジュールの ``foo()`` 関数を実行します。" -#: ../../library/multiprocessing.rst:3116 +#: ../../library/multiprocessing.rst:3156 msgid "" "Similar restrictions apply if a pool or manager is created in the main " "module." @@ -5109,16 +5157,16 @@ msgstr "" "プールまたはマネージャーがメインモジュールで作成される場合に似たような制限が" "適用されます。" -#: ../../library/multiprocessing.rst:3123 +#: ../../library/multiprocessing.rst:3163 msgid "Examples" msgstr "使用例" -#: ../../library/multiprocessing.rst:3125 +#: ../../library/multiprocessing.rst:3165 msgid "Demonstration of how to create and use customized managers and proxies:" msgstr "" "カスタマイズされたマネージャーやプロキシの作成方法と使用方法を紹介します:" -#: ../../library/multiprocessing.rst:3127 +#: ../../library/multiprocessing.rst:3167 msgid "" "from multiprocessing import freeze_support\n" "from multiprocessing.managers import BaseManager, BaseProxy\n" @@ -5212,11 +5260,11 @@ msgid "" " test()\n" msgstr "" -#: ../../library/multiprocessing.rst:3131 +#: ../../library/multiprocessing.rst:3171 msgid "Using :class:`~multiprocessing.pool.Pool`:" msgstr ":class:`~multiprocessing.pool.Pool` を使用する例です:" -#: ../../library/multiprocessing.rst:3133 +#: ../../library/multiprocessing.rst:3173 msgid "" "import multiprocessing\n" "import time\n" @@ -5376,7 +5424,7 @@ msgid "" " test()\n" msgstr "" -#: ../../library/multiprocessing.rst:3137 +#: ../../library/multiprocessing.rst:3177 msgid "" "An example showing how to use queues to feed tasks to a collection of worker " "processes and collect the results:" @@ -5384,7 +5432,7 @@ msgstr "" "ワーカープロセスのコレクションに対してタスクをフィードしてその結果をまとめる" "キューの使い方の例を紹介します:" -#: ../../library/multiprocessing.rst:3140 +#: ../../library/multiprocessing.rst:3180 msgid "" "import time\n" "import random\n" diff --git a/library/typing.po b/library/typing.po index f456d7ab3..5c9cd6bbf 100644 --- a/library/typing.po +++ b/library/typing.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-05-30 14:22+0000\n" +"POT-Creation-Date: 2025-07-31 14:20+0000\n" "PO-Revision-Date: 2025-07-18 18:49+0000\n" "Last-Translator: Rafael Fontenelle , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -4910,7 +4910,7 @@ msgstr "" #: ../../library/typing.rst:3360 msgid "" -"See also :func:`inspect.get_annotations`, a lower-level function that " +"See also :func:`annotationlib.get_annotations`, a lower-level function that " "returns annotations more directly." msgstr "" diff --git a/whatsnew/3.14.po b/whatsnew/3.14.po index 9e0c6bef0..b32218eb2 100644 --- a/whatsnew/3.14.po +++ b/whatsnew/3.14.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-07-25 14:21+0000\n" +"POT-Creation-Date: 2025-07-31 14:20+0000\n" "PO-Revision-Date: 2025-07-18 18:50+0000\n" "Last-Translator: Rafael Fontenelle , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -189,7 +189,7 @@ msgid "" "Python. See :ref:`below ` for details." msgstr "" -#: ../../whatsnew/3.14.rst:126 ../../whatsnew/3.14.rst:2823 +#: ../../whatsnew/3.14.rst:126 ../../whatsnew/3.14.rst:2835 msgid "New features" msgstr "" @@ -1117,8 +1117,8 @@ msgid "" "configuration mechanisms)." msgstr "" -#: ../../whatsnew/3.14.rst:783 ../../whatsnew/3.14.rst:2885 -#: ../../whatsnew/3.14.rst:2904 +#: ../../whatsnew/3.14.rst:783 ../../whatsnew/3.14.rst:2897 +#: ../../whatsnew/3.14.rst:2916 msgid "(Contributed by Victor Stinner in :gh:`107954`.)" msgstr "" @@ -1527,13 +1527,13 @@ msgstr "" msgid "The behavior of :func:`!gc.collect` changes slightly:" msgstr "" -#: ../../whatsnew/3.14.rst:1078 ../../whatsnew/3.14.rst:2776 +#: ../../whatsnew/3.14.rst:1078 ../../whatsnew/3.14.rst:2788 msgid "" "``gc.collect(1)``: Performs an increment of garbage collection, rather than " "collecting generation 1." msgstr "" -#: ../../whatsnew/3.14.rst:1080 ../../whatsnew/3.14.rst:2778 +#: ../../whatsnew/3.14.rst:1080 ../../whatsnew/3.14.rst:2790 msgid "Other calls to :func:`!gc.collect` are unchanged." msgstr "" @@ -1541,11 +1541,30 @@ msgstr "" msgid "(Contributed by Mark Shannon in :gh:`108362`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1086 +#: ../../whatsnew/3.14.rst:1085 +msgid "Platform support" +msgstr "" + +#: ../../whatsnew/3.14.rst:1087 +msgid "" +":pep:`776`: Emscripten is now an officially supported platform at :pep:`tier " +"3 <11#tier-3>`. As a part of this effort, more than 25 bugs in `Emscripten " +"libc`__ were fixed. Emscripten now includes support for :mod:`ctypes`, :mod:" +"`termios`, and :mod:`fcntl`, as well as experimental support for :ref:" +"`PyREPL `." +msgstr "" + +#: ../../whatsnew/3.14.rst:1093 +msgid "" +"(Contributed by R. Hood Chatham in :gh:`127146`, :gh:`127683`, and :gh:" +"`136931`.)" +msgstr "" + +#: ../../whatsnew/3.14.rst:1098 msgid "Other language changes" msgstr "" -#: ../../whatsnew/3.14.rst:1088 +#: ../../whatsnew/3.14.rst:1100 msgid "" "The default :term:`interactive` shell now supports import autocompletion. " "This means that typing ``import foo`` and pressing ```` will suggest " @@ -1555,14 +1574,14 @@ msgid "" "in :gh:`69605`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1095 +#: ../../whatsnew/3.14.rst:1107 msgid "" "The :func:`map` built-in now has an optional keyword-only *strict* flag " "like :func:`zip` to check that all the iterables are of equal length. " "(Contributed by Wannes Boeykens in :gh:`119793`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1099 +#: ../../whatsnew/3.14.rst:1111 msgid "" "Incorrect usage of :keyword:`await` and asynchronous comprehensions is now " "detected even if the code is optimized away by the :option:`-O` command-line " @@ -1570,7 +1589,7 @@ msgid "" "`SyntaxError`. (Contributed by Jelle Zijlstra in :gh:`121637`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1104 +#: ../../whatsnew/3.14.rst:1116 msgid "" "Writes to ``__debug__`` are now detected even if the code is optimized away " "by the :option:`-O` command-line option. For example, ``python -O -c 'assert " @@ -1578,7 +1597,7 @@ msgid "" "Katriel in :gh:`122245`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1109 +#: ../../whatsnew/3.14.rst:1121 msgid "" "Add class methods :meth:`float.from_number` and :meth:`complex.from_number` " "to convert a number to :class:`float` or :class:`complex` type " @@ -1586,32 +1605,32 @@ msgid "" "(Contributed by Serhiy Storchaka in :gh:`84978`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1114 +#: ../../whatsnew/3.14.rst:1126 msgid "" "Implement mixed-mode arithmetic rules combining real and complex numbers as " "specified by C standards since C99. (Contributed by Sergey B Kirpichev in :" "gh:`69639`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1118 +#: ../../whatsnew/3.14.rst:1130 msgid "" "All Windows code pages are now supported as \"cpXXX\" codecs on Windows. " "(Contributed by Serhiy Storchaka in :gh:`123803`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1121 +#: ../../whatsnew/3.14.rst:1133 msgid "" ":class:`super` objects are now :mod:`pickleable ` and :mod:`copyable " "`. (Contributed by Serhiy Storchaka in :gh:`125767`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1125 +#: ../../whatsnew/3.14.rst:1137 msgid "" "The :class:`memoryview` type now supports subscription, making it a :term:" "`generic type`. (Contributed by Brian Schubert in :gh:`126012`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1129 +#: ../../whatsnew/3.14.rst:1141 msgid "" "Support underscore and comma as thousands separators in the fractional part " "for floating-point presentation types of the new-style string formatting " @@ -1619,14 +1638,14 @@ msgid "" "Kirpichev in :gh:`87790`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1134 +#: ../../whatsnew/3.14.rst:1146 msgid "" "The :func:`bytes.fromhex` and :func:`bytearray.fromhex` methods now accept " "ASCII :class:`bytes` and :term:`bytes-like objects `. " "(Contributed by Daniel Pope in :gh:`129349`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1138 +#: ../../whatsnew/3.14.rst:1150 msgid "" "Support ``\\z`` as a synonym for ``\\Z`` in :mod:`regular expressions `. " "It is interpreted unambiguously in many other regular expression engines, " @@ -1634,35 +1653,35 @@ msgid "" "Storchaka in :gh:`133306`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1143 +#: ../../whatsnew/3.14.rst:1155 msgid "" "``\\B`` in :mod:`regular expression ` now matches empty input string. " "Now it is always the opposite of ``\\b``. (Contributed by Serhiy Storchaka " "in :gh:`124130`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1147 +#: ../../whatsnew/3.14.rst:1159 msgid "" "iOS and macOS apps can now be configured to redirect ``stdout`` and " "``stderr`` content to the system log. (Contributed by Russell Keith-Magee " "in :gh:`127592`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1151 +#: ../../whatsnew/3.14.rst:1163 msgid "" "The iOS testbed is now able to stream test output while the test is running. " "The testbed can also be used to run the test suite of projects other than " "CPython itself. (Contributed by Russell Keith-Magee in :gh:`127592`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1155 +#: ../../whatsnew/3.14.rst:1167 msgid "" "Three-argument :func:`pow` now tries calling :meth:`~object.__rpow__` if " "necessary. Previously it was only called in two-argument :func:`!pow` and " "the binary power operator. (Contributed by Serhiy Storchaka in :gh:`130104`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1160 +#: ../../whatsnew/3.14.rst:1172 msgid "" "Add a built-in implementation for HMAC (:rfc:`2104`) using formally verified " "code from the `HACL* `__ project. " @@ -1670,7 +1689,7 @@ msgid "" "HMAC is not available. (Contributed by Bénédikt Tran in :gh:`99108`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1166 +#: ../../whatsnew/3.14.rst:1178 msgid "" "The import time flag can now track modules that are already loaded " "('cached'), via the new :option:`-X importtime=2 <-X>`. When such a module " @@ -1679,7 +1698,7 @@ msgid "" "for future use. (Contributed by Noah Kim and Adam Turner in :gh:`118655`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1173 +#: ../../whatsnew/3.14.rst:1185 msgid "" "When subclassing from a pure C type, the C slots for the new type are no " "longer replaced with a wrapped version on class creation if they are not " @@ -1687,14 +1706,14 @@ msgid "" "`132329`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1178 +#: ../../whatsnew/3.14.rst:1190 msgid "" "The command-line option :option:`-c` now automatically dedents its code " "argument before execution. The auto-dedentation behavior mirrors :func:" "`textwrap.dedent`. (Contributed by Jon Crall and Steven Sun in :gh:`103998`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1183 +#: ../../whatsnew/3.14.rst:1195 msgid "" "Improve error message when an object supporting the synchronous context " "manager protocol is entered using :keyword:`async with` instead of :keyword:" @@ -1702,45 +1721,45 @@ msgid "" "(Contributed by Bénédikt Tran in :gh:`128398`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1189 +#: ../../whatsnew/3.14.rst:1201 msgid "" ":option:`!-J` is no longer a reserved flag for Jython_, and now has no " "special meaning. (Contributed by Adam Turner in :gh:`133336`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1198 +#: ../../whatsnew/3.14.rst:1210 msgid "" "PEP 765: Disallow ``return``/``break``/``continue`` that exit a ``finally`` " "block" msgstr "" -#: ../../whatsnew/3.14.rst:1200 +#: ../../whatsnew/3.14.rst:1212 msgid "" "The compiler emits a :exc:`SyntaxWarning` when a :keyword:`return`, :keyword:" "`break` or :keyword:`continue` statements appears where it exits a :keyword:" "`finally` block. This change is specified in :pep:`765`." msgstr "" -#: ../../whatsnew/3.14.rst:1206 +#: ../../whatsnew/3.14.rst:1218 msgid "New modules" msgstr "新しいモジュール" -#: ../../whatsnew/3.14.rst:1208 +#: ../../whatsnew/3.14.rst:1220 msgid "" ":mod:`annotationlib`: For introspecting :term:`annotations `. " "See :pep:`749` for more details. (Contributed by Jelle Zijlstra in :gh:" "`119180`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1214 +#: ../../whatsnew/3.14.rst:1226 msgid "Improved modules" msgstr "" -#: ../../whatsnew/3.14.rst:1217 ../../whatsnew/3.14.rst:2487 +#: ../../whatsnew/3.14.rst:1229 ../../whatsnew/3.14.rst:2499 msgid "argparse" msgstr "argparse" -#: ../../whatsnew/3.14.rst:1219 +#: ../../whatsnew/3.14.rst:1231 msgid "" "The default value of the :ref:`program name ` for :class:`argparse." "ArgumentParser` now reflects the way the Python interpreter was instructed " @@ -1748,7 +1767,7 @@ msgid "" "Alyssa Coghlan in :gh:`66436`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1224 +#: ../../whatsnew/3.14.rst:1236 msgid "" "Introduced the optional *suggest_on_error* parameter to :class:`argparse." "ArgumentParser`, enabling suggestions for argument choices and subparser " @@ -1756,7 +1775,7 @@ msgid "" "`124456`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1231 +#: ../../whatsnew/3.14.rst:1243 msgid "" "Enable color for help text, which can be disabled with the optional *color* " "parameter to :class:`argparse.ArgumentParser`. This can also be controlled " @@ -1764,53 +1783,53 @@ msgid "" "by Hugo van Kemenade in :gh:`130645`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1239 ../../whatsnew/3.14.rst:2502 +#: ../../whatsnew/3.14.rst:1251 ../../whatsnew/3.14.rst:2514 msgid "ast" msgstr "ast" -#: ../../whatsnew/3.14.rst:1241 +#: ../../whatsnew/3.14.rst:1253 msgid "" "Add :func:`ast.compare` for comparing two ASTs. (Contributed by Batuhan " "Taskaya and Jeremy Hylton in :gh:`60191`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1244 +#: ../../whatsnew/3.14.rst:1256 msgid "" "Add support for :func:`copy.replace` for AST nodes. (Contributed by Bénédikt " "Tran in :gh:`121141`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1247 +#: ../../whatsnew/3.14.rst:1259 msgid "" "Docstrings are now removed from an optimized AST in optimization level 2. " "(Contributed by Irit Katriel in :gh:`123958`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1250 +#: ../../whatsnew/3.14.rst:1262 msgid "" "The ``repr()`` output for AST nodes now includes more information. " "(Contributed by Tomas Roun in :gh:`116022`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1253 +#: ../../whatsnew/3.14.rst:1265 msgid "" ":func:`ast.parse`, when called with an AST as input, now always verifies " "that the root node type is appropriate. (Contributed by Irit Katriel in :gh:" "`130139`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1257 +#: ../../whatsnew/3.14.rst:1269 msgid "" "Add new ``--feature-version``, ``--optimize``, ``--show-empty`` options to " "command-line interface. (Contributed by Semyon Moroz in :gh:`133367`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1263 ../../whatsnew/3.14.rst:2269 -#: ../../whatsnew/3.14.rst:2530 +#: ../../whatsnew/3.14.rst:1275 ../../whatsnew/3.14.rst:2281 +#: ../../whatsnew/3.14.rst:2542 msgid "asyncio" msgstr "asyncio" -#: ../../whatsnew/3.14.rst:1265 +#: ../../whatsnew/3.14.rst:1277 msgid "" "The function and methods named :func:`!create_task` now take an arbitrary " "list of keyword arguments. All keyword arguments are passed to the :class:" @@ -1820,28 +1839,28 @@ msgid "" "``name`` keyword argument of the factory, and ``context`` may be ``None``." msgstr "" -#: ../../whatsnew/3.14.rst:1273 +#: ../../whatsnew/3.14.rst:1285 msgid "" "This affects the following function and methods: :meth:`asyncio." "create_task`, :meth:`asyncio.loop.create_task`, :meth:`asyncio.TaskGroup." "create_task`. (Contributed by Thomas Grainger in :gh:`128307`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1281 +#: ../../whatsnew/3.14.rst:1293 msgid "bdb" msgstr "" -#: ../../whatsnew/3.14.rst:1283 +#: ../../whatsnew/3.14.rst:1295 msgid "" "The :mod:`bdb` module now supports the :mod:`sys.monitoring` backend. " "(Contributed by Tian Gao in :gh:`124533`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1290 +#: ../../whatsnew/3.14.rst:1302 msgid "calendar" msgstr "calendar" -#: ../../whatsnew/3.14.rst:1292 +#: ../../whatsnew/3.14.rst:1304 msgid "" "By default, today's date is highlighted in color in :mod:`calendar`'s :ref:" "`command-line ` text output. This can be controlled by :ref:" @@ -1849,11 +1868,11 @@ msgid "" "van Kemenade in :gh:`128317`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1300 +#: ../../whatsnew/3.14.rst:1312 msgid "concurrent.futures" msgstr "concurrent.futures" -#: ../../whatsnew/3.14.rst:1304 +#: ../../whatsnew/3.14.rst:1316 msgid "" "Add :class:`~concurrent.futures.InterpreterPoolExecutor`, which exposes " "\"subinterpreters\" (multiple Python interpreters in the same process) to " @@ -1861,7 +1880,7 @@ msgid "" "(Contributed by Eric Snow in :gh:`124548`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1312 +#: ../../whatsnew/3.14.rst:1324 msgid "" "The default :class:`~concurrent.futures.ProcessPoolExecutor` :ref:`start " "method ` changed from :ref:`fork " @@ -1870,14 +1889,14 @@ msgid "" "was already :ref:`spawn `." msgstr "" -#: ../../whatsnew/3.14.rst:1318 +#: ../../whatsnew/3.14.rst:1330 msgid "" "If the threading incompatible *fork* method is required, you must explicitly " "request it by supplying a multiprocessing context *mp_context* to :class:" "`~concurrent.futures.ProcessPoolExecutor`." msgstr "" -#: ../../whatsnew/3.14.rst:1322 ../../whatsnew/3.14.rst:1782 +#: ../../whatsnew/3.14.rst:1334 ../../whatsnew/3.14.rst:1794 msgid "" "See :ref:`forkserver restrictions ` " "for information and differences with the *fork* method and how this change " @@ -1885,11 +1904,11 @@ msgid "" "objects that can not be automatically :mod:`pickled `." msgstr "" -#: ../../whatsnew/3.14.rst:1327 ../../whatsnew/3.14.rst:1787 +#: ../../whatsnew/3.14.rst:1339 ../../whatsnew/3.14.rst:1799 msgid "(Contributed by Gregory P. Smith in :gh:`84559`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1329 +#: ../../whatsnew/3.14.rst:1341 msgid "" "Add :meth:`concurrent.futures.ProcessPoolExecutor.terminate_workers` and :" "meth:`concurrent.futures.ProcessPoolExecutor.kill_workers` as ways to " @@ -1897,7 +1916,7 @@ msgid "" "(Contributed by Charles Machalow in :gh:`130849`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1334 +#: ../../whatsnew/3.14.rst:1346 msgid "" "Add the optional ``buffersize`` parameter to :meth:`concurrent.futures." "Executor.map` to limit the number of submitted tasks whose results have not " @@ -1906,11 +1925,11 @@ msgid "" "Bonnal and Josh Rosenberg in :gh:`74028`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1342 +#: ../../whatsnew/3.14.rst:1354 msgid "configparser" msgstr "configparser" -#: ../../whatsnew/3.14.rst:1344 +#: ../../whatsnew/3.14.rst:1356 msgid "" "Security fix: will no longer write config files it cannot read. Attempting " "to :meth:`configparser.ConfigParser.write` keys containing delimiters or " @@ -1918,21 +1937,21 @@ msgid "" "InvalidWriteError`. (Contributed by Jacob Lincoln in :gh:`129270`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1351 +#: ../../whatsnew/3.14.rst:1363 msgid "contextvars" msgstr "contextvars" -#: ../../whatsnew/3.14.rst:1353 +#: ../../whatsnew/3.14.rst:1365 msgid "" "Support context manager protocol by :class:`contextvars.Token`. (Contributed " "by Andrew Svetlov in :gh:`129889`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1358 +#: ../../whatsnew/3.14.rst:1370 msgid "ctypes" msgstr "ctypes" -#: ../../whatsnew/3.14.rst:1360 +#: ../../whatsnew/3.14.rst:1372 msgid "" "The layout of :ref:`bit fields ` in :" "class:`~ctypes.Structure` and :class:`~ctypes.Union` now matches platform " @@ -1940,13 +1959,13 @@ msgid "" "overlap. (Contributed by Matthias Görgens in :gh:`97702`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1366 +#: ../../whatsnew/3.14.rst:1378 msgid "" "The :attr:`.Structure._layout_` class attribute can now be set to help match " "a non-default ABI. (Contributed by Petr Viktorin in :gh:`97702`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1370 +#: ../../whatsnew/3.14.rst:1382 msgid "" "The class of :class:`~ctypes.Structure`/:class:`~ctypes.Union` field " "descriptors is now available as :class:`~ctypes.CField`, and has new " @@ -1954,19 +1973,19 @@ msgid "" "in :gh:`128715`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1375 +#: ../../whatsnew/3.14.rst:1387 msgid "" "On Windows, the :exc:`~ctypes.COMError` exception is now public. " "(Contributed by Jun Komoda in :gh:`126686`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1378 +#: ../../whatsnew/3.14.rst:1390 msgid "" "On Windows, the :func:`~ctypes.CopyComPointer` function is now public. " "(Contributed by Jun Komoda in :gh:`127275`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1381 +#: ../../whatsnew/3.14.rst:1393 msgid "" ":func:`ctypes.memoryview_at` now exists to create a :class:`memoryview` " "object that refers to the supplied pointer and length. This works like :func:" @@ -1975,7 +1994,7 @@ msgid "" "sized buffers. (Contributed by Rian Hunter in :gh:`112018`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1388 +#: ../../whatsnew/3.14.rst:1400 msgid "" "Complex types, :class:`~ctypes.c_float_complex`, :class:`~ctypes." "c_double_complex` and :class:`~ctypes.c_longdouble_complex`, are now " @@ -1983,13 +2002,13 @@ msgid "" "types. (Contributed by Sergey B Kirpichev in :gh:`61103`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1394 +#: ../../whatsnew/3.14.rst:1406 msgid "" "Add :func:`ctypes.util.dllist` for listing the shared libraries loaded by " "the current process. (Contributed by Brian Ward in :gh:`119349`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1398 +#: ../../whatsnew/3.14.rst:1410 msgid "" "Move :func:`ctypes.POINTER` types cache from a global internal cache " "(``_pointer_type_cache``) to the :attr:`ctypes._CData.__pointer_type__` " @@ -1998,73 +2017,73 @@ msgid "" "Miryanov in :gh:`100926`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1404 +#: ../../whatsnew/3.14.rst:1416 msgid "" "The :class:`ctypes.py_object` type now supports subscription, making it a :" "term:`generic type`. (Contributed by Brian Schubert in :gh:`132168`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1408 +#: ../../whatsnew/3.14.rst:1420 msgid "" ":mod:`ctypes` now supports :term:`free-threading builds `. " "(Contributed by Kumar Aditya and Peter Bierma in :gh:`127945`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1412 +#: ../../whatsnew/3.14.rst:1424 msgid "curses" msgstr "curses" -#: ../../whatsnew/3.14.rst:1414 +#: ../../whatsnew/3.14.rst:1426 msgid "" "Add the :func:`~curses.assume_default_colors` function, a refinement of the :" "func:`~curses.use_default_colors` function which allows to change the color " "pair ``0``. (Contributed by Serhiy Storchaka in :gh:`133139`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1420 +#: ../../whatsnew/3.14.rst:1432 msgid "datetime" msgstr "datetime" -#: ../../whatsnew/3.14.rst:1422 +#: ../../whatsnew/3.14.rst:1434 msgid "" "Add :meth:`datetime.time.strptime` and :meth:`datetime.date.strptime`. " "(Contributed by Wannes Boeykens in :gh:`41431`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1426 +#: ../../whatsnew/3.14.rst:1438 msgid "decimal" msgstr "decimal" -#: ../../whatsnew/3.14.rst:1428 +#: ../../whatsnew/3.14.rst:1440 msgid "" "Add alternative :class:`~decimal.Decimal` constructor :meth:`Decimal." "from_number() `. (Contributed by Serhiy " "Storchaka in :gh:`121798`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1432 +#: ../../whatsnew/3.14.rst:1444 msgid "" "Expose :func:`decimal.IEEEContext` to support creation of contexts " "corresponding to the IEEE 754 (2008) decimal interchange formats. " "(Contributed by Sergey B Kirpichev in :gh:`53032`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1437 +#: ../../whatsnew/3.14.rst:1449 msgid "difflib" msgstr "difflib" -#: ../../whatsnew/3.14.rst:1439 +#: ../../whatsnew/3.14.rst:1451 msgid "" "Comparison pages with highlighted changes generated by the :class:`difflib." "HtmlDiff` class now support dark mode. (Contributed by Jiahao Li in :gh:" "`129939`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1444 +#: ../../whatsnew/3.14.rst:1456 msgid "dis" msgstr "dis" -#: ../../whatsnew/3.14.rst:1446 +#: ../../whatsnew/3.14.rst:1458 msgid "" "Add support for rendering full source location information of :class:" "`instructions `, rather than only the line number. This " @@ -2072,49 +2091,49 @@ msgid "" "keyword argument:" msgstr "" -#: ../../whatsnew/3.14.rst:1451 +#: ../../whatsnew/3.14.rst:1463 msgid ":class:`dis.Bytecode`" msgstr "" -#: ../../whatsnew/3.14.rst:1452 +#: ../../whatsnew/3.14.rst:1464 msgid ":func:`dis.dis`" msgstr "" -#: ../../whatsnew/3.14.rst:1453 +#: ../../whatsnew/3.14.rst:1465 msgid ":func:`dis.distb`" msgstr "" -#: ../../whatsnew/3.14.rst:1454 +#: ../../whatsnew/3.14.rst:1466 msgid ":func:`dis.disassemble`" msgstr "" -#: ../../whatsnew/3.14.rst:1456 +#: ../../whatsnew/3.14.rst:1468 msgid "" "This feature is also exposed via :option:`dis --show-positions`. " "(Contributed by Bénédikt Tran in :gh:`123165`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1459 +#: ../../whatsnew/3.14.rst:1471 msgid "" "Add the :option:`dis --specialized` command-line option to show specialized " "bytecode. (Contributed by Bénédikt Tran in :gh:`127413`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1465 +#: ../../whatsnew/3.14.rst:1477 msgid "errno" msgstr "errno" -#: ../../whatsnew/3.14.rst:1467 +#: ../../whatsnew/3.14.rst:1479 msgid "" "Add :data:`errno.EHWPOISON` error code. (Contributed by James Roy in :gh:" "`126585`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1472 +#: ../../whatsnew/3.14.rst:1484 msgid "faulthandler" msgstr "faulthandler" -#: ../../whatsnew/3.14.rst:1474 +#: ../../whatsnew/3.14.rst:1486 msgid "" "Add support for printing the C stack trace on systems that :ref:`support it " "` via :func:`faulthandler.dump_c_stack` or via the " @@ -2122,63 +2141,63 @@ msgid "" "Bierma in :gh:`127604`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1481 +#: ../../whatsnew/3.14.rst:1493 msgid "fnmatch" msgstr "" -#: ../../whatsnew/3.14.rst:1483 +#: ../../whatsnew/3.14.rst:1495 msgid "" "Added :func:`fnmatch.filterfalse` for excluding names matching a pattern. " "(Contributed by Bénédikt Tran in :gh:`74598`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1488 +#: ../../whatsnew/3.14.rst:1500 msgid "fractions" msgstr "fractions" -#: ../../whatsnew/3.14.rst:1490 +#: ../../whatsnew/3.14.rst:1502 msgid "" "Add support for converting any objects that have the :meth:`!" "as_integer_ratio` method to a :class:`~fractions.Fraction`. (Contributed by " "Serhiy Storchaka in :gh:`82017`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1494 +#: ../../whatsnew/3.14.rst:1506 msgid "" "Add alternative :class:`~fractions.Fraction` constructor :meth:`Fraction." "from_number() `. (Contributed by Serhiy " "Storchaka in :gh:`121797`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1500 +#: ../../whatsnew/3.14.rst:1512 msgid "functools" msgstr "functools" -#: ../../whatsnew/3.14.rst:1502 +#: ../../whatsnew/3.14.rst:1514 msgid "" "Add support to :func:`functools.partial` and :func:`functools.partialmethod` " "for :data:`functools.Placeholder` sentinels to reserve a place for " "positional arguments. (Contributed by Dominykas Grigonis in :gh:`119127`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1507 +#: ../../whatsnew/3.14.rst:1519 msgid "" "Allow the *initial* parameter of :func:`functools.reduce` to be passed as a " "keyword argument. (Contributed by Sayandip Dutta in :gh:`125916`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1513 ../../whatsnew/3.14.rst:2300 +#: ../../whatsnew/3.14.rst:1525 ../../whatsnew/3.14.rst:2312 msgid "gc" msgstr "gc" -#: ../../whatsnew/3.14.rst:1515 +#: ../../whatsnew/3.14.rst:1527 msgid "" "The cyclic garbage collector is now incremental, which changes the meaning " "of the results of :meth:`~gc.get_threshold` and :meth:`~gc.set_threshold` as " "well as :meth:`~gc.get_count` and :meth:`~gc.get_stats`." msgstr "" -#: ../../whatsnew/3.14.rst:1520 +#: ../../whatsnew/3.14.rst:1532 msgid "" "For backwards compatibility, :meth:`~gc.get_threshold` continues to return a " "three-item tuple. The first value is the threshold for young collections, as " @@ -2187,11 +2206,11 @@ msgid "" "is scanned more slowly). The third value is meaningless and is always zero." msgstr "" -#: ../../whatsnew/3.14.rst:1528 +#: ../../whatsnew/3.14.rst:1540 msgid ":meth:`~gc.set_threshold` ignores any items after the second." msgstr "" -#: ../../whatsnew/3.14.rst:1530 +#: ../../whatsnew/3.14.rst:1542 msgid "" ":meth:`~gc.get_count` and :meth:`~gc.get_stats` continue to return the same " "format of results. The only difference is that instead of the results " @@ -2199,34 +2218,34 @@ msgid "" "young generation and the aging and collecting spaces of the old generation." msgstr "" -#: ../../whatsnew/3.14.rst:1537 +#: ../../whatsnew/3.14.rst:1549 msgid "" "In summary, code that attempted to manipulate the behavior of the cycle GC " "may not work exactly as intended, but it is very unlikely to be harmful. All " "other code will work just fine." msgstr "" -#: ../../whatsnew/3.14.rst:1543 +#: ../../whatsnew/3.14.rst:1555 msgid "getopt" msgstr "" -#: ../../whatsnew/3.14.rst:1545 +#: ../../whatsnew/3.14.rst:1557 msgid "" "Add support for options with optional arguments. (Contributed by Serhiy " "Storchaka in :gh:`126374`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1548 +#: ../../whatsnew/3.14.rst:1560 msgid "" "Add support for returning intermixed options and non-option arguments in " "order. (Contributed by Serhiy Storchaka in :gh:`126390`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1553 +#: ../../whatsnew/3.14.rst:1565 msgid "getpass" msgstr "" -#: ../../whatsnew/3.14.rst:1555 +#: ../../whatsnew/3.14.rst:1567 msgid "" "Support keyboard feedback by :func:`getpass.getpass` via the keyword-only " "optional argument ``echo_char``. Placeholder characters are rendered " @@ -2234,68 +2253,68 @@ msgid "" "(Contributed by Semyon Moroz in :gh:`77065`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1562 +#: ../../whatsnew/3.14.rst:1574 msgid "graphlib" msgstr "graphlib" -#: ../../whatsnew/3.14.rst:1564 +#: ../../whatsnew/3.14.rst:1576 msgid "" "Allow :meth:`graphlib.TopologicalSorter.prepare` to be called more than once " "as long as sorting has not started. (Contributed by Daniel Pope in :gh:" "`130914`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1570 +#: ../../whatsnew/3.14.rst:1582 msgid "heapq" msgstr "heapq" -#: ../../whatsnew/3.14.rst:1572 +#: ../../whatsnew/3.14.rst:1584 msgid "Add functions for working with max-heaps:" msgstr "" -#: ../../whatsnew/3.14.rst:1574 +#: ../../whatsnew/3.14.rst:1586 msgid ":func:`heapq.heapify_max`," msgstr "" -#: ../../whatsnew/3.14.rst:1575 +#: ../../whatsnew/3.14.rst:1587 msgid ":func:`heapq.heappush_max`," msgstr "" -#: ../../whatsnew/3.14.rst:1576 +#: ../../whatsnew/3.14.rst:1588 msgid ":func:`heapq.heappop_max`," msgstr "" -#: ../../whatsnew/3.14.rst:1577 +#: ../../whatsnew/3.14.rst:1589 msgid ":func:`heapq.heapreplace_max`" msgstr "" -#: ../../whatsnew/3.14.rst:1578 +#: ../../whatsnew/3.14.rst:1590 msgid ":func:`heapq.heappushpop_max`" msgstr "" -#: ../../whatsnew/3.14.rst:1582 +#: ../../whatsnew/3.14.rst:1594 msgid "hmac" msgstr "hmac" -#: ../../whatsnew/3.14.rst:1584 +#: ../../whatsnew/3.14.rst:1596 msgid "" "Add a built-in implementation for HMAC (:rfc:`2104`) using formally verified " "code from the `HACL* `__ project. " "(Contributed by Bénédikt Tran in :gh:`99108`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1590 +#: ../../whatsnew/3.14.rst:1602 msgid "http" msgstr "http" -#: ../../whatsnew/3.14.rst:1592 +#: ../../whatsnew/3.14.rst:1604 msgid "" "Directory lists and error pages generated by the :mod:`http.server` module " "allow the browser to apply its default dark mode. (Contributed by Yorik " "Hansen in :gh:`123430`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1596 +#: ../../whatsnew/3.14.rst:1608 msgid "" "The :mod:`http.server` module now supports serving over HTTPS using the :" "class:`http.server.HTTPSServer` class. This functionality is exposed by the " @@ -2303,71 +2322,71 @@ msgid "" "options:" msgstr "" -#: ../../whatsnew/3.14.rst:1601 +#: ../../whatsnew/3.14.rst:1613 msgid "``--tls-cert ``: Path to the TLS certificate file." msgstr "" -#: ../../whatsnew/3.14.rst:1602 +#: ../../whatsnew/3.14.rst:1614 msgid "``--tls-key ``: Optional path to the private key file." msgstr "" -#: ../../whatsnew/3.14.rst:1603 +#: ../../whatsnew/3.14.rst:1615 msgid "" "``--tls-password-file ``: Optional path to the password file for the " "private key." msgstr "" -#: ../../whatsnew/3.14.rst:1605 +#: ../../whatsnew/3.14.rst:1617 msgid "(Contributed by Semyon Moroz in :gh:`85162`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1609 +#: ../../whatsnew/3.14.rst:1621 msgid "imaplib" msgstr "imaplib" -#: ../../whatsnew/3.14.rst:1611 +#: ../../whatsnew/3.14.rst:1623 msgid "" "Add :meth:`IMAP4.idle() `, implementing the IMAP4 " "``IDLE`` command as defined in :rfc:`2177`. (Contributed by Forest in :gh:" "`55454`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1617 +#: ../../whatsnew/3.14.rst:1629 msgid "inspect" msgstr "inspect" -#: ../../whatsnew/3.14.rst:1619 +#: ../../whatsnew/3.14.rst:1631 msgid "" ":func:`inspect.signature` takes a new argument *annotation_format* to " "control the :class:`annotationlib.Format` used for representing annotations. " "(Contributed by Jelle Zijlstra in :gh:`101552`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1623 +#: ../../whatsnew/3.14.rst:1635 msgid "" ":meth:`inspect.Signature.format` takes a new argument *unquote_annotations*. " "If true, string :term:`annotations ` are displayed without " "surrounding quotes. (Contributed by Jelle Zijlstra in :gh:`101552`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1627 +#: ../../whatsnew/3.14.rst:1639 msgid "" "Add function :func:`inspect.ispackage` to determine whether an object is a :" "term:`package` or not. (Contributed by Zhikang Yan in :gh:`125634`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1633 ../../whatsnew/3.14.rst:2309 +#: ../../whatsnew/3.14.rst:1645 ../../whatsnew/3.14.rst:2321 msgid "io" msgstr "io" -#: ../../whatsnew/3.14.rst:1635 +#: ../../whatsnew/3.14.rst:1647 msgid "" "Reading text from a non-blocking stream with ``read`` may now raise a :exc:" "`BlockingIOError` if the operation cannot immediately return bytes. " "(Contributed by Giovanni Siragusa in :gh:`109523`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1639 +#: ../../whatsnew/3.14.rst:1651 msgid "" "Add protocols :class:`io.Reader` and :class:`io.Writer` as a simpler " "alternatives to the pseudo-protocols :class:`typing.IO`, :class:`typing." @@ -2375,17 +2394,17 @@ msgid "" "gh:`127648`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1646 +#: ../../whatsnew/3.14.rst:1658 msgid "json" msgstr "json" -#: ../../whatsnew/3.14.rst:1648 +#: ../../whatsnew/3.14.rst:1660 msgid "" "Add notes for JSON serialization errors that allow to identify the source of " "the error. (Contributed by Serhiy Storchaka in :gh:`122163`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1652 +#: ../../whatsnew/3.14.rst:1664 msgid "" "Enable the :mod:`json` module to work as a script using the :option:`-m` " "switch: :program:`python -m json`. See the :ref:`JSON command-line interface " @@ -2393,7 +2412,7 @@ msgid "" "`122873`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1659 +#: ../../whatsnew/3.14.rst:1671 msgid "" "By default, the output of the :ref:`JSON command-line interface ` is highlighted in color. This can be controlled by :ref:" @@ -2401,49 +2420,49 @@ msgid "" "Roun in :gh:`131952`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1666 +#: ../../whatsnew/3.14.rst:1678 msgid "linecache" msgstr "linecache" -#: ../../whatsnew/3.14.rst:1668 +#: ../../whatsnew/3.14.rst:1680 msgid "" ":func:`linecache.getline` can retrieve source code for frozen modules. " "(Contributed by Tian Gao in :gh:`131638`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1673 +#: ../../whatsnew/3.14.rst:1685 msgid "logging.handlers" msgstr "" -#: ../../whatsnew/3.14.rst:1675 +#: ../../whatsnew/3.14.rst:1687 msgid "" ":class:`logging.handlers.QueueListener` now implements the context manager " "protocol, allowing it to be used in a :keyword:`with` statement. " "(Contributed by Charles Machalow in :gh:`132106`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1679 +#: ../../whatsnew/3.14.rst:1691 msgid "" ":meth:`QueueListener.start ` now " "raises a :exc:`RuntimeError` if the listener is already started. " "(Contributed by Charles Machalow in :gh:`132106`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1685 +#: ../../whatsnew/3.14.rst:1697 msgid "math" msgstr "math" -#: ../../whatsnew/3.14.rst:1687 +#: ../../whatsnew/3.14.rst:1699 msgid "" "Added more detailed error messages for domain errors in the module. " "(Contributed by by Charlie Zhao and Sergey B Kirpichev in :gh:`101410`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1692 +#: ../../whatsnew/3.14.rst:1704 msgid "mimetypes" msgstr "mimetypes" -#: ../../whatsnew/3.14.rst:1694 +#: ../../whatsnew/3.14.rst:1706 msgid "" "Document the command-line for :mod:`mimetypes`. It now exits with ``1`` on " "failure instead of ``0`` and ``2`` on incorrect command-line parameters " @@ -2452,202 +2471,202 @@ msgid "" "Kemenade in :gh:`93096`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1701 +#: ../../whatsnew/3.14.rst:1713 msgid "Add MS and :rfc:`8081` MIME types for fonts:" msgstr "" -#: ../../whatsnew/3.14.rst:1703 +#: ../../whatsnew/3.14.rst:1715 msgid "Embedded OpenType: ``application/vnd.ms-fontobject``" msgstr "" -#: ../../whatsnew/3.14.rst:1704 +#: ../../whatsnew/3.14.rst:1716 msgid "OpenType Layout (OTF) ``font/otf``" msgstr "" -#: ../../whatsnew/3.14.rst:1705 +#: ../../whatsnew/3.14.rst:1717 msgid "TrueType: ``font/ttf``" msgstr "" -#: ../../whatsnew/3.14.rst:1706 +#: ../../whatsnew/3.14.rst:1718 msgid "WOFF 1.0 ``font/woff``" msgstr "" -#: ../../whatsnew/3.14.rst:1707 +#: ../../whatsnew/3.14.rst:1719 msgid "WOFF 2.0 ``font/woff2``" msgstr "" -#: ../../whatsnew/3.14.rst:1709 +#: ../../whatsnew/3.14.rst:1721 msgid "(Contributed by Sahil Prajapati and Hugo van Kemenade in :gh:`84852`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1711 +#: ../../whatsnew/3.14.rst:1723 msgid "" "Add :rfc:`9559` MIME types for Matroska audiovisual data container " "structures, containing:" msgstr "" -#: ../../whatsnew/3.14.rst:1714 +#: ../../whatsnew/3.14.rst:1726 msgid "audio with no video: ``audio/matroska`` (``.mka``)" msgstr "" -#: ../../whatsnew/3.14.rst:1715 +#: ../../whatsnew/3.14.rst:1727 msgid "video: ``video/matroska`` (``.mkv``)" msgstr "" -#: ../../whatsnew/3.14.rst:1716 +#: ../../whatsnew/3.14.rst:1728 msgid "stereoscopic video: ``video/matroska-3d`` (``.mk3d``)" msgstr "" -#: ../../whatsnew/3.14.rst:1718 +#: ../../whatsnew/3.14.rst:1730 msgid "(Contributed by Hugo van Kemenade in :gh:`89416`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1720 +#: ../../whatsnew/3.14.rst:1732 msgid "Add MIME types for images with RFCs:" msgstr "" -#: ../../whatsnew/3.14.rst:1722 +#: ../../whatsnew/3.14.rst:1734 msgid ":rfc:`1494`: CCITT Group 3 (``.g3``)" msgstr "" -#: ../../whatsnew/3.14.rst:1723 +#: ../../whatsnew/3.14.rst:1735 msgid ":rfc:`3362`: Real-time Facsimile, T.38 (``.t38``)" msgstr "" -#: ../../whatsnew/3.14.rst:1724 +#: ../../whatsnew/3.14.rst:1736 msgid "" ":rfc:`3745`: JPEG 2000 (``.jp2``), extension (``.jpx``) and compound (``." "jpm``)" msgstr "" -#: ../../whatsnew/3.14.rst:1725 +#: ../../whatsnew/3.14.rst:1737 msgid ":rfc:`3950`: Tag Image File Format Fax eXtended, TIFF-FX (``.tfx``)" msgstr "" -#: ../../whatsnew/3.14.rst:1726 +#: ../../whatsnew/3.14.rst:1738 msgid ":rfc:`4047`: Flexible Image Transport System (``.fits``)" msgstr "" -#: ../../whatsnew/3.14.rst:1727 +#: ../../whatsnew/3.14.rst:1739 msgid "" ":rfc:`7903`: Enhanced Metafile (``.emf``) and Windows Metafile (``.wmf``)" msgstr "" -#: ../../whatsnew/3.14.rst:1729 +#: ../../whatsnew/3.14.rst:1741 msgid "(Contributed by Hugo van Kemenade in :gh:`85957`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1731 +#: ../../whatsnew/3.14.rst:1743 msgid "More MIME type changes:" msgstr "" -#: ../../whatsnew/3.14.rst:1733 +#: ../../whatsnew/3.14.rst:1745 msgid "" ":rfc:`2361`: Change type for ``.avi`` to ``video/vnd.avi`` and for ``.wav`` " "to ``audio/vnd.wave``" msgstr "" -#: ../../whatsnew/3.14.rst:1735 +#: ../../whatsnew/3.14.rst:1747 msgid ":rfc:`4337`: Add MPEG-4 ``audio/mp4`` (``.m4a``)" msgstr "" -#: ../../whatsnew/3.14.rst:1736 +#: ../../whatsnew/3.14.rst:1748 msgid ":rfc:`5334`: Add Ogg media (``.oga``, ``.ogg`` and ``.ogx``)" msgstr "" -#: ../../whatsnew/3.14.rst:1737 +#: ../../whatsnew/3.14.rst:1749 msgid ":rfc:`6713`: Add gzip ``application/gzip`` (``.gz``)" msgstr "" -#: ../../whatsnew/3.14.rst:1738 +#: ../../whatsnew/3.14.rst:1750 msgid ":rfc:`9639`: Add FLAC ``audio/flac`` (``.flac``)" msgstr "" -#: ../../whatsnew/3.14.rst:1739 +#: ../../whatsnew/3.14.rst:1751 msgid "Add 7z ``application/x-7z-compressed`` (``.7z``)" msgstr "" -#: ../../whatsnew/3.14.rst:1740 +#: ../../whatsnew/3.14.rst:1752 msgid "" "Add Android Package ``application/vnd.android.package-archive`` (``.apk``) " "when not strict" msgstr "" -#: ../../whatsnew/3.14.rst:1742 +#: ../../whatsnew/3.14.rst:1754 msgid "Add deb ``application/x-debian-package`` (``.deb``)" msgstr "" -#: ../../whatsnew/3.14.rst:1743 +#: ../../whatsnew/3.14.rst:1755 msgid "Add glTF binary ``model/gltf-binary`` (``.glb``)" msgstr "" -#: ../../whatsnew/3.14.rst:1744 +#: ../../whatsnew/3.14.rst:1756 msgid "Add glTF JSON/ASCII ``model/gltf+json`` (``.gltf``)" msgstr "" -#: ../../whatsnew/3.14.rst:1745 +#: ../../whatsnew/3.14.rst:1757 msgid "Add M4V ``video/x-m4v`` (``.m4v``)" msgstr "" -#: ../../whatsnew/3.14.rst:1746 +#: ../../whatsnew/3.14.rst:1758 msgid "Add PHP ``application/x-httpd-php`` (``.php``)" msgstr "" -#: ../../whatsnew/3.14.rst:1747 +#: ../../whatsnew/3.14.rst:1759 msgid "Add RAR ``application/vnd.rar`` (``.rar``)" msgstr "" -#: ../../whatsnew/3.14.rst:1748 +#: ../../whatsnew/3.14.rst:1760 msgid "Add RPM ``application/x-rpm`` (``.rpm``)" msgstr "" -#: ../../whatsnew/3.14.rst:1749 +#: ../../whatsnew/3.14.rst:1761 msgid "Add STL ``model/stl`` (``.stl``)" msgstr "" -#: ../../whatsnew/3.14.rst:1750 +#: ../../whatsnew/3.14.rst:1762 msgid "Add Windows Media Video ``video/x-ms-wmv`` (``.wmv``)" msgstr "" -#: ../../whatsnew/3.14.rst:1751 +#: ../../whatsnew/3.14.rst:1763 msgid "De facto: Add WebM ``audio/webm`` (``.weba``)" msgstr "" -#: ../../whatsnew/3.14.rst:1752 +#: ../../whatsnew/3.14.rst:1764 msgid "" "`ECMA-376 `__: Add ``.docx``, ``.pptx`` and ``.xlsx`` types" msgstr "" -#: ../../whatsnew/3.14.rst:1755 +#: ../../whatsnew/3.14.rst:1767 msgid "" "`OASIS `__: Add OpenDocument ``.odg``, ``.odp``, ``.ods`` and " "``.odt`` types" msgstr "" -#: ../../whatsnew/3.14.rst:1758 +#: ../../whatsnew/3.14.rst:1770 msgid "" "`W3C `__: Add EPUB " "``application/epub+zip`` (``.epub``)" msgstr "" -#: ../../whatsnew/3.14.rst:1761 +#: ../../whatsnew/3.14.rst:1773 msgid "(Contributed by Hugo van Kemenade in :gh:`129965`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1763 +#: ../../whatsnew/3.14.rst:1775 msgid "" "Add :rfc:`9512` ``application/yaml`` MIME type for YAML files (``.yaml`` and " "``.yml``). (Contributed by Sasha \"Nelie\" Chernykh and Hugo van Kemenade " "in :gh:`132056`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1769 +#: ../../whatsnew/3.14.rst:1781 msgid "multiprocessing" msgstr "multiprocessing" -#: ../../whatsnew/3.14.rst:1773 +#: ../../whatsnew/3.14.rst:1785 msgid "" "The default :ref:`start method ` changed " "from :ref:`fork ` to :ref:`forkserver " @@ -2656,7 +2675,7 @@ msgid "" "spawn>`." msgstr "" -#: ../../whatsnew/3.14.rst:1778 +#: ../../whatsnew/3.14.rst:1790 msgid "" "If the threading incompatible *fork* method is required, you must explicitly " "request it via a context from :func:`multiprocessing.get_context` " @@ -2664,7 +2683,7 @@ msgid "" "set_start_method`." msgstr "" -#: ../../whatsnew/3.14.rst:1789 +#: ../../whatsnew/3.14.rst:1801 msgid "" ":mod:`multiprocessing`'s ``\"forkserver\"`` start method now authenticates " "its control socket to avoid solely relying on filesystem permissions to " @@ -2672,27 +2691,27 @@ msgid "" "and run code. (Contributed by Gregory P. Smith for :gh:`97514`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1795 +#: ../../whatsnew/3.14.rst:1807 msgid "" "The :ref:`multiprocessing proxy objects ` for " "*list* and *dict* types gain previously overlooked missing methods:" msgstr "" -#: ../../whatsnew/3.14.rst:1798 +#: ../../whatsnew/3.14.rst:1810 msgid ":meth:`!clear` and :meth:`!copy` for proxies of :class:`list`" msgstr "" -#: ../../whatsnew/3.14.rst:1799 +#: ../../whatsnew/3.14.rst:1811 msgid "" ":meth:`~dict.fromkeys`, ``reversed(d)``, ``d | {}``, ``{} | d``, ``d |= " "{'b': 2}`` for proxies of :class:`dict`" msgstr "" -#: ../../whatsnew/3.14.rst:1802 +#: ../../whatsnew/3.14.rst:1814 msgid "(Contributed by Roy Hyunjin Han for :gh:`103134`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1804 +#: ../../whatsnew/3.14.rst:1816 msgid "" "Add support for shared :class:`set` objects via :meth:`SyncManager.set() " "`. The :func:`set` in :func:" @@ -2700,7 +2719,7 @@ msgid "" "Park in :gh:`129949`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1809 +#: ../../whatsnew/3.14.rst:1821 msgid "" "Add :func:`multiprocessing.Process.interrupt` which terminates the child " "process by sending :py:const:`~signal.SIGINT`. This enables :keyword:" @@ -2708,11 +2727,11 @@ msgid "" "(Contributed by Artem Pulkin in :gh:`131913`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1815 +#: ../../whatsnew/3.14.rst:1827 msgid "operator" msgstr "operator" -#: ../../whatsnew/3.14.rst:1817 +#: ../../whatsnew/3.14.rst:1829 msgid "" "Two new functions :func:`operator.is_none` and :func:`operator.is_not_none` " "have been added, such that ``operator.is_none(obj)`` is equivalent to ``obj " @@ -2720,11 +2739,11 @@ msgid "" "None``. (Contributed by Raymond Hettinger and Nico Mexis in :gh:`115808`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1825 +#: ../../whatsnew/3.14.rst:1837 msgid "os" msgstr "os" -#: ../../whatsnew/3.14.rst:1827 +#: ../../whatsnew/3.14.rst:1839 msgid "" "Add the :func:`os.reload_environ` function to update :data:`os.environ` and :" "data:`os.environb` with changes to the environment made by :func:`os." @@ -2732,24 +2751,24 @@ msgid "" "(Contributed by Victor Stinner in :gh:`120057`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1833 +#: ../../whatsnew/3.14.rst:1845 msgid "" "Add the :data:`~os.SCHED_DEADLINE` and :data:`~os.SCHED_NORMAL` constants to " "the :mod:`os` module. (Contributed by James Roy in :gh:`127688`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1837 +#: ../../whatsnew/3.14.rst:1849 msgid "" "Add the :func:`os.readinto` function to read into a :ref:`buffer object " "` from a file descriptor. (Contributed by Cody Maloney in :gh:" "`129205`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1843 +#: ../../whatsnew/3.14.rst:1855 msgid "os.path" msgstr "os.path" -#: ../../whatsnew/3.14.rst:1845 +#: ../../whatsnew/3.14.rst:1857 msgid "" "The *strict* parameter to :func:`os.path.realpath` accepts a new value, :" "data:`os.path.ALLOW_MISSING`. If used, errors other than :exc:" @@ -2758,39 +2777,39 @@ msgid "" "`2025-4517`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1853 ../../whatsnew/3.14.rst:2679 +#: ../../whatsnew/3.14.rst:1865 ../../whatsnew/3.14.rst:2691 msgid "pathlib" msgstr "pathlib" -#: ../../whatsnew/3.14.rst:1855 +#: ../../whatsnew/3.14.rst:1867 msgid "" "Add methods to :class:`pathlib.Path` to recursively copy or move files and " "directories:" msgstr "" -#: ../../whatsnew/3.14.rst:1858 +#: ../../whatsnew/3.14.rst:1870 msgid "" ":meth:`~pathlib.Path.copy` copies a file or directory tree to a destination." msgstr "" -#: ../../whatsnew/3.14.rst:1859 +#: ../../whatsnew/3.14.rst:1871 msgid ":meth:`~pathlib.Path.copy_into` copies *into* a destination directory." msgstr "" -#: ../../whatsnew/3.14.rst:1860 +#: ../../whatsnew/3.14.rst:1872 msgid "" ":meth:`~pathlib.Path.move` moves a file or directory tree to a destination." msgstr "" -#: ../../whatsnew/3.14.rst:1861 +#: ../../whatsnew/3.14.rst:1873 msgid ":meth:`~pathlib.Path.move_into` moves *into* a destination directory." msgstr "" -#: ../../whatsnew/3.14.rst:1863 +#: ../../whatsnew/3.14.rst:1875 msgid "(Contributed by Barney Gale in :gh:`73991`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1865 +#: ../../whatsnew/3.14.rst:1877 msgid "" "Add :attr:`pathlib.Path.info` attribute, which stores an object implementing " "the :class:`pathlib.types.PathInfo` protocol (also new). The object supports " @@ -2800,11 +2819,11 @@ msgid "" "Barney Gale in :gh:`125413`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1875 +#: ../../whatsnew/3.14.rst:1887 msgid "pdb" msgstr "pdb" -#: ../../whatsnew/3.14.rst:1877 +#: ../../whatsnew/3.14.rst:1889 msgid "" "Hardcoded breakpoints (:func:`breakpoint` and :func:`pdb.set_trace`) now " "reuse the most recent :class:`~pdb.Pdb` instance that calls :meth:`~pdb.Pdb." @@ -2814,14 +2833,14 @@ msgid "" "`121450`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1884 +#: ../../whatsnew/3.14.rst:1896 msgid "" "Add a new argument *mode* to :class:`pdb.Pdb`. Disable the ``restart`` " "command when :mod:`pdb` is in ``inline`` mode. (Contributed by Tian Gao in :" "gh:`123757`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1888 +#: ../../whatsnew/3.14.rst:1900 msgid "" "A confirmation prompt will be shown when the user tries to quit :mod:`pdb` " "in ``inline`` mode. ``y``, ``Y``, ```` or ``EOF`` will confirm the " @@ -2829,34 +2848,34 @@ msgid "" "(Contributed by Tian Gao in :gh:`124704`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1893 +#: ../../whatsnew/3.14.rst:1905 msgid "" "Inline breakpoints like :func:`breakpoint` or :func:`pdb.set_trace` will " "always stop the program at calling frame, ignoring the ``skip`` pattern (if " "any). (Contributed by Tian Gao in :gh:`130493`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1898 +#: ../../whatsnew/3.14.rst:1910 msgid "" "```` at the beginning of the line in :mod:`pdb` multi-line input will " "fill in a 4-space indentation now, instead of inserting a ``\\t`` character. " "(Contributed by Tian Gao in :gh:`130471`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1902 +#: ../../whatsnew/3.14.rst:1914 msgid "" "Auto-indent is introduced in :mod:`pdb` multi-line input. It will either " "keep the indentation of the last line or insert a 4-space indentation when " "it detects a new code block. (Contributed by Tian Gao in :gh:`133350`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1907 +#: ../../whatsnew/3.14.rst:1919 msgid "" "``$_asynctask`` is added to access the current asyncio task if applicable. " "(Contributed by Tian Gao in :gh:`124367`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1910 +#: ../../whatsnew/3.14.rst:1922 msgid "" ":mod:`pdb` now supports two backends: :func:`sys.settrace` and :mod:`sys." "monitoring`. Using :mod:`pdb` CLI or :func:`breakpoint` will always use the :" @@ -2865,14 +2884,14 @@ msgid "" "which is configurable. (Contributed by Tian Gao in :gh:`124533`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1917 +#: ../../whatsnew/3.14.rst:1929 msgid "" ":func:`pdb.set_trace_async` is added to support debugging asyncio " "coroutines. :keyword:`await` statements are supported with this function. " "(Contributed by Tian Gao in :gh:`132576`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1922 +#: ../../whatsnew/3.14.rst:1934 msgid "" "Source code displayed in :mod:`pdb` will be syntax-highlighted. This feature " "can be controlled using the same methods as PyREPL, in addition to the newly " @@ -2880,212 +2899,212 @@ msgid "" "and Łukasz Langa in :gh:`133355`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1929 +#: ../../whatsnew/3.14.rst:1941 msgid "pickle" msgstr "pickle" -#: ../../whatsnew/3.14.rst:1931 +#: ../../whatsnew/3.14.rst:1943 msgid "" "Set the default protocol version on the :mod:`pickle` module to 5. For more " "details, see :ref:`pickle protocols `." msgstr "" -#: ../../whatsnew/3.14.rst:1934 +#: ../../whatsnew/3.14.rst:1946 msgid "" "Add notes for pickle serialization errors that allow to identify the source " "of the error. (Contributed by Serhiy Storchaka in :gh:`122213`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1940 +#: ../../whatsnew/3.14.rst:1952 msgid "platform" msgstr "プラットフォーム" -#: ../../whatsnew/3.14.rst:1942 +#: ../../whatsnew/3.14.rst:1954 msgid "" "Add :func:`platform.invalidate_caches` to invalidate the cached results. " "(Contributed by Bénédikt Tran in :gh:`122549`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1947 +#: ../../whatsnew/3.14.rst:1959 msgid "pydoc" msgstr "pydoc" -#: ../../whatsnew/3.14.rst:1949 +#: ../../whatsnew/3.14.rst:1961 msgid "" ":term:`Annotations ` in help output are now usually displayed in " "a format closer to that in the original source. (Contributed by Jelle " "Zijlstra in :gh:`101552`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1955 +#: ../../whatsnew/3.14.rst:1967 msgid "socket" msgstr "socket" -#: ../../whatsnew/3.14.rst:1957 +#: ../../whatsnew/3.14.rst:1969 msgid "Improve and fix support for Bluetooth sockets." msgstr "" -#: ../../whatsnew/3.14.rst:1959 +#: ../../whatsnew/3.14.rst:1971 msgid "" "Fix support of Bluetooth sockets on NetBSD and DragonFly BSD. (Contributed " "by Serhiy Storchaka in :gh:`132429`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1961 +#: ../../whatsnew/3.14.rst:1973 msgid "" "Fix support for :const:`~socket.BTPROTO_HCI` on FreeBSD. (Contributed by " "Victor Stinner in :gh:`111178`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1963 +#: ../../whatsnew/3.14.rst:1975 msgid "" "Add support for :const:`~socket.BTPROTO_SCO` on FreeBSD. (Contributed by " "Serhiy Storchaka in :gh:`85302`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1965 +#: ../../whatsnew/3.14.rst:1977 msgid "" "Add support for *cid* and *bdaddr_type* in the address for :const:`~socket." "BTPROTO_L2CAP` on FreeBSD. (Contributed by Serhiy Storchaka in :gh:`132429`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1968 +#: ../../whatsnew/3.14.rst:1980 msgid "" "Add support for *channel* in the address for :const:`~socket.BTPROTO_HCI` on " "Linux. (Contributed by Serhiy Storchaka in :gh:`70145`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1971 +#: ../../whatsnew/3.14.rst:1983 msgid "" "Accept an integer as the address for :const:`~socket.BTPROTO_HCI` on Linux. " "(Contributed by Serhiy Storchaka in :gh:`132099`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1974 +#: ../../whatsnew/3.14.rst:1986 msgid "" "Return *cid* in :meth:`~socket.socket.getsockname` for :const:`~socket." "BTPROTO_L2CAP`. (Contributed by Serhiy Storchaka in :gh:`132429`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1977 +#: ../../whatsnew/3.14.rst:1989 msgid "" "Add many new constants. (Contributed by Serhiy Storchaka in :gh:`132734`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1981 +#: ../../whatsnew/3.14.rst:1993 msgid "ssl" msgstr "ssl" -#: ../../whatsnew/3.14.rst:1983 +#: ../../whatsnew/3.14.rst:1995 msgid "" "Indicate through :data:`ssl.HAS_PHA` whether the :mod:`ssl` module supports " "TLSv1.3 post-handshake client authentication (PHA). (Contributed by Will " "Childs-Klein in :gh:`128036`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1989 +#: ../../whatsnew/3.14.rst:2001 msgid "struct" msgstr "struct" -#: ../../whatsnew/3.14.rst:1991 +#: ../../whatsnew/3.14.rst:2003 msgid "" "Support the :c:expr:`float complex` and :c:expr:`double complex` C types in " "the :mod:`struct` module (formatting characters ``'F'`` and ``'D'`` " "respectively). (Contributed by Sergey B Kirpichev in :gh:`121249`.)" msgstr "" -#: ../../whatsnew/3.14.rst:1998 +#: ../../whatsnew/3.14.rst:2010 msgid "symtable" msgstr "" -#: ../../whatsnew/3.14.rst:2000 +#: ../../whatsnew/3.14.rst:2012 msgid "Expose the following :class:`symtable.Symbol` methods:" msgstr "" -#: ../../whatsnew/3.14.rst:2002 +#: ../../whatsnew/3.14.rst:2014 msgid ":meth:`~symtable.Symbol.is_comp_cell`" msgstr "" -#: ../../whatsnew/3.14.rst:2003 +#: ../../whatsnew/3.14.rst:2015 msgid ":meth:`~symtable.Symbol.is_comp_iter`" msgstr "" -#: ../../whatsnew/3.14.rst:2004 +#: ../../whatsnew/3.14.rst:2016 msgid ":meth:`~symtable.Symbol.is_free_class`" msgstr "" -#: ../../whatsnew/3.14.rst:2006 +#: ../../whatsnew/3.14.rst:2018 msgid "(Contributed by Bénédikt Tran in :gh:`120029`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2010 +#: ../../whatsnew/3.14.rst:2022 msgid "sys" msgstr "sys" -#: ../../whatsnew/3.14.rst:2012 +#: ../../whatsnew/3.14.rst:2024 msgid "" "The previously undocumented special function :func:`sys.getobjects`, which " "only exists in specialized builds of Python, may now return objects from " "other interpreters than the one it's called in." msgstr "" -#: ../../whatsnew/3.14.rst:2016 +#: ../../whatsnew/3.14.rst:2028 msgid "" "Add :func:`sys._is_immortal` for determining if an object is :term:" "`immortal`. (Contributed by Peter Bierma in :gh:`128509`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2019 +#: ../../whatsnew/3.14.rst:2031 msgid "" "On FreeBSD, :data:`sys.platform` doesn't contain the major version anymore. " "It is always ``'freebsd'``, instead of ``'freebsd13'`` or ``'freebsd14'``." msgstr "" -#: ../../whatsnew/3.14.rst:2022 +#: ../../whatsnew/3.14.rst:2034 msgid "" "Raise :exc:`DeprecationWarning` for :func:`sys._clear_type_cache`. This " "function was deprecated in Python 3.13 but it didn't raise a runtime warning." msgstr "" -#: ../../whatsnew/3.14.rst:2027 +#: ../../whatsnew/3.14.rst:2039 msgid "sys.monitoring" msgstr "" -#: ../../whatsnew/3.14.rst:2029 +#: ../../whatsnew/3.14.rst:2041 msgid "" "Two new events are added: :monitoring-event:`BRANCH_LEFT` and :monitoring-" "event:`BRANCH_RIGHT`. The ``BRANCH`` event is deprecated." msgstr "" -#: ../../whatsnew/3.14.rst:2034 +#: ../../whatsnew/3.14.rst:2046 msgid "sysconfig" msgstr "sysconfig" -#: ../../whatsnew/3.14.rst:2036 +#: ../../whatsnew/3.14.rst:2048 msgid "" "Add ``ABIFLAGS`` key to :func:`sysconfig.get_config_vars` on Windows. " "(Contributed by Xuehai Pan in :gh:`131799`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2041 +#: ../../whatsnew/3.14.rst:2053 msgid "tarfile" msgstr "tarfile" -#: ../../whatsnew/3.14.rst:2043 +#: ../../whatsnew/3.14.rst:2055 msgid "" ":func:`~tarfile.data_filter` now normalizes symbolic link targets in order " "to avoid path traversal attacks. (Contributed by Petr Viktorin in :gh:" "`127987` and :cve:`2025-4138`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2046 +#: ../../whatsnew/3.14.rst:2058 msgid "" ":func:`~tarfile.TarFile.extractall` now skips fixing up directory attributes " "when a directory was removed or replaced by another kind of file. " "(Contributed by Petr Viktorin in :gh:`127987` and :cve:`2024-12718`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2049 +#: ../../whatsnew/3.14.rst:2061 msgid "" ":func:`~tarfile.TarFile.extract` and :func:`~tarfile.TarFile.extractall` now " "(re-)apply the extraction filter when substituting a link (hard or symbolic) " @@ -3095,7 +3114,7 @@ msgid "" "cve:`2024-12718`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2055 +#: ../../whatsnew/3.14.rst:2067 msgid "" ":func:`~tarfile.TarFile.extract` and :func:`~tarfile.TarFile.extractall` no " "longer extract rejected members when :func:`~tarfile.TarFile.errorlevel` is " @@ -3103,60 +3122,60 @@ msgid "" "cve:`2025-4435`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2063 +#: ../../whatsnew/3.14.rst:2075 msgid "threading" msgstr "threading" -#: ../../whatsnew/3.14.rst:2065 +#: ../../whatsnew/3.14.rst:2077 msgid "" ":meth:`threading.Thread.start` now sets the operating system thread name to :" "attr:`threading.Thread.name`. (Contributed by Victor Stinner in :gh:`59705`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2071 +#: ../../whatsnew/3.14.rst:2083 msgid "tkinter" msgstr "tkinter" -#: ../../whatsnew/3.14.rst:2073 +#: ../../whatsnew/3.14.rst:2085 msgid "" "Make :mod:`tkinter` widget methods :meth:`!after` and :meth:`!after_idle` " "accept arguments passed by keyword. (Contributed by Zhikang Yan in :gh:" "`126899`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2077 +#: ../../whatsnew/3.14.rst:2089 msgid "" "Add ability to specify name for :class:`!tkinter.OptionMenu` and :class:`!" "tkinter.ttk.OptionMenu`. (Contributed by Zhikang Yan in :gh:`130482`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2082 +#: ../../whatsnew/3.14.rst:2094 msgid "turtle" msgstr ":mod:`turtle`" -#: ../../whatsnew/3.14.rst:2084 +#: ../../whatsnew/3.14.rst:2096 msgid "" "Add context managers for :func:`turtle.fill`, :func:`turtle.poly` and :func:" "`turtle.no_animation`. (Contributed by Marie Roald and Yngve Mardal Moe in :" "gh:`126350`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2090 +#: ../../whatsnew/3.14.rst:2102 msgid "types" msgstr "types" -#: ../../whatsnew/3.14.rst:2092 +#: ../../whatsnew/3.14.rst:2104 msgid "" ":class:`types.UnionType` is now an alias for :class:`typing.Union`. See :ref:" "`below ` for more details. (Contributed by Jelle " "Zijlstra in :gh:`105499`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2098 ../../whatsnew/3.14.rst:2717 +#: ../../whatsnew/3.14.rst:2110 ../../whatsnew/3.14.rst:2729 msgid "typing" msgstr "typing" -#: ../../whatsnew/3.14.rst:2102 +#: ../../whatsnew/3.14.rst:2114 msgid "" ":class:`types.UnionType` and :class:`typing.Union` are now aliases for each " "other, meaning that both old-style unions (created with ``Union[int, str]``) " @@ -3166,14 +3185,14 @@ msgid "" "at runtime:" msgstr "" -#: ../../whatsnew/3.14.rst:2108 +#: ../../whatsnew/3.14.rst:2120 msgid "" "Both syntaxes for creating a union now produce the same string " "representation in ``repr()``. For example, ``repr(Union[int, str])`` is now " "``\"int | str\"`` instead of ``\"typing.Union[int, str]\"``." msgstr "" -#: ../../whatsnew/3.14.rst:2111 +#: ../../whatsnew/3.14.rst:2123 msgid "" "Unions created using the old syntax are no longer cached. Previously, " "running ``Union[int, str]`` multiple times would return the same object " @@ -3190,7 +3209,7 @@ msgid "" "in memory usage for most users." msgstr "" -#: ../../whatsnew/3.14.rst:2124 +#: ../../whatsnew/3.14.rst:2136 msgid "" "Previously, old-style unions were implemented using the private class " "``typing._UnionGenericAlias``. This class is no longer needed for the " @@ -3200,76 +3219,76 @@ msgid "" "of relying on private implementation details." msgstr "" -#: ../../whatsnew/3.14.rst:2129 +#: ../../whatsnew/3.14.rst:2141 msgid "" "It is now possible to use :class:`typing.Union` itself in :func:`isinstance` " "checks. For example, ``isinstance(int | str, typing.Union)`` will return " "``True``; previously this raised :exc:`TypeError`." msgstr "" -#: ../../whatsnew/3.14.rst:2132 +#: ../../whatsnew/3.14.rst:2144 msgid "" "The ``__args__`` attribute of :class:`typing.Union` objects is no longer " "writable." msgstr "" -#: ../../whatsnew/3.14.rst:2133 +#: ../../whatsnew/3.14.rst:2145 msgid "" "It is no longer possible to set any attributes on :class:`typing.Union` " "objects. This only ever worked for dunder attributes on previous versions, " "was never documented to work, and was subtly broken in many cases." msgstr "" -#: ../../whatsnew/3.14.rst:2137 +#: ../../whatsnew/3.14.rst:2149 msgid "(Contributed by Jelle Zijlstra in :gh:`105499`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2141 +#: ../../whatsnew/3.14.rst:2153 msgid "unicodedata" msgstr "unicodedata" -#: ../../whatsnew/3.14.rst:2143 +#: ../../whatsnew/3.14.rst:2155 msgid "The Unicode database has been updated to Unicode 16.0.0." msgstr "" -#: ../../whatsnew/3.14.rst:2149 +#: ../../whatsnew/3.14.rst:2161 msgid "unittest" msgstr "unittest" -#: ../../whatsnew/3.14.rst:2151 +#: ../../whatsnew/3.14.rst:2163 msgid "" ":mod:`unittest` output is now colored by default. This can be controlled by :" "ref:`environment variables `. (Contributed by " "Hugo van Kemenade in :gh:`127221`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2156 +#: ../../whatsnew/3.14.rst:2168 msgid "" "unittest discovery supports :term:`namespace package` as start directory " "again. It was removed in Python 3.11. (Contributed by Jacob Walls in :gh:" "`80958`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2160 +#: ../../whatsnew/3.14.rst:2172 msgid "" "A number of new methods were added in the :class:`~unittest.TestCase` class " "that provide more specialized tests." msgstr "" -#: ../../whatsnew/3.14.rst:2163 +#: ../../whatsnew/3.14.rst:2175 msgid "" ":meth:`~unittest.TestCase.assertHasAttr` and :meth:`~unittest.TestCase." "assertNotHasAttr` check whether the object has a particular attribute." msgstr "" -#: ../../whatsnew/3.14.rst:2166 +#: ../../whatsnew/3.14.rst:2178 msgid "" ":meth:`~unittest.TestCase.assertIsSubclass` and :meth:`~unittest.TestCase." "assertNotIsSubclass` check whether the object is a subclass of a particular " "class, or of one of a tuple of classes." msgstr "" -#: ../../whatsnew/3.14.rst:2169 +#: ../../whatsnew/3.14.rst:2181 msgid "" ":meth:`~unittest.TestCase.assertStartsWith`, :meth:`~unittest.TestCase." "assertNotStartsWith`, :meth:`~unittest.TestCase.assertEndsWith` and :meth:" @@ -3277,128 +3296,128 @@ msgid "" "string starts or ends with particular string(s)." msgstr "" -#: ../../whatsnew/3.14.rst:2175 +#: ../../whatsnew/3.14.rst:2187 msgid "(Contributed by Serhiy Storchaka in :gh:`71339`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2179 ../../whatsnew/3.14.rst:2725 +#: ../../whatsnew/3.14.rst:2191 ../../whatsnew/3.14.rst:2737 msgid "urllib" msgstr "urllib" -#: ../../whatsnew/3.14.rst:2181 +#: ../../whatsnew/3.14.rst:2193 msgid "" "Upgrade HTTP digest authentication algorithm for :mod:`urllib.request` by " "supporting SHA-256 digest authentication as specified in :rfc:`7616`. " "(Contributed by Calvin Bui in :gh:`128193`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2185 +#: ../../whatsnew/3.14.rst:2197 msgid "" "Improve ergonomics and standards compliance when parsing and emitting ``file:" "`` URLs." msgstr "" -#: ../../whatsnew/3.14.rst:2188 +#: ../../whatsnew/3.14.rst:2200 msgid "In :func:`urllib.request.url2pathname`:" msgstr "" -#: ../../whatsnew/3.14.rst:2190 +#: ../../whatsnew/3.14.rst:2202 msgid "" "Accept a complete URL when the new *require_scheme* argument is set to true." msgstr "" -#: ../../whatsnew/3.14.rst:2192 +#: ../../whatsnew/3.14.rst:2204 msgid "Discard URL authority if it matches the local hostname." msgstr "" -#: ../../whatsnew/3.14.rst:2193 +#: ../../whatsnew/3.14.rst:2205 msgid "" "Discard URL authority if it resolves to a local IP address when the new " "*resolve_host* argument is set to true." msgstr "" -#: ../../whatsnew/3.14.rst:2195 +#: ../../whatsnew/3.14.rst:2207 msgid "Discard URL query and fragment components." msgstr "" -#: ../../whatsnew/3.14.rst:2196 +#: ../../whatsnew/3.14.rst:2208 msgid "" "Raise :exc:`~urllib.error.URLError` if a URL authority isn't local, except " "on Windows where we return a UNC path as before." msgstr "" -#: ../../whatsnew/3.14.rst:2199 +#: ../../whatsnew/3.14.rst:2211 msgid "In :func:`urllib.request.pathname2url`:" msgstr "" -#: ../../whatsnew/3.14.rst:2201 +#: ../../whatsnew/3.14.rst:2213 msgid "" "Return a complete URL when the new *add_scheme* argument is set to true." msgstr "" -#: ../../whatsnew/3.14.rst:2202 +#: ../../whatsnew/3.14.rst:2214 msgid "" "Include an empty URL authority when a path begins with a slash. For example, " "the path ``/etc/hosts`` is converted to the URL ``///etc/hosts``." msgstr "" -#: ../../whatsnew/3.14.rst:2205 +#: ../../whatsnew/3.14.rst:2217 msgid "" "On Windows, drive letters are no longer converted to uppercase, and ``:`` " "characters not following a drive letter no longer cause an :exc:`OSError` " "exception to be raised." msgstr "" -#: ../../whatsnew/3.14.rst:2209 +#: ../../whatsnew/3.14.rst:2221 msgid "(Contributed by Barney Gale in :gh:`125866`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2213 ../../whatsnew/3.14.rst:2319 +#: ../../whatsnew/3.14.rst:2225 ../../whatsnew/3.14.rst:2331 msgid "uuid" msgstr "uuid" -#: ../../whatsnew/3.14.rst:2215 +#: ../../whatsnew/3.14.rst:2227 msgid "" "Add support for UUID versions 6, 7, and 8 via :func:`uuid.uuid6`, :func:" "`uuid.uuid7`, and :func:`uuid.uuid8` respectively, as specified in :rfc:" "`9562`. (Contributed by Bénédikt Tran in :gh:`89083`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2220 +#: ../../whatsnew/3.14.rst:2232 msgid "" ":const:`uuid.NIL` and :const:`uuid.MAX` are now available to represent the " "Nil and Max UUID formats as defined by :rfc:`9562`. (Contributed by Nick " "Pope in :gh:`128427`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2224 +#: ../../whatsnew/3.14.rst:2236 msgid "" "Allow to generate multiple UUIDs at once via :option:`python -m uuid --count " "`. (Contributed by Simon Legner in :gh:`131236`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2229 +#: ../../whatsnew/3.14.rst:2241 msgid "webbrowser" msgstr "webbrowser" -#: ../../whatsnew/3.14.rst:2231 +#: ../../whatsnew/3.14.rst:2243 msgid "" "Names in the :envvar:`BROWSER` environment variable can now refer to already " "registered browsers for the :mod:`webbrowser` module, instead of always " "generating a new browser command." msgstr "" -#: ../../whatsnew/3.14.rst:2235 +#: ../../whatsnew/3.14.rst:2247 msgid "" "This makes it possible to set :envvar:`BROWSER` to the value of one of the " "supported browsers on macOS." msgstr "" -#: ../../whatsnew/3.14.rst:2240 +#: ../../whatsnew/3.14.rst:2252 msgid "zipinfo" msgstr "" -#: ../../whatsnew/3.14.rst:2242 +#: ../../whatsnew/3.14.rst:2254 msgid "" "Added :func:`ZipInfo._for_archive ` to resolve " "suitable defaults for a :class:`~zipfile.ZipInfo` object as used by :func:" @@ -3406,18 +3425,18 @@ msgid "" "in :gh:`123424`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2247 +#: ../../whatsnew/3.14.rst:2259 msgid "" ":meth:`zipfile.ZipFile.writestr` now respect ``SOURCE_DATE_EPOCH`` that " "distributions can set centrally and have build tools consume this in order " "to produce reproducible output. (Contributed by Jiahao Li in :gh:`91279`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2256 +#: ../../whatsnew/3.14.rst:2268 msgid "Optimizations" msgstr "最適化" -#: ../../whatsnew/3.14.rst:2258 +#: ../../whatsnew/3.14.rst:2270 msgid "" "The import time for several standard library modules has been improved, " "including :mod:`ast`, :mod:`asyncio`, :mod:`base64`, :mod:`cmd`, :mod:" @@ -3427,13 +3446,13 @@ msgid "" "`zipfile`." msgstr "" -#: ../../whatsnew/3.14.rst:2264 +#: ../../whatsnew/3.14.rst:2276 msgid "" "(Contributed by Adam Turner, Bénédikt Tran, Chris Markiewicz, Eli Schwartz, " "Hugo van Kemenade, Jelle Zijlstra, and others in :gh:`118761`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2271 +#: ../../whatsnew/3.14.rst:2283 msgid "" ":mod:`asyncio` has a new per-thread double linked list implementation " "internally for :class:`native tasks ` which speeds up " @@ -3444,7 +3463,7 @@ msgid "" "in :gh:`107803`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2279 +#: ../../whatsnew/3.14.rst:2291 msgid "" ":mod:`asyncio` has first class support for :term:`free-threading builds " "`. This enables parallel execution of multiple event loops " @@ -3452,7 +3471,7 @@ msgid "" "(Contributed by Kumar Aditya in :gh:`128002`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2284 +#: ../../whatsnew/3.14.rst:2296 msgid "" ":mod:`asyncio` has new utility functions for introspecting and printing the " "program's call graph: :func:`asyncio.capture_call_graph` and :func:`asyncio." @@ -3460,25 +3479,25 @@ msgid "" "and Łukasz Langa in :gh:`91048`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2292 +#: ../../whatsnew/3.14.rst:2304 msgid "base64" msgstr "base64" -#: ../../whatsnew/3.14.rst:2294 +#: ../../whatsnew/3.14.rst:2306 msgid "" "Improve the performance of :func:`base64.b16decode` by up to ten times, and " "reduce the import time of :mod:`base64` by up to six times. (Contributed by " "Bénédikt Tran, Chris Markiewicz, and Adam Turner in :gh:`118761`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2302 +#: ../../whatsnew/3.14.rst:2314 msgid "" "The new :ref:`incremental garbage collector ` " "means that maximum pause times are reduced by an order of magnitude or more " "for larger heaps. (Contributed by Mark Shannon in :gh:`108362`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2310 +#: ../../whatsnew/3.14.rst:2322 msgid "" ":mod:`io` which provides the built-in :func:`open` makes less system calls " "when opening regular files as well as reading whole files. Reading a small " @@ -3488,32 +3507,32 @@ msgid "" "gh:`90102`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2321 +#: ../../whatsnew/3.14.rst:2333 msgid "" "Improve generation of :class:`~uuid.UUID` objects via their dedicated " "functions:" msgstr "" -#: ../../whatsnew/3.14.rst:2324 +#: ../../whatsnew/3.14.rst:2336 msgid "" ":func:`~uuid.uuid3` and :func:`~uuid.uuid5` are both roughly 40% faster for " "16-byte names and 20% faster for 1024-byte names. Performance for longer " "names remains unchanged." msgstr "" -#: ../../whatsnew/3.14.rst:2327 +#: ../../whatsnew/3.14.rst:2339 msgid ":func:`~uuid.uuid4` is 30% faster." msgstr "" -#: ../../whatsnew/3.14.rst:2329 +#: ../../whatsnew/3.14.rst:2341 msgid "(Contributed by Bénédikt Tran in :gh:`128150`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2333 +#: ../../whatsnew/3.14.rst:2345 msgid "zlib" msgstr "zlib" -#: ../../whatsnew/3.14.rst:2335 +#: ../../whatsnew/3.14.rst:2347 msgid "" "On Windows, ``zlib-ng`` is now used as the implementation of the :mod:`zlib` " "module. This should produce compatible and comparable results with better " @@ -3523,35 +3542,35 @@ msgid "" "by Steve Dower in :gh:`91349`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2345 ../../whatsnew/3.14.rst:3049 +#: ../../whatsnew/3.14.rst:2357 ../../whatsnew/3.14.rst:3061 msgid "Deprecated" msgstr "非推奨" -#: ../../whatsnew/3.14.rst:2347 +#: ../../whatsnew/3.14.rst:2359 #: ../../deprecations/pending-removal-in-future.rst:7 msgid ":mod:`argparse`:" msgstr "" -#: ../../whatsnew/3.14.rst:2349 +#: ../../whatsnew/3.14.rst:2361 msgid "" "Passing the undocumented keyword argument *prefix_chars* to :meth:`~argparse." "ArgumentParser.add_argument_group` is now deprecated. (Contributed by " "Savannah Ostrowski in :gh:`125563`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2353 +#: ../../whatsnew/3.14.rst:2365 msgid "" "Deprecated the :class:`argparse.FileType` type converter. Anything with " "resource management should be done downstream after the arguments are " "parsed. (Contributed by Serhiy Storchaka in :gh:`58032`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2358 +#: ../../whatsnew/3.14.rst:2370 #: ../../deprecations/pending-removal-in-3.16.rst:19 msgid ":mod:`asyncio`:" msgstr "" -#: ../../whatsnew/3.14.rst:2360 +#: ../../whatsnew/3.14.rst:2372 #: ../../deprecations/pending-removal-in-3.16.rst:21 msgid "" ":func:`!asyncio.iscoroutinefunction` is deprecated and will be removed in " @@ -3559,56 +3578,56 @@ msgid "" "by Jiahao Li and Kumar Aditya in :gh:`122875`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2365 +#: ../../whatsnew/3.14.rst:2377 #: ../../deprecations/pending-removal-in-3.16.rst:26 msgid "" ":mod:`asyncio` policy system is deprecated and will be removed in Python " "3.16. In particular, the following classes and functions are deprecated:" msgstr "" -#: ../../whatsnew/3.14.rst:2368 +#: ../../whatsnew/3.14.rst:2380 #: ../../deprecations/pending-removal-in-3.16.rst:29 msgid ":class:`asyncio.AbstractEventLoopPolicy`" msgstr "" -#: ../../whatsnew/3.14.rst:2369 +#: ../../whatsnew/3.14.rst:2381 #: ../../deprecations/pending-removal-in-3.16.rst:30 msgid ":class:`asyncio.DefaultEventLoopPolicy`" msgstr "" -#: ../../whatsnew/3.14.rst:2370 +#: ../../whatsnew/3.14.rst:2382 #: ../../deprecations/pending-removal-in-3.16.rst:31 msgid ":class:`asyncio.WindowsSelectorEventLoopPolicy`" msgstr "" -#: ../../whatsnew/3.14.rst:2371 +#: ../../whatsnew/3.14.rst:2383 #: ../../deprecations/pending-removal-in-3.16.rst:32 msgid ":class:`asyncio.WindowsProactorEventLoopPolicy`" msgstr "" -#: ../../whatsnew/3.14.rst:2372 +#: ../../whatsnew/3.14.rst:2384 #: ../../deprecations/pending-removal-in-3.16.rst:33 msgid ":func:`asyncio.get_event_loop_policy`" msgstr "" -#: ../../whatsnew/3.14.rst:2373 +#: ../../whatsnew/3.14.rst:2385 #: ../../deprecations/pending-removal-in-3.16.rst:34 msgid ":func:`asyncio.set_event_loop_policy`" msgstr "" -#: ../../whatsnew/3.14.rst:2375 +#: ../../whatsnew/3.14.rst:2387 #: ../../deprecations/pending-removal-in-3.16.rst:36 msgid "" "Users should use :func:`asyncio.run` or :class:`asyncio.Runner` with " "*loop_factory* to use the desired event loop implementation." msgstr "" -#: ../../whatsnew/3.14.rst:2378 +#: ../../whatsnew/3.14.rst:2390 #: ../../deprecations/pending-removal-in-3.16.rst:39 msgid "For example, to use :class:`asyncio.SelectorEventLoop` on Windows::" msgstr "" -#: ../../whatsnew/3.14.rst:2380 +#: ../../whatsnew/3.14.rst:2392 #: ../../deprecations/pending-removal-in-3.16.rst:41 msgid "" "import asyncio\n" @@ -3619,12 +3638,12 @@ msgid "" "asyncio.run(main(), loop_factory=asyncio.SelectorEventLoop)" msgstr "" -#: ../../whatsnew/3.14.rst:2387 +#: ../../whatsnew/3.14.rst:2399 #: ../../deprecations/pending-removal-in-3.16.rst:48 msgid "(Contributed by Kumar Aditya in :gh:`127949`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2389 +#: ../../whatsnew/3.14.rst:2401 msgid "" ":mod:`builtins`: Passing a complex number as the *real* or *imag* argument " "in the :func:`complex` constructor is now deprecated; it should only be " @@ -3632,19 +3651,19 @@ msgid "" "gh:`109218`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2395 +#: ../../whatsnew/3.14.rst:2407 msgid "" ":mod:`codecs`: :func:`codecs.open` is now deprecated. Use :func:`open` " "instead. (Contributed by Inada Naoki in :gh:`133036`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2399 +#: ../../whatsnew/3.14.rst:2411 #: ../../deprecations/pending-removal-in-3.15.rst:16 #: ../../deprecations/pending-removal-in-3.19.rst:4 msgid ":mod:`ctypes`:" msgstr "" -#: ../../whatsnew/3.14.rst:2401 +#: ../../whatsnew/3.14.rst:2413 msgid "" "On non-Windows platforms, setting :attr:`.Structure._pack_` to use a MSVC-" "compatible default memory layout is deprecated in favor of setting :attr:`." @@ -3652,7 +3671,7 @@ msgid "" "`131747`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2406 +#: ../../whatsnew/3.14.rst:2418 msgid "" "Calling :func:`ctypes.POINTER` on a string is deprecated. Use :ref:`ctypes-" "incomplete-types` for self-referential structures. Also, the internal " @@ -3661,14 +3680,14 @@ msgid "" "`100926`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2412 +#: ../../whatsnew/3.14.rst:2424 msgid "" ":mod:`functools`: Calling the Python implementation of :func:`functools." "reduce` with *function* or *sequence* as keyword arguments is now " "deprecated. (Contributed by Kirill Podoprigora in :gh:`121676`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2417 +#: ../../whatsnew/3.14.rst:2429 msgid "" ":mod:`logging`: Support for custom logging handlers with the *strm* argument " "is deprecated and scheduled for removal in Python 3.16. Define handlers with " @@ -3676,7 +3695,7 @@ msgid "" "`115032`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2422 +#: ../../whatsnew/3.14.rst:2434 msgid "" ":mod:`mimetypes`: Valid extensions start with a '.' or are empty for :meth:" "`mimetypes.MimeTypes.add_type`. Undotted extensions are deprecated and will " @@ -3684,14 +3703,14 @@ msgid "" "in :gh:`75223`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2429 +#: ../../whatsnew/3.14.rst:2441 msgid "" ":mod:`!nturl2path`: This module is now deprecated. Call :func:`urllib." "request.url2pathname` and :func:`~urllib.request.pathname2url` instead. " "(Contributed by Barney Gale in :gh:`125866`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2434 +#: ../../whatsnew/3.14.rst:2446 msgid "" ":mod:`os`: :term:`Soft deprecate ` :func:`os.popen` and :" "func:`os.spawn* ` functions. They should no longer be used to " @@ -3699,14 +3718,14 @@ msgid "" "(Contributed by Victor Stinner in :gh:`120743`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2440 +#: ../../whatsnew/3.14.rst:2452 msgid "" ":mod:`pathlib`: :meth:`!pathlib.PurePath.as_uri` is deprecated and will be " "removed in Python 3.19. Use :meth:`pathlib.Path.as_uri` instead. " "(Contributed by Barney Gale in :gh:`123599`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2445 +#: ../../whatsnew/3.14.rst:2457 msgid "" ":mod:`pdb`: The undocumented ``pdb.Pdb.curframe_locals`` attribute is now a " "deprecated read-only property. The low overhead dynamic frame locals access " @@ -3716,13 +3735,13 @@ msgid "" "later versions. (Contributed by Tian Gao in :gh:`124369` and :gh:`125951`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2453 +#: ../../whatsnew/3.14.rst:2465 msgid "" ":mod:`symtable`: Deprecate :meth:`symtable.Class.get_methods` due to the " "lack of interest. (Contributed by Bénédikt Tran in :gh:`119698`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2457 +#: ../../whatsnew/3.14.rst:2469 msgid "" ":mod:`tkinter`: The :class:`!tkinter.Variable` methods :meth:`!" "trace_variable`, :meth:`!trace_vdelete` and :meth:`!trace_vinfo` are now " @@ -3730,7 +3749,7 @@ msgid "" "trace_info` instead. (Contributed by Serhiy Storchaka in :gh:`120220`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2464 +#: ../../whatsnew/3.14.rst:2476 msgid "" ":mod:`urllib.parse`: Accepting objects with false values (like ``0`` and " "``[]``) except empty strings, byte-like objects and ``None`` in :mod:`urllib." @@ -4421,17 +4440,17 @@ msgid "" "_clear_internal_caches` instead." msgstr "" -#: ../../whatsnew/3.14.rst:2484 ../../whatsnew/3.14.rst:3132 +#: ../../whatsnew/3.14.rst:2496 ../../whatsnew/3.14.rst:3144 msgid "Removed" msgstr "削除" -#: ../../whatsnew/3.14.rst:2489 +#: ../../whatsnew/3.14.rst:2501 msgid "" "Remove the *type*, *choices*, and *metavar* parameters of :class:`!argparse." "BooleanOptionalAction`. They were deprecated since 3.12." msgstr "" -#: ../../whatsnew/3.14.rst:2493 +#: ../../whatsnew/3.14.rst:2505 msgid "" "Calling :meth:`~argparse.ArgumentParser.add_argument_group` on an argument " "group, and calling :meth:`~argparse.ArgumentParser.add_argument_group` or :" @@ -4442,33 +4461,33 @@ msgid "" "(Contributed by Savannah Ostrowski in :gh:`127186`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2504 +#: ../../whatsnew/3.14.rst:2516 msgid "" "Remove the following classes. They were all deprecated since Python 3.8, and " "have emitted deprecation warnings since Python 3.12:" msgstr "" -#: ../../whatsnew/3.14.rst:2507 +#: ../../whatsnew/3.14.rst:2519 msgid ":class:`!ast.Bytes`" msgstr "" -#: ../../whatsnew/3.14.rst:2508 +#: ../../whatsnew/3.14.rst:2520 msgid ":class:`!ast.Ellipsis`" msgstr "" -#: ../../whatsnew/3.14.rst:2509 +#: ../../whatsnew/3.14.rst:2521 msgid ":class:`!ast.NameConstant`" msgstr "" -#: ../../whatsnew/3.14.rst:2510 +#: ../../whatsnew/3.14.rst:2522 msgid ":class:`!ast.Num`" msgstr "" -#: ../../whatsnew/3.14.rst:2511 +#: ../../whatsnew/3.14.rst:2523 msgid ":class:`!ast.Str`" msgstr "" -#: ../../whatsnew/3.14.rst:2513 +#: ../../whatsnew/3.14.rst:2525 msgid "" "Use :class:`ast.Constant` instead. As a consequence of these removals, user-" "defined ``visit_Num``, ``visit_Str``, ``visit_Bytes``, " @@ -4478,99 +4497,99 @@ msgid "" "instead." msgstr "" -#: ../../whatsnew/3.14.rst:2520 +#: ../../whatsnew/3.14.rst:2532 msgid "" "Also, remove the following deprecated properties on :class:`ast.Constant`, " "which were present for compatibility with the now-removed AST classes:" msgstr "" -#: ../../whatsnew/3.14.rst:2523 +#: ../../whatsnew/3.14.rst:2535 msgid ":attr:`!ast.Constant.n`" msgstr "" -#: ../../whatsnew/3.14.rst:2524 +#: ../../whatsnew/3.14.rst:2536 msgid ":attr:`!ast.Constant.s`" msgstr "" -#: ../../whatsnew/3.14.rst:2526 +#: ../../whatsnew/3.14.rst:2538 msgid "" "Use :attr:`!ast.Constant.value` instead. (Contributed by Alex Waygood in :gh:" "`119562`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2532 +#: ../../whatsnew/3.14.rst:2544 msgid "" "Remove the following classes and functions. They were all deprecated and " "emitted deprecation warnings since Python 3.12:" msgstr "" -#: ../../whatsnew/3.14.rst:2535 +#: ../../whatsnew/3.14.rst:2547 msgid ":func:`!asyncio.get_child_watcher`" msgstr "" -#: ../../whatsnew/3.14.rst:2536 +#: ../../whatsnew/3.14.rst:2548 msgid ":func:`!asyncio.set_child_watcher`" msgstr "" -#: ../../whatsnew/3.14.rst:2537 +#: ../../whatsnew/3.14.rst:2549 msgid ":meth:`!asyncio.AbstractEventLoopPolicy.get_child_watcher`" msgstr "" -#: ../../whatsnew/3.14.rst:2538 +#: ../../whatsnew/3.14.rst:2550 msgid ":meth:`!asyncio.AbstractEventLoopPolicy.set_child_watcher`" msgstr "" -#: ../../whatsnew/3.14.rst:2539 +#: ../../whatsnew/3.14.rst:2551 msgid ":class:`!asyncio.AbstractChildWatcher`" msgstr "" -#: ../../whatsnew/3.14.rst:2540 +#: ../../whatsnew/3.14.rst:2552 msgid ":class:`!asyncio.FastChildWatcher`" msgstr "" -#: ../../whatsnew/3.14.rst:2541 +#: ../../whatsnew/3.14.rst:2553 msgid ":class:`!asyncio.MultiLoopChildWatcher`" msgstr "" -#: ../../whatsnew/3.14.rst:2542 +#: ../../whatsnew/3.14.rst:2554 msgid ":class:`!asyncio.PidfdChildWatcher`" msgstr "" -#: ../../whatsnew/3.14.rst:2543 +#: ../../whatsnew/3.14.rst:2555 msgid ":class:`!asyncio.SafeChildWatcher`" msgstr "" -#: ../../whatsnew/3.14.rst:2544 +#: ../../whatsnew/3.14.rst:2556 msgid ":class:`!asyncio.ThreadedChildWatcher`" msgstr "" -#: ../../whatsnew/3.14.rst:2546 +#: ../../whatsnew/3.14.rst:2558 msgid "(Contributed by Kumar Aditya in :gh:`120804`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2548 +#: ../../whatsnew/3.14.rst:2560 msgid "" "Removed implicit creation of event loop by :func:`asyncio.get_event_loop`. " "It now raises a :exc:`RuntimeError` if there is no current event loop. " "(Contributed by Kumar Aditya in :gh:`126353`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2552 +#: ../../whatsnew/3.14.rst:2564 msgid "" "There's a few patterns that use :func:`asyncio.get_event_loop`, most of them " "can be replaced with :func:`asyncio.run`." msgstr "" -#: ../../whatsnew/3.14.rst:2555 +#: ../../whatsnew/3.14.rst:2567 msgid "If you're running an async function, simply use :func:`asyncio.run`." msgstr "" -#: ../../whatsnew/3.14.rst:2557 ../../whatsnew/3.14.rst:2580 -#: ../../whatsnew/3.14.rst:2606 +#: ../../whatsnew/3.14.rst:2569 ../../whatsnew/3.14.rst:2592 +#: ../../whatsnew/3.14.rst:2618 msgid "Before::" msgstr "" -#: ../../whatsnew/3.14.rst:2559 +#: ../../whatsnew/3.14.rst:2571 msgid "" "async def main():\n" " ...\n" @@ -4583,12 +4602,12 @@ msgid "" " loop.close()" msgstr "" -#: ../../whatsnew/3.14.rst:2569 ../../whatsnew/3.14.rst:2592 -#: ../../whatsnew/3.14.rst:2625 +#: ../../whatsnew/3.14.rst:2581 ../../whatsnew/3.14.rst:2604 +#: ../../whatsnew/3.14.rst:2637 msgid "After::" msgstr "" -#: ../../whatsnew/3.14.rst:2571 +#: ../../whatsnew/3.14.rst:2583 msgid "" "async def main():\n" " ...\n" @@ -4596,13 +4615,13 @@ msgid "" "asyncio.run(main())" msgstr "" -#: ../../whatsnew/3.14.rst:2576 +#: ../../whatsnew/3.14.rst:2588 msgid "" "If you need to start something, for example, a server listening on a socket " "and then run forever, use :func:`asyncio.run` and an :class:`asyncio.Event`." msgstr "" -#: ../../whatsnew/3.14.rst:2582 +#: ../../whatsnew/3.14.rst:2594 msgid "" "def start_server(loop):\n" " ...\n" @@ -4615,7 +4634,7 @@ msgid "" " loop.close()" msgstr "" -#: ../../whatsnew/3.14.rst:2594 +#: ../../whatsnew/3.14.rst:2606 msgid "" "def start_server(loop):\n" " ...\n" @@ -4627,13 +4646,13 @@ msgid "" "asyncio.run(main())" msgstr "" -#: ../../whatsnew/3.14.rst:2603 +#: ../../whatsnew/3.14.rst:2615 msgid "" "If you need to run something in an event loop, then run some blocking code " "around it, use :class:`asyncio.Runner`." msgstr "" -#: ../../whatsnew/3.14.rst:2608 +#: ../../whatsnew/3.14.rst:2620 msgid "" "async def operation_one():\n" " ...\n" @@ -4653,7 +4672,7 @@ msgid "" " loop.close()" msgstr "" -#: ../../whatsnew/3.14.rst:2627 +#: ../../whatsnew/3.14.rst:2639 msgid "" "async def operation_one():\n" " ...\n" @@ -4670,113 +4689,113 @@ msgid "" " runner.run(operation_two())" msgstr "" -#: ../../whatsnew/3.14.rst:2644 +#: ../../whatsnew/3.14.rst:2656 msgid "collections.abc" msgstr "collections.abc" -#: ../../whatsnew/3.14.rst:2646 +#: ../../whatsnew/3.14.rst:2658 msgid "" "Remove :class:`!collections.abc.ByteString`. It had previously raised a :exc:" "`DeprecationWarning` since Python 3.12." msgstr "" -#: ../../whatsnew/3.14.rst:2650 +#: ../../whatsnew/3.14.rst:2662 msgid "email" msgstr "email" -#: ../../whatsnew/3.14.rst:2652 +#: ../../whatsnew/3.14.rst:2664 msgid "" "Remove the *isdst* parameter from :func:`email.utils.localtime`. " "(Contributed by Hugo van Kemenade in :gh:`118798`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2656 +#: ../../whatsnew/3.14.rst:2668 msgid "importlib" msgstr "importlib" -#: ../../whatsnew/3.14.rst:2658 +#: ../../whatsnew/3.14.rst:2670 msgid "Remove deprecated :mod:`importlib.abc` classes:" msgstr "" -#: ../../whatsnew/3.14.rst:2660 +#: ../../whatsnew/3.14.rst:2672 msgid ":class:`!importlib.abc.ResourceReader`" msgstr ":class:`!importlib.abc.ResourceReader`" -#: ../../whatsnew/3.14.rst:2661 +#: ../../whatsnew/3.14.rst:2673 msgid ":class:`!importlib.abc.Traversable`" msgstr ":class:`!importlib.abc.Traversable`" -#: ../../whatsnew/3.14.rst:2662 +#: ../../whatsnew/3.14.rst:2674 msgid ":class:`!importlib.abc.TraversableResources`" msgstr ":class:`!importlib.abc.TraversableResources`" -#: ../../whatsnew/3.14.rst:2664 +#: ../../whatsnew/3.14.rst:2676 msgid "Use :mod:`importlib.resources.abc` classes instead:" msgstr "" -#: ../../whatsnew/3.14.rst:2666 +#: ../../whatsnew/3.14.rst:2678 msgid ":class:`importlib.resources.abc.Traversable`" msgstr ":class:`importlib.resources.abc.Traversable`" -#: ../../whatsnew/3.14.rst:2667 +#: ../../whatsnew/3.14.rst:2679 msgid ":class:`importlib.resources.abc.TraversableResources`" msgstr ":class:`importlib.resources.abc.TraversableResources`" -#: ../../whatsnew/3.14.rst:2669 +#: ../../whatsnew/3.14.rst:2681 msgid "(Contributed by Jason R. Coombs and Hugo van Kemenade in :gh:`93963`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2672 +#: ../../whatsnew/3.14.rst:2684 msgid "itertools" msgstr "itertools" -#: ../../whatsnew/3.14.rst:2674 +#: ../../whatsnew/3.14.rst:2686 msgid "" "Remove :mod:`itertools` support for copy, deepcopy, and pickle operations. " "These had previously raised a :exc:`DeprecationWarning` since Python 3.12. " "(Contributed by Raymond Hettinger in :gh:`101588`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2681 +#: ../../whatsnew/3.14.rst:2693 msgid "" "Remove support for passing additional keyword arguments to :class:`pathlib." "Path`. In previous versions, any such arguments are ignored." msgstr "" -#: ../../whatsnew/3.14.rst:2683 +#: ../../whatsnew/3.14.rst:2695 msgid "" "Remove support for passing additional positional arguments to :meth:`pathlib." "PurePath.relative_to` and :meth:`~pathlib.PurePath.is_relative_to`. In " "previous versions, any such arguments are joined onto *other*." msgstr "" -#: ../../whatsnew/3.14.rst:2689 +#: ../../whatsnew/3.14.rst:2701 msgid "pkgutil" msgstr "" -#: ../../whatsnew/3.14.rst:2691 +#: ../../whatsnew/3.14.rst:2703 msgid "" "Remove deprecated :func:`!pkgutil.get_loader` and :func:`!pkgutil." "find_loader`. These had previously raised a :exc:`DeprecationWarning` since " "Python 3.12. (Contributed by Bénédikt Tran in :gh:`97850`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2696 +#: ../../whatsnew/3.14.rst:2708 msgid "pty" msgstr "pty" -#: ../../whatsnew/3.14.rst:2698 +#: ../../whatsnew/3.14.rst:2710 msgid "" "Remove deprecated :func:`!pty.master_open` and :func:`!pty.slave_open`. They " "had previously raised a :exc:`DeprecationWarning` since Python 3.12. Use :" "func:`pty.openpty` instead. (Contributed by Nikita Sobolev in :gh:`118824`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2704 +#: ../../whatsnew/3.14.rst:2716 msgid "sqlite3" msgstr "sqlite3" -#: ../../whatsnew/3.14.rst:2706 +#: ../../whatsnew/3.14.rst:2718 msgid "" "Remove :data:`!version` and :data:`!version_info` from :mod:`sqlite3`; use :" "data:`~sqlite3.sqlite_version` and :data:`~sqlite3.sqlite_version_info` for " @@ -4784,7 +4803,7 @@ msgid "" "Hugo van Kemenade in :gh:`118924`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2711 +#: ../../whatsnew/3.14.rst:2723 msgid "" "Disallow using a sequence of parameters with named placeholders. This had " "previously raised a :exc:`DeprecationWarning` since Python 3.12; it will now " @@ -4792,31 +4811,31 @@ msgid "" "in :gh:`118928` and :gh:`101693`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2719 +#: ../../whatsnew/3.14.rst:2731 msgid "" "Remove :class:`!typing.ByteString`. It had previously raised a :exc:" "`DeprecationWarning` since Python 3.12." msgstr "" -#: ../../whatsnew/3.14.rst:2722 +#: ../../whatsnew/3.14.rst:2734 msgid ":class:`typing.TypeAliasType` now supports star unpacking." msgstr "" -#: ../../whatsnew/3.14.rst:2727 +#: ../../whatsnew/3.14.rst:2739 msgid "" "Remove deprecated :class:`!Quoter` class from :mod:`urllib.parse`. It had " "previously raised a :exc:`DeprecationWarning` since Python 3.11. " "(Contributed by Nikita Sobolev in :gh:`118827`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2730 +#: ../../whatsnew/3.14.rst:2742 msgid "" "Remove deprecated :class:`!URLopener` and :class:`!FancyURLopener` classes " "from :mod:`urllib.request`. They had previously raised a :exc:" "`DeprecationWarning` since Python 3.3." msgstr "" -#: ../../whatsnew/3.14.rst:2734 +#: ../../whatsnew/3.14.rst:2746 msgid "" "``myopener.open()`` can be replaced with :func:`~urllib.request.urlopen`, " "and ``myopener.retrieve()`` can be replaced with :func:`~urllib.request." @@ -4825,18 +4844,18 @@ msgid "" "(Contributed by Barney Gale in :gh:`84850`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2742 +#: ../../whatsnew/3.14.rst:2754 msgid "Others" msgstr "その他" -#: ../../whatsnew/3.14.rst:2744 +#: ../../whatsnew/3.14.rst:2756 msgid "" "Using :data:`NotImplemented` in a boolean context will now raise a :exc:" "`TypeError`. It had previously raised a :exc:`DeprecationWarning` since " "Python 3.9. (Contributed by Jelle Zijlstra in :gh:`118767`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2748 +#: ../../whatsnew/3.14.rst:2760 msgid "" "The :func:`int` built-in no longer delegates to :meth:`~object.__trunc__`. " "Classes that want to support conversion to integer must implement either :" @@ -4844,21 +4863,21 @@ msgid "" "Dickinson in :gh:`119743`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2755 +#: ../../whatsnew/3.14.rst:2767 msgid "CPython bytecode changes" msgstr "CPython バイトコードの変更" -#: ../../whatsnew/3.14.rst:2757 +#: ../../whatsnew/3.14.rst:2769 msgid "" "Replaced the opcode ``BINARY_SUBSCR`` by :opcode:`BINARY_OP` with oparg " "``NB_SUBSCR``. (Contributed by Irit Katriel in :gh:`100239`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2761 ../../whatsnew/3.14.rst:2990 +#: ../../whatsnew/3.14.rst:2773 ../../whatsnew/3.14.rst:3002 msgid "Porting to Python 3.14" msgstr "" -#: ../../whatsnew/3.14.rst:2763 +#: ../../whatsnew/3.14.rst:2775 msgid "" "This section lists previously described changes and other bugfixes that may " "require changes to your code." @@ -4866,38 +4885,38 @@ msgstr "" "このセクションでは前述の変更とバグフィックスにより必要となるかもしれないコー" "ドの変更を列挙します:" -#: ../../whatsnew/3.14.rst:2767 +#: ../../whatsnew/3.14.rst:2779 msgid "Changes in the Python API" msgstr "Python API の変更" -#: ../../whatsnew/3.14.rst:2769 +#: ../../whatsnew/3.14.rst:2781 msgid "" ":class:`functools.partial` is now a method descriptor. Wrap it in :func:" "`staticmethod` if you want to preserve the old behavior. (Contributed by " "Serhiy Storchaka and Dominykas Grigonis in :gh:`121027`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2773 +#: ../../whatsnew/3.14.rst:2785 msgid "" "The :ref:`garbage collector is now incremental `, which means that the behavior of :func:`gc.collect` changes slightly:" msgstr "" -#: ../../whatsnew/3.14.rst:2780 +#: ../../whatsnew/3.14.rst:2792 msgid "" "The :func:`locale.nl_langinfo` function now sets temporarily the " "``LC_CTYPE`` locale in some cases. This temporary change affects other " "threads. (Contributed by Serhiy Storchaka in :gh:`69998`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2785 +#: ../../whatsnew/3.14.rst:2797 msgid "" ":class:`types.UnionType` is now an alias for :class:`typing.Union`, causing " "changes in some behaviors. See :ref:`above ` for " "more details. (Contributed by Jelle Zijlstra in :gh:`105499`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2790 +#: ../../whatsnew/3.14.rst:2802 msgid "" "The runtime behavior of annotations has changed in various ways; see :ref:" "`above ` for details. While most code that interacts " @@ -4905,28 +4924,28 @@ msgid "" "behave differently." msgstr "" -#: ../../whatsnew/3.14.rst:2797 +#: ../../whatsnew/3.14.rst:2809 msgid "Build changes" msgstr "" -#: ../../whatsnew/3.14.rst:2799 +#: ../../whatsnew/3.14.rst:2811 msgid "" "GNU Autoconf 2.72 is now required to generate :file:`configure`. " "(Contributed by Erlend Aasland in :gh:`115765`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2802 +#: ../../whatsnew/3.14.rst:2814 msgid "" "``#pragma``-based linking with ``python3*.lib`` can now be switched off " "with :c:expr:`Py_NO_LINK_LIB`. (Contributed by Jean-Christophe Fillion-Robin " "in :gh:`82909`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2809 +#: ../../whatsnew/3.14.rst:2821 msgid "PEP 761: Discontinuation of PGP signatures" msgstr "" -#: ../../whatsnew/3.14.rst:2811 +#: ../../whatsnew/3.14.rst:2823 msgid "" "PGP signatures will not be available for CPython 3.14 and onwards. Users " "verifying artifacts must use `Sigstore verification materials`_ for " @@ -4934,86 +4953,86 @@ msgid "" "pep:`761`." msgstr "" -#: ../../whatsnew/3.14.rst:2820 +#: ../../whatsnew/3.14.rst:2832 msgid "C API changes" msgstr "" -#: ../../whatsnew/3.14.rst:2825 +#: ../../whatsnew/3.14.rst:2837 msgid "" "Add :c:func:`PyLong_GetSign` function to get the sign of :class:`int` " "objects. (Contributed by Sergey B Kirpichev in :gh:`116560`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2828 +#: ../../whatsnew/3.14.rst:2840 msgid "" "Add a new :c:type:`PyUnicodeWriter` API to create a Python :class:`str` " "object:" msgstr "" -#: ../../whatsnew/3.14.rst:2831 +#: ../../whatsnew/3.14.rst:2843 msgid ":c:func:`PyUnicodeWriter_Create`" msgstr "" -#: ../../whatsnew/3.14.rst:2832 +#: ../../whatsnew/3.14.rst:2844 msgid ":c:func:`PyUnicodeWriter_DecodeUTF8Stateful`" msgstr "" -#: ../../whatsnew/3.14.rst:2833 +#: ../../whatsnew/3.14.rst:2845 msgid ":c:func:`PyUnicodeWriter_Discard`" msgstr "" -#: ../../whatsnew/3.14.rst:2834 +#: ../../whatsnew/3.14.rst:2846 msgid ":c:func:`PyUnicodeWriter_Finish`" msgstr "" -#: ../../whatsnew/3.14.rst:2835 +#: ../../whatsnew/3.14.rst:2847 msgid ":c:func:`PyUnicodeWriter_Format`" msgstr "" -#: ../../whatsnew/3.14.rst:2836 +#: ../../whatsnew/3.14.rst:2848 msgid ":c:func:`PyUnicodeWriter_WriteASCII`" msgstr "" -#: ../../whatsnew/3.14.rst:2837 +#: ../../whatsnew/3.14.rst:2849 msgid ":c:func:`PyUnicodeWriter_WriteChar`" msgstr "" -#: ../../whatsnew/3.14.rst:2838 +#: ../../whatsnew/3.14.rst:2850 msgid ":c:func:`PyUnicodeWriter_WriteRepr`" msgstr "" -#: ../../whatsnew/3.14.rst:2839 +#: ../../whatsnew/3.14.rst:2851 msgid ":c:func:`PyUnicodeWriter_WriteStr`" msgstr "" -#: ../../whatsnew/3.14.rst:2840 +#: ../../whatsnew/3.14.rst:2852 msgid ":c:func:`PyUnicodeWriter_WriteSubstring`" msgstr "" -#: ../../whatsnew/3.14.rst:2841 +#: ../../whatsnew/3.14.rst:2853 msgid ":c:func:`PyUnicodeWriter_WriteUCS4`" msgstr "" -#: ../../whatsnew/3.14.rst:2842 +#: ../../whatsnew/3.14.rst:2854 msgid ":c:func:`PyUnicodeWriter_WriteUTF8`" msgstr "" -#: ../../whatsnew/3.14.rst:2843 +#: ../../whatsnew/3.14.rst:2855 msgid ":c:func:`PyUnicodeWriter_WriteWideChar`" msgstr "" -#: ../../whatsnew/3.14.rst:2845 +#: ../../whatsnew/3.14.rst:2857 msgid "(Contributed by Victor Stinner in :gh:`119182`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2847 +#: ../../whatsnew/3.14.rst:2859 msgid "" "Add :c:func:`PyIter_NextItem` to replace :c:func:`PyIter_Next`, which has an " "ambiguous return value. (Contributed by Irit Katriel and Erlend Aasland in :" "gh:`105201`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2851 +#: ../../whatsnew/3.14.rst:2863 msgid "" "Add :c:func:`PyLong_IsPositive`, :c:func:`PyLong_IsNegative` and :c:func:" "`PyLong_IsZero` for checking if :c:type:`PyLongObject` is positive, " @@ -5021,177 +5040,177 @@ msgid "" "Kirpichev in :gh:`126061`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2856 +#: ../../whatsnew/3.14.rst:2868 msgid "" "Add new functions to convert C ```` numbers from/to Python :class:" "`int`:" msgstr "" -#: ../../whatsnew/3.14.rst:2859 +#: ../../whatsnew/3.14.rst:2871 msgid ":c:func:`PyLong_AsInt32`" msgstr "" -#: ../../whatsnew/3.14.rst:2860 +#: ../../whatsnew/3.14.rst:2872 msgid ":c:func:`PyLong_AsInt64`" msgstr "" -#: ../../whatsnew/3.14.rst:2861 +#: ../../whatsnew/3.14.rst:2873 msgid ":c:func:`PyLong_AsUInt32`" msgstr "" -#: ../../whatsnew/3.14.rst:2862 +#: ../../whatsnew/3.14.rst:2874 msgid ":c:func:`PyLong_AsUInt64`" msgstr "" -#: ../../whatsnew/3.14.rst:2863 +#: ../../whatsnew/3.14.rst:2875 msgid ":c:func:`PyLong_FromInt32`" msgstr "" -#: ../../whatsnew/3.14.rst:2864 +#: ../../whatsnew/3.14.rst:2876 msgid ":c:func:`PyLong_FromInt64`" msgstr "" -#: ../../whatsnew/3.14.rst:2865 +#: ../../whatsnew/3.14.rst:2877 msgid ":c:func:`PyLong_FromUInt32`" msgstr "" -#: ../../whatsnew/3.14.rst:2866 +#: ../../whatsnew/3.14.rst:2878 msgid ":c:func:`PyLong_FromUInt64`" msgstr "" -#: ../../whatsnew/3.14.rst:2868 +#: ../../whatsnew/3.14.rst:2880 msgid "(Contributed by Victor Stinner in :gh:`120389`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2870 +#: ../../whatsnew/3.14.rst:2882 msgid "" "Add :c:func:`PyBytes_Join(sep, iterable) ` function, similar " "to ``sep.join(iterable)`` in Python. (Contributed by Victor Stinner in :gh:" "`121645`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2874 +#: ../../whatsnew/3.14.rst:2886 msgid "" "Add :c:func:`Py_HashBuffer` to compute and return the hash value of a " "buffer. (Contributed by Antoine Pitrou and Victor Stinner in :gh:`122854`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2877 +#: ../../whatsnew/3.14.rst:2889 msgid "" "Add functions to get and set the current runtime Python configuration (:pep:" "`741`):" msgstr "" -#: ../../whatsnew/3.14.rst:2880 +#: ../../whatsnew/3.14.rst:2892 msgid ":c:func:`PyConfig_Get`" msgstr "" -#: ../../whatsnew/3.14.rst:2881 +#: ../../whatsnew/3.14.rst:2893 msgid ":c:func:`PyConfig_GetInt`" msgstr "" -#: ../../whatsnew/3.14.rst:2882 +#: ../../whatsnew/3.14.rst:2894 msgid ":c:func:`PyConfig_Set`" msgstr "" -#: ../../whatsnew/3.14.rst:2883 +#: ../../whatsnew/3.14.rst:2895 msgid ":c:func:`PyConfig_Names`" msgstr "" -#: ../../whatsnew/3.14.rst:2887 +#: ../../whatsnew/3.14.rst:2899 msgid "Add functions to configure the Python initialization (:pep:`741`):" msgstr "" -#: ../../whatsnew/3.14.rst:2889 +#: ../../whatsnew/3.14.rst:2901 msgid ":c:func:`Py_InitializeFromInitConfig`" msgstr "" -#: ../../whatsnew/3.14.rst:2890 +#: ../../whatsnew/3.14.rst:2902 msgid ":c:func:`PyInitConfig_AddModule`" msgstr "" -#: ../../whatsnew/3.14.rst:2891 +#: ../../whatsnew/3.14.rst:2903 msgid ":c:func:`PyInitConfig_Create`" msgstr "" -#: ../../whatsnew/3.14.rst:2892 +#: ../../whatsnew/3.14.rst:2904 msgid ":c:func:`PyInitConfig_Free`" msgstr "" -#: ../../whatsnew/3.14.rst:2893 +#: ../../whatsnew/3.14.rst:2905 msgid ":c:func:`PyInitConfig_FreeStrList`" msgstr "" -#: ../../whatsnew/3.14.rst:2894 +#: ../../whatsnew/3.14.rst:2906 msgid ":c:func:`PyInitConfig_GetError`" msgstr "" -#: ../../whatsnew/3.14.rst:2895 +#: ../../whatsnew/3.14.rst:2907 msgid ":c:func:`PyInitConfig_GetExitCode`" msgstr "" -#: ../../whatsnew/3.14.rst:2896 +#: ../../whatsnew/3.14.rst:2908 msgid ":c:func:`PyInitConfig_GetInt`" msgstr "" -#: ../../whatsnew/3.14.rst:2897 +#: ../../whatsnew/3.14.rst:2909 msgid ":c:func:`PyInitConfig_GetStr`" msgstr "" -#: ../../whatsnew/3.14.rst:2898 +#: ../../whatsnew/3.14.rst:2910 msgid ":c:func:`PyInitConfig_GetStrList`" msgstr "" -#: ../../whatsnew/3.14.rst:2899 +#: ../../whatsnew/3.14.rst:2911 msgid ":c:func:`PyInitConfig_HasOption`" msgstr "" -#: ../../whatsnew/3.14.rst:2900 +#: ../../whatsnew/3.14.rst:2912 msgid ":c:func:`PyInitConfig_SetInt`" msgstr "" -#: ../../whatsnew/3.14.rst:2901 +#: ../../whatsnew/3.14.rst:2913 msgid ":c:func:`PyInitConfig_SetStr`" msgstr "" -#: ../../whatsnew/3.14.rst:2902 +#: ../../whatsnew/3.14.rst:2914 msgid ":c:func:`PyInitConfig_SetStrList`" msgstr "" -#: ../../whatsnew/3.14.rst:2906 +#: ../../whatsnew/3.14.rst:2918 msgid "" "Add a new import and export API for Python :class:`int` objects (:pep:`757`):" msgstr "" -#: ../../whatsnew/3.14.rst:2908 +#: ../../whatsnew/3.14.rst:2920 msgid ":c:func:`PyLong_GetNativeLayout`" msgstr "" -#: ../../whatsnew/3.14.rst:2909 +#: ../../whatsnew/3.14.rst:2921 msgid ":c:func:`PyLong_Export`" msgstr "" -#: ../../whatsnew/3.14.rst:2910 +#: ../../whatsnew/3.14.rst:2922 msgid ":c:func:`PyLong_FreeExport`" msgstr "" -#: ../../whatsnew/3.14.rst:2911 +#: ../../whatsnew/3.14.rst:2923 msgid ":c:func:`PyLongWriter_Create`" msgstr "" -#: ../../whatsnew/3.14.rst:2912 +#: ../../whatsnew/3.14.rst:2924 msgid ":c:func:`PyLongWriter_Finish`" msgstr "" -#: ../../whatsnew/3.14.rst:2913 +#: ../../whatsnew/3.14.rst:2925 msgid ":c:func:`PyLongWriter_Discard`" msgstr "" -#: ../../whatsnew/3.14.rst:2915 +#: ../../whatsnew/3.14.rst:2927 msgid "(Contributed by Sergey B Kirpichev and Victor Stinner in :gh:`102471`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2917 +#: ../../whatsnew/3.14.rst:2929 msgid "" "Add :c:func:`PyType_GetBaseByToken` and :c:data:`Py_tp_token` slot for " "easier superclass identification, which attempts to resolve the `type " @@ -5199,32 +5218,32 @@ msgid "" "mentioned in :pep:`630`. (Contributed in :gh:`124153`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2922 +#: ../../whatsnew/3.14.rst:2934 msgid "" "Add :c:func:`PyUnicode_Equal` function to the limited C API: test if two " "strings are equal. (Contributed by Victor Stinner in :gh:`124502`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2926 +#: ../../whatsnew/3.14.rst:2938 msgid "" "Add :c:func:`PyType_Freeze` function to make a type immutable. (Contributed " "by Victor Stinner in :gh:`121654`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2929 +#: ../../whatsnew/3.14.rst:2941 msgid "" "Add :c:func:`PyUnstable_Object_EnableDeferredRefcount` for enabling deferred " "reference counting, as outlined in :pep:`703`." msgstr "" -#: ../../whatsnew/3.14.rst:2932 +#: ../../whatsnew/3.14.rst:2944 msgid "" "Add :c:func:`PyMonitoring_FireBranchLeftEvent` and :c:func:" "`PyMonitoring_FireBranchRightEvent` for generating :monitoring-event:" "`BRANCH_LEFT` and :monitoring-event:`BRANCH_RIGHT` events, respectively." msgstr "" -#: ../../whatsnew/3.14.rst:2937 +#: ../../whatsnew/3.14.rst:2949 msgid "" "Add :c:func:`Py_fopen` function to open a file. Similar to the :c:func:`!" "fopen` function, but the *path* parameter is a Python object and an " @@ -5232,27 +5251,27 @@ msgid "" "file. (Contributed by Victor Stinner in :gh:`127350`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2943 +#: ../../whatsnew/3.14.rst:2955 msgid "" "The ``k`` and ``K`` formats in :c:func:`PyArg_ParseTuple` and similar " "functions now use :meth:`~object.__index__` if available, like all other " "integer formats. (Contributed by Serhiy Storchaka in :gh:`112068`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2948 +#: ../../whatsnew/3.14.rst:2960 msgid "" "Add macros :c:func:`Py_PACK_VERSION` and :c:func:`Py_PACK_FULL_VERSION` for " "bit-packing Python version numbers. (Contributed by Petr Viktorin in :gh:" "`128629`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2952 +#: ../../whatsnew/3.14.rst:2964 msgid "" "Add :c:func:`PyUnstable_IsImmortal` for determining whether an object is :" "term:`immortal`, for debugging purposes." msgstr "" -#: ../../whatsnew/3.14.rst:2955 +#: ../../whatsnew/3.14.rst:2967 msgid "" "Add :c:func:`PyImport_ImportModuleAttr` and :c:func:" "`PyImport_ImportModuleAttrString` helper functions to import a module and " @@ -5260,14 +5279,14 @@ msgid "" "`128911`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2960 +#: ../../whatsnew/3.14.rst:2972 msgid "" "Add support for a new ``p`` format unit in :c:func:`Py_BuildValue` that " "allows to take a C integer and produce a Python :class:`bool` object. " "(Contributed by Pablo Galindo in :issue:`45325`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2964 +#: ../../whatsnew/3.14.rst:2976 msgid "" "Add :c:func:`PyUnstable_Object_IsUniqueReferencedTemporary` to determine if " "an object is a unique temporary object on the interpreter's operand stack. " @@ -5276,18 +5295,18 @@ msgid "" "functions." msgstr "" -#: ../../whatsnew/3.14.rst:2969 +#: ../../whatsnew/3.14.rst:2981 msgid "" "Add :c:func:`PyUnstable_Object_IsUniquelyReferenced` as a replacement for " "``Py_REFCNT(op) == 1`` on :term:`free threaded ` builds. " "(Contributed by Peter Bierma in :gh:`133140`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2975 +#: ../../whatsnew/3.14.rst:2987 msgid "Limited C API changes" msgstr "" -#: ../../whatsnew/3.14.rst:2977 +#: ../../whatsnew/3.14.rst:2989 msgid "" "In the limited C API 3.14 and newer, :c:func:`Py_TYPE` and :c:func:" "`Py_REFCNT` are now implemented as an opaque function call to hide " @@ -5295,7 +5314,7 @@ msgid "" "gh:`124127`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2982 +#: ../../whatsnew/3.14.rst:2994 msgid "" "Remove the :c:macro:`PySequence_Fast_GET_SIZE`, :c:macro:" "`PySequence_Fast_GET_ITEM` and :c:macro:`PySequence_Fast_ITEMS` macros from " @@ -5304,7 +5323,7 @@ msgid "" "Stinner in :gh:`91417`.)" msgstr "" -#: ../../whatsnew/3.14.rst:2992 +#: ../../whatsnew/3.14.rst:3004 msgid "" ":c:func:`Py_Finalize` now deletes all interned strings. This is backwards " "incompatible to any C-Extension that holds onto an interned string after a " @@ -5317,14 +5336,14 @@ msgid "" "`113601`.)" msgstr "" -#: ../../whatsnew/3.14.rst:3002 +#: ../../whatsnew/3.14.rst:3014 msgid "" "The :ref:`Unicode Exception Objects ` C API now raises a :" "exc:`TypeError` if its exception argument is not a :exc:`UnicodeError` " "object. (Contributed by Bénédikt Tran in :gh:`127691`.)" msgstr "" -#: ../../whatsnew/3.14.rst:3009 +#: ../../whatsnew/3.14.rst:3021 msgid "" "The interpreter internally avoids some reference count modifications when " "loading objects onto the operands stack by :term:`borrowing `." msgstr "" -#: ../../whatsnew/3.14.rst:3092 +#: ../../whatsnew/3.14.rst:3104 #: ../../deprecations/c-api-pending-removal-in-3.18.rst:17 msgid "" ":c:func:`!_PyUnicodeWriter_Finish`: replace " @@ -5522,7 +5541,7 @@ msgid "" "`PyUnicodeWriter_Finish(writer) `." msgstr "" -#: ../../whatsnew/3.14.rst:3095 +#: ../../whatsnew/3.14.rst:3107 #: ../../deprecations/c-api-pending-removal-in-3.18.rst:20 msgid "" ":c:func:`!_PyUnicodeWriter_Dealloc`: replace " @@ -5530,7 +5549,7 @@ msgid "" "`PyUnicodeWriter_Discard(writer) `." msgstr "" -#: ../../whatsnew/3.14.rst:3098 +#: ../../whatsnew/3.14.rst:3110 #: ../../deprecations/c-api-pending-removal-in-3.18.rst:23 msgid "" ":c:func:`!_PyUnicodeWriter_WriteChar`: replace " @@ -5538,7 +5557,7 @@ msgid "" "`PyUnicodeWriter_WriteChar(writer, ch) `." msgstr "" -#: ../../whatsnew/3.14.rst:3101 +#: ../../whatsnew/3.14.rst:3113 #: ../../deprecations/c-api-pending-removal-in-3.18.rst:26 msgid "" ":c:func:`!_PyUnicodeWriter_WriteStr`: replace " @@ -5546,7 +5565,7 @@ msgid "" "`PyUnicodeWriter_WriteStr(writer, str) `." msgstr "" -#: ../../whatsnew/3.14.rst:3104 +#: ../../whatsnew/3.14.rst:3116 #: ../../deprecations/c-api-pending-removal-in-3.18.rst:29 msgid "" ":c:func:`!_PyUnicodeWriter_WriteSubstring`: replace " @@ -5555,14 +5574,14 @@ msgid "" "`." msgstr "" -#: ../../whatsnew/3.14.rst:3107 +#: ../../whatsnew/3.14.rst:3119 msgid "" ":c:func:`!_PyUnicodeWriter_WriteASCIIString`: replace " "``_PyUnicodeWriter_WriteASCIIString(&writer, str)`` with :c:func:" "`PyUnicodeWriter_WriteASCII(writer, str) `." msgstr "" -#: ../../whatsnew/3.14.rst:3110 +#: ../../whatsnew/3.14.rst:3122 #: ../../deprecations/c-api-pending-removal-in-3.18.rst:35 msgid "" ":c:func:`!_PyUnicodeWriter_WriteLatin1String`: replace " @@ -5570,17 +5589,17 @@ msgid "" "`PyUnicodeWriter_WriteUTF8(writer, str) `." msgstr "" -#: ../../whatsnew/3.14.rst:3113 +#: ../../whatsnew/3.14.rst:3125 #: ../../deprecations/c-api-pending-removal-in-3.18.rst:40 msgid ":c:func:`!_Py_HashPointer`: use :c:func:`Py_HashPointer`." msgstr "" -#: ../../whatsnew/3.14.rst:3114 +#: ../../whatsnew/3.14.rst:3126 #: ../../deprecations/c-api-pending-removal-in-3.18.rst:41 msgid ":c:func:`!_Py_fopen_obj`: use :c:func:`Py_fopen`." msgstr "" -#: ../../whatsnew/3.14.rst:3116 +#: ../../whatsnew/3.14.rst:3128 msgid "" "The `pythoncapi-compat project`_ can be used to get these new public " "functions on Python 3.13 and older. (Contributed by Victor Stinner in :gh:" @@ -5986,27 +6005,27 @@ msgstr "" msgid ":c:func:`PyThread_ReInitTLS`: Unneeded since Python 3.7." msgstr "" -#: ../../whatsnew/3.14.rst:3134 +#: ../../whatsnew/3.14.rst:3146 msgid "" "Creating :c:data:`immutable types ` with mutable " "bases was deprecated since 3.12 and now raises a :exc:`TypeError`." msgstr "" -#: ../../whatsnew/3.14.rst:3137 +#: ../../whatsnew/3.14.rst:3149 msgid "" "Remove ``PyDictObject.ma_version_tag`` member which was deprecated since " "Python 3.12. Use the :c:func:`PyDict_AddWatcher` API instead. (Contributed " "by Sam Gross in :gh:`124296`.)" msgstr "" -#: ../../whatsnew/3.14.rst:3141 +#: ../../whatsnew/3.14.rst:3153 msgid "" "Remove the private ``_Py_InitializeMain()`` function. It was a :term:" "`provisional API` added to Python 3.8 by :pep:`587`. (Contributed by Victor " "Stinner in :gh:`129033`.)" msgstr "" -#: ../../whatsnew/3.14.rst:3145 +#: ../../whatsnew/3.14.rst:3157 msgid "" "The undocumented APIs :c:macro:`!Py_C_RECURSION_LIMIT` and :c:member:`!" "PyThreadState.c_recursion_remaining`, added in 3.13, are removed without a " diff --git a/whatsnew/changelog.po b/whatsnew/changelog.po index 8db0e2853..bfe307f87 100644 --- a/whatsnew/changelog.po +++ b/whatsnew/changelog.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-07-25 14:21+0000\n" +"POT-Creation-Date: 2025-07-31 14:20+0000\n" "PO-Revision-Date: 2025-07-18 18:50+0000\n" "Last-Translator: Rafael Fontenelle , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" @@ -27,84 +27,135 @@ msgid "Changelog" msgstr "変更履歴" #: ../NEWS:3 +msgid "Python next" +msgstr "次のPython" + +#: ../NEWS:5 +msgid "*Release date: XXXX-XX-XX*" +msgstr "*リリース日: XXXX-XX-XX*" + +#: ../NEWS:8 ../NEWS:47 ../NEWS:214 ../NEWS:402 ../NEWS:657 ../NEWS:949 +#: ../NEWS:1754 ../NEWS:2127 ../NEWS:2698 ../NEWS:3196 ../NEWS:3550 +#: ../NEWS:4003 ../NEWS:4774 ../NEWS:7163 ../NEWS:7717 ../NEWS:8173 +#: ../NEWS:8659 ../NEWS:9265 ../NEWS:10152 ../NEWS:11277 ../NEWS:13329 +#: ../NEWS:14081 ../NEWS:14393 ../NEWS:14687 ../NEWS:14980 ../NEWS:15378 +#: ../NEWS:15804 ../NEWS:16719 ../NEWS:18487 ../NEWS:19158 ../NEWS:19797 +#: ../NEWS:20191 ../NEWS:20610 ../NEWS:21023 ../NEWS:21488 ../NEWS:22452 +#: ../NEWS:23996 ../NEWS:24628 ../NEWS:25011 ../NEWS:25235 ../NEWS:25509 +#: ../NEWS:25906 ../NEWS:26461 ../NEWS:27081 ../NEWS:27953 ../NEWS:28341 +#: ../NEWS:28828 ../NEWS:29288 ../NEWS:29650 ../NEWS:29996 ../NEWS:30652 +#: ../NEWS:32418 ../NEWS:33085 ../NEWS:33628 ../NEWS:33923 ../NEWS:34674 +#: ../NEWS:37082 ../NEWS:37115 ../NEWS:37243 ../NEWS:37451 ../NEWS:37642 +#: ../NEWS:37847 ../NEWS:38145 ../NEWS:38466 ../NEWS:38791 ../NEWS:39381 +#: ../NEWS:40041 ../NEWS:41711 ../NEWS:42057 ../NEWS:42423 ../NEWS:42747 +#: ../NEWS:42850 ../NEWS:43313 ../NEWS:43700 ../NEWS:44003 ../NEWS:44085 +#: ../NEWS:44188 ../NEWS:44358 ../NEWS:44693 ../NEWS:45111 ../NEWS:45329 +#: ../NEWS:45566 ../NEWS:46103 ../NEWS:47130 ../NEWS:47148 ../NEWS:47236 +#: ../NEWS:47717 ../NEWS:48432 ../NEWS:49096 ../NEWS:49534 ../NEWS:49561 +#: ../NEWS:49599 ../NEWS:49619 ../NEWS:49726 ../NEWS:49820 ../NEWS:49916 +#: ../NEWS:49991 ../NEWS:50249 ../NEWS:50472 ../NEWS:50645 ../NEWS:51003 +msgid "Library" +msgstr "ライブラリ" + +#: ../NEWS:10 +msgid "" +":gh:`137059`: Fix handling of file URLs with a Windows drive letter in the " +"URL authority by :func:`urllib.request.url2pathname`. This fixes a " +"regression in earlier pre-releases of Python 3.14." +msgstr "" + +#: ../NEWS:14 +msgid "" +":gh:`130577`: :mod:`tarfile` now validates archives to ensure member offsets " +"are non-negative. (Contributed by Alexander Enrique Urieles Nieto in :gh:" +"`130577`.)" +msgstr "" + +#: ../NEWS:19 ../NEWS:90 ../NEWS:319 ../NEWS:505 ../NEWS:819 ../NEWS:1365 +#: ../NEWS:1937 ../NEWS:2397 ../NEWS:2961 ../NEWS:3373 ../NEWS:3777 +#: ../NEWS:4398 ../NEWS:6000 ../NEWS:6970 ../NEWS:7606 ../NEWS:8114 +#: ../NEWS:8549 ../NEWS:9106 ../NEWS:9980 ../NEWS:10641 ../NEWS:13113 +#: ../NEWS:14007 ../NEWS:14313 ../NEWS:14622 ../NEWS:14871 ../NEWS:15309 +#: ../NEWS:15650 ../NEWS:16103 ../NEWS:18291 ../NEWS:19039 ../NEWS:19640 +#: ../NEWS:20081 ../NEWS:20463 ../NEWS:20897 ../NEWS:21379 ../NEWS:21932 +#: ../NEWS:23865 ../NEWS:24536 ../NEWS:24946 ../NEWS:25179 ../NEWS:25436 +#: ../NEWS:25804 ../NEWS:26381 ../NEWS:26741 ../NEWS:27895 ../NEWS:28257 +#: ../NEWS:28701 ../NEWS:29211 ../NEWS:29552 ../NEWS:29919 ../NEWS:30335 +#: ../NEWS:32254 ../NEWS:33015 ../NEWS:33553 ../NEWS:33859 ../NEWS:34120 +#: ../NEWS:37100 ../NEWS:37212 ../NEWS:37425 ../NEWS:37616 ../NEWS:37826 +#: ../NEWS:38070 ../NEWS:38389 ../NEWS:38693 ../NEWS:39293 ../NEWS:39582 +#: ../NEWS:41674 ../NEWS:42011 ../NEWS:42328 ../NEWS:42777 ../NEWS:43266 +#: ../NEWS:43608 ../NEWS:43632 ../NEWS:43956 ../NEWS:43986 ../NEWS:44050 +#: ../NEWS:44164 ../NEWS:44288 ../NEWS:44556 ../NEWS:45065 ../NEWS:45312 +#: ../NEWS:45526 ../NEWS:45818 ../NEWS:47124 ../NEWS:47185 ../NEWS:47586 +#: ../NEWS:48259 ../NEWS:48302 ../NEWS:49010 ../NEWS:49028 ../NEWS:49551 +#: ../NEWS:49586 ../NEWS:49614 ../NEWS:49706 ../NEWS:49793 ../NEWS:49898 +#: ../NEWS:49941 ../NEWS:50217 ../NEWS:50452 ../NEWS:50638 ../NEWS:50777 +msgid "Core and Builtins" +msgstr "コアと組み込み" + +#: ../NEWS:21 +msgid "" +":gh:`136870`: Fix data races while de-instrumenting bytecode of code objects " +"running concurrently in threads." +msgstr "" + +#: ../NEWS:26 msgid "Python 3.14.0 release candidate 1" msgstr "" -#: ../NEWS:5 +#: ../NEWS:28 msgid "*Release date: 2025-07-22*" msgstr "" -#: ../NEWS:8 ../NEWS:135 ../NEWS:603 ../NEWS:886 ../NEWS:1696 ../NEWS:2056 -#: ../NEWS:2622 ../NEWS:3159 ../NEWS:3496 ../NEWS:3955 ../NEWS:4628 -#: ../NEWS:8491 ../NEWS:9013 ../NEWS:10450 ../NEWS:12715 ../NEWS:13917 -#: ../NEWS:14252 ../NEWS:15243 ../NEWS:15573 ../NEWS:18064 ../NEWS:18950 -#: ../NEWS:19557 ../NEWS:23633 ../NEWS:25739 ../NEWS:26233 ../NEWS:28152 -#: ../NEWS:28614 ../NEWS:29087 ../NEWS:32069 ../NEWS:32932 ../NEWS:33471 -#: ../NEWS:33813 ../NEWS:36936 ../NEWS:37558 ../NEWS:37775 ../NEWS:38035 -#: ../NEWS:38641 ../NEWS:39229 ../NEWS:41544 ../NEWS:41932 ../NEWS:42273 -#: ../NEWS:42696 ../NEWS:43183 ../NEWS:43548 ../NEWS:43942 ../NEWS:44016 -#: ../NEWS:45001 ../NEWS:45462 ../NEWS:45770 ../NEWS:47030 ../NEWS:48139 -#: ../NEWS:48965 ../NEWS:49488 ../NEWS:50175 ../NEWS:50394 ../NEWS:50602 -#: ../NEWS:52514 +#: ../NEWS:31 ../NEWS:158 ../NEWS:626 ../NEWS:909 ../NEWS:1719 ../NEWS:2079 +#: ../NEWS:2645 ../NEWS:3182 ../NEWS:3519 ../NEWS:3978 ../NEWS:4651 +#: ../NEWS:8514 ../NEWS:9036 ../NEWS:10473 ../NEWS:12738 ../NEWS:13940 +#: ../NEWS:14275 ../NEWS:15266 ../NEWS:15596 ../NEWS:18087 ../NEWS:18973 +#: ../NEWS:19580 ../NEWS:23656 ../NEWS:25762 ../NEWS:26256 ../NEWS:28175 +#: ../NEWS:28637 ../NEWS:29110 ../NEWS:32092 ../NEWS:32955 ../NEWS:33494 +#: ../NEWS:33836 ../NEWS:36959 ../NEWS:37581 ../NEWS:37798 ../NEWS:38058 +#: ../NEWS:38664 ../NEWS:39252 ../NEWS:41567 ../NEWS:41955 ../NEWS:42296 +#: ../NEWS:42719 ../NEWS:43206 ../NEWS:43571 ../NEWS:43965 ../NEWS:44039 +#: ../NEWS:45024 ../NEWS:45485 ../NEWS:45793 ../NEWS:47053 ../NEWS:48162 +#: ../NEWS:48988 ../NEWS:49511 ../NEWS:50198 ../NEWS:50417 ../NEWS:50625 +#: ../NEWS:52537 msgid "Tools/Demos" msgstr "ツール/デモ" -#: ../NEWS:10 +#: ../NEWS:33 msgid "" ":gh:`136251`: Fixes and usability improvements for ``Tools/wasm/emscripten/" "web_example``" msgstr "" -#: ../NEWS:14 ../NEWS:154 ../NEWS:364 ../NEWS:624 ../NEWS:916 ../NEWS:1716 -#: ../NEWS:2096 ../NEWS:2647 ../NEWS:3519 ../NEWS:3975 ../NEWS:4700 -#: ../NEWS:6937 ../NEWS:8074 ../NEWS:8518 ../NEWS:9074 ../NEWS:10593 -#: ../NEWS:13072 ../NEWS:14269 ../NEWS:14590 ../NEWS:15272 ../NEWS:15607 -#: ../NEWS:16042 ../NEWS:18261 ../NEWS:21882 ../NEWS:23786 ../NEWS:24491 -#: ../NEWS:24916 ../NEWS:25150 ../NEWS:25774 ../NEWS:26347 ../NEWS:26697 -#: ../NEWS:27866 ../NEWS:28219 ../NEWS:28671 ../NEWS:29177 ../NEWS:29878 -#: ../NEWS:30263 ../NEWS:32216 ../NEWS:32974 ../NEWS:33518 ../NEWS:34049 -#: ../NEWS:37579 ../NEWS:37797 ../NEWS:39525 ../NEWS:41978 ../NEWS:42745 -#: ../NEWS:43209 ../NEWS:43236 ../NEWS:45280 ../NEWS:45491 ../NEWS:45782 -#: ../NEWS:47078 ../NEWS:47137 ../NEWS:47554 ../NEWS:48257 +#: ../NEWS:37 ../NEWS:177 ../NEWS:387 ../NEWS:647 ../NEWS:939 ../NEWS:1739 +#: ../NEWS:2119 ../NEWS:2670 ../NEWS:3542 ../NEWS:3998 ../NEWS:4723 +#: ../NEWS:6960 ../NEWS:8097 ../NEWS:8541 ../NEWS:9097 ../NEWS:10616 +#: ../NEWS:13095 ../NEWS:14292 ../NEWS:14613 ../NEWS:15295 ../NEWS:15630 +#: ../NEWS:16065 ../NEWS:18284 ../NEWS:21905 ../NEWS:23809 ../NEWS:24514 +#: ../NEWS:24939 ../NEWS:25173 ../NEWS:25797 ../NEWS:26370 ../NEWS:26720 +#: ../NEWS:27889 ../NEWS:28242 ../NEWS:28694 ../NEWS:29200 ../NEWS:29901 +#: ../NEWS:30286 ../NEWS:32239 ../NEWS:32997 ../NEWS:33541 ../NEWS:34072 +#: ../NEWS:37602 ../NEWS:37820 ../NEWS:39548 ../NEWS:42001 ../NEWS:42768 +#: ../NEWS:43232 ../NEWS:43259 ../NEWS:45303 ../NEWS:45514 ../NEWS:45805 +#: ../NEWS:47101 ../NEWS:47160 ../NEWS:47577 ../NEWS:48280 msgid "Security" msgstr "セキュリティ" -#: ../NEWS:16 +#: ../NEWS:39 msgid "" ":gh:`135661`: Fix parsing attributes with whitespaces around the ``=`` " "separator in :class:`html.parser.HTMLParser` according to the HTML5 standard." msgstr "" -#: ../NEWS:20 +#: ../NEWS:43 msgid "" ":gh:`118350`: Fix support of escapable raw text mode (elements \"textarea\" " "and \"title\") in :class:`html.parser.HTMLParser`." msgstr "" -#: ../NEWS:24 ../NEWS:191 ../NEWS:379 ../NEWS:634 ../NEWS:926 ../NEWS:1731 -#: ../NEWS:2104 ../NEWS:2675 ../NEWS:3173 ../NEWS:3527 ../NEWS:3980 -#: ../NEWS:4751 ../NEWS:7140 ../NEWS:7694 ../NEWS:8150 ../NEWS:8636 -#: ../NEWS:9242 ../NEWS:10129 ../NEWS:11254 ../NEWS:13306 ../NEWS:14058 -#: ../NEWS:14370 ../NEWS:14664 ../NEWS:14957 ../NEWS:15355 ../NEWS:15781 -#: ../NEWS:16696 ../NEWS:18464 ../NEWS:19135 ../NEWS:19774 ../NEWS:20168 -#: ../NEWS:20587 ../NEWS:21000 ../NEWS:21465 ../NEWS:22429 ../NEWS:23973 -#: ../NEWS:24605 ../NEWS:24988 ../NEWS:25212 ../NEWS:25486 ../NEWS:25883 -#: ../NEWS:26438 ../NEWS:27058 ../NEWS:27930 ../NEWS:28318 ../NEWS:28805 -#: ../NEWS:29265 ../NEWS:29627 ../NEWS:29973 ../NEWS:30629 ../NEWS:32395 -#: ../NEWS:33062 ../NEWS:33605 ../NEWS:33900 ../NEWS:34651 ../NEWS:37059 -#: ../NEWS:37092 ../NEWS:37220 ../NEWS:37428 ../NEWS:37619 ../NEWS:37824 -#: ../NEWS:38122 ../NEWS:38443 ../NEWS:38768 ../NEWS:39358 ../NEWS:40018 -#: ../NEWS:41688 ../NEWS:42034 ../NEWS:42400 ../NEWS:42724 ../NEWS:42827 -#: ../NEWS:43290 ../NEWS:43677 ../NEWS:43980 ../NEWS:44062 ../NEWS:44165 -#: ../NEWS:44335 ../NEWS:44670 ../NEWS:45088 ../NEWS:45306 ../NEWS:45543 -#: ../NEWS:46080 ../NEWS:47107 ../NEWS:47125 ../NEWS:47213 ../NEWS:47694 -#: ../NEWS:48409 ../NEWS:49073 ../NEWS:49511 ../NEWS:49538 ../NEWS:49576 -#: ../NEWS:49596 ../NEWS:49703 ../NEWS:49797 ../NEWS:49893 ../NEWS:49968 -#: ../NEWS:50226 ../NEWS:50449 ../NEWS:50622 ../NEWS:50980 -msgid "Library" -msgstr "ライブラリ" - -#: ../NEWS:26 +#: ../NEWS:49 msgid "" ":gh:`136170`: Removed the unreleased ``zipfile.ZipFile.data_offset`` " "property added in 3.14.0a7 as it wasn't fully clear which behavior it should " @@ -112,108 +163,85 @@ msgid "" "expect." msgstr "" -#: ../NEWS:30 +#: ../NEWS:53 msgid ":gh:`124621`: pyrepl now works in Emscripten." msgstr "" -#: ../NEWS:32 +#: ../NEWS:55 msgid "" ":gh:`136874`: Discard URL query and fragment in :func:`urllib.request." "url2pathname`." msgstr "" -#: ../NEWS:35 +#: ../NEWS:58 msgid ":gh:`130645`: Enable color help by default in :mod:`argparse`." msgstr "" -#: ../NEWS:37 +#: ../NEWS:60 msgid ":gh:`136549`: Fix signature of :func:`threading.excepthook`." msgstr "" -#: ../NEWS:39 +#: ../NEWS:62 msgid "" ":gh:`136523`: Fix :class:`wave.Wave_write` emitting an unraisable when open " "raises." msgstr "" -#: ../NEWS:42 +#: ../NEWS:65 msgid "" ":gh:`52876`: Add missing ``keepends`` (default ``True``) parameter to :meth:" "`!codecs.StreamReaderWriter.readline` and :meth:`!codecs.StreamReaderWriter." "readlines`." msgstr "" -#: ../NEWS:46 +#: ../NEWS:69 msgid "" ":gh:`136470`: Correct :class:`concurrent.futures.InterpreterPoolExecutor`'s " "default thread name." msgstr "" -#: ../NEWS:49 +#: ../NEWS:72 msgid "" ":gh:`136476`: Fix a bug that was causing the ``get_async_stack_trace`` " "function to miss some frames in the stack trace." msgstr "" -#: ../NEWS:52 +#: ../NEWS:75 msgid "" ":gh:`136434`: Fix docs generation of ``UnboundItem`` in :mod:`concurrent." "interpreters` when running with :option:`-OO`." msgstr "" -#: ../NEWS:55 +#: ../NEWS:78 msgid "" ":gh:`136380`: Raises :exc:`AttributeError` when accessing :class:`concurrent." "futures.InterpreterPoolExecutor` and subinterpreters are not available." msgstr "" -#: ../NEWS:59 +#: ../NEWS:82 msgid "" ":gh:`134759`: Fix :exc:`UnboundLocalError` in :func:`email.message.Message." "get_payload` when the payload to decode is a :class:`bytes` object. Patch by " "Kliment Lamonov." msgstr "" -#: ../NEWS:63 +#: ../NEWS:86 msgid "" ":gh:`134657`: :mod:`asyncio`: Remove some private names from ``asyncio." "__all__``." msgstr "" -#: ../NEWS:67 ../NEWS:296 ../NEWS:482 ../NEWS:796 ../NEWS:1342 ../NEWS:1914 -#: ../NEWS:2374 ../NEWS:2938 ../NEWS:3350 ../NEWS:3754 ../NEWS:4375 -#: ../NEWS:5977 ../NEWS:6947 ../NEWS:7583 ../NEWS:8091 ../NEWS:8526 -#: ../NEWS:9083 ../NEWS:9957 ../NEWS:10618 ../NEWS:13090 ../NEWS:13984 -#: ../NEWS:14290 ../NEWS:14599 ../NEWS:14848 ../NEWS:15286 ../NEWS:15627 -#: ../NEWS:16080 ../NEWS:18268 ../NEWS:19016 ../NEWS:19617 ../NEWS:20058 -#: ../NEWS:20440 ../NEWS:20874 ../NEWS:21356 ../NEWS:21909 ../NEWS:23842 -#: ../NEWS:24513 ../NEWS:24923 ../NEWS:25156 ../NEWS:25413 ../NEWS:25781 -#: ../NEWS:26358 ../NEWS:26718 ../NEWS:27872 ../NEWS:28234 ../NEWS:28678 -#: ../NEWS:29188 ../NEWS:29529 ../NEWS:29896 ../NEWS:30312 ../NEWS:32231 -#: ../NEWS:32992 ../NEWS:33530 ../NEWS:33836 ../NEWS:34097 ../NEWS:37077 -#: ../NEWS:37189 ../NEWS:37402 ../NEWS:37593 ../NEWS:37803 ../NEWS:38047 -#: ../NEWS:38366 ../NEWS:38670 ../NEWS:39270 ../NEWS:39559 ../NEWS:41651 -#: ../NEWS:41988 ../NEWS:42305 ../NEWS:42754 ../NEWS:43243 ../NEWS:43585 -#: ../NEWS:43609 ../NEWS:43933 ../NEWS:43963 ../NEWS:44027 ../NEWS:44141 -#: ../NEWS:44265 ../NEWS:44533 ../NEWS:45042 ../NEWS:45289 ../NEWS:45503 -#: ../NEWS:45795 ../NEWS:47101 ../NEWS:47162 ../NEWS:47563 ../NEWS:48236 -#: ../NEWS:48279 ../NEWS:48987 ../NEWS:49005 ../NEWS:49528 ../NEWS:49563 -#: ../NEWS:49591 ../NEWS:49683 ../NEWS:49770 ../NEWS:49875 ../NEWS:49918 -#: ../NEWS:50194 ../NEWS:50429 ../NEWS:50615 ../NEWS:50754 -msgid "Core and Builtins" -msgstr "コアと組み込み" - -#: ../NEWS:69 +#: ../NEWS:92 msgid "" ":gh:`136801`: Fix PyREPL syntax highlighting on match cases after multi-line " "case. Contributed by Olga Matoula." msgstr "" -#: ../NEWS:72 +#: ../NEWS:95 msgid ":gh:`136421`: Fix crash when initializing :mod:`datetime` concurrently." msgstr "" -#: ../NEWS:74 +#: ../NEWS:97 msgid "" ":gh:`136541`: Fix some issues with the perf trampolines on x86-64 and " "aarch64. The trampolines were not being generated correctly for some cases, " @@ -221,232 +249,232 @@ msgid "" "Pablo Galindo." msgstr "" -#: ../NEWS:79 +#: ../NEWS:102 msgid "" ":gh:`136517`: Fixed a typo that prevented printing of uncollectable objects " "when the :const:`gc.DEBUG_UNCOLLECTABLE` mode was set." msgstr "" -#: ../NEWS:82 +#: ../NEWS:105 msgid "" ":gh:`136525`: Fix issue where per-thread bytecode was not instrumented for " "newly created threads." msgstr "" -#: ../NEWS:85 +#: ../NEWS:108 msgid "" ":gh:`132661`: ``Interpolation.expression`` now has a default, the empty " "string." msgstr "" -#: ../NEWS:88 +#: ../NEWS:111 msgid ":gh:`132661`: Reflect recent :pep:`750` change." msgstr "" -#: ../NEWS:90 +#: ../NEWS:113 msgid "" "Disallow concatenation of ``string.templatelib.Template`` and :class:`str`. " "Also, disallow implicit concatenation of t-string literals with string or f-" "string literals." msgstr "" -#: ../NEWS:94 +#: ../NEWS:117 msgid "" ":gh:`116738`: Make functions in :mod:`grp` thread-safe on the :term:`free " "threaded ` build." msgstr "" -#: ../NEWS:97 +#: ../NEWS:120 msgid "" ":gh:`135148`: Fixed a bug where f-string debug expressions (using =) would " "incorrectly strip out parts of strings containing escaped quotes and # " "characters. Patch by Pablo Galindo." msgstr "" -#: ../NEWS:101 +#: ../NEWS:124 msgid "" ":gh:`133136`: Limit excess memory usage in the :term:`free threading` build " "when a large dictionary or list is resized and accessed by multiple threads." msgstr "" -#: ../NEWS:105 +#: ../NEWS:128 msgid "" ":gh:`91153`: Fix a crash when a :class:`bytearray` is concurrently mutated " "during item assignment." msgstr "" -#: ../NEWS:108 +#: ../NEWS:131 msgid "" ":gh:`127971`: Fix off-by-one read beyond the end of a string in string " "search." msgstr "" -#: ../NEWS:112 ../NEWS:328 ../NEWS:539 ../NEWS:853 ../NEWS:1577 ../NEWS:2009 -#: ../NEWS:2536 ../NEWS:3073 ../NEWS:3428 ../NEWS:3855 ../NEWS:4502 -#: ../NEWS:6572 ../NEWS:7541 ../NEWS:8003 ../NEWS:8499 ../NEWS:9027 -#: ../NEWS:9934 ../NEWS:10458 ../NEWS:12775 ../NEWS:13924 ../NEWS:14257 -#: ../NEWS:14560 ../NEWS:15252 ../NEWS:15583 ../NEWS:15998 ../NEWS:18099 -#: ../NEWS:18963 ../NEWS:19563 ../NEWS:20031 ../NEWS:20414 ../NEWS:20842 -#: ../NEWS:21344 ../NEWS:21797 ../NEWS:23654 ../NEWS:24441 ../NEWS:24831 -#: ../NEWS:25107 ../NEWS:25395 ../NEWS:25748 ../NEWS:26243 ../NEWS:26661 -#: ../NEWS:27755 ../NEWS:28165 ../NEWS:28626 ../NEWS:29099 ../NEWS:29470 -#: ../NEWS:29857 ../NEWS:30244 ../NEWS:32094 ../NEWS:32938 ../NEWS:33476 -#: ../NEWS:33820 ../NEWS:36975 ../NEWS:37065 ../NEWS:37781 ../NEWS:38351 -#: ../NEWS:38648 ../NEWS:39241 ../NEWS:39503 ../NEWS:41575 ../NEWS:41950 -#: ../NEWS:42283 ../NEWS:42703 ../NEWS:43506 ../NEWS:43835 ../NEWS:44003 -#: ../NEWS:44504 ../NEWS:44943 ../NEWS:45433 ../NEWS:45762 ../NEWS:47051 -#: ../NEWS:47526 ../NEWS:48106 ../NEWS:50418 ../NEWS:50733 ../NEWS:52337 +#: ../NEWS:135 ../NEWS:351 ../NEWS:562 ../NEWS:876 ../NEWS:1600 ../NEWS:2032 +#: ../NEWS:2559 ../NEWS:3096 ../NEWS:3451 ../NEWS:3878 ../NEWS:4525 +#: ../NEWS:6595 ../NEWS:7564 ../NEWS:8026 ../NEWS:8522 ../NEWS:9050 +#: ../NEWS:9957 ../NEWS:10481 ../NEWS:12798 ../NEWS:13947 ../NEWS:14280 +#: ../NEWS:14583 ../NEWS:15275 ../NEWS:15606 ../NEWS:16021 ../NEWS:18122 +#: ../NEWS:18986 ../NEWS:19586 ../NEWS:20054 ../NEWS:20437 ../NEWS:20865 +#: ../NEWS:21367 ../NEWS:21820 ../NEWS:23677 ../NEWS:24464 ../NEWS:24854 +#: ../NEWS:25130 ../NEWS:25418 ../NEWS:25771 ../NEWS:26266 ../NEWS:26684 +#: ../NEWS:27778 ../NEWS:28188 ../NEWS:28649 ../NEWS:29122 ../NEWS:29493 +#: ../NEWS:29880 ../NEWS:30267 ../NEWS:32117 ../NEWS:32961 ../NEWS:33499 +#: ../NEWS:33843 ../NEWS:36998 ../NEWS:37088 ../NEWS:37804 ../NEWS:38374 +#: ../NEWS:38671 ../NEWS:39264 ../NEWS:39526 ../NEWS:41598 ../NEWS:41973 +#: ../NEWS:42306 ../NEWS:42726 ../NEWS:43529 ../NEWS:43858 ../NEWS:44026 +#: ../NEWS:44527 ../NEWS:44966 ../NEWS:45456 ../NEWS:45785 ../NEWS:47074 +#: ../NEWS:47549 ../NEWS:48129 ../NEWS:50441 ../NEWS:50756 ../NEWS:52360 msgid "C API" msgstr "C API" -#: ../NEWS:114 +#: ../NEWS:137 msgid "" ":gh:`112068`: Revert support of nullable arguments in :c:func:`PyArg_Parse`." msgstr "" -#: ../NEWS:116 +#: ../NEWS:139 msgid "" ":gh:`133296`: New variants for the critical section API that accept one or " "two :c:type:`PyMutex` pointers rather than :c:type:`PyObject` instances are " "now public in the non-limited C API." msgstr "" -#: ../NEWS:120 +#: ../NEWS:143 msgid "" ":gh:`134009`: Expose :c:func:`PyMutex_IsLocked` as part of the public C API." msgstr "" -#: ../NEWS:123 ../NEWS:334 ../NEWS:556 ../NEWS:859 ../NEWS:1636 ../NEWS:2017 -#: ../NEWS:2585 ../NEWS:3138 ../NEWS:3446 ../NEWS:3905 ../NEWS:4525 -#: ../NEWS:6827 ../NEWS:7475 ../NEWS:7964 ../NEWS:8433 ../NEWS:8954 -#: ../NEWS:9799 ../NEWS:10385 ../NEWS:12563 ../NEWS:13828 ../NEWS:14235 -#: ../NEWS:14512 ../NEWS:14782 ../NEWS:15194 ../NEWS:15528 ../NEWS:15939 -#: ../NEWS:17821 ../NEWS:18914 ../NEWS:19490 ../NEWS:19977 ../NEWS:20347 -#: ../NEWS:20783 ../NEWS:21186 ../NEWS:21716 ../NEWS:23499 ../NEWS:24356 -#: ../NEWS:24796 ../NEWS:25067 ../NEWS:25341 ../NEWS:25706 ../NEWS:26165 -#: ../NEWS:26621 ../NEWS:27637 ../NEWS:28117 ../NEWS:28575 ../NEWS:29028 -#: ../NEWS:29431 ../NEWS:29833 ../NEWS:30204 ../NEWS:31754 ../NEWS:32871 -#: ../NEWS:33342 ../NEWS:33758 ../NEWS:36489 ../NEWS:37145 ../NEWS:37367 -#: ../NEWS:37518 ../NEWS:37738 ../NEWS:37985 ../NEWS:38314 ../NEWS:39137 -#: ../NEWS:39457 ../NEWS:41168 ../NEWS:41857 ../NEWS:41967 ../NEWS:42202 -#: ../NEWS:42594 ../NEWS:42730 ../NEWS:42991 ../NEWS:43512 ../NEWS:43596 -#: ../NEWS:43887 ../NEWS:43952 ../NEWS:44124 ../NEWS:44242 ../NEWS:44511 -#: ../NEWS:44966 ../NEWS:45252 ../NEWS:45440 ../NEWS:45753 ../NEWS:46949 -#: ../NEWS:47504 ../NEWS:48166 ../NEWS:48887 ../NEWS:49439 ../NEWS:49499 -#: ../NEWS:49516 ../NEWS:49758 ../NEWS:49863 ../NEWS:50376 ../NEWS:50590 -#: ../NEWS:50725 ../NEWS:52257 +#: ../NEWS:146 ../NEWS:357 ../NEWS:579 ../NEWS:882 ../NEWS:1659 ../NEWS:2040 +#: ../NEWS:2608 ../NEWS:3161 ../NEWS:3469 ../NEWS:3928 ../NEWS:4548 +#: ../NEWS:6850 ../NEWS:7498 ../NEWS:7987 ../NEWS:8456 ../NEWS:8977 +#: ../NEWS:9822 ../NEWS:10408 ../NEWS:12586 ../NEWS:13851 ../NEWS:14258 +#: ../NEWS:14535 ../NEWS:14805 ../NEWS:15217 ../NEWS:15551 ../NEWS:15962 +#: ../NEWS:17844 ../NEWS:18937 ../NEWS:19513 ../NEWS:20000 ../NEWS:20370 +#: ../NEWS:20806 ../NEWS:21209 ../NEWS:21739 ../NEWS:23522 ../NEWS:24379 +#: ../NEWS:24819 ../NEWS:25090 ../NEWS:25364 ../NEWS:25729 ../NEWS:26188 +#: ../NEWS:26644 ../NEWS:27660 ../NEWS:28140 ../NEWS:28598 ../NEWS:29051 +#: ../NEWS:29454 ../NEWS:29856 ../NEWS:30227 ../NEWS:31777 ../NEWS:32894 +#: ../NEWS:33365 ../NEWS:33781 ../NEWS:36512 ../NEWS:37168 ../NEWS:37390 +#: ../NEWS:37541 ../NEWS:37761 ../NEWS:38008 ../NEWS:38337 ../NEWS:39160 +#: ../NEWS:39480 ../NEWS:41191 ../NEWS:41880 ../NEWS:41990 ../NEWS:42225 +#: ../NEWS:42617 ../NEWS:42753 ../NEWS:43014 ../NEWS:43535 ../NEWS:43619 +#: ../NEWS:43910 ../NEWS:43975 ../NEWS:44147 ../NEWS:44265 ../NEWS:44534 +#: ../NEWS:44989 ../NEWS:45275 ../NEWS:45463 ../NEWS:45776 ../NEWS:46972 +#: ../NEWS:47527 ../NEWS:48189 ../NEWS:48910 ../NEWS:49462 ../NEWS:49522 +#: ../NEWS:49539 ../NEWS:49781 ../NEWS:49886 ../NEWS:50399 ../NEWS:50613 +#: ../NEWS:50748 ../NEWS:52280 msgid "Build" msgstr "ビルド" -#: ../NEWS:125 +#: ../NEWS:148 msgid "" ":gh:`135621`: PyREPL no longer depends on the :mod:`curses` standard " "library. Contributed by Łukasz Langa." msgstr "" -#: ../NEWS:130 +#: ../NEWS:153 msgid "Python 3.14.0 beta 4" msgstr "" -#: ../NEWS:132 +#: ../NEWS:155 msgid "*Release date: 2025-07-08*" msgstr "" -#: ../NEWS:137 +#: ../NEWS:160 msgid "" ":gh:`135968`: Stubs for ``strip`` are now provided as part of an iOS install." msgstr "" -#: ../NEWS:139 +#: ../NEWS:162 msgid ":gh:`133600`: Backport file reorganization for Tools/wasm/wasi." msgstr "" -#: ../NEWS:141 +#: ../NEWS:164 msgid "" "This should make backporting future code changes easier. It also simplifies " "instructions around how to do WASI builds in the devguide." msgstr "" -#: ../NEWS:145 ../NEWS:353 ../NEWS:609 ../NEWS:895 ../NEWS:1705 ../NEWS:2079 -#: ../NEWS:2631 ../NEWS:3166 ../NEWS:3502 ../NEWS:3964 ../NEWS:4634 -#: ../NEWS:7938 ../NEWS:8401 ../NEWS:8944 ../NEWS:9759 ../NEWS:10351 -#: ../NEWS:12315 ../NEWS:13806 ../NEWS:14225 ../NEWS:14499 ../NEWS:14776 -#: ../NEWS:15182 ../NEWS:15507 ../NEWS:15919 ../NEWS:17699 ../NEWS:18883 -#: ../NEWS:19466 ../NEWS:19955 ../NEWS:20303 ../NEWS:20756 ../NEWS:21164 -#: ../NEWS:21667 ../NEWS:23377 ../NEWS:24333 ../NEWS:24787 ../NEWS:25061 -#: ../NEWS:25331 ../NEWS:25684 ../NEWS:26130 ../NEWS:26605 ../NEWS:27586 -#: ../NEWS:28108 ../NEWS:28549 ../NEWS:29012 ../NEWS:29422 ../NEWS:30149 -#: ../NEWS:31584 ../NEWS:32835 ../NEWS:33288 ../NEWS:33745 ../NEWS:33984 -#: ../NEWS:36322 ../NEWS:37358 ../NEWS:37512 ../NEWS:37728 ../NEWS:37980 -#: ../NEWS:38294 ../NEWS:38626 ../NEWS:39110 ../NEWS:41105 ../NEWS:41849 -#: ../NEWS:41962 ../NEWS:42187 ../NEWS:42577 ../NEWS:42975 ../NEWS:43554 -#: ../NEWS:43865 ../NEWS:44116 ../NEWS:44251 ../NEWS:44522 ../NEWS:44952 -#: ../NEWS:45225 ../NEWS:45479 ../NEWS:45733 ../NEWS:46906 ../NEWS:47466 -#: ../NEWS:48120 ../NEWS:48241 ../NEWS:48864 ../NEWS:49426 ../NEWS:49670 -#: ../NEWS:49847 ../NEWS:50156 ../NEWS:50385 ../NEWS:50595 ../NEWS:52406 +#: ../NEWS:168 ../NEWS:376 ../NEWS:632 ../NEWS:918 ../NEWS:1728 ../NEWS:2102 +#: ../NEWS:2654 ../NEWS:3189 ../NEWS:3525 ../NEWS:3987 ../NEWS:4657 +#: ../NEWS:7961 ../NEWS:8424 ../NEWS:8967 ../NEWS:9782 ../NEWS:10374 +#: ../NEWS:12338 ../NEWS:13829 ../NEWS:14248 ../NEWS:14522 ../NEWS:14799 +#: ../NEWS:15205 ../NEWS:15530 ../NEWS:15942 ../NEWS:17722 ../NEWS:18906 +#: ../NEWS:19489 ../NEWS:19978 ../NEWS:20326 ../NEWS:20779 ../NEWS:21187 +#: ../NEWS:21690 ../NEWS:23400 ../NEWS:24356 ../NEWS:24810 ../NEWS:25084 +#: ../NEWS:25354 ../NEWS:25707 ../NEWS:26153 ../NEWS:26628 ../NEWS:27609 +#: ../NEWS:28131 ../NEWS:28572 ../NEWS:29035 ../NEWS:29445 ../NEWS:30172 +#: ../NEWS:31607 ../NEWS:32858 ../NEWS:33311 ../NEWS:33768 ../NEWS:34007 +#: ../NEWS:36345 ../NEWS:37381 ../NEWS:37535 ../NEWS:37751 ../NEWS:38003 +#: ../NEWS:38317 ../NEWS:38649 ../NEWS:39133 ../NEWS:41128 ../NEWS:41872 +#: ../NEWS:41985 ../NEWS:42210 ../NEWS:42600 ../NEWS:42998 ../NEWS:43577 +#: ../NEWS:43888 ../NEWS:44139 ../NEWS:44274 ../NEWS:44545 ../NEWS:44975 +#: ../NEWS:45248 ../NEWS:45502 ../NEWS:45756 ../NEWS:46929 ../NEWS:47489 +#: ../NEWS:48143 ../NEWS:48264 ../NEWS:48887 ../NEWS:49449 ../NEWS:49693 +#: ../NEWS:49870 ../NEWS:50179 ../NEWS:50408 ../NEWS:50618 ../NEWS:52429 msgid "Tests" msgstr "テスト" -#: ../NEWS:147 +#: ../NEWS:170 msgid "" ":gh:`135966`: The iOS testbed now handles the ``app_packages`` folder as a " "site directory." msgstr "" -#: ../NEWS:150 +#: ../NEWS:173 msgid "" ":gh:`135494`: Fix regrtest to support excluding tests from ``--pgo`` tests. " "Patch by Victor Stinner." msgstr "" -#: ../NEWS:156 +#: ../NEWS:179 msgid "" ":gh:`136053`: :mod:`marshal`: fix a possible crash when deserializing :class:" "`slice` objects." msgstr "" -#: ../NEWS:159 +#: ../NEWS:182 msgid "" ":gh:`135661`: Fix parsing start and end tags in :class:`html.parser." "HTMLParser` according to the HTML5 standard." msgstr "" -#: ../NEWS:162 +#: ../NEWS:185 msgid "" "Whitespaces no longer accepted between ```` does not end the script section." msgstr "" -#: ../NEWS:165 +#: ../NEWS:188 msgid "" "Vertical tabulation (``\\v``) and non-ASCII whitespaces no longer recognized " "as whitespaces. The only whitespaces are ``\\t\\n\\r\\f`` and space." msgstr "" -#: ../NEWS:168 +#: ../NEWS:191 msgid "Null character (U+0000) no longer ends the tag name." msgstr "" -#: ../NEWS:170 +#: ../NEWS:193 msgid "" "Attributes and slashes after the tag name in end tags are now ignored, " "instead of terminating after the first ``>`` in quoted attribute value. E.g. " "``\"/>``." msgstr "" -#: ../NEWS:174 +#: ../NEWS:197 msgid "" "Multiple slashes and whitespaces between the last attribute and closing " "``>`` are now ignored in both start and end tags. E.g. ````." msgstr "" -#: ../NEWS:177 +#: ../NEWS:200 msgid "" "Multiple ``=`` between attribute name and value are no longer collapsed. E." "g. ```` produces attribute \"foo\" with value \"=bar\"." msgstr "" -#: ../NEWS:180 +#: ../NEWS:203 msgid "" "[Reverted in :gh:`136927`] Whitespaces between the ``=`` separator and " "attribute name or value are no longer ignored. E.g. ```` " @@ -455,7 +483,7 @@ msgid "" "with value None." msgstr "" -#: ../NEWS:185 +#: ../NEWS:208 msgid "" ":gh:`102555`: Fix comment parsing in :class:`html.parser.HTMLParser` " "according to the HTML5 standard. ``--!>`` now ends the comment. ``-- >`` no " @@ -463,46 +491,46 @@ msgid "" "and ``<--->``." msgstr "" -#: ../NEWS:193 +#: ../NEWS:216 msgid "" ":gh:`136286`: Fix pickling failures for protocols 0 and 1 for many objects " "realted to subinterpreters." msgstr "" -#: ../NEWS:196 +#: ../NEWS:219 msgid "" ":gh:`136316`: Improve support for evaluating nested forward references in :" "func:`typing.evaluate_forward_ref`." msgstr "" -#: ../NEWS:199 +#: ../NEWS:222 msgid "" ":gh:`85702`: If ``zoneinfo._common.load_tzdata`` is given a package without " "a resource a :exc:`zoneinfo.ZoneInfoNotFoundError` is raised rather than a :" "exc:`PermissionError`. Patch by Victor Stinner." msgstr "" -#: ../NEWS:203 +#: ../NEWS:226 msgid "" ":gh:`136028`: Fix parsing month names containing \"İ\" (U+0130, LATIN " "CAPITAL LETTER I WITH DOT ABOVE) in :func:`time.strptime`. This affects " "locales az_AZ, ber_DZ, ber_MA and crh_UA." msgstr "" -#: ../NEWS:207 +#: ../NEWS:230 msgid "" ":gh:`135995`: In the palmos encoding, make byte ``0x9b`` decode to ``›`` " "(U+203A - SINGLE RIGHT-POINTING ANGLE QUOTATION MARK)." msgstr "" -#: ../NEWS:210 +#: ../NEWS:233 msgid "" ":gh:`53203`: Fix :func:`time.strptime` for ``%c`` and ``%x`` formats on " "locales byn_ER, wal_ET and lzh_TW, and for ``%X`` format on locales ar_SA, " "bg_BG and lzh_TW." msgstr "" -#: ../NEWS:214 +#: ../NEWS:237 msgid "" ":gh:`91555`: An earlier change, which was introduced in 3.14.0b2, has been " "reverted. It disabled logging for a logger during handling of log messages " @@ -510,41 +538,41 @@ msgid "" "before 3.14.0b2." msgstr "" -#: ../NEWS:219 +#: ../NEWS:242 msgid "" ":gh:`135878`: Fixes a crash of :class:`types.SimpleNamespace` on :term:`free " "threading` builds, when several threads were calling its :meth:`~object." "__repr__` method at the same time." msgstr "" -#: ../NEWS:223 +#: ../NEWS:246 msgid "" ":gh:`135836`: Fix :exc:`IndexError` in :meth:`asyncio.loop." "create_connection` that could occur when non-\\ :exc:`OSError` exception is " "raised during connection and socket's ``close()`` raises :exc:`!OSError`." msgstr "" -#: ../NEWS:227 +#: ../NEWS:250 msgid "" ":gh:`135836`: Fix :exc:`IndexError` in :meth:`asyncio.loop." "create_connection` that could occur when the Happy Eyeballs algorithm " "resulted in an empty exceptions list during connection attempts." msgstr "" -#: ../NEWS:231 +#: ../NEWS:254 msgid "" ":gh:`135855`: Raise :exc:`TypeError` instead of :exc:`SystemError` when :" "func:`!_interpreters.set___main___attrs` is passed a non-dict object. Patch " "by Brian Schubert." msgstr "" -#: ../NEWS:235 +#: ../NEWS:258 msgid "" ":gh:`135815`: :mod:`netrc`: skip security checks if :func:`os.getuid` is " "missing. Patch by Bénédikt Tran." msgstr "" -#: ../NEWS:238 +#: ../NEWS:261 msgid "" ":gh:`135640`: Address bug where it was possible to call :func:`xml.etree." "ElementTree.ElementTree.write` on an ElementTree object with an invalid root " @@ -552,84 +580,84 @@ msgid "" "existed." msgstr "" -#: ../NEWS:243 +#: ../NEWS:266 msgid "" ":gh:`135645`: Added ``supports_isolated_interpreters`` field to :data:`sys." "implementation`." msgstr "" -#: ../NEWS:246 +#: ../NEWS:269 msgid "" ":gh:`135646`: Raise consistent :exc:`NameError` exceptions in :func:" "`annotationlib.ForwardRef.evaluate`" msgstr "" -#: ../NEWS:249 +#: ../NEWS:272 msgid "" ":gh:`135557`: Fix races on :mod:`heapq` updates and :class:`list` reads on " "the :term:`free threaded ` build." msgstr "" -#: ../NEWS:252 +#: ../NEWS:275 msgid "" ":gh:`119180`: Only fetch globals and locals if necessary in :func:" "`annotationlib.get_annotations`" msgstr "" -#: ../NEWS:255 +#: ../NEWS:278 msgid "" ":gh:`135561`: Fix a crash on DEBUG builds when an HACL* HMAC routine fails. " "Patch by Bénédikt Tran." msgstr "" -#: ../NEWS:258 +#: ../NEWS:281 msgid "" ":gh:`135487`: Fix :meth:`!reprlib.Repr.repr_int` when given integers with " "more than :func:`sys.get_int_max_str_digits` digits. Patch by Bénédikt Tran." msgstr "" -#: ../NEWS:262 +#: ../NEWS:285 msgid "" ":gh:`135335`: :mod:`multiprocessing`: Flush ``stdout`` and ``stderr`` after " "preloading modules in the ``forkserver``." msgstr "" -#: ../NEWS:265 +#: ../NEWS:288 msgid "" ":gh:`135069`: Fix the \"Invalid error handling\" exception in :class:`!" "encodings.idna.IncrementalDecoder` to correctly replace the 'errors' " "parameter." msgstr "" -#: ../NEWS:269 +#: ../NEWS:292 msgid "" ":gh:`130662`: +Accept leading zeros in precision and width fields for +:" "class:`~decimal.Decimal` formatting, for example ``format(Decimal(1.25), " "'.016f')``." msgstr "" -#: ../NEWS:273 +#: ../NEWS:296 msgid "" ":gh:`130662`: Accept leading zeros in precision and width fields for :class:" "`~fractions.Fraction` formatting, for example ``format(Fraction(1, 3), " "'.016f')``." msgstr "" -#: ../NEWS:277 +#: ../NEWS:300 msgid "" ":gh:`87790`: Support underscore and comma as thousands separators in the " "fractional part for :class:`~fractions.Fraction`'s formatting. Patch by " "Sergey B Kirpichev." msgstr "" -#: ../NEWS:281 +#: ../NEWS:304 msgid "" ":gh:`87790`: Support underscore and comma as thousands separators in the " "fractional part for :class:`~decimal.Decimal`'s formatting. Patch by Sergey " "B Kirpichev." msgstr "" -#: ../NEWS:285 +#: ../NEWS:308 msgid "" ":gh:`130664`: Handle corner-case for :class:`~fractions.Fraction`'s " "formatting: treat zero-padding (preceding the width field by a zero " @@ -637,147 +665,147 @@ msgid "" "alignment type of ``'='``, just as in case of :class:`float`'s." msgstr "" -#: ../NEWS:291 ../NEWS:473 ../NEWS:1333 ../NEWS:1908 ../NEWS:2362 ../NEWS:2928 -#: ../NEWS:3748 ../NEWS:4362 ../NEWS:5923 ../NEWS:7469 ../NEWS:7927 -#: ../NEWS:8393 ../NEWS:8930 ../NEWS:9745 ../NEWS:12268 ../NEWS:13786 -#: ../NEWS:14219 ../NEWS:14490 ../NEWS:14769 ../NEWS:15168 ../NEWS:15486 -#: ../NEWS:15911 ../NEWS:17613 ../NEWS:18846 ../NEWS:19440 ../NEWS:19949 -#: ../NEWS:20297 ../NEWS:20743 ../NEWS:21133 ../NEWS:21632 ../NEWS:23242 -#: ../NEWS:24310 ../NEWS:24772 ../NEWS:25052 ../NEWS:25322 ../NEWS:25675 -#: ../NEWS:26118 ../NEWS:26584 ../NEWS:27544 ../NEWS:28091 ../NEWS:28535 -#: ../NEWS:28993 ../NEWS:29397 ../NEWS:29820 ../NEWS:30135 ../NEWS:31480 -#: ../NEWS:32786 ../NEWS:33253 ../NEWS:33731 ../NEWS:33973 ../NEWS:36157 -#: ../NEWS:37133 ../NEWS:37343 ../NEWS:37493 ../NEWS:37711 ../NEWS:37956 -#: ../NEWS:38281 ../NEWS:38621 ../NEWS:39104 ../NEWS:39447 ../NEWS:41057 -#: ../NEWS:41811 ../NEWS:42167 ../NEWS:42564 ../NEWS:42963 ../NEWS:43532 -#: ../NEWS:43852 ../NEWS:44008 ../NEWS:44111 ../NEWS:45470 ../NEWS:45721 -#: ../NEWS:46888 ../NEWS:47448 ../NEWS:48115 ../NEWS:48841 ../NEWS:49402 -#: ../NEWS:49655 ../NEWS:49854 ../NEWS:50165 ../NEWS:52366 +#: ../NEWS:314 ../NEWS:496 ../NEWS:1356 ../NEWS:1931 ../NEWS:2385 ../NEWS:2951 +#: ../NEWS:3771 ../NEWS:4385 ../NEWS:5946 ../NEWS:7492 ../NEWS:7950 +#: ../NEWS:8416 ../NEWS:8953 ../NEWS:9768 ../NEWS:12291 ../NEWS:13809 +#: ../NEWS:14242 ../NEWS:14513 ../NEWS:14792 ../NEWS:15191 ../NEWS:15509 +#: ../NEWS:15934 ../NEWS:17636 ../NEWS:18869 ../NEWS:19463 ../NEWS:19972 +#: ../NEWS:20320 ../NEWS:20766 ../NEWS:21156 ../NEWS:21655 ../NEWS:23265 +#: ../NEWS:24333 ../NEWS:24795 ../NEWS:25075 ../NEWS:25345 ../NEWS:25698 +#: ../NEWS:26141 ../NEWS:26607 ../NEWS:27567 ../NEWS:28114 ../NEWS:28558 +#: ../NEWS:29016 ../NEWS:29420 ../NEWS:29843 ../NEWS:30158 ../NEWS:31503 +#: ../NEWS:32809 ../NEWS:33276 ../NEWS:33754 ../NEWS:33996 ../NEWS:36180 +#: ../NEWS:37156 ../NEWS:37366 ../NEWS:37516 ../NEWS:37734 ../NEWS:37979 +#: ../NEWS:38304 ../NEWS:38644 ../NEWS:39127 ../NEWS:39470 ../NEWS:41080 +#: ../NEWS:41834 ../NEWS:42190 ../NEWS:42587 ../NEWS:42986 ../NEWS:43555 +#: ../NEWS:43875 ../NEWS:44031 ../NEWS:44134 ../NEWS:45493 ../NEWS:45744 +#: ../NEWS:46911 ../NEWS:47471 ../NEWS:48138 ../NEWS:48864 ../NEWS:49425 +#: ../NEWS:49678 ../NEWS:49877 ../NEWS:50188 ../NEWS:52389 msgid "Documentation" msgstr "ドキュメント" -#: ../NEWS:293 +#: ../NEWS:316 msgid "" ":gh:`136155`: EPUB builds are fixed by excluding non-XHTML-compatible tags." msgstr "" -#: ../NEWS:298 +#: ../NEWS:321 msgid ":gh:`109700`: Fix memory error handling in :c:func:`PyDict_SetDefault`." msgstr "" -#: ../NEWS:300 +#: ../NEWS:323 msgid "" ":gh:`78465`: Fix error message for ``cls.__new__(cls, ...)`` where ``cls`` " "is not instantiable builtin or extension type (with ``tp_new`` set to " "``NULL``)." msgstr "" -#: ../NEWS:304 +#: ../NEWS:327 msgid "" ":gh:`129958`: Differentiate between t-strings and f-strings in syntax error " "for newlines in format specifiers of single-quoted interpolated strings." msgstr "" -#: ../NEWS:307 +#: ../NEWS:330 msgid "" ":gh:`135871`: Non-blocking mutex lock attempts now return immediately when " "the lock is busy instead of briefly spinning in the :term:`free threading` " "build." msgstr "" -#: ../NEWS:311 +#: ../NEWS:334 msgid "" ":gh:`135106`: Restrict the trashcan mechanism to GC'ed objects and untrack " "them while in the trashcan to prevent the GC and trashcan mechanisms " "conflicting." msgstr "" -#: ../NEWS:315 +#: ../NEWS:338 msgid "" ":gh:`135607`: Fix potential :mod:`weakref` races in an object's destructor " "on the :term:`free threaded ` build." msgstr "" -#: ../NEWS:318 +#: ../NEWS:341 msgid ":gh:`135608`: Fix a crash in the JIT involving attributes of modules." msgstr "" -#: ../NEWS:320 +#: ../NEWS:343 msgid "" ":gh:`135543`: Emit ``sys.remote_exec`` audit event when :func:`sys." "remote_exec` is called and migrate ``remote_debugger_script`` to ``cpython." "remote_debugger_script``." msgstr "" -#: ../NEWS:324 +#: ../NEWS:347 msgid "" ":gh:`134280`: Disable constant folding for ``~`` with a boolean argument. " "This moves the deprecation warning from compile time to runtime." msgstr "" -#: ../NEWS:330 +#: ../NEWS:353 msgid "" ":gh:`135906`: Fix compilation errors when compiling the internal headers " "with a C++ compiler." msgstr "" -#: ../NEWS:336 +#: ../NEWS:359 msgid "" ":gh:`134273`: Add support for configuring compiler flags for the JIT with " "``CFLAGS_JIT``" msgstr "" -#: ../NEWS:341 +#: ../NEWS:364 msgid "Python 3.14.0 beta 3" msgstr "" -#: ../NEWS:343 +#: ../NEWS:366 msgid "*Release date: 2025-06-17*" msgstr "" -#: ../NEWS:346 ../NEWS:583 ../NEWS:877 ../NEWS:1681 ../NEWS:2050 ../NEWS:3486 -#: ../NEWS:3926 ../NEWS:4581 ../NEWS:7497 ../NEWS:7974 ../NEWS:8459 -#: ../NEWS:8969 ../NEWS:9828 ../NEWS:10409 ../NEWS:12650 ../NEWS:13866 -#: ../NEWS:14243 ../NEWS:14529 ../NEWS:14815 ../NEWS:15212 ../NEWS:15550 -#: ../NEWS:15975 ../NEWS:17935 ../NEWS:18929 ../NEWS:19522 ../NEWS:20007 -#: ../NEWS:20387 ../NEWS:20830 ../NEWS:21314 ../NEWS:21771 ../NEWS:23545 -#: ../NEWS:24365 ../NEWS:24818 ../NEWS:25090 ../NEWS:25367 ../NEWS:26189 -#: ../NEWS:26628 ../NEWS:27658 ../NEWS:28127 ../NEWS:28587 ../NEWS:29045 -#: ../NEWS:29436 ../NEWS:30214 ../NEWS:31826 ../NEWS:32894 ../NEWS:33403 -#: ../NEWS:33772 ../NEWS:34017 ../NEWS:36607 ../NEWS:37152 ../NEWS:37535 -#: ../NEWS:37743 ../NEWS:37990 ../NEWS:38329 ../NEWS:38635 ../NEWS:39170 -#: ../NEWS:41280 ../NEWS:41877 ../NEWS:42208 ../NEWS:42619 ../NEWS:42997 -#: ../NEWS:43568 ../NEWS:43817 ../NEWS:43947 ../NEWS:44237 ../NEWS:44478 -#: ../NEWS:45008 ../NEWS:45240 ../NEWS:45743 ../NEWS:47012 ../NEWS:47517 -#: ../NEWS:48151 ../NEWS:48946 ../NEWS:48993 ../NEWS:49450 ../NEWS:50739 -#: ../NEWS:52553 +#: ../NEWS:369 ../NEWS:606 ../NEWS:900 ../NEWS:1704 ../NEWS:2073 ../NEWS:3509 +#: ../NEWS:3949 ../NEWS:4604 ../NEWS:7520 ../NEWS:7997 ../NEWS:8482 +#: ../NEWS:8992 ../NEWS:9851 ../NEWS:10432 ../NEWS:12673 ../NEWS:13889 +#: ../NEWS:14266 ../NEWS:14552 ../NEWS:14838 ../NEWS:15235 ../NEWS:15573 +#: ../NEWS:15998 ../NEWS:17958 ../NEWS:18952 ../NEWS:19545 ../NEWS:20030 +#: ../NEWS:20410 ../NEWS:20853 ../NEWS:21337 ../NEWS:21794 ../NEWS:23568 +#: ../NEWS:24388 ../NEWS:24841 ../NEWS:25113 ../NEWS:25390 ../NEWS:26212 +#: ../NEWS:26651 ../NEWS:27681 ../NEWS:28150 ../NEWS:28610 ../NEWS:29068 +#: ../NEWS:29459 ../NEWS:30237 ../NEWS:31849 ../NEWS:32917 ../NEWS:33426 +#: ../NEWS:33795 ../NEWS:34040 ../NEWS:36630 ../NEWS:37175 ../NEWS:37558 +#: ../NEWS:37766 ../NEWS:38013 ../NEWS:38352 ../NEWS:38658 ../NEWS:39193 +#: ../NEWS:41303 ../NEWS:41900 ../NEWS:42231 ../NEWS:42642 ../NEWS:43020 +#: ../NEWS:43591 ../NEWS:43840 ../NEWS:43970 ../NEWS:44260 ../NEWS:44501 +#: ../NEWS:45031 ../NEWS:45263 ../NEWS:45766 ../NEWS:47035 ../NEWS:47540 +#: ../NEWS:48174 ../NEWS:48969 ../NEWS:49016 ../NEWS:49473 ../NEWS:50762 +#: ../NEWS:52576 msgid "Windows" msgstr "Windows" -#: ../NEWS:348 +#: ../NEWS:371 msgid "" ":gh:`135099`: Fix a crash that could occur on Windows when a background " "thread waits on a :c:type:`PyMutex` while the main thread is shutting down " "the interpreter." msgstr "" -#: ../NEWS:355 +#: ../NEWS:378 msgid "" ":gh:`132815`: Fix test__opcode: add ``JUMP_BACKWARD`` to specialization " "stats." msgstr "" -#: ../NEWS:358 +#: ../NEWS:381 msgid "" ":gh:`135489`: Show verbose output for failing tests during PGO profiling " "step with --enable-optimizations." msgstr "" -#: ../NEWS:361 +#: ../NEWS:384 msgid ":gh:`135120`: Add :func:`!test.support.subTests`." msgstr "" -#: ../NEWS:366 +#: ../NEWS:389 msgid "" ":gh:`135462`: Fix quadratic complexity in processing specially crafted input " "in :class:`html.parser.HTMLParser`. End-of-file errors are now handled " @@ -785,63 +813,63 @@ msgid "" "closed, tags are ignored." msgstr "" -#: ../NEWS:371 +#: ../NEWS:394 msgid "" ":gh:`135034`: Fixes multiple issues that allowed ``tarfile`` extraction " "filters (``filter=\"data\"`` and ``filter=\"tar\"``) to be bypassed using " "crafted symlinks and hard links." msgstr "" -#: ../NEWS:375 +#: ../NEWS:398 msgid "" "Addresses :cve:`2024-12718`, :cve:`2025-4138`, :cve:`2025-4330`, and :cve:" "`2025-4517`." msgstr "" -#: ../NEWS:381 +#: ../NEWS:404 msgid "" ":gh:`65697`: :class:`configparser`'s error message when attempting to write " "an invalid key is now more helpful." msgstr "" -#: ../NEWS:384 +#: ../NEWS:407 msgid "" ":gh:`135497`: Fix :func:`os.getlogin` failing for longer usernames on BSD-" "based platforms." msgstr "" -#: ../NEWS:387 +#: ../NEWS:410 msgid "" ":gh:`135429`: Fix the argument mismatch in ``_lsprof`` for ``PY_THROW`` " "event." msgstr "" -#: ../NEWS:390 +#: ../NEWS:413 msgid "" ":gh:`135368`: Fix :class:`unittest.mock.Mock` generation on :func:" "`dataclasses.dataclass` objects. Now all special attributes are set as it " "was before :gh:`124429`." msgstr "" -#: ../NEWS:394 +#: ../NEWS:417 msgid "" ":gh:`133967`: Do not normalize :mod:`locale` name 'C.UTF-8' to 'en_US.UTF-8'." msgstr "" -#: ../NEWS:396 +#: ../NEWS:419 msgid "" ":gh:`135321`: Raise a correct exception for values greater than 0x7fffffff " "for the ``BINSTRING`` opcode in the C implementation of :mod:`pickle`." msgstr "" -#: ../NEWS:399 +#: ../NEWS:422 msgid "" ":gh:`135276`: Backported bugfixes in zipfile.Path from zipp 3.23. Fixed ``." "name``, ``.stem`` and other basename-based properties on Windows when " "working with a zipfile on disk." msgstr "" -#: ../NEWS:403 +#: ../NEWS:426 msgid "" ":gh:`135244`: :mod:`uuid`: when the MAC address cannot be determined, the 48-" "bit node ID is now generated with a cryptographically-secure pseudo-random " @@ -850,48 +878,48 @@ msgid "" "uuid6`." msgstr "" -#: ../NEWS:409 +#: ../NEWS:432 msgid "" ":gh:`134970`: Fix the \"unknown action\" exception in :meth:`argparse." "ArgumentParser.add_argument_group` to correctly replace the action class." msgstr "" -#: ../NEWS:413 +#: ../NEWS:436 msgid "" ":gh:`134718`: :func:`ast.dump` now only omits ``None`` and ``[]`` values if " "they are default values." msgstr "" -#: ../NEWS:416 +#: ../NEWS:439 msgid "" ":gh:`134939`: Add the :mod:`concurrent.interpreters` module. See :pep:`734`." msgstr "" -#: ../NEWS:418 +#: ../NEWS:441 msgid "" ":gh:`134885`: Fix possible crash in the :mod:`compression.zstd` module " "related to setting parameter types. Patch by Jelle Zijlstra." msgstr "" -#: ../NEWS:421 +#: ../NEWS:444 msgid "" ":gh:`134857`: Improve error report for :mod:`doctest`\\ s run with :mod:" "`unittest`. Remove :mod:`!doctest` module frames from tracebacks and " "redundant newline character from a failure message." msgstr "" -#: ../NEWS:425 +#: ../NEWS:448 msgid "" ":gh:`128840`: Fix parsing long IPv6 addresses with embedded IPv4 address." msgstr "" -#: ../NEWS:427 +#: ../NEWS:450 msgid "" ":gh:`134637`: Fix performance regression in calling a :mod:`ctypes` function " "pointer in :term:`free threading`." msgstr "" -#: ../NEWS:430 +#: ../NEWS:453 msgid "" ":gh:`134696`: Built-in HACL* and OpenSSL implementations of hash function " "constructors now correctly accept the same *documented* named arguments. For " @@ -900,38 +928,38 @@ msgid "" "implementation but these calls were not compatible. Patch by Bénédikt Tran." msgstr "" -#: ../NEWS:437 +#: ../NEWS:460 msgid "" ":gh:`134151`: :mod:`email`: Fix :exc:`TypeError` in :func:`email.utils." "decode_params` when sorting :rfc:`2231` continuations that contain an " "unnumbered section." msgstr "" -#: ../NEWS:441 +#: ../NEWS:464 msgid "" ":gh:`134210`: :func:`curses.window.getch` now correctly handles signals. " "Patch by Bénédikt Tran." msgstr "" -#: ../NEWS:444 +#: ../NEWS:467 msgid "" ":gh:`134152`: :mod:`email`: Fix parsing of email message ID with invalid " "domain." msgstr "" -#: ../NEWS:447 +#: ../NEWS:470 msgid "" ":gh:`133489`: :func:`random.getrandbits` can now generate more that 2\\ :sup:" "`31` bits. :func:`random.randbytes` can now generate more that 256 MiB." msgstr "" -#: ../NEWS:451 +#: ../NEWS:474 msgid "" ":gh:`132813`: Improve error messages for incorrect types and values of :" "class:`csv.Dialect` attributes." msgstr "" -#: ../NEWS:454 +#: ../NEWS:477 msgid "" ":gh:`132969`: Prevent the :class:`~concurrent.futures.ProcessPoolExecutor` " "executor thread, which remains running when :meth:`shutdown(wait=False) " @@ -943,43 +971,43 @@ msgid "" "pool." msgstr "" -#: ../NEWS:463 +#: ../NEWS:486 msgid "" ":gh:`127081`: Fix libc thread safety issues with :mod:`os` by replacing " "``getlogin`` with ``getlogin_r`` re-entrant version." msgstr "" -#: ../NEWS:466 +#: ../NEWS:489 msgid "" ":gh:`131884`: Fix formatting issues in :func:`json.dump` when both *indent* " "and *skipkeys* are used." msgstr "" -#: ../NEWS:469 +#: ../NEWS:492 msgid "" ":gh:`130999`: Avoid exiting the new REPL and offer suggestions even if there " "are non-string candidates when errors occur." msgstr "" -#: ../NEWS:475 +#: ../NEWS:498 msgid "" ":gh:`135171`: Document that the :term:`iterator` for the leftmost :keyword:`!" "for` clause in the generator expression is created immediately." msgstr "" -#: ../NEWS:478 +#: ../NEWS:501 msgid "" ":issue:`45210`: Document that error indicator may be set in tp_dealloc, and " "how to avoid clobbering it." msgstr "" -#: ../NEWS:484 +#: ../NEWS:507 msgid "" ":gh:`135496`: Fix typo in the f-string conversion type error " "(\"exclamanation\" -> \"exclamation\")." msgstr "" -#: ../NEWS:487 +#: ../NEWS:510 msgid "" ":gh:`135371`: Fixed :mod:`asyncio` debugging tools to properly display " "internal coroutine call stacks alongside external task dependencies. The " @@ -987,28 +1015,28 @@ msgid "" "complete execution context. Patch by Pablo Galindo." msgstr "" -#: ../NEWS:492 +#: ../NEWS:515 msgid "" ":gh:`127319`: Set the ``allow_reuse_port`` class variable to ``False`` on " "the XMLRPC, logging, and HTTP servers. This matches the behavior in prior " "Python releases, which is to not allow port reuse." msgstr "" -#: ../NEWS:496 +#: ../NEWS:519 msgid "" ":gh:`135171`: Reverts the behavior of async generator expressions when " "created with object w/o __aiter__ method to the pre-3.13 behavior of raising " "a TypeError." msgstr "" -#: ../NEWS:500 +#: ../NEWS:523 msgid "" ":gh:`130077`: Properly raise custom syntax errors when incorrect syntax " "containing names that are prefixes of soft keywords is encountered. Patch " "by Pablo Galindo." msgstr "" -#: ../NEWS:504 +#: ../NEWS:527 msgid "" ":gh:`135171`: Reverts the behavior of generator expressions when created " "with a non-iterable to the pre-3.13 behavior of raising a TypeError. It is " @@ -1018,31 +1046,31 @@ msgid "" "and adding an additional check to ``FOR_ITER``." msgstr "" -#: ../NEWS:511 +#: ../NEWS:534 msgid "" ":gh:`116738`: Make methods in :mod:`heapq` thread-safe on the :term:`free " "threaded ` build." msgstr "" -#: ../NEWS:514 +#: ../NEWS:537 msgid "" ":gh:`134876`: Add support to :pep:`768` remote debugging for Linux kernels " "which don't have CONFIG_CROSS_MEMORY_ATTACH configured." msgstr "" -#: ../NEWS:517 +#: ../NEWS:540 msgid "" ":gh:`134889`: Fix handling of a few opcodes that leave operands on the stack " "when optimizing ``LOAD_FAST``." msgstr "" -#: ../NEWS:520 +#: ../NEWS:543 msgid "" ":gh:`134908`: Fix crash when iterating over lines in a text file on the :" "term:`free threaded ` build." msgstr "" -#: ../NEWS:523 +#: ../NEWS:546 msgid "" ":gh:`132617`: Fix :meth:`dict.update` modification check that could " "incorrectly raise a \"dict mutated during update\" error when a different " @@ -1050,26 +1078,26 @@ msgid "" "object." msgstr "" -#: ../NEWS:528 +#: ../NEWS:551 msgid "" ":gh:`134679`: Fix crash in the :term:`free threading` build's QSBR code that " "could occur when changing an object's ``__dict__`` attribute." msgstr "" -#: ../NEWS:531 +#: ../NEWS:554 msgid "" ":gh:`127682`: No longer call ``__iter__`` twice in list comprehensions. This " "brings the behavior of list comprehensions in line with other forms of " "iteration" msgstr "" -#: ../NEWS:535 +#: ../NEWS:558 msgid "" ":gh:`133912`: Fix the C API function ``PyObject_GenericSetDict`` to handle " "extension classes with inline values." msgstr "" -#: ../NEWS:541 +#: ../NEWS:564 msgid "" ":gh:`134989`: Fix ``Py_RETURN_NONE``, ``Py_RETURN_TRUE`` and " "``Py_RETURN_FALSE`` macros in the limited C API 3.11 and older: don't treat " @@ -1077,14 +1105,14 @@ msgid "" "Stinner." msgstr "" -#: ../NEWS:546 +#: ../NEWS:569 msgid "" ":gh:`134989`: Implement :c:func:`PyObject_DelAttr` and :c:func:" "`PyObject_DelAttrString` as macros in the limited C API 3.12 and older. " "Patch by Victor Stinner." msgstr "" -#: ../NEWS:550 +#: ../NEWS:573 msgid "" ":gh:`133968`: Add :c:func:`PyUnicodeWriter_WriteASCII` function to write an " "ASCII string into a :c:type:`PyUnicodeWriter`. The function is faster than :" @@ -1092,32 +1120,32 @@ msgid "" "input string contains non-ASCII characters. Patch by Victor Stinner." msgstr "" -#: ../NEWS:558 +#: ../NEWS:581 msgid "" ":gh:`119132`: Remove \"experimental\" tag from the CPython free-threading " "build." msgstr "" -#: ../NEWS:561 +#: ../NEWS:584 msgid "" ":gh:`135497`: Fix the detection of ``MAXLOGNAME`` in the ``configure.ac`` " "script." msgstr "" -#: ../NEWS:564 +#: ../NEWS:587 msgid "" ":gh:`134923`: Windows builds with profile-guided optimization enabled now " "use ``/GENPROFILE`` and ``/USEPROFILE`` instead of deprecated ``/LTCG:`` " "options." msgstr "" -#: ../NEWS:568 +#: ../NEWS:591 msgid "" ":gh:`134774`: Fix :c:macro:`Py_DEBUG` macro redefinition warnings on Windows " "debug builds. Patch by Chris Eibl." msgstr "" -#: ../NEWS:571 +#: ../NEWS:594 msgid "" ":gh:`134632`: Fixed ``build-details.json`` generation to use ``INCLUDEPY``, " "in order to reference the ``pythonX.Y`` subdirectory of the include " @@ -1125,27 +1153,27 @@ msgid "" "directory." msgstr "" -#: ../NEWS:578 +#: ../NEWS:601 msgid "Python 3.14.0 beta 2" msgstr "" -#: ../NEWS:580 +#: ../NEWS:603 msgid "*Release date: 2025-05-26*" msgstr "" -#: ../NEWS:585 +#: ../NEWS:608 msgid "" ":gh:`130727`: Fix a race in internal calls into WMI that can result in an " "\"invalid handle\" exception under high load. Patch by Chris Eibl." msgstr "" -#: ../NEWS:588 +#: ../NEWS:611 msgid "" ":gh:`76023`: Make :func:`os.path.realpath` ignore Windows error 1005 when in " "non-strict mode." msgstr "" -#: ../NEWS:591 +#: ../NEWS:614 msgid "" ":gh:`133779`: Reverts the change to generate different :file:`pyconfig.h` " "files based on compiler settings, as it was frequently causing extension " @@ -1156,106 +1184,106 @@ msgid "" "with that flag or not." msgstr "" -#: ../NEWS:599 +#: ../NEWS:622 msgid "" ":gh:`133626`: Ensures packages are not accidentally bundled into the " "traditional installer." msgstr "" -#: ../NEWS:605 +#: ../NEWS:628 msgid "" ":gh:`134215`: :term:`REPL` import autocomplete only suggests private modules " "when explicitly specified." msgstr "" -#: ../NEWS:611 +#: ../NEWS:634 msgid "" ":gh:`133744`: Fix multiprocessing interrupt test. Add an event to " "synchronize the parent process with the child process: wait until the child " "process starts sleeping. Patch by Victor Stinner." msgstr "" -#: ../NEWS:615 +#: ../NEWS:638 msgid "" ":gh:`133682`: Fixed test case ``test.test_annotationlib.TestStringFormat." "test_displays`` which ensures proper handling of complex data structures " "(lists, sets, dictionaries, and tuples) in string annotations." msgstr "" -#: ../NEWS:620 +#: ../NEWS:643 msgid "" ":gh:`133639`: Fix ``TestPyReplAutoindent.test_auto_indent_default()`` " "doesn't run ``input_code``." msgstr "" -#: ../NEWS:626 +#: ../NEWS:649 msgid "" ":gh:`133767`: Fix use-after-free in the \"unicode-escape\" decoder with a " "non-\"strict\" error handler." msgstr "" -#: ../NEWS:629 +#: ../NEWS:652 msgid "" ":gh:`128840`: Short-circuit the processing of long IPv6 addresses early in :" "mod:`ipaddress` to prevent excessive memory consumption and a minor denial-" "of-service." msgstr "" -#: ../NEWS:636 +#: ../NEWS:659 msgid "" ":gh:`132710`: If possible, ensure that :func:`uuid.getnode` returns the same " "result even across different processes. Previously, the result was constant " "only within the same process. Patch by Bénédikt Tran." msgstr "" -#: ../NEWS:640 +#: ../NEWS:663 msgid "" ":gh:`80334`: :func:`multiprocessing.freeze_support` now checks for work on " "any \"spawn\" start method platform rather than only on Windows." msgstr "" -#: ../NEWS:643 +#: ../NEWS:666 msgid "" ":gh:`134582`: Fix tokenize.untokenize() round-trip errors related to t-" "strings braces escaping" msgstr "" -#: ../NEWS:646 +#: ../NEWS:669 msgid "" ":gh:`134546`: Ensure :mod:`pdb` remote debugging script is readable by " "remote Python process." msgstr "" -#: ../NEWS:649 +#: ../NEWS:672 msgid "" ":gh:`134451`: Converted ``asyncio.tools.CycleFoundException`` from dataclass " "to a regular exception type." msgstr "" -#: ../NEWS:652 +#: ../NEWS:675 msgid "" ":gh:`114177`: Fix :mod:`asyncio` to not close subprocess pipes which would " "otherwise error out when the event loop is already closed." msgstr "" -#: ../NEWS:655 +#: ../NEWS:678 msgid "" ":gh:`90871`: Fixed an off by one error concerning the backlog parameter in :" "meth:`~asyncio.loop.create_unix_server`. Contributed by Christian Harries." msgstr "" -#: ../NEWS:659 +#: ../NEWS:682 msgid ":gh:`134323`: Fix the :meth:`threading.RLock.locked` method." msgstr "" -#: ../NEWS:661 +#: ../NEWS:684 msgid "" ":gh:`86802`: Fixed asyncio memory leak in cancelled shield tasks. For " "shielded tasks where the shield was cancelled, log potential exceptions " "through the exception handler. Contributed by Christian Harries." msgstr "" -#: ../NEWS:665 +#: ../NEWS:688 msgid "" ":gh:`134209`: :mod:`curses`: The :meth:`curses.window.instr` and :meth:" "`curses.window.getstr` methods now allocate their internal buffer on the " @@ -1263,65 +1291,65 @@ msgid "" "from 1023 to 2047." msgstr "" -#: ../NEWS:670 +#: ../NEWS:693 msgid "" ":gh:`134235`: Updated tab completion on REPL to include builtin modules. " "Contributed by Tom Wang, Hunter Young" msgstr "" -#: ../NEWS:673 +#: ../NEWS:696 msgid "" ":gh:`134152`: Fixed :exc:`UnboundLocalError` that could occur during :mod:" "`email` header parsing if an expected trailing delimiter is missing in some " "contexts." msgstr "" -#: ../NEWS:677 +#: ../NEWS:700 msgid "" ":gh:`134168`: :mod:`http.server`: Fix IPv6 address binding and :option:`--" "directory ` handling when using HTTPS." msgstr "" -#: ../NEWS:680 +#: ../NEWS:703 msgid "" ":gh:`62184`: Remove import of C implementation of :class:`io.FileIO` from " "Python implementation which has its own implementation" msgstr "" -#: ../NEWS:683 +#: ../NEWS:706 msgid "" ":gh:`133982`: Emit :exc:`RuntimeWarning` in the Python implementation of :" "mod:`io` when the :term:`file-like object ` is not closed " "explicitly in the presence of multiple I/O layers." msgstr "" -#: ../NEWS:687 +#: ../NEWS:710 msgid "" ":gh:`133890`: The :mod:`tarfile` module now handles :exc:" "`UnicodeEncodeError` in the same way as :exc:`OSError` when cannot extract a " "member." msgstr "" -#: ../NEWS:690 +#: ../NEWS:713 msgid "" ":gh:`134097`: Fix interaction of the new :term:`REPL` and :option:`-X " "showrefcount <-X>` command line option." msgstr "" -#: ../NEWS:693 +#: ../NEWS:716 msgid "" ":gh:`133889`: The generated directory listing page in :class:`http.server." "SimpleHTTPRequestHandler` now only shows the decoded path component of the " "requested URL, and not the query and fragment." msgstr "" -#: ../NEWS:697 +#: ../NEWS:720 msgid "" ":gh:`134098`: Fix handling paths that end with a percent-encoded slash " "(``%2f`` or ``%2F``) in :class:`http.server.SimpleHTTPRequestHandler`." msgstr "" -#: ../NEWS:700 +#: ../NEWS:723 msgid "" ":gh:`132124`: On POSIX-compliant systems, :func:`!multiprocessing.util." "get_temp_dir` now ignores :envvar:`TMPDIR` (and similar environment " @@ -1331,27 +1359,27 @@ msgid "" "Tran." msgstr "" -#: ../NEWS:707 +#: ../NEWS:730 msgid "" ":gh:`134062`: :mod:`ipaddress`: fix collisions in :meth:`~object.__hash__` " "for :class:`~ipaddress.IPv4Network` and :class:`~ipaddress.IPv6Network` " "objects." msgstr "" -#: ../NEWS:711 +#: ../NEWS:734 msgid "" ":gh:`133970`: Make :class:`!string.templatelib.Template` and :class:`!string." "templatelib.Interpolation` generic." msgstr "" -#: ../NEWS:714 +#: ../NEWS:737 msgid "" ":gh:`71253`: Raise :exc:`ValueError` in :func:`open` if *opener* returns a " "negative file-descriptor in the Python implementation of :mod:`io` to match " "the C implementation." msgstr "" -#: ../NEWS:718 +#: ../NEWS:741 msgid "" ":gh:`133960`: Simplify and improve :func:`typing.evaluate_forward_ref`. It " "now no longer raises errors on certain invalid types. In several situations, " @@ -1359,12 +1387,12 @@ msgid "" "unsupported." msgstr "" -#: ../NEWS:723 +#: ../NEWS:746 msgid "" ":gh:`133925`: Make the private class ``typing._UnionGenericAlias`` hashable." msgstr "" -#: ../NEWS:725 +#: ../NEWS:748 msgid "" ":gh:`133653`: Fix :class:`argparse.ArgumentParser` with the " "*formatter_class* argument. Fix TypeError when *formatter_class* is a custom " @@ -1374,46 +1402,46 @@ msgid "" "class:`!HelpFormatter`." msgstr "" -#: ../NEWS:732 +#: ../NEWS:755 msgid "" ":gh:`132641`: Fixed a race in :func:`functools.lru_cache` under free-" "threading." msgstr "" -#: ../NEWS:735 +#: ../NEWS:758 msgid "" ":gh:`133783`: Fix bug with applying :func:`copy.replace` to :mod:`ast` " "objects. Attributes that default to ``None`` were incorrectly treated as " "required for manually created AST nodes." msgstr "" -#: ../NEWS:739 +#: ../NEWS:762 msgid "" ":gh:`133684`: Fix bug where :func:`annotationlib.get_annotations` would " "return the wrong result for certain classes that are part of a class " "hierarchy where ``from __future__ import annotations`` is used." msgstr "" -#: ../NEWS:743 +#: ../NEWS:766 msgid "" ":gh:`77057`: Fix handling of invalid markup declarations in :class:`html." "parser.HTMLParser`." msgstr "" -#: ../NEWS:746 +#: ../NEWS:769 msgid "" ":gh:`130328`: Speedup pasting in ``PyREPL`` on Windows in a legacy console. " "Patch by Chris Eibl." msgstr "" -#: ../NEWS:749 +#: ../NEWS:772 msgid "" ":gh:`133701`: Fix bug where :class:`typing.TypedDict` classes defined under " "``from __future__ import annotations`` and inheriting from another " "``TypedDict`` had an incorrect ``__annotations__`` attribute." msgstr "" -#: ../NEWS:753 +#: ../NEWS:776 msgid "" ":gh:`133581`: Improve unparsing of t-strings in :func:`ast.unparse` and " "``from __future__ import annotations``. Empty t-strings now round-trip " @@ -1421,25 +1449,25 @@ msgid "" "Zijlstra." msgstr "" -#: ../NEWS:758 +#: ../NEWS:781 msgid "" ":gh:`133551`: Support t-strings (:pep:`750`) in :mod:`annotationlib`. Patch " "by Jelle Zijlstra." msgstr "" -#: ../NEWS:761 +#: ../NEWS:784 msgid "" ":gh:`133439`: Fix dot commands with trailing spaces are mistaken for multi-" "line SQL statements in the sqlite3 command-line interface." msgstr "" -#: ../NEWS:764 +#: ../NEWS:787 msgid "" ":gh:`132493`: Avoid accessing ``__annotations__`` unnecessarily in :func:" "`inspect.signature`." msgstr "" -#: ../NEWS:767 +#: ../NEWS:790 msgid "" ":gh:`132876`: ``ldexp()`` on Windows doesn't round subnormal results before " "Windows 11, but should. Python's :func:`math.ldexp` wrapper now does round " @@ -1447,227 +1475,227 @@ msgid "" "on Windows versions before 11." msgstr "" -#: ../NEWS:772 +#: ../NEWS:795 msgid "" ":gh:`133009`: :mod:`xml.etree.ElementTree`: Fix a crash in :meth:`Element." "__deepcopy__ ` when the element is concurrently " "mutated. Patch by Bénédikt Tran." msgstr "" -#: ../NEWS:776 +#: ../NEWS:799 msgid "" ":gh:`91555`: Ignore log messages generated during handling of log messages, " "to avoid deadlock or infinite recursion. [NOTE: This change has since been " "reverted.]" msgstr "" -#: ../NEWS:780 +#: ../NEWS:803 msgid "" ":gh:`125028`: :data:`functools.Placeholder` cannot be passed to :func:" "`functools.partial` as a keyword argument." msgstr "" -#: ../NEWS:783 +#: ../NEWS:806 msgid "" ":gh:`62824`: Fix aliases for ``iso8859_8`` encoding. Patch by Dave Goncalves." msgstr "" -#: ../NEWS:785 +#: ../NEWS:808 msgid "" ":gh:`86155`: :meth:`html.parser.HTMLParser.close` no longer loses data when " "the ``