55#
66# Translators:
77# ww song <[email protected] >, 20188+ # zeroswan <[email protected] >, 202089#
910#, fuzzy
1011msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314"Report-Msgid-Bugs-To : \n "
1415"POT-Creation-Date : 2020-05-31 09:25+0000\n "
1516"PO-Revision-Date : 2018-06-29 21:06+0000\n "
16- "Last-Translator : ww song <sww4718168@gmail .com>, 2018 \n "
17+ "Last-Translator : zeroswan <weditor@163 .com>, 2020 \n "
1718"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1819"MIME-Version : 1.0\n "
1920"Content-Type : text/plain; charset=UTF-8\n "
@@ -23,7 +24,7 @@ msgstr ""
2324
2425#: ../../library/contextvars.rst:2
2526msgid ":mod:`contextvars` --- Context Variables"
26- msgstr ""
27+ msgstr ":mod:`contextvars` 上下文变量 "
2728
2829#: ../../library/contextvars.rst:11
2930msgid ""
@@ -33,37 +34,41 @@ msgid ""
3334"and the :class:`~contextvars.Context` class should be used to manage the "
3435"current context in asynchronous frameworks."
3536msgstr ""
37+ "本模块提供了相关API用于管理、存储和访问上下文相关的状态。 :class:`~contextvars.ContextVar` 类用于声明 "
38+ "*上下文变量* 并与其一起使用。函数 :func:`~contextvars.copy_context` 和类 "
39+ ":class:`~contextvars.Context` 用于管理当前上下文和异步框架中。"
3640
3741#: ../../library/contextvars.rst:17
3842msgid ""
3943"Context managers that have state should use Context Variables instead of "
4044":func:`threading.local()` to prevent their state from bleeding to other code"
4145" unexpectedly, when used in concurrent code."
4246msgstr ""
47+ "在多并发环境中,有状态上下文管理器应该使用上下文变量,而不是 :func:`threading.local()` 来防止他们的状态意外泄露到其他代码。"
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"
50- msgstr ""
55+ msgstr "上下文变量 "
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 ""
5863"The required *name* parameter is used for introspection and debug purposes."
59- msgstr ""
64+ msgstr "*name* 参数用于内省和调试,必需。 "
6065
6166#: ../../library/contextvars.rst:38
6267msgid ""
6368"The optional keyword-only *default* parameter is returned by "
6469":meth:`ContextVar.get` when no value for the variable is found in the "
6570"current context."
66- msgstr ""
71+ msgstr "调用 :meth:`ContextVar.get` 时,如果上下文中没有找到此变量的值,则返回可选的仅命名参数 *default* 。 "
6772
6873#: ../../library/contextvars.rst:42
6974msgid ""
0 commit comments