@@ -157,7 +157,7 @@ msgstr "确定 *object* 是否需要递归表示。"
157157
158158#: ../../library/pprint.rst:160
159159msgid "One more support function is also defined:"
160- msgstr ""
160+ msgstr "此外还定义了一个支持函数: "
161161
162162#: ../../library/pprint.rst:164
163163msgid ""
@@ -166,26 +166,28 @@ msgid ""
166166"the recursive reference will be represented as ``<Recursion on typename with"
167167" id=number>``. The representation is not otherwise formatted."
168168msgstr ""
169+ "返回 *object* 的字符串表示,并为递归数据结构提供保护。 如果 *object* 的表示形式公开了一个递归条目,该递归引用会被表示为 "
170+ "``<Recursion on typename with id=number>``。 该表示因而不会进行其它格式化。"
169171
170172#: ../../library/pprint.rst:176
171173msgid "PrettyPrinter Objects"
172- msgstr ""
174+ msgstr "PrettyPrinter 对象 "
173175
174176#: ../../library/pprint.rst:178
175177msgid ":class:`PrettyPrinter` instances have the following methods:"
176- msgstr ""
178+ msgstr ":class:`PrettyPrinter` 的实例具有下列方法: "
177179
178180#: ../../library/pprint.rst:183
179181msgid ""
180182"Return the formatted representation of *object*. This takes into account "
181183"the options passed to the :class:`PrettyPrinter` constructor."
182- msgstr ""
184+ msgstr "返回 *object* 格式化表示。 这会将传给 :class:`PrettyPrinter` 构造器的选项纳入考虑。 "
183185
184186#: ../../library/pprint.rst:189
185187msgid ""
186188"Print the formatted representation of *object* on the configured stream, "
187189"followed by a newline."
188- msgstr ""
190+ msgstr "在所配置的流上打印 *object* 的格式化表示,并附加一个换行符。 "
189191
190192#: ../../library/pprint.rst:192
191193msgid ""
@@ -194,6 +196,7 @@ msgid ""
194196" more efficient since new :class:`PrettyPrinter` objects don't need to be "
195197"created."
196198msgstr ""
199+ "下列方法提供了与同名函数相对应的实现。 在实例上使用这些方法效率会更高一些,因为不需要创建新的 :class:`PrettyPrinter` 对象。"
197200
198201#: ../../library/pprint.rst:202
199202msgid ""
@@ -203,17 +206,19 @@ msgid ""
203206":class:`PrettyPrinter` is set and the object is deeper than allowed, this "
204207"returns ``False``."
205208msgstr ""
209+ "确定对象的格式化表示是否“可读”,或者是否可使用 :func:`eval` 重建对象值。 请注意此方法对于递归对象将返回 ``False``。 "
210+ "如果设置了 :class:`PrettyPrinter` 的 *depth* 形参并且对象深度超出允许范围,此方法将返回 ``False``。"
206211
207212#: ../../library/pprint.rst:211
208213msgid "Determine if the object requires a recursive representation."
209- msgstr ""
214+ msgstr "确定对象是否需要递归表示。 "
210215
211216#: ../../library/pprint.rst:213
212217msgid ""
213218"This method is provided as a hook to allow subclasses to modify the way "
214219"objects are converted to strings. The default implementation uses the "
215220"internals of the :func:`saferepr` implementation."
216- msgstr ""
221+ msgstr "此方法作为一个钩子提供,允许子类修改将对象转换为字符串的方式。 默认实现使用 :func:`saferepr` 实现的内部方式。 "
217222
218223#: ../../library/pprint.rst:220
219224msgid ""
0 commit comments