@@ -13,7 +13,7 @@ msgid ""
1313msgstr ""
1414"Project-Id-Version : Python 3.12\n "
1515"Report-Msgid-Bugs-To : \n "
16- "POT-Creation-Date : 2024-03-08 21:29 +0000\n "
16+ "POT-Creation-Date : 2024-03-29 14:13 +0000\n "
1717"PO-Revision-Date : 2021-06-28 01:11+0000\n "
1818"
Last-Translator :
Claudio Rogerio Carvalho Filho <[email protected] >, "
1919"2024\n "
@@ -77,7 +77,7 @@ msgid ""
7777"parameters."
7878msgstr ""
7979
80- #: ../../library/pprint.rst:53
80+ #: ../../library/pprint.rst:64
8181msgid ""
8282"Prints the formatted representation of *object* on *stream*, followed by a "
8383"newline. If *stream* is ``None``, :data:`sys.stdout` is used. This may be "
@@ -86,37 +86,43 @@ msgid ""
8686"use within a scope)."
8787msgstr ""
8888
89- #: ../../library/pprint.rst:59
89+ #: ../../library/pprint.rst:70
9090msgid ""
9191"The configuration parameters *stream*, *indent*, *width*, *depth*, "
9292"*compact*, *sort_dicts* and *underscore_numbers* are passed to the :class:"
9393"`PrettyPrinter` constructor and their meanings are as described in its "
9494"documentation below."
9595msgstr ""
9696
97- #: ../../library/pprint.rst:78
97+ #: ../../library/pprint.rst:75
98+ msgid ""
99+ "Note that *sort_dicts* is ``True`` by default and you might want to use :"
100+ "func:`~pprint.pp` instead where it is ``False`` by default."
101+ msgstr ""
102+
103+ #: ../../library/pprint.rst:81
98104msgid ""
99105"Return the formatted representation of *object* as a string. *indent*, "
100106"*width*, *depth*, *compact*, *sort_dicts* and *underscore_numbers* are "
101107"passed to the :class:`PrettyPrinter` constructor as formatting parameters "
102108"and their meanings are as described in its documentation below."
103109msgstr ""
104110
105- #: ../../library/pprint.rst:88
111+ #: ../../library/pprint.rst:91
106112msgid ""
107113"Determine if the formatted representation of *object* is \" readable\" , or "
108114"can be used to reconstruct the value using :func:`eval`. This always "
109115"returns ``False`` for recursive objects."
110116msgstr ""
111117
112- #: ../../library/pprint.rst:98
118+ #: ../../library/pprint.rst:101
113119msgid ""
114120"Determine if *object* requires a recursive representation. This function is "
115121"subject to the same limitations as noted in :func:`saferepr` below and may "
116122"raise an :exc:`RecursionError` if it fails to detect a recursive object."
117123msgstr ""
118124
119- #: ../../library/pprint.rst:105
125+ #: ../../library/pprint.rst:108
120126msgid ""
121127"Return a string representation of *object*, protected against recursion in "
122128"some common data structures, namely instances of :class:`dict`, :class:"
@@ -126,117 +132,117 @@ msgid ""
126132"id=number>``. The representation is not otherwise formatted."
127133msgstr ""
128134
129- #: ../../library/pprint.rst:118
135+ #: ../../library/pprint.rst:121
130136msgid "PrettyPrinter Objects"
131137msgstr ""
132138
133- #: ../../library/pprint.rst:120
139+ #: ../../library/pprint.rst:123
134140msgid "This module defines one class:"
135141msgstr ""
136142
137- #: ../../library/pprint.rst:130
143+ #: ../../library/pprint.rst:133
138144msgid ""
139145"Construct a :class:`PrettyPrinter` instance. This constructor understands "
140146"several keyword parameters."
141147msgstr ""
142148
143- #: ../../library/pprint.rst:133
149+ #: ../../library/pprint.rst:136
144150msgid ""
145151"*stream* (default :data:`!sys.stdout`) is a :term:`file-like object` to "
146152"which the output will be written by calling its :meth:`!write` method. If "
147153"both *stream* and :data:`!sys.stdout` are ``None``, then :meth:"
148154"`~PrettyPrinter.pprint` silently returns."
149155msgstr ""
150156
151- #: ../../library/pprint.rst:138
157+ #: ../../library/pprint.rst:141
152158msgid ""
153159"Other values configure the manner in which nesting of complex data "
154160"structures is displayed."
155161msgstr ""
156162
157- #: ../../library/pprint.rst:141
163+ #: ../../library/pprint.rst:144
158164msgid ""
159165"*indent* (default 1) specifies the amount of indentation added for each "
160166"nesting level."
161167msgstr ""
162168
163- #: ../../library/pprint.rst:144
169+ #: ../../library/pprint.rst:147
164170msgid ""
165171"*depth* controls the number of nesting levels which may be printed; if the "
166172"data structure being printed is too deep, the next contained level is "
167173"replaced by ``...``. By default, there is no constraint on the depth of the "
168174"objects being formatted."
169175msgstr ""
170176
171- #: ../../library/pprint.rst:149
177+ #: ../../library/pprint.rst:152
172178msgid ""
173179"*width* (default 80) specifies the desired maximum number of characters per "
174180"line in the output. If a structure cannot be formatted within the width "
175181"constraint, a best effort will be made."
176182msgstr ""
177183
178- #: ../../library/pprint.rst:153
184+ #: ../../library/pprint.rst:156
179185msgid ""
180186"*compact* impacts the way that long sequences (lists, tuples, sets, etc) are "
181187"formatted. If *compact* is false (the default) then each item of a sequence "
182188"will be formatted on a separate line. If *compact* is true, as many items "
183189"as will fit within the *width* will be formatted on each output line."
184190msgstr ""
185191
186- #: ../../library/pprint.rst:159
192+ #: ../../library/pprint.rst:162
187193msgid ""
188194"If *sort_dicts* is true (the default), dictionaries will be formatted with "
189195"their keys sorted, otherwise they will display in insertion order."
190196msgstr ""
191197
192- #: ../../library/pprint.rst:162
198+ #: ../../library/pprint.rst:165
193199msgid ""
194200"If *underscore_numbers* is true, integers will be formatted with the ``_`` "
195201"character for a thousands separator, otherwise underscores are not displayed "
196202"(the default)."
197203msgstr ""
198204
199- #: ../../library/pprint.rst:166
205+ #: ../../library/pprint.rst:169
200206msgid "Added the *compact* parameter."
201207msgstr ""
202208
203- #: ../../library/pprint.rst:169
209+ #: ../../library/pprint.rst:172
204210msgid "Added the *sort_dicts* parameter."
205211msgstr ""
206212
207- #: ../../library/pprint.rst:172
213+ #: ../../library/pprint.rst:175
208214msgid "Added the *underscore_numbers* parameter."
209215msgstr ""
210216
211- #: ../../library/pprint.rst:175
217+ #: ../../library/pprint.rst:178
212218msgid "No longer attempts to write to :data:`!sys.stdout` if it is ``None``."
213219msgstr ""
214220
215- #: ../../library/pprint.rst:202
221+ #: ../../library/pprint.rst:205
216222msgid ":class:`PrettyPrinter` instances have the following methods:"
217223msgstr ""
218224
219- #: ../../library/pprint.rst:207
225+ #: ../../library/pprint.rst:210
220226msgid ""
221227"Return the formatted representation of *object*. This takes into account "
222228"the options passed to the :class:`PrettyPrinter` constructor."
223229msgstr ""
224230
225- #: ../../library/pprint.rst:213
231+ #: ../../library/pprint.rst:216
226232msgid ""
227233"Print the formatted representation of *object* on the configured stream, "
228234"followed by a newline."
229235msgstr ""
230236
231- #: ../../library/pprint.rst:216
237+ #: ../../library/pprint.rst:219
232238msgid ""
233239"The following methods provide the implementations for the corresponding "
234240"functions of the same names. Using these methods on an instance is slightly "
235241"more efficient since new :class:`PrettyPrinter` objects don't need to be "
236242"created."
237243msgstr ""
238244
239- #: ../../library/pprint.rst:226
245+ #: ../../library/pprint.rst:229
240246msgid ""
241247"Determine if the formatted representation of the object is \" readable,\" or "
242248"can be used to reconstruct the value using :func:`eval`. Note that this "
@@ -245,18 +251,18 @@ msgid ""
245251"returns ``False``."
246252msgstr ""
247253
248- #: ../../library/pprint.rst:235
254+ #: ../../library/pprint.rst:238
249255msgid "Determine if the object requires a recursive representation."
250256msgstr ""
251257
252- #: ../../library/pprint.rst:237
258+ #: ../../library/pprint.rst:240
253259msgid ""
254260"This method is provided as a hook to allow subclasses to modify the way "
255261"objects are converted to strings. The default implementation uses the "
256262"internals of the :func:`saferepr` implementation."
257263msgstr ""
258264
259- #: ../../library/pprint.rst:244
265+ #: ../../library/pprint.rst:247
260266msgid ""
261267"Returns three values: the formatted version of *object* as a string, a flag "
262268"indicating whether the result is readable, and a flag indicating whether "
@@ -274,45 +280,45 @@ msgid ""
274280"of the current call."
275281msgstr ""
276282
277- #: ../../library/pprint.rst:262
283+ #: ../../library/pprint.rst:265
278284msgid "Example"
279285msgstr "Exemplo"
280286
281- #: ../../library/pprint.rst:264
287+ #: ../../library/pprint.rst:267
282288msgid ""
283- "To demonstrate several uses of the :func:`~pprint.pprint ` function and its "
289+ "To demonstrate several uses of the :func:`~pprint.pp ` function and its "
284290"parameters, let's fetch information about a project from `PyPI <https://pypi."
285291"org>`_::"
286292msgstr ""
287293
288- #: ../../library/pprint.rst:273
289- msgid "In its basic form, :func:`~pprint.pprint ` shows the whole object::"
294+ #: ../../library/pprint.rst:276
295+ msgid "In its basic form, :func:`~pprint.pp ` shows the whole object::"
290296msgstr ""
291297
292- #: ../../library/pprint.rst:329
298+ #: ../../library/pprint.rst:332
293299msgid ""
294300"The result can be limited to a certain *depth* (ellipsis is used for deeper "
295301"contents)::"
296302msgstr ""
297303
298- #: ../../library/pprint.rst:375
304+ #: ../../library/pprint.rst:378
299305msgid ""
300306"Additionally, maximum character *width* can be suggested. If a long object "
301307"cannot be split, the specified width will be exceeded::"
302308msgstr ""
303309
304- #: ../../library/pprint.rst:86 ../../library/pprint.rst:224
310+ #: ../../library/pprint.rst:89 ../../library/pprint.rst:227
305311msgid "built-in function"
306312msgstr "função embutida"
307313
308- #: ../../library/pprint.rst:86 ../../library/pprint.rst:224
314+ #: ../../library/pprint.rst:89 ../../library/pprint.rst:227
309315msgid "eval"
310316msgstr "eval"
311317
312- #: ../../library/pprint.rst:125
318+ #: ../../library/pprint.rst:128
313319msgid "..."
314320msgstr "..."
315321
316- #: ../../library/pprint.rst:125
322+ #: ../../library/pprint.rst:128
317323msgid "placeholder"
318324msgstr ""
0 commit comments