Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit15ca5c8

Browse files
author
Autobuild bot on TravisCI
committed
[skip ci] Update .po files
1 parent8d935f7 commit15ca5c8

File tree

2 files changed

+144
-148
lines changed

2 files changed

+144
-148
lines changed

‎library/functools.po

Lines changed: 50 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version:Python 3.6\n"
1313
"Report-Msgid-Bugs-To:\n"
14-
"POT-Creation-Date:2018-10-24 14:42+0900\n"
14+
"POT-Creation-Date:2018-11-26 14:59+0900\n"
1515
"PO-Revision-Date:2018-06-29 17:32+0000\n"
1616
"Last-Translator:tomo🐧, 2018\n"
1717
"Language-Team:Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n"
@@ -69,7 +69,7 @@ msgstr ""
6969
"場合には正の数を返す、あらゆる呼び出し可能オブジェクトです。key "
7070
"関数は呼び出し可能オブジェクトで、1つの引数を受け取り、ソートキーとして使われる値を返します。"
7171

72-
#:../../library/functools.rst:37../../library/functools.rst:221
72+
#:../../library/functools.rst:37../../library/functools.rst:226
7373
msgid"Example::"
7474
msgstr"以下はプログラム例です::"
7575

@@ -153,10 +153,18 @@ msgstr ""
153153
"に最も効率が良くなります。キャッシュのサイズ制限は、キャッシュがウェブサーバーなどの長期間に渡るプロセスにおける限界を超えては大きくならないことを保証します。"
154154

155155
#:../../library/functools.rst:83
156+
msgid""
157+
"In general, the LRU cache should only be used when you want to reuse "
158+
"previously computed values. Accordingly, it doesn't make sense to cache "
159+
"functions with side-effects, functions that need to create distinct mutable "
160+
"objects on each call, or impure functions such as time() or random()."
161+
msgstr""
162+
163+
#:../../library/functools.rst:88
156164
msgid"Example of an LRU cache for static web content::"
157165
msgstr"静的 web コンテンツ の LRU キャッシュの例::"
158166

159-
#:../../library/functools.rst:102
167+
#:../../library/functools.rst:107
160168
msgid""
161169
"Example of efficiently computing `Fibonacci numbers "
162170
"<https://en.wikipedia.org/wiki/Fibonacci_number>`_ using a cache to "
@@ -166,11 +174,11 @@ msgstr ""
166174
"キャッシュを使って `動的計画法 <https://ja.wikipedia.org/wiki/動的計画法>`_ の技法を実装し、`フィボナッチ数 "
167175
"<https://ja.wikipedia.org/wiki/フィボナッチ数>`_ を効率よく計算する例::"
168176

169-
#:../../library/functools.rst:122
177+
#:../../library/functools.rst:127
170178
msgid"Added the *typed* option."
171179
msgstr"*typed* オプションが追加されました。"
172180

173-
#:../../library/functools.rst:127
181+
#:../../library/functools.rst:132
174182
msgid""
175183
"Given a class defining one or more rich comparison ordering methods, this "
176184
"class decorator supplies the rest. This simplifies the effort involved in "
@@ -179,7 +187,7 @@ msgstr ""
179187
"ひとつ以上の拡張順序比較メソッド (rich comparison ordering methods) "
180188
"を定義したクラスを受け取り、残りを実装するクラスデコレータです。このデコレータは全ての拡張順序比較演算をサポートするための労力を軽減します:"
181189

182-
#:../../library/functools.rst:131
190+
#:../../library/functools.rst:136
183191
msgid""
184192
"The class must define one of :meth:`__lt__`, :meth:`__le__`, :meth:`__gt__`,"
185193
" or :meth:`__ge__`. In addition, the class should supply an :meth:`__eq__` "
@@ -188,11 +196,11 @@ msgstr ""
188196
"引数のクラスは、 :meth:`__lt__`, :meth:`__le__`, :meth:`__gt__`, :meth:`__ge__` "
189197
"の中からどれか1つと、 :meth:`__eq__` メソッドを定義する必要があります。"
190198

191-
#:../../library/functools.rst:135
199+
#:../../library/functools.rst:140
192200
msgid"For example::"
193201
msgstr"例えば::"
194202

195-
#:../../library/functools.rst:155
203+
#:../../library/functools.rst:160
196204
msgid""
197205
"While this decorator makes it easy to create well behaved totally ordered "
198206
"types, it *does* come at the cost of slower execution and more complex stack"
@@ -203,13 +211,13 @@ msgstr ""
203211
"このデコレータにより、完全に順序の付いた振る舞いの良い型を簡単に作ることができますが、実行速度は遅くなり、派生した比較メソッドのスタックトレースは複雑になります。性能ベンチマークにより、これがアプリケーションのボトルネックになっていることがわかった場合は、代わりに"
204212
" 6 つの拡張比較メソッドをすべて実装すれば、簡単にスピードアップを図れるでしょう。"
205213

206-
#:../../library/functools.rst:164
214+
#:../../library/functools.rst:169
207215
msgid""
208216
"Returning NotImplemented from the underlying comparison function for "
209217
"unrecognised types is now supported."
210218
msgstr"認識できない型に対して下層の比較関数から NotImplemented を返すことがサポートされるようになりました。"
211219

212-
#:../../library/functools.rst:170
220+
#:../../library/functools.rst:175
213221
msgid""
214222
"Return a new :ref:`partial object<partial-objects>` which when called will "
215223
"behave like *func* called with the positional arguments *args* and keyword "
@@ -218,7 +226,7 @@ msgid ""
218226
"extend and override *keywords*. Roughly equivalent to::"
219227
msgstr""
220228

221-
#:../../library/functools.rst:187
229+
#:../../library/functools.rst:192
222230
msgid""
223231
"The :func:`partial` is used for partial function application which "
224232
"\"freezes\" some portion of a function's arguments and/or keywords resulting"
@@ -231,7 +239,7 @@ msgstr ""
231239
":func:`partial` を使って *base* 引数のデフォルトが 2 である :func:`int` "
232240
"関数のように振る舞う呼び出し可能オブジェクトを作ることができます:"
233241

234-
#:../../library/functools.rst:202
242+
#:../../library/functools.rst:207
235243
msgid""
236244
"Return a new :class:`partialmethod` descriptor which behaves like "
237245
":class:`partial` except that it is designed to be used as a method "
@@ -240,15 +248,15 @@ msgstr ""
240248
":class:`partial` と似た動作をする新しい :class:`partialmethod` 記述子 (デスクリプタ) "
241249
"を返します。直接呼び出しではなく、メソッド定義としての使用が目的であることのみが、partial とは異なります。"
242250

243-
#:../../library/functools.rst:206
251+
#:../../library/functools.rst:211
244252
msgid""
245253
"*func* must be a :term:`descriptor` or a callable (objects which are both, "
246254
"like normal functions, are handled as descriptors)."
247255
msgstr""
248256
"*func* は、:term:`descriptor` または呼び出し可能オブジェクトである必要があります "
249257
"(通常の関数など、両方の性質を持つオブジェクトは記述子として扱われます。)"
250258

251-
#:../../library/functools.rst:209
259+
#:../../library/functools.rst:214
252260
msgid""
253261
"When *func* is a descriptor (such as a normal Python function, "
254262
":func:`classmethod`, :func:`staticmethod`, :func:`abstractmethod` or another"
@@ -257,7 +265,7 @@ msgid ""
257265
"objects>` returned as the result."
258266
msgstr""
259267

260-
#:../../library/functools.rst:215
268+
#:../../library/functools.rst:220
261269
msgid""
262270
"When *func* is a non-descriptor callable, an appropriate bound method is "
263271
"created dynamically. This behaves like a normal Python function when used as"
@@ -269,7 +277,7 @@ msgstr ""
269277
"は、メソッドとして使用された場合、Python の通常の関数と同様に動作します。 :class:`partialmethod` コンストラクタに "
270278
"*args* と *keywords* が渡されるよりも前に、 *self* 引数が最初の位置引数として挿入されます。"
271279

272-
#:../../library/functools.rst:246
280+
#:../../library/functools.rst:251
273281
msgid""
274282
"Apply *function* of two arguments cumulatively to the items of *sequence*, "
275283
"from left to right, so as to reduce the sequence to a single value. For "
@@ -288,18 +296,18 @@ msgstr ""
288296
"が存在する場合、計算の際にイテラブルの先頭に置かれ、またイテラブルが空の場合のデフォルトになります。*initializer* "
289297
"が与えられておらず、*iterable* が単一の要素しか持っていない場合、最初の要素が返されます。"
290298

291-
#:../../library/functools.rst:255
299+
#:../../library/functools.rst:260
292300
msgid"Roughly equivalent to::"
293301
msgstr"およそ次と等価です::"
294302

295-
#:../../library/functools.rst:270
303+
#:../../library/functools.rst:275
296304
msgid""
297305
"Transform a function into a :term:`single-dispatch <single dispatch>` "
298306
":term:`generic function`."
299307
msgstr""
300308
"関数を :term:`シングルディスパッチ <single dispatch>` :term:`generic function` に変換します。"
301309

302-
#:../../library/functools.rst:273
310+
#:../../library/functools.rst:278
303311
msgid""
304312
"To define a generic function, decorate it with the ``@singledispatch`` "
305313
"decorator. Note that the dispatch happens on the type of the first argument,"
@@ -308,7 +316,7 @@ msgstr ""
308316
"汎用関数を定義するには、 ``@singledispatch`` デコレータでデコレートします。ディスパッチは 1 "
309317
"つ目の引数の型で行われることに注意して、関数を次のように作成してください::"
310318

311-
#:../../library/functools.rst:284
319+
#:../../library/functools.rst:289
312320
msgid""
313321
"To add overloaded implementations to the function, use the :func:`register` "
314322
"attribute of the generic function. It is a decorator, taking a type "
@@ -318,13 +326,13 @@ msgstr ""
318326
"関数にオーバーロード実装を追加するには、汎用関数の :func:`register` "
319327
"属性を使用します。この属性は、型引数を取り、その型の操作を実装する関数をデコレートするデコレータです::"
320328

321-
#:../../library/functools.rst:302
329+
#:../../library/functools.rst:307
322330
msgid""
323331
"To enable registering lambdas and pre-existing functions, the "
324332
":func:`register` attribute can be used in a functional form::"
325333
msgstr":func:`register` 属性を関数形式で使用すると、lambda 関数と既存の関数の登録を有効にできます::"
326334

327-
#:../../library/functools.rst:310
335+
#:../../library/functools.rst:315
328336
msgid""
329337
"The :func:`register` attribute returns the undecorated function which "
330338
"enables decorator stacking, pickling, as well as creating unit tests for "
@@ -333,13 +341,13 @@ msgstr ""
333341
" :func:`register` 属性は、デコレートされていない関数を返します。この関数により、複層デコレータ、デコレータの pickle "
334342
"化、各変数の独立なユニットテストの作成が可能です::"
335343

336-
#:../../library/functools.rst:324
344+
#:../../library/functools.rst:329
337345
msgid""
338346
"When called, the generic function dispatches on the type of the first "
339347
"argument::"
340348
msgstr"汎用関数は、呼び出されると 1 つ目の引数の型でディスパッチします::"
341349

342-
#:../../library/functools.rst:344
350+
#:../../library/functools.rst:349
343351
msgid""
344352
"Where there is no registered implementation for a specific type, its method "
345353
"resolution order is used to find a more generic implementation. The original"
@@ -350,19 +358,19 @@ msgstr ""
350358
"特定の型について登録された実装が存在しない場合、その型のメソッド解決順序が、汎用の実装をさらに検索するために使用されます。``@singledispatch``"
351359
" でデコレートされた元の関数は基底の ``object`` 型に登録されます。これは、他によりよい実装が見つからないことを意味します。"
352360

353-
#:../../library/functools.rst:350
361+
#:../../library/functools.rst:355
354362
msgid""
355363
"To check which implementation will the generic function choose for a given "
356364
"type, use the ``dispatch()`` attribute::"
357365
msgstr"指定された型に対して、汎用関数がどの実装を選択するかを確認するには、``dispatch()`` 属性を使用します::"
358366

359-
#:../../library/functools.rst:358
367+
#:../../library/functools.rst:363
360368
msgid""
361369
"To access all registered implementations, use the read-only ``registry`` "
362370
"attribute::"
363371
msgstr"登録されたすべての実装にアクセスするには、読み出し専用の ``registry`` 属性を使用します::"
364372

365-
#:../../library/functools.rst:375
373+
#:../../library/functools.rst:380
366374
msgid""
367375
"Update a *wrapper* function to look like the *wrapped* function. The "
368376
"optional arguments are tuples to specify which attributes of the original "
@@ -381,7 +389,7 @@ msgstr ""
381389
"``__qualname__``, ``__annotations__`` そしてドキュメンテーション文字列 ``__doc__`` に代入する) と "
382390
"``WRAPPER_UPDATES`` (これはラッパー関数の ``__dict__`` すなわちインスタンス辞書をアップデートする) です。"
383391

384-
#:../../library/functools.rst:385
392+
#:../../library/functools.rst:390
385393
msgid""
386394
"To allow access to the original function for introspection and other "
387395
"purposes (e.g. bypassing a caching decorator such as :func:`lru_cache`), "
@@ -391,7 +399,7 @@ msgstr ""
391399
"内観や別の目的 (例えば、 :func:`lru_cache` のようなキャッシュするデコレータの回避) "
392400
"のために元の関数にアクセスできるように、この関数はラップされている関数を参照するラッパーに自動的に ``__wrapped__`` 属性を追加します。"
393401

394-
#:../../library/functools.rst:390
402+
#:../../library/functools.rst:395
395403
msgid""
396404
"The main intended use for this function is in :term:`decorator` functions "
397405
"which wrap the decorated function and return the wrapper. If the wrapper "
@@ -402,7 +410,7 @@ msgstr ""
402410
"この関数は主に関数を包んでラッパーを返す :term:`デコレータ <decorator>` "
403411
"関数の中で使われるよう意図されています。もしラッパー関数がアップデートされないとすると、返される関数のメタデータは元の関数の定義ではなくラッパー関数の定義を反映してしまい、これは通常あまり有益ではありません。"
404412

405-
#:../../library/functools.rst:396
413+
#:../../library/functools.rst:401
406414
msgid""
407415
":func:`update_wrapper` may be used with callables other than functions. Any "
408416
"attributes named in *assigned* or *updated* that are missing from the object"
@@ -415,19 +423,19 @@ msgstr ""
415423
"(すなわち、ラッパー関数にそれらの属性を設定しようとは試みられません)。しかし、 *updated* で指名された属性がラッパー関数自身に存在しないなら"
416424
" :exc:`AttributeError` が送出されます。"
417425

418-
#:../../library/functools.rst:402
426+
#:../../library/functools.rst:407
419427
msgid"Automatic addition of the ``__wrapped__`` attribute."
420428
msgstr"``__wrapped__`` 属性の自動的な追加。"
421429

422-
#:../../library/functools.rst:405
430+
#:../../library/functools.rst:410
423431
msgid"Copying of the ``__annotations__`` attribute by default."
424432
msgstr"デフォルトで ``__annotations__`` 属性がコピーされます。"
425433

426-
#:../../library/functools.rst:408
434+
#:../../library/functools.rst:413
427435
msgid"Missing attributes no longer trigger an :exc:`AttributeError`."
428436
msgstr"存在しない属性によって :exc:`AttributeError` を発生しなくなりました。"
429437

430-
#:../../library/functools.rst:411
438+
#:../../library/functools.rst:416
431439
msgid""
432440
"The ``__wrapped__`` attribute now always refers to the wrapped function, "
433441
"even if that function defined a ``__wrapped__`` attribute. (see "
@@ -436,7 +444,7 @@ msgstr ""
436444
"ラップされた関数が ``__wrapped__`` を定義していない場合でも、 ``__wrapped__`` "
437445
"が常にラップされた関数を参照するようになりました。(:issue:`17482` を参照)"
438446

439-
#:../../library/functools.rst:419
447+
#:../../library/functools.rst:424
440448
msgid""
441449
"This is a convenience function for invoking :func:`update_wrapper` as a "
442450
"function decorator when defining a wrapper function. It is equivalent to "
@@ -447,7 +455,7 @@ msgstr ""
447455
"``partial(update_wrapper, wrapped=wrapped, assigned=assigned, "
448456
"updated=updated)`` と等価です。例えば::"
449457

450-
#:../../library/functools.rst:445
458+
#:../../library/functools.rst:450
451459
msgid""
452460
"Without the use of this decorator factory, the name of the example function "
453461
"would have been ``'wrapper'``, and the docstring of the original "
@@ -456,39 +464,39 @@ msgstr ""
456464
"このデコレータ・ファクトリを使用しないと、上の例中の関数の名前は ``'wrapper'`` となり、元の :func:`example` "
457465
"のドキュメンテーション文字列は失われてしまいます。"
458466

459-
#:../../library/functools.rst:453
467+
#:../../library/functools.rst:458
460468
msgid":class:`partial` Objects"
461469
msgstr":class:`partial` オブジェクト"
462470

463-
#:../../library/functools.rst:455
471+
#:../../library/functools.rst:460
464472
msgid""
465473
":class:`partial` objects are callable objects created by :func:`partial`. "
466474
"They have three read-only attributes:"
467475
msgstr""
468476
":class:`partial` オブジェクトは、 :func:`partial` "
469477
"関数によって作られる呼び出し可能オブジェクトです。オブジェクトには読み出し専用の属性が三つあります:"
470478

471-
#:../../library/functools.rst:461
479+
#:../../library/functools.rst:466
472480
msgid""
473481
"A callable object or function. Calls to the :class:`partial` object will be"
474482
" forwarded to :attr:`func` with new arguments and keywords."
475483
msgstr""
476484
"呼び出し可能オブジェクトまたは関数です。 :class:`partial` オブジェクトの呼び出しは新しい引数とキーワードと共に "
477485
":attr:`func` に転送されます。"
478486

479-
#:../../library/functools.rst:467
487+
#:../../library/functools.rst:472
480488
msgid""
481489
"The leftmost positional arguments that will be prepended to the positional "
482490
"arguments provided to a :class:`partial` object call."
483491
msgstr"最左の位置引数で、 :class:`partial` オブジェクトの呼び出し時にその呼び出しの際の位置引数の前に追加されます。"
484492

485-
#:../../library/functools.rst:473
493+
#:../../library/functools.rst:478
486494
msgid""
487495
"The keyword arguments that will be supplied when the :class:`partial` object"
488496
" is called."
489497
msgstr":class:`partial` オブジェクトの呼び出し時に渡されるキーワード引数です。"
490498

491-
#:../../library/functools.rst:476
499+
#:../../library/functools.rst:481
492500
msgid""
493501
":class:`partial` objects are like :class:`function` objects in that they are"
494502
" callable, weak referencable, and can have attributes. There are some "

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp