@@ -83,57 +83,62 @@ msgid ""
8383"Return true if *o* is of type :c:data:`PyContext_Type`. *o* must not be "
8484"``NULL``. This function always succeeds."
8585msgstr ""
86+ "如果 *o* 的类型为 :c:data:`PyContext_Type` 则返回真值。 *o* 必须不为 ``NULL``。 此函数总是会成功执行。"
8687
8788#: ../../c-api/contextvars.rst:67
8889msgid ""
8990"Return true if *o* is of type :c:data:`PyContextVar_Type`. *o* must not be "
9091"``NULL``. This function always succeeds."
9192msgstr ""
93+ "如果 *o* 的类型为 :c:data:`PyContextVar_Type` 则返回真值。 *o* 必须不为 ``NULL``。 "
94+ "此函数总是会成功执行。"
9295
9396#: ../../c-api/contextvars.rst:72
9497msgid ""
9598"Return true if *o* is of type :c:data:`PyContextToken_Type`. *o* must not be"
9699" ``NULL``. This function always succeeds."
97100msgstr ""
101+ "如果 *o* 的类型为 :c:data:`PyContextToken_Type` 则返回真值。 *o* 必须不为 ``NULL``。 "
102+ "此函数总是会成功执行。"
98103
99104#: ../../c-api/contextvars.rst:76
100105msgid "Context object management functions:"
101- msgstr ""
106+ msgstr "上下文对象管理函数: "
102107
103108#: ../../c-api/contextvars.rst:80
104109msgid ""
105110"Create a new empty context object. Returns ``NULL`` if an error has "
106111"occurred."
107- msgstr ""
112+ msgstr "创建一个新的空上下文对象。 如果发生错误则返回 ``NULL``。 "
108113
109114#: ../../c-api/contextvars.rst:85
110115msgid ""
111116"Create a shallow copy of the passed *ctx* context object. Returns ``NULL`` "
112117"if an error has occurred."
113- msgstr ""
118+ msgstr "创建所传入的 *ctx* 上下文对象的浅拷贝。 如果发生错误则返回 ``NULL``。 "
114119
115120#: ../../c-api/contextvars.rst:90
116121msgid ""
117122"Create a shallow copy of the current thread context. Returns ``NULL`` if an "
118123"error has occurred."
119- msgstr ""
124+ msgstr "创建当前线程上下文的浅拷贝。 如果发生错误则返回 ``NULL``。 "
120125
121126#: ../../c-api/contextvars.rst:95
122127msgid ""
123128"Set *ctx* as the current context for the current thread. Returns ``0`` on "
124129"success, and ``-1`` on error."
125- msgstr ""
130+ msgstr "将 *ctx* 设为当前线程的当前上下文。 成功时返回 ``0``,出错时返回 ``-1``。 "
126131
127132#: ../../c-api/contextvars.rst:100
128133msgid ""
129134"Deactivate the *ctx* context and restore the previous context as the current"
130135" context for the current thread. Returns ``0`` on success, and ``-1`` on "
131136"error."
132- msgstr ""
137+ msgstr "取消激活 *ctx* 上下文并将之前的上下文恢复为当前线程的当前上下文。 成功时返回 ``0``,出错时返回 ``-1``。 "
133138
134139#: ../../c-api/contextvars.rst:105
135140msgid "Context variable functions:"
136- msgstr ""
141+ msgstr "上下文变量函数: "
137142
138143#: ../../c-api/contextvars.rst:109
139144msgid ""
0 commit comments