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

Skip to content

Commit 1fae604

Browse files
[po] auto sync
1 parent a06b416 commit 1fae604

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

library/email.policy.po

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,19 +171,21 @@ msgid ""
171171
"from the previous example and writes the message to a file using the native "
172172
"line separators for the platform on which it is running::"
173173
msgstr ""
174+
"某些 email 包的方法接受一个 *policy* 关键字参数,允许为该方法重载策略。 例如,以下代码使用了来自之前示例的 *msg* 对象的 "
175+
":meth:`~email.message.Message.as_bytes` 方法并使用其运行所在平台的本机行分隔符将消息写入一个文件::"
174176

175177
#: ../../library/email.policy.rst:129
176178
msgid ""
177179
"Policy objects can also be combined using the addition operator, producing a"
178180
" policy object whose settings are a combination of the non-default values of"
179181
" the summed objects::"
180-
msgstr ""
182+
msgstr "Policy 对象也可使用加法运算符进行组合来产生一个新策略对象,其设置是被加总对象的非默认值的组合::"
181183

182184
#: ../../library/email.policy.rst:137
183185
msgid ""
184186
"This operation is not commutative; that is, the order in which the objects "
185187
"are added matters. To illustrate::"
186-
msgstr ""
188+
msgstr "此运算不满足交换律;也就是说对象的添加顺序很重要。 见以下演示::"
187189

188190
#: ../../library/email.policy.rst:152
189191
msgid ""
@@ -192,6 +194,8 @@ msgid ""
192194
"implementation of the immutability property, the :meth:`clone` method, and "
193195
"the constructor semantics."
194196
msgstr ""
197+
"这是所有策略类的 :term:`abstract base class`。 "
198+
"它提供了一些简单方法的默认实现,以及不可变特征属性,:meth:`clone` 方法以及构造器语义的实现。"
195199

196200
#: ../../library/email.policy.rst:157
197201
msgid ""
@@ -201,6 +205,8 @@ msgid ""
201205
"value specified in the constructor will override the default value for the "
202206
"corresponding attribute."
203207
msgstr ""
208+
"可以向策略类的构造器传入各种关键字参数。 可以指定的参数是该类的任何非方法特征属性,以及实体类的任何额外非方法特征属性。 "
209+
"在构造器中指定的值将覆盖相应属性的默认值。"
204210

205211
#: ../../library/email.policy.rst:163
206212
msgid ""

whatsnew/changelog.po

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ msgid ""
7171
"when computing the repr of :class:`ctypes.c_double` and "
7272
":class:`ctypes.c_longdouble` values."
7373
msgstr ""
74+
"`bpo-42938 <https://bugs.python.org/issue42938>`__: 在计算 "
75+
":class:`ctypes.c_double` 和 :class:`ctypes.c_longdouble` 值的表示形式时避免静态缓冲区。"
7476

7577
#: ../../../build/NEWS:16 ../../../build/NEWS:257 ../../../build/NEWS:350
7678
#: ../../../build/NEWS:722 ../../../build/NEWS:864 ../../../build/NEWS:956
@@ -118,20 +120,26 @@ msgid ""
118120
"`bpo-40631 <https://bugs.python.org/issue40631>`__: Fix regression where a "
119121
"single parenthesized starred expression was a valid assignment target."
120122
msgstr ""
123+
"`bpo-40631 <https://bugs.python.org/issue40631>`__: "
124+
"修复了单个带圆括号的星号表达式是有效的赋值目标时的回归。"
121125

122126
#: ../../../build/NEWS:25
123127
msgid ""
124128
"`bpo-32381 <https://bugs.python.org/issue32381>`__: Fix encoding name when "
125129
"running a ``.pyc`` file on Windows: :c:func:`PyRun_SimpleFileExFlags()` now "
126130
"uses the correct encoding to decode the filename."
127131
msgstr ""
132+
"`bpo-32381 <https://bugs.python.org/issue32381>`__: 修复了在 Windows 上运行 "
133+
"``.pyc`` 文件时的编码格式名称,现在 :c:func:`PyRun_SimpleFileExFlags()` 会使用正确的编码格式来编码文件名。"
128134

129135
#: ../../../build/NEWS:29
130136
msgid ""
131137
"`bpo-42536 <https://bugs.python.org/issue42536>`__: Several built-in and "
132138
"standard library types now ensure that their internal result tuples are "
133139
"always tracked by the :term:`garbage collector <garbage collection>`:"
134140
msgstr ""
141+
"`bpo-42536 <https://bugs.python.org/issue42536>`__: "
142+
"g一些内置和标准库类型现在会确保其内部结果元组总是会被 :term:`垃圾回收器 <garbage collection>` 所追踪:"
135143

136144
#: ../../../build/NEWS:33
137145
msgid ":meth:`collections.OrderedDict.items() <collections.OrderedDict>`"
@@ -177,7 +185,7 @@ msgstr ":func:`zip`"
177185
msgid ""
178186
"Previously, they could have become untracked by a prior garbage collection. "
179187
"Patch by Brandt Bucher."
180-
msgstr ""
188+
msgstr "之前,它们可能会被前一次垃圾回收取消追踪。 由 Brandt Bucher 提供补丁。"
181189

182190
#: ../../../build/NEWS:56
183191
msgid ""

0 commit comments

Comments
 (0)