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

Skip to content

Commit 7b677e5

Browse files
sync with cpython 193a24bb
1 parent 4e244f3 commit 7b677e5

File tree

1 file changed

+47
-41
lines changed

1 file changed

+47
-41
lines changed

library/pprint.po

Lines changed: 47 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2024-03-06 00:03+0000\n"
10+
"POT-Creation-Date: 2024-03-25 00:03+0000\n"
1111
"PO-Revision-Date: 2018-05-23 16:08+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -69,7 +69,7 @@ msgid ""
6969
"parameters."
7070
msgstr ""
7171

72-
#: ../../library/pprint.rst:53
72+
#: ../../library/pprint.rst:64
7373
msgid ""
7474
"Prints the formatted representation of *object* on *stream*, followed by a "
7575
"newline. If *stream* is ``None``, :data:`sys.stdout` is used. This may be "
@@ -78,37 +78,43 @@ msgid ""
7878
"use within a scope)."
7979
msgstr ""
8080

81-
#: ../../library/pprint.rst:59
81+
#: ../../library/pprint.rst:70
8282
msgid ""
8383
"The configuration parameters *stream*, *indent*, *width*, *depth*, "
8484
"*compact*, *sort_dicts* and *underscore_numbers* are passed to the :class:"
8585
"`PrettyPrinter` constructor and their meanings are as described in its "
8686
"documentation below."
8787
msgstr ""
8888

89-
#: ../../library/pprint.rst:78
89+
#: ../../library/pprint.rst:75
90+
msgid ""
91+
"Note that *sort_dicts* is ``True`` by default and you might want to use :"
92+
"func:`~pprint.pp` instead where it is ``False`` by default."
93+
msgstr ""
94+
95+
#: ../../library/pprint.rst:81
9096
msgid ""
9197
"Return the formatted representation of *object* as a string. *indent*, "
9298
"*width*, *depth*, *compact*, *sort_dicts* and *underscore_numbers* are "
9399
"passed to the :class:`PrettyPrinter` constructor as formatting parameters "
94100
"and their meanings are as described in its documentation below."
95101
msgstr ""
96102

97-
#: ../../library/pprint.rst:88
103+
#: ../../library/pprint.rst:91
98104
msgid ""
99105
"Determine if the formatted representation of *object* is \"readable\", or "
100106
"can be used to reconstruct the value using :func:`eval`. This always "
101107
"returns ``False`` for recursive objects."
102108
msgstr ""
103109

104-
#: ../../library/pprint.rst:98
110+
#: ../../library/pprint.rst:101
105111
msgid ""
106112
"Determine if *object* requires a recursive representation. This function is "
107113
"subject to the same limitations as noted in :func:`saferepr` below and may "
108114
"raise an :exc:`RecursionError` if it fails to detect a recursive object."
109115
msgstr ""
110116

111-
#: ../../library/pprint.rst:105
117+
#: ../../library/pprint.rst:108
112118
msgid ""
113119
"Return a string representation of *object*, protected against recursion in "
114120
"some common data structures, namely instances of :class:`dict`, :class:"
@@ -118,117 +124,117 @@ msgid ""
118124
"id=number>``. The representation is not otherwise formatted."
119125
msgstr ""
120126

121-
#: ../../library/pprint.rst:118
127+
#: ../../library/pprint.rst:121
122128
msgid "PrettyPrinter Objects"
123129
msgstr "PrettyPrinter 物件"
124130

125-
#: ../../library/pprint.rst:120
131+
#: ../../library/pprint.rst:123
126132
msgid "This module defines one class:"
127133
msgstr ""
128134

129-
#: ../../library/pprint.rst:130
135+
#: ../../library/pprint.rst:133
130136
msgid ""
131137
"Construct a :class:`PrettyPrinter` instance. This constructor understands "
132138
"several keyword parameters."
133139
msgstr ""
134140

135-
#: ../../library/pprint.rst:133
141+
#: ../../library/pprint.rst:136
136142
msgid ""
137143
"*stream* (default :data:`!sys.stdout`) is a :term:`file-like object` to "
138144
"which the output will be written by calling its :meth:`!write` method. If "
139145
"both *stream* and :data:`!sys.stdout` are ``None``, then :meth:"
140146
"`~PrettyPrinter.pprint` silently returns."
141147
msgstr ""
142148

143-
#: ../../library/pprint.rst:138
149+
#: ../../library/pprint.rst:141
144150
msgid ""
145151
"Other values configure the manner in which nesting of complex data "
146152
"structures is displayed."
147153
msgstr ""
148154

149-
#: ../../library/pprint.rst:141
155+
#: ../../library/pprint.rst:144
150156
msgid ""
151157
"*indent* (default 1) specifies the amount of indentation added for each "
152158
"nesting level."
153159
msgstr ""
154160

155-
#: ../../library/pprint.rst:144
161+
#: ../../library/pprint.rst:147
156162
msgid ""
157163
"*depth* controls the number of nesting levels which may be printed; if the "
158164
"data structure being printed is too deep, the next contained level is "
159165
"replaced by ``...``. By default, there is no constraint on the depth of the "
160166
"objects being formatted."
161167
msgstr ""
162168

163-
#: ../../library/pprint.rst:149
169+
#: ../../library/pprint.rst:152
164170
msgid ""
165171
"*width* (default 80) specifies the desired maximum number of characters per "
166172
"line in the output. If a structure cannot be formatted within the width "
167173
"constraint, a best effort will be made."
168174
msgstr ""
169175

170-
#: ../../library/pprint.rst:153
176+
#: ../../library/pprint.rst:156
171177
msgid ""
172178
"*compact* impacts the way that long sequences (lists, tuples, sets, etc) are "
173179
"formatted. If *compact* is false (the default) then each item of a sequence "
174180
"will be formatted on a separate line. If *compact* is true, as many items "
175181
"as will fit within the *width* will be formatted on each output line."
176182
msgstr ""
177183

178-
#: ../../library/pprint.rst:159
184+
#: ../../library/pprint.rst:162
179185
msgid ""
180186
"If *sort_dicts* is true (the default), dictionaries will be formatted with "
181187
"their keys sorted, otherwise they will display in insertion order."
182188
msgstr ""
183189

184-
#: ../../library/pprint.rst:162
190+
#: ../../library/pprint.rst:165
185191
msgid ""
186192
"If *underscore_numbers* is true, integers will be formatted with the ``_`` "
187193
"character for a thousands separator, otherwise underscores are not displayed "
188194
"(the default)."
189195
msgstr ""
190196

191-
#: ../../library/pprint.rst:166
197+
#: ../../library/pprint.rst:169
192198
msgid "Added the *compact* parameter."
193199
msgstr "新增 *compact* 參數。"
194200

195-
#: ../../library/pprint.rst:169
201+
#: ../../library/pprint.rst:172
196202
msgid "Added the *sort_dicts* parameter."
197203
msgstr "新增 *sort_dicts* 參數。"
198204

199-
#: ../../library/pprint.rst:172
205+
#: ../../library/pprint.rst:175
200206
msgid "Added the *underscore_numbers* parameter."
201207
msgstr "新增 *underscore_numbers* 參數。"
202208

203-
#: ../../library/pprint.rst:175
209+
#: ../../library/pprint.rst:178
204210
msgid "No longer attempts to write to :data:`!sys.stdout` if it is ``None``."
205211
msgstr ""
206212

207-
#: ../../library/pprint.rst:202
213+
#: ../../library/pprint.rst:205
208214
msgid ":class:`PrettyPrinter` instances have the following methods:"
209215
msgstr ""
210216

211-
#: ../../library/pprint.rst:207
217+
#: ../../library/pprint.rst:210
212218
msgid ""
213219
"Return the formatted representation of *object*. This takes into account "
214220
"the options passed to the :class:`PrettyPrinter` constructor."
215221
msgstr ""
216222

217-
#: ../../library/pprint.rst:213
223+
#: ../../library/pprint.rst:216
218224
msgid ""
219225
"Print the formatted representation of *object* on the configured stream, "
220226
"followed by a newline."
221227
msgstr ""
222228

223-
#: ../../library/pprint.rst:216
229+
#: ../../library/pprint.rst:219
224230
msgid ""
225231
"The following methods provide the implementations for the corresponding "
226232
"functions of the same names. Using these methods on an instance is slightly "
227233
"more efficient since new :class:`PrettyPrinter` objects don't need to be "
228234
"created."
229235
msgstr ""
230236

231-
#: ../../library/pprint.rst:226
237+
#: ../../library/pprint.rst:229
232238
msgid ""
233239
"Determine if the formatted representation of the object is \"readable,\" or "
234240
"can be used to reconstruct the value using :func:`eval`. Note that this "
@@ -237,18 +243,18 @@ msgid ""
237243
"returns ``False``."
238244
msgstr ""
239245

240-
#: ../../library/pprint.rst:235
246+
#: ../../library/pprint.rst:238
241247
msgid "Determine if the object requires a recursive representation."
242248
msgstr ""
243249

244-
#: ../../library/pprint.rst:237
250+
#: ../../library/pprint.rst:240
245251
msgid ""
246252
"This method is provided as a hook to allow subclasses to modify the way "
247253
"objects are converted to strings. The default implementation uses the "
248254
"internals of the :func:`saferepr` implementation."
249255
msgstr ""
250256

251-
#: ../../library/pprint.rst:244
257+
#: ../../library/pprint.rst:247
252258
msgid ""
253259
"Returns three values: the formatted version of *object* as a string, a flag "
254260
"indicating whether the result is readable, and a flag indicating whether "
@@ -266,45 +272,45 @@ msgid ""
266272
"of the current call."
267273
msgstr ""
268274

269-
#: ../../library/pprint.rst:262
275+
#: ../../library/pprint.rst:265
270276
msgid "Example"
271277
msgstr "範例"
272278

273-
#: ../../library/pprint.rst:264
279+
#: ../../library/pprint.rst:267
274280
msgid ""
275-
"To demonstrate several uses of the :func:`~pprint.pprint` function and its "
281+
"To demonstrate several uses of the :func:`~pprint.pp` function and its "
276282
"parameters, let's fetch information about a project from `PyPI <https://pypi."
277283
"org>`_::"
278284
msgstr ""
279285

280-
#: ../../library/pprint.rst:273
281-
msgid "In its basic form, :func:`~pprint.pprint` shows the whole object::"
286+
#: ../../library/pprint.rst:276
287+
msgid "In its basic form, :func:`~pprint.pp` shows the whole object::"
282288
msgstr ""
283289

284-
#: ../../library/pprint.rst:329
290+
#: ../../library/pprint.rst:332
285291
msgid ""
286292
"The result can be limited to a certain *depth* (ellipsis is used for deeper "
287293
"contents)::"
288294
msgstr ""
289295

290-
#: ../../library/pprint.rst:375
296+
#: ../../library/pprint.rst:378
291297
msgid ""
292298
"Additionally, maximum character *width* can be suggested. If a long object "
293299
"cannot be split, the specified width will be exceeded::"
294300
msgstr ""
295301

296-
#: ../../library/pprint.rst:86 ../../library/pprint.rst:224
302+
#: ../../library/pprint.rst:89 ../../library/pprint.rst:227
297303
msgid "built-in function"
298304
msgstr "built-in function(內建函式)"
299305

300-
#: ../../library/pprint.rst:86 ../../library/pprint.rst:224
306+
#: ../../library/pprint.rst:89 ../../library/pprint.rst:227
301307
msgid "eval"
302308
msgstr "eval"
303309

304-
#: ../../library/pprint.rst:125
310+
#: ../../library/pprint.rst:128
305311
msgid "..."
306312
msgstr "..."
307313

308-
#: ../../library/pprint.rst:125
314+
#: ../../library/pprint.rst:128
309315
msgid "placeholder"
310316
msgstr "placeholder(佔位符號)"

0 commit comments

Comments
 (0)