Skip to content

Commit 02fed65

Browse files
sync with cpython 11ac373d
1 parent 4bd8e05 commit 02fed65

File tree

1 file changed

+45
-49
lines changed

1 file changed

+45
-49
lines changed

library/pprint.po

Lines changed: 45 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Python 3.14\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2024-11-15 00:14+0000\n"
9+
"POT-Creation-Date: 2025-10-13 00:14+0000\n"
1010
"PO-Revision-Date: 2018-05-23 16:08+0000\n"
1111
"Last-Translator: Adrian Liaw <[email protected]>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -43,22 +43,18 @@ msgid ""
4343
msgstr ""
4444

4545
#: ../../library/pprint.rst:25
46-
msgid "Dictionaries are sorted by key before the display is computed."
47-
msgstr ""
48-
49-
#: ../../library/pprint.rst:27
5046
msgid "Added support for pretty-printing :class:`types.SimpleNamespace`."
5147
msgstr ""
5248

53-
#: ../../library/pprint.rst:30
49+
#: ../../library/pprint.rst:28
5450
msgid "Added support for pretty-printing :class:`dataclasses.dataclass`."
5551
msgstr ""
5652

57-
#: ../../library/pprint.rst:36
53+
#: ../../library/pprint.rst:34
5854
msgid "Functions"
5955
msgstr "函式"
6056

61-
#: ../../library/pprint.rst:41
57+
#: ../../library/pprint.rst:39
6258
msgid ""
6359
"Prints the formatted representation of *object*, followed by a newline. This "
6460
"function may be used in the interactive interpreter instead of the :func:"
@@ -70,85 +66,85 @@ msgstr ""
7066
msgid "Parameters"
7167
msgstr "參數"
7268

73-
#: ../../library/pprint.rst:46
69+
#: ../../library/pprint.rst:44
7470
msgid "The object to be printed."
7571
msgstr "將被印出的物件。"
7672

77-
#: ../../library/pprint.rst:49
73+
#: ../../library/pprint.rst:47
7874
msgid ""
7975
"A file-like object to which the output will be written by calling its :meth:"
8076
"`!write` method. If ``None`` (the default), :data:`sys.stdout` is used."
8177
msgstr ""
8278

83-
#: ../../library/pprint.rst:55
79+
#: ../../library/pprint.rst:53
8480
msgid "The amount of indentation added for each nesting level."
8581
msgstr ""
8682

87-
#: ../../library/pprint.rst:58
83+
#: ../../library/pprint.rst:56
8884
msgid ""
8985
"The desired maximum number of characters per line in the output. If a "
9086
"structure cannot be formatted within the width constraint, a best effort "
9187
"will be made."
9288
msgstr ""
9389

94-
#: ../../library/pprint.rst:63
90+
#: ../../library/pprint.rst:61
9591
msgid ""
9692
"The number of nesting levels which may be printed. If the data structure "
9793
"being printed is too deep, the next contained level is replaced by ``...``. "
9894
"If ``None`` (the default), there is no constraint on the depth of the "
9995
"objects being formatted."
10096
msgstr ""
10197

102-
#: ../../library/pprint.rst:71
98+
#: ../../library/pprint.rst:69
10399
msgid ""
104100
"Control the way long :term:`sequences <sequence>` are formatted. If "
105101
"``False`` (the default), each item of a sequence will be formatted on a "
106102
"separate line, otherwise as many items as will fit within the *width* will "
107103
"be formatted on each output line."
108104
msgstr ""
109105

110-
#: ../../library/pprint.rst:78
106+
#: ../../library/pprint.rst:76
111107
msgid ""
112108
"If ``True``, dictionaries will be formatted with their keys sorted, "
113109
"otherwise they will be displayed in insertion order (the default)."
114110
msgstr ""
115111

116-
#: ../../library/pprint.rst:83
112+
#: ../../library/pprint.rst:81
117113
msgid ""
118114
"If ``True``, integers will be formatted with the ``_`` character for a "
119115
"thousands separator, otherwise underscores are not displayed (the default)."
120116
msgstr ""
121117

122-
#: ../../library/pprint.rst:105
118+
#: ../../library/pprint.rst:103
123119
msgid ""
124120
"Alias for :func:`~pprint.pp` with *sort_dicts* set to ``True`` by default, "
125121
"which would automatically sort the dictionaries' keys, you might want to "
126122
"use :func:`~pprint.pp` instead where it is ``False`` by default."
127123
msgstr ""
128124

129-
#: ../../library/pprint.rst:113
125+
#: ../../library/pprint.rst:111
130126
msgid ""
131127
"Return the formatted representation of *object* as a string. *indent*, "
132128
"*width*, *depth*, *compact*, *sort_dicts* and *underscore_numbers* are "
133129
"passed to the :class:`PrettyPrinter` constructor as formatting parameters "
134130
"and their meanings are as described in the documentation above."
135131
msgstr ""
136132

137-
#: ../../library/pprint.rst:123
133+
#: ../../library/pprint.rst:121
138134
msgid ""
139135
"Determine if the formatted representation of *object* is \"readable\", or "
140136
"can be used to reconstruct the value using :func:`eval`. This always "
141137
"returns ``False`` for recursive objects."
142138
msgstr ""
143139

144-
#: ../../library/pprint.rst:133
140+
#: ../../library/pprint.rst:131
145141
msgid ""
146142
"Determine if *object* requires a recursive representation. This function is "
147143
"subject to the same limitations as noted in :func:`saferepr` below and may "
148144
"raise an :exc:`RecursionError` if it fails to detect a recursive object."
149145
msgstr ""
150146

151-
#: ../../library/pprint.rst:140
147+
#: ../../library/pprint.rst:138
152148
msgid ""
153149
"Return a string representation of *object*, protected against recursion in "
154150
"some common data structures, namely instances of :class:`dict`, :class:"
@@ -158,61 +154,61 @@ msgid ""
158154
"id=number>``. The representation is not otherwise formatted."
159155
msgstr ""
160156

161-
#: ../../library/pprint.rst:153
157+
#: ../../library/pprint.rst:151
162158
msgid "PrettyPrinter Objects"
163159
msgstr "PrettyPrinter 物件"
164160

165-
#: ../../library/pprint.rst:160
161+
#: ../../library/pprint.rst:158
166162
msgid "Construct a :class:`PrettyPrinter` instance."
167163
msgstr "建立一個 :class:`PrettyPrinter` 實例。"
168164

169-
#: ../../library/pprint.rst:162
165+
#: ../../library/pprint.rst:160
170166
msgid ""
171167
"Arguments have the same meaning as for :func:`~pprint.pp`. Note that they "
172168
"are in a different order, and that *sort_dicts* defaults to ``True``."
173169
msgstr ""
174170

175-
#: ../../library/pprint.rst:189
171+
#: ../../library/pprint.rst:187
176172
msgid "Added the *compact* parameter."
177173
msgstr "新增 *compact* 參數。"
178174

179-
#: ../../library/pprint.rst:192
175+
#: ../../library/pprint.rst:190
180176
msgid "Added the *sort_dicts* parameter."
181177
msgstr "新增 *sort_dicts* 參數。"
182178

183-
#: ../../library/pprint.rst:195
179+
#: ../../library/pprint.rst:193
184180
msgid "Added the *underscore_numbers* parameter."
185181
msgstr "新增 *underscore_numbers* 參數。"
186182

187-
#: ../../library/pprint.rst:198
183+
#: ../../library/pprint.rst:196
188184
msgid "No longer attempts to write to :data:`!sys.stdout` if it is ``None``."
189185
msgstr ""
190186

191-
#: ../../library/pprint.rst:202
187+
#: ../../library/pprint.rst:200
192188
msgid ":class:`PrettyPrinter` instances have the following methods:"
193189
msgstr ":class:`PrettyPrinter` 實例有以下方法:"
194190

195-
#: ../../library/pprint.rst:207
191+
#: ../../library/pprint.rst:205
196192
msgid ""
197193
"Return the formatted representation of *object*. This takes into account "
198194
"the options passed to the :class:`PrettyPrinter` constructor."
199195
msgstr ""
200196

201-
#: ../../library/pprint.rst:213
197+
#: ../../library/pprint.rst:211
202198
msgid ""
203199
"Print the formatted representation of *object* on the configured stream, "
204200
"followed by a newline."
205201
msgstr ""
206202

207-
#: ../../library/pprint.rst:216
203+
#: ../../library/pprint.rst:214
208204
msgid ""
209205
"The following methods provide the implementations for the corresponding "
210206
"functions of the same names. Using these methods on an instance is slightly "
211207
"more efficient since new :class:`PrettyPrinter` objects don't need to be "
212208
"created."
213209
msgstr ""
214210

215-
#: ../../library/pprint.rst:226
211+
#: ../../library/pprint.rst:224
216212
msgid ""
217213
"Determine if the formatted representation of the object is \"readable,\" or "
218214
"can be used to reconstruct the value using :func:`eval`. Note that this "
@@ -221,18 +217,18 @@ msgid ""
221217
"returns ``False``."
222218
msgstr ""
223219

224-
#: ../../library/pprint.rst:235
220+
#: ../../library/pprint.rst:233
225221
msgid "Determine if the object requires a recursive representation."
226222
msgstr ""
227223

228-
#: ../../library/pprint.rst:237
224+
#: ../../library/pprint.rst:235
229225
msgid ""
230226
"This method is provided as a hook to allow subclasses to modify the way "
231227
"objects are converted to strings. The default implementation uses the "
232228
"internals of the :func:`saferepr` implementation."
233229
msgstr ""
234230

235-
#: ../../library/pprint.rst:244
231+
#: ../../library/pprint.rst:242
236232
msgid ""
237233
"Returns three values: the formatted version of *object* as a string, a flag "
238234
"indicating whether the result is readable, and a flag indicating whether "
@@ -250,18 +246,18 @@ msgid ""
250246
"of the current call."
251247
msgstr ""
252248

253-
#: ../../library/pprint.rst:262
249+
#: ../../library/pprint.rst:260
254250
msgid "Example"
255251
msgstr "範例"
256252

257-
#: ../../library/pprint.rst:264
253+
#: ../../library/pprint.rst:262
258254
msgid ""
259255
"To demonstrate several uses of the :func:`~pprint.pp` function and its "
260256
"parameters, let's fetch information about a project from `PyPI <https://pypi."
261257
"org>`_::"
262258
msgstr ""
263259

264-
#: ../../library/pprint.rst:267
260+
#: ../../library/pprint.rst:265
265261
msgid ""
266262
">>> import json\n"
267263
">>> import pprint\n"
@@ -275,11 +271,11 @@ msgstr ""
275271
">>> with urlopen('https://pypi.org/pypi/sampleproject/1.2.0/json') as resp:\n"
276272
"... project_info = json.load(resp)['info']"
277273

278-
#: ../../library/pprint.rst:273
274+
#: ../../library/pprint.rst:271
279275
msgid "In its basic form, :func:`~pprint.pp` shows the whole object::"
280276
msgstr ""
281277

282-
#: ../../library/pprint.rst:275
278+
#: ../../library/pprint.rst:273
283279
msgid ""
284280
">>> pprint.pp(project_info)\n"
285281
"{'author': 'The Python Packaging Authority',\n"
@@ -395,13 +391,13 @@ msgstr ""
395391
" 'summary': 'A sample Python project',\n"
396392
" 'version': '1.2.0'}"
397393

398-
#: ../../library/pprint.rst:329
394+
#: ../../library/pprint.rst:327
399395
msgid ""
400396
"The result can be limited to a certain *depth* (ellipsis is used for deeper "
401397
"contents)::"
402398
msgstr ""
403399

404-
#: ../../library/pprint.rst:332
400+
#: ../../library/pprint.rst:330
405401
msgid ""
406402
">>> pprint.pp(project_info, depth=1)\n"
407403
"{'author': 'The Python Packaging Authority',\n"
@@ -495,13 +491,13 @@ msgstr ""
495491
" 'summary': 'A sample Python project',\n"
496492
" 'version': '1.2.0'}"
497493

498-
#: ../../library/pprint.rst:375
494+
#: ../../library/pprint.rst:373
499495
msgid ""
500496
"Additionally, maximum character *width* can be suggested. If a long object "
501497
"cannot be split, the specified width will be exceeded::"
502498
msgstr ""
503499

504-
#: ../../library/pprint.rst:378
500+
#: ../../library/pprint.rst:376
505501
msgid ""
506502
">>> pprint.pp(project_info, depth=1, width=60)\n"
507503
"{'author': 'The Python Packaging Authority',\n"
@@ -595,18 +591,18 @@ msgstr ""
595591
" 'summary': 'A sample Python project',\n"
596592
" 'version': '1.2.0'}"
597593

598-
#: ../../library/pprint.rst:121 ../../library/pprint.rst:224
594+
#: ../../library/pprint.rst:119 ../../library/pprint.rst:222
599595
msgid "built-in function"
600596
msgstr "built-in function(內建函式)"
601597

602-
#: ../../library/pprint.rst:121 ../../library/pprint.rst:224
598+
#: ../../library/pprint.rst:119 ../../library/pprint.rst:222
603599
msgid "eval"
604600
msgstr "eval"
605601

606-
#: ../../library/pprint.rst:155
602+
#: ../../library/pprint.rst:153
607603
msgid "..."
608604
msgstr "..."
609605

610-
#: ../../library/pprint.rst:155
606+
#: ../../library/pprint.rst:153
611607
msgid "placeholder"
612608
msgstr "placeholder(佔位符號)"

0 commit comments

Comments
 (0)