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

Skip to content

Commit 5db0bd6

Browse files
[po] auto sync
1 parent bd00517 commit 5db0bd6

2 files changed

Lines changed: 39 additions & 9 deletions

File tree

library/contextlib.po

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ msgid ""
217217
"execution with the first statement following the end of the :keyword:`!with`"
218218
" statement."
219219
msgstr ""
220+
"返回一个当指定的异常在 :keyword:`!with` 语句体中发生时会屏蔽它们然后从 :keyword:`!with` "
221+
"语句结束后的第一条语言开始恢复执行的上下文管理器。"
220222

221223
#: ../../library/contextlib.rst:198
222224
msgid ""
@@ -259,6 +261,9 @@ msgid ""
259261
"``__enter__`` method and so is available as the target of the "
260262
":keyword:`with` statement::"
261263
msgstr ""
264+
"例如, :func:`help` 的输出通常会被发送到 *sys.stdout*。 你可以通过将输出重定向到一个 "
265+
":class:`io.StringIO` 对象来将该输出捕获到字符串。 替换的流是由 ``__enter__`` 返回的因此可以被用作 "
266+
":keyword:`with` 语句的目标::"
262267

263268
#: ../../library/contextlib.rst:248
264269
msgid ""
@@ -402,12 +407,14 @@ msgid ""
402407
"callback stack. The return value is the result of the context manager's own "
403408
":meth:`__enter__` method."
404409
msgstr ""
410+
"进入一个新的上下文管理器并将其 :meth:`__exit__` 方法添加到回调栈中。 返回值是该上下文管理器自己的 :meth:`__enter__`"
411+
" 方法的输出结果。"
405412

406413
#: ../../library/contextlib.rst:400
407414
msgid ""
408415
"These context managers may suppress exceptions just as they normally would "
409416
"if used directly as part of a :keyword:`with` statement."
410-
msgstr ""
417+
msgstr "这些上下文管理器可能会屏蔽异常就如当它们作为 :keyword:`with` 语句的一部分直接使用时通常表现的行为一样。"
411418

412419
#: ../../library/contextlib.rst:405
413420
msgid ""
@@ -420,19 +427,23 @@ msgid ""
420427
"an :meth:`__enter__` implementation with a context manager's own "
421428
":meth:`__exit__` method."
422429
msgstr ""
430+
"由于 ``__enter__`` *没有* 被发起调用,此方法可以被用来通过一个上下文管理器自己的 :meth:`__exit__` 覆盖 "
431+
":meth:`__enter__` 的部分实现。"
423432

424433
#: ../../library/contextlib.rst:411
425434
msgid ""
426435
"If passed an object that is not a context manager, this method assumes it is"
427436
" a callback with the same signature as a context manager's :meth:`__exit__` "
428437
"method and adds it directly to the callback stack."
429438
msgstr ""
439+
"如果传递了一个不是上下文管理器的对象,此方法将假定它是一个回调 具有与上下文管理器的 :meth:`__exit__` "
440+
"方法相同的签名的回调并会直接将其添加到回调栈中。"
430441

431442
#: ../../library/contextlib.rst:415
432443
msgid ""
433444
"By returning true values, these callbacks can suppress exceptions the same "
434445
"way context manager :meth:`__exit__` methods can."
435-
msgstr ""
446+
msgstr "通过返回真值,这些回调可以通过与上下文管理器 :meth:`__exit__` 方法相同的方式屏蔽异常。"
436447

437448
#: ../../library/contextlib.rst:418
438449
msgid ""

whatsnew/3.4.po

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ msgid ""
4444
"Python 3.4 was released on March 16, 2014. For full details, see the "
4545
"`changelog <https://docs.python.org/3.4/whatsnew/changelog.html>`_."
4646
msgstr ""
47+
"这篇文章介绍了 Python 3.4 相比 3.3 增加的新特性。 Python 3.4 发布于 2014 年 3 月 16 日。 "
48+
"对于完整的细节,请参见 `更新日志 <https://docs.python.org/3.4/whatsnew/changelog.html>`_。"
4749

4850
#: ../../whatsnew/3.4.rst:70
4951
msgid ":pep:`429` -- Python 3.4 Release Schedule"
@@ -73,31 +75,33 @@ msgstr ":ref:`pip 能够随时可用 <whatsnew-pep-453>` (:pep:`453`)."
7375
msgid ""
7476
":ref:`Newly created file descriptors are non-inheritable <whatsnew-pep-446>`"
7577
" (:pep:`446`)."
76-
msgstr ""
78+
msgstr ":ref:`新创建的文件描述符是不可继承的 <whatsnew-pep-446>` (:pep:`446`)。"
7779

7880
#: ../../whatsnew/3.4.rst:89
7981
msgid ""
8082
"command line option for :ref:`isolated mode <whatsnew-isolated-mode>` "
8183
"(:issue:`16499`)."
82-
msgstr ""
84+
msgstr "对应 :ref:`隔离模式 <whatsnew-isolated-mode>` 的命令行选项 (:issue:`16499`)。"
8385

8486
#: ../../whatsnew/3.4.rst:91
8587
msgid ""
8688
":ref:`improvements in the handling of codecs <codec-handling-improvements>` "
8789
"that are not text encodings (multiple issues)."
88-
msgstr ""
90+
msgstr "针对非文本编码格式的 :ref:`编解码器处理方式的改进 <codec-handling-improvements>` (多个相关问题)。"
8991

9092
#: ../../whatsnew/3.4.rst:93
9193
msgid ""
9294
":ref:`A ModuleSpec Type <whatsnew-pep-451>` for the Import System "
9395
"(:pep:`451`). (Affects importer authors.)"
9496
msgstr ""
97+
"针对导入系统的 :ref:`ModuleSpec 类型 <whatsnew-pep-451>` (:pep:`451`)。 (将影响导入器的作者。)"
9598

9699
#: ../../whatsnew/3.4.rst:95
97100
msgid ""
98101
"The :mod:`marshal` format has been made :ref:`more compact and efficient "
99102
"<whatsnew-marshal-3>` (:issue:`16475`)."
100103
msgstr ""
104+
":mod:`marshal` 格式已被改进为 :ref:`更为紧凑与高效 <whatsnew-marshal-3>` (:issue:`16475`)。"
101105

102106
#: ../../whatsnew/3.4.rst:98
103107
msgid "New library modules:"
@@ -108,64 +112,74 @@ msgid ""
108112
":mod:`asyncio`: :ref:`New provisional API for asynchronous IO <whatsnew-"
109113
"asyncio>` (:pep:`3156`)."
110114
msgstr ""
115+
":mod:`asyncio`: :ref:`针对异步 IO 的新版暂定 API <whatsnew-asyncio>` (:pep:`3156`)。"
111116

112117
#: ../../whatsnew/3.4.rst:102
113118
msgid ""
114119
":mod:`ensurepip`: :ref:`Bootstrapping the pip installer <whatsnew-"
115120
"ensurepip>` (:pep:`453`)."
116121
msgstr ""
122+
":mod:`ensurepip`: :ref:`引导设置 pip 安装器 <whatsnew-ensurepip>` (:pep:`453`)。"
117123

118124
#: ../../whatsnew/3.4.rst:104
119125
msgid ""
120126
":mod:`enum`: :ref:`Support for enumeration types <whatsnew-enum>` "
121127
"(:pep:`435`)."
122-
msgstr ""
128+
msgstr ":mod:`enum`: :ref:`对枚举类型的支持 <whatsnew-enum>` (:pep:`435`)。"
123129

124130
#: ../../whatsnew/3.4.rst:106
125131
msgid ""
126132
":mod:`pathlib`: :ref:`Object-oriented filesystem paths <whatsnew-pathlib>` "
127133
"(:pep:`428`)."
128-
msgstr ""
134+
msgstr ":mod:`pathlib`: :ref:`面向对象的文件系统路径 <whatsnew-pathlib>` (:pep:`428`)。"
129135

130136
#: ../../whatsnew/3.4.rst:108
131137
msgid ""
132138
":mod:`selectors`: :ref:`High-level and efficient I/O multiplexing <whatsnew-"
133139
"selectors>`, built upon the :mod:`select` module primitives (part of "
134140
":pep:`3156`)."
135141
msgstr ""
142+
":mod:`selectors`: :ref:`高层级且高效率的 I/O 复用 <whatsnew-selectors>`,在 "
143+
":mod:`select` 模块的基础之上建立(为 :pep:`3156` 的组成部分)。"
136144

137145
#: ../../whatsnew/3.4.rst:111
138146
msgid ""
139147
":mod:`statistics`: A basic :ref:`numerically stable statistics library "
140148
"<whatsnew-statistics>` (:pep:`450`)."
141149
msgstr ""
150+
":mod:`statistics`: 基础 :ref:`数字领域稳定统计库 <whatsnew-statistics>` (:pep:`450`)。"
142151

143152
#: ../../whatsnew/3.4.rst:113
144153
msgid ""
145154
":mod:`tracemalloc`: :ref:`Trace Python memory allocations <whatsnew-"
146155
"tracemalloc>` (:pep:`454`)."
147156
msgstr ""
157+
":mod:`tracemalloc`: :ref:`追踪 Python 内存分配 <whatsnew-tracemalloc>` "
158+
"(:pep:`454`)。"
148159

149160
#: ../../whatsnew/3.4.rst:116
150161
msgid "Significantly improved library modules:"
151-
msgstr ""
162+
msgstr "显著改进的库模块:"
152163

153164
#: ../../whatsnew/3.4.rst:118
154165
msgid ""
155166
":ref:`Single-dispatch generic functions <whatsnew-singledispatch>` in "
156167
":mod:`functools` (:pep:`443`)."
157168
msgstr ""
169+
":mod:`functools` 中的 :ref:`单一调度泛型函数 <whatsnew-singledispatch>` (:pep:`443`)。"
158170

159171
#: ../../whatsnew/3.4.rst:120
160172
msgid ""
161173
"New :mod:`pickle` :ref:`protocol 4 <whatsnew-protocol-4>` (:pep:`3154`)."
162-
msgstr ""
174+
msgstr "新的 :mod:`pickle` :ref:`协议 4 <whatsnew-protocol-4>` (:pep:`3154`)。"
163175

164176
#: ../../whatsnew/3.4.rst:121
165177
msgid ""
166178
":mod:`multiprocessing` now has :ref:`an option to avoid using os.fork on "
167179
"Unix <whatsnew-multiprocessing-no-fork>` (:issue:`8713`)."
168180
msgstr ""
181+
":mod:`multiprocessing` 现在包含 :ref:`一个避免在 Unix 上使用 os.fork 的选项 <whatsnew-"
182+
"multiprocessing-no-fork>` (:issue:`8713`)。"
169183

170184
#: ../../whatsnew/3.4.rst:123
171185
msgid ""
@@ -174,13 +188,18 @@ msgid ""
174188
"(:class:`~email.contentmanager.EmailMessage`) that :ref:`simplify MIME "
175189
"handling <whatsnew_email_contentmanager>` (:issue:`18891`)."
176190
msgstr ""
191+
":mod:`email` 增加新的子模块 :mod:`~email.contentmanager` 和新的子类型 "
192+
":mod:`~email.message.Message` (:class:`~email.contentmanager.EmailMessage`) "
193+
"用以 :ref:`简化 MIME 处理 <whatsnew_email_contentmanager>` (:issue:`18891`)。"
177194

178195
#: ../../whatsnew/3.4.rst:127
179196
msgid ""
180197
"The :mod:`inspect` and :mod:`pydoc` modules are now capable of correct "
181198
"introspection of a much wider variety of callable objects, which improves "
182199
"the output of the Python :func:`help` system."
183200
msgstr ""
201+
":mod:`inspect` 和 :mod:`pydoc` 模块现在能够自省更多种类的可调用对象,这改进了 Python :func:`help` "
202+
"系统的输出。"
184203

185204
#: ../../whatsnew/3.4.rst:130
186205
msgid "The :mod:`ipaddress` module API has been declared stable"

0 commit comments

Comments
 (0)