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