Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cca9027

Browse files
[po] auto sync
1 parent 69c7ea5 commit cca9027

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

library/contextvars.po

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,45 +77,47 @@ msgid ""
7777
"context variables which prevents context variables from being properly "
7878
"garbage collected."
7979
msgstr ""
80+
"**重要:** 上下文变量应该在顶级模块中创建,且永远不要在闭包中创建。 :class:`Context` "
81+
"对象拥有对上下文变量的强引用,这可以让上下文变量被垃圾收集器正确回收。"
8082

8183
#: ../../library/contextvars.rst:49
8284
msgid "The name of the variable. This is a read-only property."
83-
msgstr ""
85+
msgstr "上下文变量的名称,只读属性。"
8486

8587
#: ../../library/contextvars.rst:55
8688
msgid "Return a value for the context variable for the current context."
87-
msgstr ""
89+
msgstr "返回当前上下文中此上下文变量的值。"
8890

8991
#: ../../library/contextvars.rst:57
9092
msgid ""
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
9698
msgid ""
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
101103
msgid ""
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
107109
msgid "raise a :exc:`LookupError`."
108-
msgstr ""
110+
msgstr "抛出 :exc:`LookupError` 异常。"
109111

110112
#: ../../library/contextvars.rst:70
111113
msgid ""
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
116118
msgid ""
117119
"The required *value* argument is the new value for the context variable."
118-
msgstr ""
120+
msgstr "必选参数 *value* 是上下文变量的新值。"
119121

120122
#: ../../library/contextvars.rst:76
121123
msgid ""

0 commit comments

Comments
 (0)