File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,6 +131,10 @@ msgid ""
131131"which implement the hooks that provide the standard behavior and the "
132132"backward compatible behavior and features, respectively."
133133msgstr ""
134+ "本文档的第一部分介绍了 :class:`Policy` 的特性,它是一个 :term:`abstract base class`,定义了所有策略对象包括"
135+ " :const:`compat32` 的共有特性。 这些特性包括一些由 email 包内部调用的特定钩子方法,自定义策略可以重载这些方法以获得不同行为。"
136+ " 第二部分描述了实体类 :class:`EmailPolicy` 和 "
137+ ":class:`Compat32`,它们分别实现了提供标准行为和向下兼容行为与特性的钩子。"
134138
135139#: ../../library/email.policy.rst:72
136140msgid ""
@@ -139,13 +143,15 @@ msgid ""
139143":class:`Policy` instance that is a copy of the original but with the "
140144"specified attributes values changed."
141145msgstr ""
146+ ":class:`Policy` 实例是不可变的,但它们可以被克隆,接受与类构造器一致的关键字参数并返回一个新的 :class:`Policy` "
147+ "实例,新实例是原实例的副本,但具有被改变的指定属性。"
142148
143149#: ../../library/email.policy.rst:77
144150msgid ""
145151"As an example, the following code could be used to read an email message "
146152"from a file on disk and pass it to the system ``sendmail`` program on a Unix"
147153" system:"
148- msgstr ""
154+ msgstr "例如,以下代码可以被用来从一个 Unix 系统的磁盘文件中读取电子邮件消息并将其传递给系统的 ``sendmail`` 程序: "
149155
150156#: ../../library/email.policy.rst:113
151157msgid ""
You can’t perform that action at this time.
0 commit comments