File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,25 +33,30 @@ msgid ""
3333"and the :class:`~contextvars.Context` class should be used to manage the "
3434"current context in asynchronous frameworks."
3535msgstr ""
36+ "このモジュールは、コンテキストローカルな状態を管理し、保持し、アクセスするための API を提供します。\n"
37+ ":class:`~contextvars.ContextVar` クラスは *コンテキスト変数* を宣言し、取り扱うために使われます。\n"
38+ "非同期フレームワークで現時点のコンテキストを管理するのには、 :func:`~contextvars.copy_context` 関数と :class:`~contextvars.Context` クラスを使うべきです。"
3639
3740#: ../../library/contextvars.rst:17
3841msgid ""
3942"Context managers that have state should use Context Variables instead of "
4043":func:`threading.local()` to prevent their state from bleeding to other code"
4144" unexpectedly, when used in concurrent code."
4245msgstr ""
46+ "状態を持っているコンテキストマネージャは :func:`threading.local()` "
47+ "ではなくコンテキスト変数を使い、並行処理のコードから状態が意図せず他のコードへ漏れ出すのを避けるべきです。"
4348
4449#: ../../library/contextvars.rst:21
4550msgid "See also :pep:`567` for additional details."
46- msgstr ""
51+ msgstr "より詳しくは :pep:`567` を参照をしてください。 "
4752
4853#: ../../library/contextvars.rst:27
4954msgid "Context Variables"
5055msgstr "コンテキスト変数"
5156
5257#: ../../library/contextvars.rst:31
5358msgid "This class is used to declare a new Context Variable, e.g.::"
54- msgstr ""
59+ msgstr "このクラスは新しいコンテキスト変数を宣言するのに使われます。例えば、次の通りです: "
5560
5661#: ../../library/contextvars.rst:35
5762msgid ""
You can’t perform that action at this time.
0 commit comments