@@ -77,45 +77,47 @@ msgid ""
7777"context variables which prevents context variables from being properly "
7878"garbage collected."
7979msgstr ""
80+ "**重要:** 上下文变量应该在顶级模块中创建,且永远不要在闭包中创建。 :class:`Context` "
81+ "对象拥有对上下文变量的强引用,这可以让上下文变量被垃圾收集器正确回收。"
8082
8183#: ../../library/contextvars.rst:49
8284msgid "The name of the variable. This is a read-only property."
83- msgstr ""
85+ msgstr "上下文变量的名称,只读属性。 "
8486
8587#: ../../library/contextvars.rst:55
8688msgid "Return a value for the context variable for the current context."
87- msgstr ""
89+ msgstr "返回当前上下文中此上下文变量的值。 "
8890
8991#: ../../library/contextvars.rst:57
9092msgid ""
9193"If there is no value for the variable in the current context, the method "
9294"will:"
93- msgstr ""
95+ msgstr "如果当前上下文中此变量没有值,则此方法会: "
9496
9597#: ../../library/contextvars.rst:60
9698msgid ""
9799"return the value of the *default* argument of the method, if provided; or"
98- msgstr ""
100+ msgstr "如果提供了得 话,返回传入的 *default* 值;或者 "
99101
100102#: ../../library/contextvars.rst:63
101103msgid ""
102104"return the default value for the context variable, if it was created with "
103105"one; or"
104- msgstr ""
106+ msgstr "返回上下文变量本身的默认值, 如果创建此上下文变量时提供了默认值;或者 "
105107
106108#: ../../library/contextvars.rst:66
107109msgid "raise a :exc:`LookupError`."
108- msgstr ""
110+ msgstr "抛出 :exc:`LookupError` 异常。 "
109111
110112#: ../../library/contextvars.rst:70
111113msgid ""
112114"Call to set a new value for the context variable in the current context."
113- msgstr ""
115+ msgstr "调用此方法设置上下文变量在当前上下文中的值。 "
114116
115117#: ../../library/contextvars.rst:73
116118msgid ""
117119"The required *value* argument is the new value for the context variable."
118- msgstr ""
120+ msgstr "必选参数 *value* 是上下文变量的新值。 "
119121
120122#: ../../library/contextvars.rst:76
121123msgid ""
0 commit comments