Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf899902

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython 8ae70c87
1 parent2f1326e commitf899902

File tree

1 file changed

+47
-48
lines changed

1 file changed

+47
-48
lines changed

‎library/pprint.po

Lines changed: 47 additions & 48 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-25 00:03+0000\n"
10+
"POT-Creation-Date:2024-04-23 00:03+0000\n"
1111
"PO-Revision-Date:2018-05-23 16:08+0000\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -39,28 +39,27 @@ msgstr ""
3939
#:../../library/pprint.rst:21
4040
msgid""
4141
"The formatted representation keeps objects on a single line if it can, and "
42-
"breaks them onto multiple lines if they don't fit within the allowed width. "
43-
"Construct :class:`PrettyPrinter` objects explicitly if you need to adjust "
44-
"the width constraint."
42+
"breaks them onto multiple lines if they don't fit within the allowed width, "
43+
"adjustable by the *width* parameter defaulting to 80 characters."
4544
msgstr""
4645

47-
#:../../library/pprint.rst:26
46+
#:../../library/pprint.rst:25
4847
msgid"Dictionaries are sorted by key before the display is computed."
4948
msgstr""
5049

51-
#:../../library/pprint.rst:28
50+
#:../../library/pprint.rst:27
5251
msgid"Added support for pretty-printing :class:`types.SimpleNamespace`."
5352
msgstr""
5453

55-
#:../../library/pprint.rst:31
54+
#:../../library/pprint.rst:30
5655
msgid"Added support for pretty-printing :class:`dataclasses.dataclass`."
5756
msgstr""
5857

59-
#:../../library/pprint.rst:37
58+
#:../../library/pprint.rst:36
6059
msgid"Functions"
6160
msgstr""
6261

63-
#:../../library/pprint.rst:41
62+
#:../../library/pprint.rst:40
6463
msgid""
6564
"Prints the formatted representation of *object* followed by a newline. If "
6665
"*sort_dicts* is false (the default), dictionaries will be displayed with "
@@ -69,7 +68,7 @@ msgid ""
6968
"parameters."
7069
msgstr""
7170

72-
#:../../library/pprint.rst:64
71+
#:../../library/pprint.rst:63
7372
msgid""
7473
"Prints the formatted representation of *object* on *stream*, followed by a "
7574
"newline. If *stream* is ``None``, :data:`sys.stdout` is used. This may be "
@@ -78,43 +77,43 @@ msgid ""
7877
"use within a scope)."
7978
msgstr""
8079

81-
#:../../library/pprint.rst:70
80+
#:../../library/pprint.rst:69
8281
msgid""
8382
"The configuration parameters *stream*, *indent*, *width*, *depth*, "
8483
"*compact*, *sort_dicts* and *underscore_numbers* are passed to the :class:"
8584
"`PrettyPrinter` constructor and their meanings are as described in its "
8685
"documentation below."
8786
msgstr""
8887

89-
#:../../library/pprint.rst:75
88+
#:../../library/pprint.rst:74
9089
msgid""
9190
"Note that *sort_dicts* is ``True`` by default and you might want to use :"
9291
"func:`~pprint.pp` instead where it is ``False`` by default."
9392
msgstr""
9493

95-
#:../../library/pprint.rst:81
94+
#:../../library/pprint.rst:80
9695
msgid""
9796
"Return the formatted representation of *object* as a string. *indent*, "
9897
"*width*, *depth*, *compact*, *sort_dicts* and *underscore_numbers* are "
9998
"passed to the :class:`PrettyPrinter` constructor as formatting parameters "
10099
"and their meanings are as described in its documentation below."
101100
msgstr""
102101

103-
#:../../library/pprint.rst:91
102+
#:../../library/pprint.rst:90
104103
msgid""
105104
"Determine if the formatted representation of *object* is\"readable\", or "
106105
"can be used to reconstruct the value using :func:`eval`. This always "
107106
"returns ``False`` for recursive objects."
108107
msgstr""
109108

110-
#:../../library/pprint.rst:101
109+
#:../../library/pprint.rst:100
111110
msgid""
112111
"Determine if *object* requires a recursive representation. This function is "
113112
"subject to the same limitations as noted in :func:`saferepr` below and may "
114113
"raise an :exc:`RecursionError` if it fails to detect a recursive object."
115114
msgstr""
116115

117-
#:../../library/pprint.rst:108
116+
#:../../library/pprint.rst:107
118117
msgid""
119118
"Return a string representation of *object*, protected against recursion in "
120119
"some common data structures, namely instances of :class:`dict`, :class:"
@@ -124,117 +123,117 @@ msgid ""
124123
"id=number>``. The representation is not otherwise formatted."
125124
msgstr""
126125

127-
#:../../library/pprint.rst:121
126+
#:../../library/pprint.rst:120
128127
msgid"PrettyPrinter Objects"
129128
msgstr"PrettyPrinter 物件"
130129

131-
#:../../library/pprint.rst:123
130+
#:../../library/pprint.rst:122
132131
msgid"This module defines one class:"
133132
msgstr""
134133

135-
#:../../library/pprint.rst:133
134+
#:../../library/pprint.rst:132
136135
msgid""
137136
"Construct a :class:`PrettyPrinter` instance. This constructor understands "
138137
"several keyword parameters."
139138
msgstr""
140139

141-
#:../../library/pprint.rst:136
140+
#:../../library/pprint.rst:135
142141
msgid""
143142
"*stream* (default :data:`!sys.stdout`) is a :term:`file-like object` to "
144143
"which the output will be written by calling its :meth:`!write` method. If "
145144
"both *stream* and :data:`!sys.stdout` are ``None``, then :meth:"
146145
"`~PrettyPrinter.pprint` silently returns."
147146
msgstr""
148147

149-
#:../../library/pprint.rst:141
148+
#:../../library/pprint.rst:140
150149
msgid""
151150
"Other values configure the manner in which nesting of complex data "
152151
"structures is displayed."
153152
msgstr""
154153

155-
#:../../library/pprint.rst:144
154+
#:../../library/pprint.rst:143
156155
msgid""
157156
"*indent* (default 1) specifies the amount of indentation added for each "
158157
"nesting level."
159158
msgstr""
160159

161-
#:../../library/pprint.rst:147
160+
#:../../library/pprint.rst:146
162161
msgid""
163162
"*depth* controls the number of nesting levels which may be printed; if the "
164163
"data structure being printed is too deep, the next contained level is "
165164
"replaced by ``...``. By default, there is no constraint on the depth of the "
166165
"objects being formatted."
167166
msgstr""
168167

169-
#:../../library/pprint.rst:152
168+
#:../../library/pprint.rst:151
170169
msgid""
171170
"*width* (default 80) specifies the desired maximum number of characters per "
172171
"line in the output. If a structure cannot be formatted within the width "
173172
"constraint, a best effort will be made."
174173
msgstr""
175174

176-
#:../../library/pprint.rst:156
175+
#:../../library/pprint.rst:155
177176
msgid""
178177
"*compact* impacts the way that long sequences (lists, tuples, sets, etc) are "
179178
"formatted. If *compact* is false (the default) then each item of a sequence "
180179
"will be formatted on a separate line. If *compact* is true, as many items "
181180
"as will fit within the *width* will be formatted on each output line."
182181
msgstr""
183182

184-
#:../../library/pprint.rst:162
183+
#:../../library/pprint.rst:161
185184
msgid""
186185
"If *sort_dicts* is true (the default), dictionaries will be formatted with "
187186
"their keys sorted, otherwise they will display in insertion order."
188187
msgstr""
189188

190-
#:../../library/pprint.rst:165
189+
#:../../library/pprint.rst:164
191190
msgid""
192191
"If *underscore_numbers* is true, integers will be formatted with the ``_`` "
193192
"character for a thousands separator, otherwise underscores are not displayed "
194193
"(the default)."
195194
msgstr""
196195

197-
#:../../library/pprint.rst:169
196+
#:../../library/pprint.rst:168
198197
msgid"Added the *compact* parameter."
199198
msgstr"新增 *compact* 參數。"
200199

201-
#:../../library/pprint.rst:172
200+
#:../../library/pprint.rst:171
202201
msgid"Added the *sort_dicts* parameter."
203202
msgstr"新增 *sort_dicts* 參數。"
204203

205-
#:../../library/pprint.rst:175
204+
#:../../library/pprint.rst:174
206205
msgid"Added the *underscore_numbers* parameter."
207206
msgstr"新增 *underscore_numbers* 參數。"
208207

209-
#:../../library/pprint.rst:178
208+
#:../../library/pprint.rst:177
210209
msgid"No longer attempts to write to :data:`!sys.stdout` if it is ``None``."
211210
msgstr""
212211

213-
#:../../library/pprint.rst:205
212+
#:../../library/pprint.rst:204
214213
msgid":class:`PrettyPrinter` instances have the following methods:"
215214
msgstr""
216215

217-
#:../../library/pprint.rst:210
216+
#:../../library/pprint.rst:209
218217
msgid""
219218
"Return the formatted representation of *object*. This takes into account "
220219
"the options passed to the :class:`PrettyPrinter` constructor."
221220
msgstr""
222221

223-
#:../../library/pprint.rst:216
222+
#:../../library/pprint.rst:215
224223
msgid""
225224
"Print the formatted representation of *object* on the configured stream, "
226225
"followed by a newline."
227226
msgstr""
228227

229-
#:../../library/pprint.rst:219
228+
#:../../library/pprint.rst:218
230229
msgid""
231230
"The following methods provide the implementations for the corresponding "
232231
"functions of the same names. Using these methods on an instance is slightly "
233232
"more efficient since new :class:`PrettyPrinter` objects don't need to be "
234233
"created."
235234
msgstr""
236235

237-
#:../../library/pprint.rst:229
236+
#:../../library/pprint.rst:228
238237
msgid""
239238
"Determine if the formatted representation of the object is\"readable,\" or "
240239
"can be used to reconstruct the value using :func:`eval`. Note that this "
@@ -243,18 +242,18 @@ msgid ""
243242
"returns ``False``."
244243
msgstr""
245244

246-
#:../../library/pprint.rst:238
245+
#:../../library/pprint.rst:237
247246
msgid"Determine if the object requires a recursive representation."
248247
msgstr""
249248

250-
#:../../library/pprint.rst:240
249+
#:../../library/pprint.rst:239
251250
msgid""
252251
"This method is provided as a hook to allow subclasses to modify the way "
253252
"objects are converted to strings. The default implementation uses the "
254253
"internals of the :func:`saferepr` implementation."
255254
msgstr""
256255

257-
#:../../library/pprint.rst:247
256+
#:../../library/pprint.rst:246
258257
msgid""
259258
"Returns three values: the formatted version of *object* as a string, a flag "
260259
"indicating whether the result is readable, and a flag indicating whether "
@@ -272,45 +271,45 @@ msgid ""
272271
"of the current call."
273272
msgstr""
274273

275-
#:../../library/pprint.rst:265
274+
#:../../library/pprint.rst:264
276275
msgid"Example"
277276
msgstr"範例"
278277

279-
#:../../library/pprint.rst:267
278+
#:../../library/pprint.rst:266
280279
msgid""
281280
"To demonstrate several uses of the :func:`~pprint.pp` function and its "
282281
"parameters, let's fetch information about a project from `PyPI <https://pypi."
283282
"org>`_::"
284283
msgstr""
285284

286-
#:../../library/pprint.rst:276
285+
#:../../library/pprint.rst:275
287286
msgid"In its basic form, :func:`~pprint.pp` shows the whole object::"
288287
msgstr""
289288

290-
#:../../library/pprint.rst:332
289+
#:../../library/pprint.rst:331
291290
msgid""
292291
"The result can be limited to a certain *depth* (ellipsis is used for deeper "
293292
"contents)::"
294293
msgstr""
295294

296-
#:../../library/pprint.rst:378
295+
#:../../library/pprint.rst:377
297296
msgid""
298297
"Additionally, maximum character *width* can be suggested. If a long object "
299298
"cannot be split, the specified width will be exceeded::"
300299
msgstr""
301300

302-
#:../../library/pprint.rst:89../../library/pprint.rst:227
301+
#:../../library/pprint.rst:88../../library/pprint.rst:226
303302
msgid"built-in function"
304303
msgstr"built-in function(內建函式)"
305304

306-
#:../../library/pprint.rst:89../../library/pprint.rst:227
305+
#:../../library/pprint.rst:88../../library/pprint.rst:226
307306
msgid"eval"
308307
msgstr"eval"
309308

310-
#:../../library/pprint.rst:128
309+
#:../../library/pprint.rst:127
311310
msgid"..."
312311
msgstr"..."
313312

314-
#:../../library/pprint.rst:128
313+
#:../../library/pprint.rst:127
315314
msgid"placeholder"
316315
msgstr"placeholder(佔位符號)"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp