@@ -12,7 +12,7 @@ msgid ""
12
12
msgstr ""
13
13
"Project-Id-Version : Python 3.10\n "
14
14
"Report-Msgid-Bugs-To : \n "
15
- "POT-Creation-Date : 2021-06-29 12:56 +0000\n "
15
+ "POT-Creation-Date : 2021-07-02 12:52 +0000\n "
16
16
"PO-Revision-Date : 2021-06-28 01:11+0000\n "
17
17
"Last-Translator : tomo, 2021\n "
18
18
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -73,54 +73,90 @@ msgstr ":mod:`pprint` モジュールには1つのクラスが定義されてい
73
73
#: ../../library/pprint.rst:44
74
74
msgid ""
75
75
"Construct a :class:`PrettyPrinter` instance. This constructor understands "
76
- "several keyword parameters. An output stream may be set using the *stream* "
77
- "keyword; the only method used on the stream object is the file protocol's "
78
- ":meth:`write` method. If not specified, the :class:`PrettyPrinter` adopts "
79
- "``sys.stdout``. The amount of indentation added for each recursive level is"
80
- " specified by *indent*; the default is one. Other values can cause output "
81
- "to look a little odd, but can make nesting easier to spot. The number of "
82
- "levels which may be printed is controlled by *depth*; if the data structure "
83
- "being printed is too deep, the next contained level is replaced by ``...``."
84
- " By default, there is no constraint on the depth of the objects being "
85
- "formatted. The desired output width is constrained using the *width* "
86
- "parameter; the default is 80 characters. If a structure cannot be formatted"
87
- " within the constrained width, a best effort will be made. If *compact* is "
88
- "false (the default) each item of a long sequence will be formatted on a "
89
- "separate line. If *compact* is true, as many items as will fit within the "
90
- "*width* will be formatted on each output line. If *sort_dicts* is true (the "
91
- "default), dictionaries will be formatted with their keys sorted, otherwise "
92
- "they will display in insertion order. If *underscore_numbers* is true, "
93
- "integers will be formatted with the ``_`` character for a thousands "
94
- "separator, otherwise underscores are not displayed (the default)."
76
+ "several keyword parameters."
95
77
msgstr ""
96
78
97
- #: ../../library/pprint.rst:66 ../../library/pprint.rst:108
98
- #: ../../library/pprint.rst:139
79
+ #: ../../library/pprint.rst:47
80
+ msgid ""
81
+ "*stream* (default ``sys.stdout``) is a :term:`file-like object` to which the"
82
+ " output will be written by calling its :meth:`write` method."
83
+ msgstr ""
84
+
85
+ #: ../../library/pprint.rst:50
86
+ msgid ""
87
+ "Other values configure the manner in which nesting of complex data "
88
+ "structures is displayed."
89
+ msgstr ""
90
+
91
+ #: ../../library/pprint.rst:53
92
+ msgid ""
93
+ "*indent* (default 1) specifies the amount of indentation added for each "
94
+ "nesting level."
95
+ msgstr ""
96
+
97
+ #: ../../library/pprint.rst:56
98
+ msgid ""
99
+ "*depth* controls the number of nesting levels which may be printed; if the "
100
+ "data structure being printed is too deep, the next contained level is "
101
+ "replaced by ``...``. By default, there is no constraint on the depth of the"
102
+ " objects being formatted."
103
+ msgstr ""
104
+
105
+ #: ../../library/pprint.rst:61
106
+ msgid ""
107
+ "*width* (default 80) specifies the desired maximum number of characters per "
108
+ "line in the output. If a structure cannot be formatted within the width "
109
+ "constraint, a best effort will be made."
110
+ msgstr ""
111
+
112
+ #: ../../library/pprint.rst:65
113
+ msgid ""
114
+ "*compact* impacts the way that long sequences (lists, tuples, sets, etc) are"
115
+ " formatted. If *compact* is false (the default) then each item of a sequence"
116
+ " will be formatted on a separate line. If *compact* is true, as many items "
117
+ "as will fit within the *width* will be formatted on each output line."
118
+ msgstr ""
119
+
120
+ #: ../../library/pprint.rst:71
121
+ msgid ""
122
+ "If *sort_dicts* is true (the default), dictionaries will be formatted with "
123
+ "their keys sorted, otherwise they will display in insertion order."
124
+ msgstr ""
125
+
126
+ #: ../../library/pprint.rst:74
127
+ msgid ""
128
+ "If *underscore_numbers* is true, integers will be formatted with the ``_`` "
129
+ "character for a thousands separator, otherwise underscores are not displayed"
130
+ " (the default)."
131
+ msgstr ""
132
+
133
+ #: ../../library/pprint.rst:78 ../../library/pprint.rst:120
134
+ #: ../../library/pprint.rst:151
99
135
msgid "Added the *compact* parameter."
100
136
msgstr "*compact* 引数が追加されました。"
101
137
102
- #: ../../library/pprint.rst:69 ../../library/pprint.rst:111
103
- #: ../../library/pprint.rst:142
138
+ #: ../../library/pprint.rst:81 ../../library/pprint.rst:123
139
+ #: ../../library/pprint.rst:154
104
140
msgid "Added the *sort_dicts* parameter."
105
141
msgstr "*sort_dicts* 引数が追加されました。"
106
142
107
- #: ../../library/pprint.rst:72 ../../library/pprint.rst:114
108
- #: ../../library/pprint.rst:145
143
+ #: ../../library/pprint.rst:84 ../../library/pprint.rst:126
144
+ #: ../../library/pprint.rst:157
109
145
msgid "Added the *underscore_numbers* parameter."
110
146
msgstr ""
111
147
112
- #: ../../library/pprint.rst:99
148
+ #: ../../library/pprint.rst:111
113
149
msgid "The :mod:`pprint` module also provides several shortcut functions:"
114
150
msgstr ":mod:`pprint` モジュールは幾つかのショートカット関数も提供しています:"
115
151
116
- #: ../../library/pprint.rst:104
152
+ #: ../../library/pprint.rst:116
117
153
msgid ""
118
154
"Return the formatted representation of *object* as a string. *indent*, "
119
155
"*width*, *depth*, *compact*, *sort_dicts* and *underscore_numbers* will be "
120
156
"passed to the :class:`PrettyPrinter` constructor as formatting parameters."
121
157
msgstr ""
122
158
123
- #: ../../library/pprint.rst:120
159
+ #: ../../library/pprint.rst:132
124
160
msgid ""
125
161
"Prints the formatted representation of *object* followed by a newline. If "
126
162
"*sort_dicts* is false (the default), dictionaries will be displayed with "
@@ -129,7 +165,7 @@ msgid ""
129
165
"parameters."
130
166
msgstr ""
131
167
132
- #: ../../library/pprint.rst:132
168
+ #: ../../library/pprint.rst:144
133
169
msgid ""
134
170
"Prints the formatted representation of *object* on *stream*, followed by a "
135
171
"newline. If *stream* is ``None``, ``sys.stdout`` is used. This may be used"
@@ -140,7 +176,7 @@ msgid ""
140
176
"constructor as formatting parameters."
141
177
msgstr ""
142
178
143
- #: ../../library/pprint.rst:164
179
+ #: ../../library/pprint.rst:176
144
180
msgid ""
145
181
"Determine if the formatted representation of *object* is \" readable\" , or "
146
182
"can be used to reconstruct the value using :func:`eval`. This always "
@@ -149,15 +185,15 @@ msgstr ""
149
185
"*object* を書式化して出力できる(\" readable\" ) か、あるいは :func:`eval` "
150
186
"を使って値を再構成できるかを返します。再帰的なオブジェクトに対しては常に ``False`` を返します。"
151
187
152
- #: ../../library/pprint.rst:174
188
+ #: ../../library/pprint.rst:186
153
189
msgid "Determine if *object* requires a recursive representation."
154
190
msgstr "*object* が再帰的な表現かどうかを返します。"
155
191
156
- #: ../../library/pprint.rst:177
192
+ #: ../../library/pprint.rst:189
157
193
msgid "One more support function is also defined:"
158
194
msgstr "さらにもう1つ、関数が定義されています:"
159
195
160
- #: ../../library/pprint.rst:181
196
+ #: ../../library/pprint.rst:193
161
197
msgid ""
162
198
"Return a string representation of *object*, protected against recursive data"
163
199
" structures. If the representation of *object* exposes a recursive entry, "
@@ -168,29 +204,29 @@ msgstr ""
168
204
"の文字列表現が再帰的な要素を持っているなら、再帰的な参照は ``<Recursion on typename with id=number>`` "
169
205
"で表示されます。出力は他と違って書式化されません。"
170
206
171
- #: ../../library/pprint.rst:193
207
+ #: ../../library/pprint.rst:205
172
208
msgid "PrettyPrinter Objects"
173
209
msgstr "PrettyPrinter オブジェクト"
174
210
175
- #: ../../library/pprint.rst:195
211
+ #: ../../library/pprint.rst:207
176
212
msgid ":class:`PrettyPrinter` instances have the following methods:"
177
213
msgstr ":class:`PrettyPrinter` インスタンスには以下のメソッドがあります:"
178
214
179
- #: ../../library/pprint.rst:200
215
+ #: ../../library/pprint.rst:212
180
216
msgid ""
181
217
"Return the formatted representation of *object*. This takes into account "
182
218
"the options passed to the :class:`PrettyPrinter` constructor."
183
219
msgstr ""
184
220
"*object* の書式化した表現を返します。これは :class:`PrettyPrinter` "
185
221
"のコンストラクタに渡されたオプションを考慮して書式化されます。"
186
222
187
- #: ../../library/pprint.rst:206
223
+ #: ../../library/pprint.rst:218
188
224
msgid ""
189
225
"Print the formatted representation of *object* on the configured stream, "
190
226
"followed by a newline."
191
227
msgstr "*object* の書式化した表現を指定したストリームに出力し、最後に改行します。"
192
228
193
- #: ../../library/pprint.rst:209
229
+ #: ../../library/pprint.rst:221
194
230
msgid ""
195
231
"The following methods provide the implementations for the corresponding "
196
232
"functions of the same names. Using these methods on an instance is slightly"
@@ -200,7 +236,7 @@ msgstr ""
200
236
"以下のメソッドは、対応する同じ名前の関数と同じ機能を持っています。以下のメソッドをインスタンスに対して使うと、新たに "
201
237
":class:`PrettyPrinter` オブジェクトを作る必要がないのでちょっぴり効果的です。"
202
238
203
- #: ../../library/pprint.rst:219
239
+ #: ../../library/pprint.rst:231
204
240
msgid ""
205
241
"Determine if the formatted representation of the object is \" readable,\" or "
206
242
"can be used to reconstruct the value using :func:`eval`. Note that this "
@@ -213,11 +249,11 @@ msgstr ""
213
249
":class:`PrettyPrinter` の *depth* 引数が設定されていて、オブジェクトのレベルが設定よりも深かったら、 ``False``"
214
250
" を返します。"
215
251
216
- #: ../../library/pprint.rst:228
252
+ #: ../../library/pprint.rst:240
217
253
msgid "Determine if the object requires a recursive representation."
218
254
msgstr "オブジェクトが再帰的な表現かどうかを返します。"
219
255
220
- #: ../../library/pprint.rst:230
256
+ #: ../../library/pprint.rst:242
221
257
msgid ""
222
258
"This method is provided as a hook to allow subclasses to modify the way "
223
259
"objects are converted to strings. The default implementation uses the "
@@ -226,7 +262,7 @@ msgstr ""
226
262
"このメソッドをフックとして、サブクラスがオブジェクトを文字列に変換する方法を修正するのが可能になっています。デフォルトの実装では、内部で "
227
263
":func:`saferepr` を呼び出しています。"
228
264
229
- #: ../../library/pprint.rst:237
265
+ #: ../../library/pprint.rst:249
230
266
msgid ""
231
267
"Returns three values: the formatted version of *object* as a string, a flag "
232
268
"indicating whether the result is readable, and a flag indicating whether "
@@ -252,11 +288,11 @@ msgstr ""
252
288
"で再帰呼び出しのレベルを制限します。制限しない場合、 ``0`` になります。この引数は再帰呼び出しでそのまま渡されます。 4つめの引数 *level*"
253
289
" で現在のレベルを設定します。再帰呼び出しでは、現在の呼び出しより小さい値が渡されます。"
254
290
255
- #: ../../library/pprint.rst:255
291
+ #: ../../library/pprint.rst:267
256
292
msgid "Example"
257
293
msgstr "使用例"
258
294
259
- #: ../../library/pprint.rst:257
295
+ #: ../../library/pprint.rst:269
260
296
msgid ""
261
297
"To demonstrate several uses of the :func:`pprint` function and its "
262
298
"parameters, let's fetch information about a project from `PyPI "
@@ -265,17 +301,17 @@ msgstr ""
265
301
":func:`pprint` 関数のいくつかの用途とそのパラメータを実証するために、`PyPI <https://pypi.org>`_ "
266
302
"からプロジェクトに関する情報を取って来ましょう::"
267
303
268
- #: ../../library/pprint.rst:266
304
+ #: ../../library/pprint.rst:278
269
305
msgid "In its basic form, :func:`pprint` shows the whole object::"
270
306
msgstr "その基本形式では、 :func:`pprint` はオブジェクト全体を表示します::"
271
307
272
- #: ../../library/pprint.rst:322
308
+ #: ../../library/pprint.rst:334
273
309
msgid ""
274
310
"The result can be limited to a certain *depth* (ellipsis is used for deeper "
275
311
"contents)::"
276
312
msgstr "結果をある深さ *depth* に制限することができます (より深い内容には省略記号が使用されます)::"
277
313
278
- #: ../../library/pprint.rst:368
314
+ #: ../../library/pprint.rst:380
279
315
msgid ""
280
316
"Additionally, maximum character *width* can be suggested. If a long object "
281
317
"cannot be split, the specified width will be exceeded::"
0 commit comments