8
8
msgstr ""
9
9
"Project-Id-Version : Python 3.6\n "
10
10
"Report-Msgid-Bugs-To : \n "
11
- "POT-Creation-Date : 2018-01-05 15:01+0000 \n "
11
+ "POT-Creation-Date : 2018-10-24 14:42+0900 \n "
12
12
"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
13
13
"Last-Translator : tomo🐧, 2018\n "
14
14
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -66,7 +66,7 @@ msgstr ""
66
66
"場合には正の数を返す、あらゆる呼び出し可能オブジェクトです。key "
67
67
"関数は呼び出し可能オブジェクトで、1つの引数を受け取り、ソートキーとして使われる値を返します。"
68
68
69
- #: ../../library/functools.rst:37 ../../library/functools.rst:220
69
+ #: ../../library/functools.rst:37 ../../library/functools.rst:221
70
70
msgid "Example::"
71
71
msgstr "以下はプログラム例です::"
72
72
@@ -208,18 +208,14 @@ msgstr "認識できない型に対して下層の比較関数から NotImplemen
208
208
209
209
#: ../../library/functools.rst:170
210
210
msgid ""
211
- "Return a new :class :`partial` object which when called will behave like "
212
- "*func* called with the positional arguments *args* and keyword arguments "
213
- "*keywords*. If more arguments are supplied to the call, they are appended to "
214
- " *args*. If additional keyword arguments are supplied, they extend and "
215
- "override *keywords*. Roughly equivalent to::"
211
+ "Return a new :ref :`partial object<partial-objects>` which when called will "
212
+ "behave like *func* called with the positional arguments *args* and keyword "
213
+ "arguments *keywords*. If more arguments are supplied to the call, they are "
214
+ "appended to *args*. If additional keyword arguments are supplied, they "
215
+ "extend and override *keywords*. Roughly equivalent to::"
216
216
msgstr ""
217
- "新しい :class:`partial` オブジェクトを返します。このオブジェクトは呼び出されると位置引数 *args* とキーワード引数 "
218
- "*keywords* 付きで呼び出された *func* のように振る舞います。呼び出しに際してさらなる引数が渡された場合、それらは *args* "
219
- "に付け加えられます。追加のキーワード引数が渡された場合には、それらで *keywords* "
220
- "を拡張または上書きします。大雑把にいうと、次のコードと等価です::"
221
217
222
- #: ../../library/functools.rst:186
218
+ #: ../../library/functools.rst:187
223
219
msgid ""
224
220
"The :func:`partial` is used for partial function application which "
225
221
"\" freezes\" some portion of a function's arguments and/or keywords resulting"
@@ -232,7 +228,7 @@ msgstr ""
232
228
":func:`partial` を使って *base* 引数のデフォルトが 2 である :func:`int` "
233
229
"関数のように振る舞う呼び出し可能オブジェクトを作ることができます:"
234
230
235
- #: ../../library/functools.rst:201
231
+ #: ../../library/functools.rst:202
236
232
msgid ""
237
233
"Return a new :class:`partialmethod` descriptor which behaves like "
238
234
":class:`partial` except that it is designed to be used as a method "
@@ -241,28 +237,24 @@ msgstr ""
241
237
":class:`partial` と似た動作をする新しい :class:`partialmethod` 記述子 (デスクリプタ) "
242
238
"を返します。直接呼び出しではなく、メソッド定義としての使用が目的であることのみが、partial とは異なります。"
243
239
244
- #: ../../library/functools.rst:205
240
+ #: ../../library/functools.rst:206
245
241
msgid ""
246
242
"*func* must be a :term:`descriptor` or a callable (objects which are both, "
247
243
"like normal functions, are handled as descriptors)."
248
244
msgstr ""
249
245
"*func* は、:term:`descriptor` または呼び出し可能オブジェクトである必要があります "
250
246
"(通常の関数など、両方の性質を持つオブジェクトは記述子として扱われます。)"
251
247
252
- #: ../../library/functools.rst:208
248
+ #: ../../library/functools.rst:209
253
249
msgid ""
254
250
"When *func* is a descriptor (such as a normal Python function, "
255
251
":func:`classmethod`, :func:`staticmethod`, :func:`abstractmethod` or another"
256
252
" instance of :class:`partialmethod`), calls to ``__get__`` are delegated to "
257
- "the underlying descriptor, and an appropriate :class :`partial` object "
258
- "returned as the result."
253
+ "the underlying descriptor, and an appropriate :ref :`partial object<partial- "
254
+ "objects>` returned as the result."
259
255
msgstr ""
260
- "*func* が (Python の通常の関数、 "
261
- ":func:`classmethod`、:func:`staticmethod`、:func:`abstractmethod` または別の "
262
- ":class:`partialmethod` のインスタンスなど) の記述子の場合、 ``__get__`` "
263
- "への呼び出しは下層の記述子に委譲され、結果として適切な :class:`partial` オブジェクトが返されます。"
264
256
265
- #: ../../library/functools.rst:214
257
+ #: ../../library/functools.rst:215
266
258
msgid ""
267
259
"When *func* is a non-descriptor callable, an appropriate bound method is "
268
260
"created dynamically. This behaves like a normal Python function when used as"
@@ -274,7 +266,7 @@ msgstr ""
274
266
"は、メソッドとして使用された場合、Python の通常の関数と同様に動作します。 :class:`partialmethod` コンストラクタに "
275
267
"*args* と *keywords* が渡されるよりも前に、 *self* 引数が最初の位置引数として挿入されます。"
276
268
277
- #: ../../library/functools.rst:245
269
+ #: ../../library/functools.rst:246
278
270
msgid ""
279
271
"Apply *function* of two arguments cumulatively to the items of *sequence*, "
280
272
"from left to right, so as to reduce the sequence to a single value. For "
@@ -293,18 +285,18 @@ msgstr ""
293
285
"が存在する場合、計算の際にイテラブルの先頭に置かれ、またイテラブルが空の場合のデフォルトになります。*initializer* "
294
286
"が与えられておらず、*iterable* が単一の要素しか持っていない場合、最初の要素が返されます。"
295
287
296
- #: ../../library/functools.rst:254
288
+ #: ../../library/functools.rst:255
297
289
msgid "Roughly equivalent to::"
298
290
msgstr "およそ次と等価です::"
299
291
300
- #: ../../library/functools.rst:269
292
+ #: ../../library/functools.rst:270
301
293
msgid ""
302
294
"Transform a function into a :term:`single-dispatch <single dispatch>` "
303
295
":term:`generic function`."
304
296
msgstr ""
305
297
"関数を :term:`シングルディスパッチ <single dispatch>` :term:`generic function` に変換します。"
306
298
307
- #: ../../library/functools.rst:272
299
+ #: ../../library/functools.rst:273
308
300
msgid ""
309
301
"To define a generic function, decorate it with the ``@singledispatch`` "
310
302
"decorator. Note that the dispatch happens on the type of the first argument,"
@@ -313,7 +305,7 @@ msgstr ""
313
305
"汎用関数を定義するには、 ``@singledispatch`` デコレータでデコレートします。ディスパッチは 1 "
314
306
"つ目の引数の型で行われることに注意して、関数を次のように作成してください::"
315
307
316
- #: ../../library/functools.rst:283
308
+ #: ../../library/functools.rst:284
317
309
msgid ""
318
310
"To add overloaded implementations to the function, use the :func:`register` "
319
311
"attribute of the generic function. It is a decorator, taking a type "
@@ -323,13 +315,13 @@ msgstr ""
323
315
"関数にオーバーロード実装を追加するには、汎用関数の :func:`register` "
324
316
"属性を使用します。この属性は、型引数を取り、その型の操作を実装する関数をデコレートするデコレータです::"
325
317
326
- #: ../../library/functools.rst:301
318
+ #: ../../library/functools.rst:302
327
319
msgid ""
328
320
"To enable registering lambdas and pre-existing functions, the "
329
321
":func:`register` attribute can be used in a functional form::"
330
322
msgstr ":func:`register` 属性を関数形式で使用すると、lambda 関数と既存の関数の登録を有効にできます::"
331
323
332
- #: ../../library/functools.rst:309
324
+ #: ../../library/functools.rst:310
333
325
msgid ""
334
326
"The :func:`register` attribute returns the undecorated function which "
335
327
"enables decorator stacking, pickling, as well as creating unit tests for "
@@ -338,13 +330,13 @@ msgstr ""
338
330
" :func:`register` 属性は、デコレートされていない関数を返します。この関数により、複層デコレータ、デコレータの pickle "
339
331
"化、各変数の独立なユニットテストの作成が可能です::"
340
332
341
- #: ../../library/functools.rst:323
333
+ #: ../../library/functools.rst:324
342
334
msgid ""
343
335
"When called, the generic function dispatches on the type of the first "
344
336
"argument::"
345
337
msgstr "汎用関数は、呼び出されると 1 つ目の引数の型でディスパッチします::"
346
338
347
- #: ../../library/functools.rst:343
339
+ #: ../../library/functools.rst:344
348
340
msgid ""
349
341
"Where there is no registered implementation for a specific type, its method "
350
342
"resolution order is used to find a more generic implementation. The original"
@@ -355,19 +347,19 @@ msgstr ""
355
347
"特定の型について登録された実装が存在しない場合、その型のメソッド解決順序が、汎用の実装をさらに検索するために使用されます。``@singledispatch``"
356
348
" でデコレートされた元の関数は基底の ``object`` 型に登録されます。これは、他によりよい実装が見つからないことを意味します。"
357
349
358
- #: ../../library/functools.rst:349
350
+ #: ../../library/functools.rst:350
359
351
msgid ""
360
352
"To check which implementation will the generic function choose for a given "
361
353
"type, use the ``dispatch()`` attribute::"
362
354
msgstr "指定された型に対して、汎用関数がどの実装を選択するかを確認するには、``dispatch()`` 属性を使用します::"
363
355
364
- #: ../../library/functools.rst:357
356
+ #: ../../library/functools.rst:358
365
357
msgid ""
366
358
"To access all registered implementations, use the read-only ``registry`` "
367
359
"attribute::"
368
360
msgstr "登録されたすべての実装にアクセスするには、読み出し専用の ``registry`` 属性を使用します::"
369
361
370
- #: ../../library/functools.rst:374
362
+ #: ../../library/functools.rst:375
371
363
msgid ""
372
364
"Update a *wrapper* function to look like the *wrapped* function. The "
373
365
"optional arguments are tuples to specify which attributes of the original "
@@ -386,7 +378,7 @@ msgstr ""
386
378
"``__qualname__``, ``__annotations__`` そしてドキュメンテーション文字列 ``__doc__`` に代入する) と "
387
379
"``WRAPPER_UPDATES`` (これはラッパー関数の ``__dict__`` すなわちインスタンス辞書をアップデートする) です。"
388
380
389
- #: ../../library/functools.rst:384
381
+ #: ../../library/functools.rst:385
390
382
msgid ""
391
383
"To allow access to the original function for introspection and other "
392
384
"purposes (e.g. bypassing a caching decorator such as :func:`lru_cache`), "
@@ -396,7 +388,7 @@ msgstr ""
396
388
"内観や別の目的 (例えば、 :func:`lru_cache` のようなキャッシュするデコレータの回避) "
397
389
"のために元の関数にアクセスできるように、この関数はラップされている関数を参照するラッパーに自動的に ``__wrapped__`` 属性を追加します。"
398
390
399
- #: ../../library/functools.rst:389
391
+ #: ../../library/functools.rst:390
400
392
msgid ""
401
393
"The main intended use for this function is in :term:`decorator` functions "
402
394
"which wrap the decorated function and return the wrapper. If the wrapper "
@@ -407,7 +399,7 @@ msgstr ""
407
399
"この関数は主に関数を包んでラッパーを返す :term:`デコレータ <decorator>` "
408
400
"関数の中で使われるよう意図されています。もしラッパー関数がアップデートされないとすると、返される関数のメタデータは元の関数の定義ではなくラッパー関数の定義を反映してしまい、これは通常あまり有益ではありません。"
409
401
410
- #: ../../library/functools.rst:395
402
+ #: ../../library/functools.rst:396
411
403
msgid ""
412
404
":func:`update_wrapper` may be used with callables other than functions. Any "
413
405
"attributes named in *assigned* or *updated* that are missing from the object"
@@ -420,19 +412,19 @@ msgstr ""
420
412
"(すなわち、ラッパー関数にそれらの属性を設定しようとは試みられません)。しかし、 *updated* で指名された属性がラッパー関数自身に存在しないなら"
421
413
" :exc:`AttributeError` が送出されます。"
422
414
423
- #: ../../library/functools.rst:401
415
+ #: ../../library/functools.rst:402
424
416
msgid "Automatic addition of the ``__wrapped__`` attribute."
425
417
msgstr "``__wrapped__`` 属性の自動的な追加。"
426
418
427
- #: ../../library/functools.rst:404
419
+ #: ../../library/functools.rst:405
428
420
msgid "Copying of the ``__annotations__`` attribute by default."
429
421
msgstr "デフォルトで ``__annotations__`` 属性がコピーされます。"
430
422
431
- #: ../../library/functools.rst:407
423
+ #: ../../library/functools.rst:408
432
424
msgid "Missing attributes no longer trigger an :exc:`AttributeError`."
433
425
msgstr "存在しない属性によって :exc:`AttributeError` を発生しなくなりました。"
434
426
435
- #: ../../library/functools.rst:410
427
+ #: ../../library/functools.rst:411
436
428
msgid ""
437
429
"The ``__wrapped__`` attribute now always refers to the wrapped function, "
438
430
"even if that function defined a ``__wrapped__`` attribute. (see "
@@ -441,7 +433,7 @@ msgstr ""
441
433
"ラップされた関数が ``__wrapped__`` を定義していない場合でも、 ``__wrapped__`` "
442
434
"が常にラップされた関数を参照するようになりました。(:issue:`17482` を参照)"
443
435
444
- #: ../../library/functools.rst:418
436
+ #: ../../library/functools.rst:419
445
437
msgid ""
446
438
"This is a convenience function for invoking :func:`update_wrapper` as a "
447
439
"function decorator when defining a wrapper function. It is equivalent to "
@@ -452,7 +444,7 @@ msgstr ""
452
444
"``partial(update_wrapper, wrapped=wrapped, assigned=assigned, "
453
445
"updated=updated)`` と等価です。例えば::"
454
446
455
- #: ../../library/functools.rst:444
447
+ #: ../../library/functools.rst:445
456
448
msgid ""
457
449
"Without the use of this decorator factory, the name of the example function "
F438
458
450
"would have been ``'wrapper'``, and the docstring of the original "
@@ -461,39 +453,39 @@ msgstr ""
461
453
"このデコレータ・ファクトリを使用しないと、上の例中の関数の名前は ``'wrapper'`` となり、元の :func:`example` "
462
454
"のドキュメンテーション文字列は失われてしまいます。"
463
455
464
- #: ../../library/functools.rst:452
456
+ #: ../../library/functools.rst:453
465
457
msgid ":class:`partial` Objects"
466
458
msgstr ":class:`partial` オブジェクト"
467
459
468
- #: ../../library/functools.rst:454
460
+ #: ../../library/functools.rst:455
469
461
msgid ""
470
462
":class:`partial` objects are callable objects created by :func:`partial`. "
471
463
"They have three read-only attributes:"
472
464
msgstr ""
473
465
":class:`partial` オブジェクトは、 :func:`partial` "
474
466
"関数によって作られる呼び出し可能オブジェクトです。オブジェクトには読み出し専用の属性が三つあります:"
475
467
476
- #: ../../library/functools.rst:460
468
+ #: ../../library/functools.rst:461
477
469
msgid ""
478
470
"A callable object or function. Calls to the :class:`partial` object will be"
479
471
" forwarded to :attr:`func` with new arguments and keywords."
480
472
msgstr ""
481
473
"呼び出し可能オブジェクトまたは関数です。 :class:`partial` オブジェクトの呼び出しは新しい引数とキーワードと共に "
482
474
":attr:`func` に転送されます。"
483
475
484
- #: ../../library/functools.rst:466
476
+ #: ../../library/functools.rst:467
485
477
msgid ""
486
478
"The leftmost positional arguments that will be prepended to the positional "
487
479
"arguments provided to a :class:`partial` object call."
488
480
msgstr "最左の位置引数で、 :class:`partial` オブジェクトの呼び出し時にその呼び出しの際の位置引数の前に追加されます。"
489
481
490
- #: ../../library/functools.rst:472
482
+ #: ../../library/functools.rst:473
491
483
msgid ""
492
484
"The keyword arguments that will be supplied when the :class:`partial` object"
493
485
" is called."
494
486
msgstr ":class:`partial` オブジェクトの呼び出し時に渡されるキーワード引数です。"
495
487
496
- #: ../../library/functools.rst:475
488
+ #: ../../library/functools.rst:476
497
489
msgid ""
498
490
":class:`partial` objects are like :class:`function` objects in that they are"
499
491
" callable, weak referencable, and can have attributes. There are some "
0 commit comments