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