88msgstr ""
99"Project-Id-Version : Python 3.7\n "
1010"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 "
1212"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
1313"Last-Translator : Nakamura Masahito <randomstep@gmail.com>, 2018\n "
1414"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -66,7 +66,7 @@ msgstr ""
6666"場合には正の数を返す、あらゆる呼び出し可能オブジェクトです。key "
6767"関数は呼び出し可能オブジェクトで、1つの引数を受け取り、ソートキーとして使われる値を返します。"
6868
69- #: ../../library/functools.rst:37 ../../library/functools.rst:225
69+ #: ../../library/functools.rst:37 ../../library/functools.rst:226
7070msgid "Example::"
7171msgstr "以下はプログラム例です::"
7272
@@ -215,18 +215,14 @@ msgstr "認識できない型に対して下層の比較関数から NotImplemen
215215
216216#: ../../library/functools.rst:175
217217msgid ""
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::"
223223msgstr ""
224- "新しい :class:`partial` オブジェクトを返します。このオブジェクトは呼び出されると位置引数 *args* とキーワード引数 "
225- "*keywords* 付きで呼び出された *func* のように振る舞います。呼び出しに際してさらなる引数が渡された場合、それらは *args* "
226- "に付け加えられます。追加のキーワード引数が渡された場合には、それらで *keywords* "
227- "を拡張または上書きします。大雑把にいうと、次のコードと等価です::"
228224
229- #: ../../library/functools.rst:191
225+ #: ../../library/functools.rst:192
230226msgid ""
231227"The :func:`partial` is used for partial function application which "
232228"\" freezes\" some portion of a function's arguments and/or keywords resulting"
@@ -239,7 +235,7 @@ msgstr ""
239235":func:`partial` を使って *base* 引数のデフォルトが 2 である :func:`int` "
240236"関数のように振る舞う呼び出し可能オブジェクトを作ることができます:"
241237
242- #: ../../library/functools.rst:206
238+ #: ../../library/functools.rst:207
243239msgid ""
244240"Return a new :class:`partialmethod` descriptor which behaves like "
245241":class:`partial` except that it is designed to be used as a method "
@@ -248,28 +244,24 @@ msgstr ""
248244":class:`partial` と似た動作をする新しい :class:`partialmethod` 記述子 (デスクリプタ) "
249245"を返します。直接呼び出しではなく、メソッド定義としての使用が目的であることのみが、partial とは異なります。"
250246
251- #: ../../library/functools.rst:210
247+ #: ../../library/functools.rst:211
252248msgid ""
253249"*func* must be a :term:`descriptor` or a callable (objects which are both, "
254250"like normal functions, are handled as descriptors)."
255251msgstr ""
256252"*func* は、:term:`descriptor` または呼び出し可能オブジェクトである必要があります "
257253"(通常の関数など、両方の性質を持つオブジェクトは記述子として扱われます。)"
258254
259- #: ../../library/functools.rst:213
255+ #: ../../library/functools.rst:214
260256msgid ""
261257"When *func* is a descriptor (such as a normal Python function, "
262258":func:`classmethod`, :func:`staticmethod`, :func:`abstractmethod` or another"
263259" 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."
266262msgstr ""
267- "*func* が (Python の通常の関数、 "
268- ":func:`classmethod`、:func:`staticmethod`、:func:`abstractmethod` または別の "
269- ":class:`partialmethod` のインスタンスなど) の記述子の場合、 ``__get__`` "
270- "への呼び出しは下層の記述子に委譲され、結果として適切な :class:`partial` オブジェクトが返されます。"
271263
272- #: ../../library/functools.rst:219
264+ #: ../../library/functools.rst:220
273265msgid ""
274266"When *func* is a non-descriptor callable, an appropriate bound method is "
275267"created dynamically. This behaves like a normal Python function when used as"
@@ -281,7 +273,7 @@ msgstr ""
281273"は、メソッドとして使用された場合、Python の通常の関数と同様に動作します。 :class:`partialmethod` コンストラクタに "
282274"*args* と *keywords* が渡されるよりも前に、 *self* 引数が最初の位置引数として挿入されます。"
283275
284- #: ../../library/functools.rst:250
276+ #: ../../library/functools.rst:251
285277msgid ""
286278"Apply *function* of two arguments cumulatively to the items of *sequence*, "
287279"from left to right, so as to reduce the sequence to a single value. For "
@@ -300,18 +292,18 @@ msgstr ""
300292"が存在する場合、計算の際にイテラブルの先頭に置かれ、またイテラブルが空の場合のデフォルトになります。*initializer* "
301293"が与えられておらず、*iterable* が単一の要素しか持っていない場合、最初の要素が返されます。"
302294
303- #: ../../library/functools.rst:259
295+ #: ../../library/functools.rst:260
304296msgid "Roughly equivalent to::"
305297msgstr "およそ次と等価です::"
306298
307- #: ../../library/functools.rst:274
299+ #: ../../library/functools.rst:275
308300msgid ""
309301"Transform a function into a :term:`single-dispatch <single dispatch>` "
310302":term:`generic function`."
311303msgstr ""
312304"関数を :term:`シングルディスパッチ <single dispatch>` :term:`generic function` に変換します。"
313305
314- #: ../../library/functools.rst:277
306+ #: ../../library/functools.rst:278
315307msgid ""
316308"To define a generic function, decorate it with the ``@singledispatch`` "
317309"decorator. Note that the dispatch happens on the type of the first argument,"
@@ -320,27 +312,27 @@ msgstr ""
320312"汎用関数を定義するには、 ``@singledispatch`` デコレータでデコレートします。ディスパッチは 1 "
321313"つ目の引数の型で行われることに注意して、関数を次のように作成してください::"
322314
323- #: ../../library/functools.rst:288
315+ #: ../../library/functools.rst:289
324316msgid ""
325317"To add overloaded implementations to the function, use the :func:`register` "
326318"attribute of the generic function. It is a decorator. For functions "
327319"annotated with types, the decorator will infer the type of the first "
328320"argument automatically::"
329321msgstr ""
330322
331- #: ../../library/functools.rst:306
323+ #: ../../library/functools.rst:307
332324msgid ""
333325"For code which doesn't use type annotations, the appropriate type argument "
334326"can be passed explicitly to the decorator itself::"
335327msgstr ""
336328
337- #: ../../library/functools.rst:317
329+ #: ../../library/functools.rst:318
338330msgid ""
339331"To enable registering lambdas and pre-existing functions, the "
340332":func:`register` attribute can be used in a functional form::"
341333msgstr ":func:`register` 属性を関数形式で使用すると、lambda 関数と既存の関数の登録を有効にできます::"
342334
343- #: ../../library/functools.rst:325
335+ #: ../../library/functools.rst:326
344336msgid ""
345337"The :func:`register` attribute returns the undecorated function which "
346338"enables decorator stacking, pickling, as well as creating unit tests for "
@@ -349,13 +341,13 @@ msgstr ""
349341" :func:`register` 属性は、デコレートされていない関数を返します。この関数により、複層デコレータ、デコレータの pickle "
350342"化、各変数の独立なユニットテストの作成が可能です::"
351343
352- #: ../../library/functools.rst:339
344+ #: ../../library/functools.rst:340
353345msgid ""
354346"When called, the generic function dispatches on the type of the first "
355347"argument::"
356348msgstr "汎用関数は、呼び出されると 1 つ目の引数の型でディスパッチします::"
357349
358- #: ../../library/functools.rst:359
350+ #: ../../library/functools.rst:360
359351msgid ""
360352"Where there is no registered implementation for a specific type, its method "
361353"resolution order is used to find a more generic implementation. The original"
@@ -366,23 +358,23 @@ msgstr ""
366358"特定の型について登録された実装が存在しない場合、その型のメソッド解決順序が、汎用の実装をさらに検索するために使用されます。``@singledispatch``"
367359" でデコレートされた元の関数は基底の ``object`` 型に登録されます。これは、他によりよい実装が見つからないことを意味します。"
368360
369- #: ../../library/functools.rst:365
361+ #: ../../library/functools.rst:366
370362msgid ""
371363"To check which implementation will the generic function choose for a given "
372364"type, use the ``dispatch()`` attribute::"
373365msgstr "指定された型に対して、汎用関数がどの実装を選択するかを確認するには、``dispatch()`` 属性を使用します::"
374366
375- #: ../../library/functools.rst:373
367+ #: ../../library/functools.rst:374
376368msgid ""
377369"To access all registered implementations, use the read-only ``registry`` "
378370"attribute::"
379371msgstr "登録されたすべての実装にアクセスするには、読み出し専用の ``registry`` 属性を使用します::"
380372
381- #: ../../library/functools.rst:387
373+ #: ../../library/functools.rst:388
382374msgid "The :func:`register` attribute supports using type annotations."
383375msgstr ""
384376
385- #: ../../library/functools.rst:393
377+ #: ../../library/functools.rst:394
386378msgid ""
387379"Update a *wrapper* function to look like the *wrapped* function. The "
388380"optional arguments are tuples to specify which attributes of the original "
@@ -401,7 +393,7 @@ msgstr ""
401393"``__qualname__``, ``__annotations__`` そしてドキュメンテーション文字列 ``__doc__`` に代入する) と "
402394"``WRAPPER_UPDATES`` (これはラッパー関数の ``__dict__`` すなわちインスタンス辞書をアップデートする) です。"
403395
404- #: ../../library/functools.rst:403
396+ #: ../../library/functools.rst:404
405397msgid ""
406398"To allow access to the original function for introspection and other "
407399"purposes (e.g. bypassing a caching decorator such as :func:`lru_cache`), "
@@ -411,7 +403,7 @@ msgstr ""
411403"内観や別の目的 (例えば、 :func:`lru_cache` のようなキャッシュするデコレータの回避) "
412404"のために元の関数にアクセスできるように、この関数はラップされている関数を参照するラッパーに自動的に ``__wrapped__`` 属性を追加します。"
413405
414- #: ../../library/functools.rst:408
406+ #: ../../library/functools.rst:409
415407msgid ""
416408"The main intended use for this function is in :term:`decorator` functions "
417409"which wrap the decorated function and return the wrapper. If the wrapper "
@@ -422,7 +414,7 @@ msgstr ""
422414"この関数は主に関数を包んでラッパーを返す :term:`デコレータ <decorator>` "
423415"関数の中で使われるよう意図されています。もしラッパー関数がアップデートされないとすると、返される関数のメタデータは元の関数の定義ではなくラッパー関数の定義を反映してしまい、これは通常あまり有益ではありません。"
424416
425- #: ../../library/functools.rst:414
417+ #: ../../library/functools.rst:415
426418msgid ""
427419":func:`update_wrapper` may be used with callables other than functions. Any "
428420"attributes named in *assigned* or *updated* that are missing from the object"
@@ -435,19 +427,19 @@ msgstr ""
435427"(すなわち、ラッパー関数にそれらの属性を設定しようとは試みられません)。しかし、 *updated* で指名された属性がラッパー関数自身に存在しないなら"
436428" :exc:`AttributeError` が送出されます。"
437429
438- #: ../../library/functools.rst:420
430+ #: ../../library/functools.rst:421
439431msgid "Automatic addition of the ``__wrapped__`` attribute."
440432msgstr "``__wrapped__`` 属性の自動的な追加。"
441433
442- #: ../../library/functools.rst:423
434+ #: ../../library/functools.rst:424
443435msgid "Copying of the ``__annotations__`` attribute by default."
444436msgstr "デフォルトで ``__annotations__`` 属性がコピーされます。"
445437
446- #: ../../library/functools.rst:426
438+ #: ../../library/functools.rst:427
447439msgid "Missing attributes no longer trigger an :exc:`AttributeError`."
448440msgstr "存在しない属性によって :exc:`AttributeError` を発生しなくなりました。"
449441
450- #: ../../library/functools.rst:429
442+ #: ../../library/functools.rst:430
451443msgid ""
452444"The ``__wrapped__`` attribute now always refers to the wrapped function, "
453445"even if that function defined a ``__wrapped__`` attribute. (see "
@@ -456,7 +448,7 @@ msgstr ""
456448"ラップされた関数が ``__wrapped__`` を定義していない場合でも、 ``__wrapped__`` "
457449"が常にラップされた関数を参照するようになりました。(:issue:`17482` を参照)"
458450
459- #: ../../library/functools.rst:437
451+ #: ../../library/functools.rst:438
460452msgid ""
461453"This is a convenience function for invoking :func:`update_wrapper` as a "
462454"function decorator when defining a wrapper function. It is equivalent to "
@@ -467,7 +459,7 @@ msgstr ""
467459"``partial(update_wrapper, wrapped=wrapped, assigned=assigned, "
468460"updated=updated)`` と等価です。例えば::"
469461
470- #: ../../library/functools.rst:463
462+ #: ../../library/functools.rst:464
471463msgid ""
472464"Without the use of this decorator factory, the name of the example function "
473465"would have been ``'wrapper'``, and the docstring of the original "
@@ -476,39 +468,39 @@ msgstr ""
476468"このデコレータ・ファクトリを使用しないと、上の例中の関数の名前は ``'wrapper'`` となり、元の :func:`example` "
477469"のドキュメンテーション文字列は失われてしまいます。"
478470
479- #: ../../library/functools.rst:471
471+ #: ../../library/functools.rst:472
480472msgid ":class:`partial` Objects"
481473msgstr ":class:`partial` オブジェクト"
482474
483- #: ../../library/functools.rst:473
475+ #: ../../library/functools.rst:474
484476msgid ""
485477":class:`partial` objects are callable objects created by :func:`partial`. "
486478"They have three read-only attributes:"
487479msgstr ""
488480":class:`partial` オブジェクトは、 :func:`partial` "
489481"関数によって作られる呼び出し可能オブジェクトです。オブジェクトには読み出し専用の属性が三つあります:"
490482
491- #: ../../library/functools.rst:479
483+ #: ../../library/functools.rst:480
492484msgid ""
493485"A callable object or function. Calls to the :class:`partial` object will be"
494486" forwarded to :attr:`func` with new arguments and keywords."
495487msgstr ""
496488"呼び出し可能オブジェクトまたは関数です。 :class:`partial` オブジェクトの呼び出しは新しい引数とキーワードと共に "
497489":attr:`func` に転送されます。"
498490
499- #: ../../library/functools.rst:485
491+ #: ../../library/functools.rst:486
500492msgid ""
501493"The leftmost positional arguments that will be prepended to the positional "
502494"arguments provided to a :class:`partial` object call."
503495msgstr "最左の位置引数で、 :class:`partial` オブジェクトの呼び出し時にその呼び出しの際の位置引数の前に追加されます。"
504496
505- #: ../../library/functools.rst:491
497+ #: ../../library/functools.rst:492
506498msgid ""
507499"The keyword arguments that will be supplied when the :class:`partial` object"
508500" is called."
509501msgstr ":class:`partial` オブジェクトの呼び出し時に渡されるキーワード引数です。"
510502
511- #: ../../library/functools.rst:494
503+ #: ../../library/functools.rst:495
512504msgid ""
513505":class:`partial` objects are like :class:`function` objects in that they are"
514506" callable, weak referencable, and can have attributes. There are some "
0 commit comments