Skip to content

Commit 06a3f25

Browse files
author
github-actions
committed
Update translations from Transifex
1 parent 7cb5849 commit 06a3f25

File tree

3 files changed

+57
-2
lines changed

3 files changed

+57
-2
lines changed

faq/general.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.11\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2023-01-06 14:14+0000\n"
17+
"POT-Creation-Date: 2023-01-27 14:14+0000\n"
1818
"PO-Revision-Date: 2021-06-28 00:52+0000\n"
1919
"Last-Translator: 菊池 健志, 2023\n"
2020
"Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/"

faq/programming.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.11\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2023-01-06 14:14+0000\n"
17+
"POT-Creation-Date: 2023-01-27 14:14+0000\n"
1818
"PO-Revision-Date: 2021-06-28 00:52+0000\n"
1919
"Last-Translator: 菊池 健志, 2023\n"
2020
"Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/"

library/functions.po

+55
Original file line numberDiff line numberDiff line change
@@ -3044,6 +3044,14 @@ msgid ""
30443044
"mixed type comparisons which can call reflected the :meth:`~object.__gt__` "
30453045
"method."
30463046
msgstr ""
3047+
"ソートアルゴリズムは、要素間の比較に ``<`` 演算子だけを使います。したがって"
3048+
"ソートのためには :meth:`~object.__lt__` メソッドを定義すれば十分なはずです"
3049+
"が、 :PEP:`8` は6つの :ref:`比較演算子 <comparisons>` を全て実装することを推"
3050+
"奨しています。これにより、異なるメソッドを必要とする :func:`max` のような他の"
3051+
"ソートツールを、同じデータに対して適用することによって起こりうるバグを避ける"
3052+
"助けになります。6つの比較演算子を全て実装することは、リフレクションによって :"
3053+
"meth:`~object.__gt__` メソッドを呼び出す可能性のある型混合の比較での混乱を避"
3054+
"けることにも役立ちます。 "
30473055

30483056
#: ../../library/functions.rst:1668
30493057
msgid ""
@@ -3077,6 +3085,9 @@ msgid ""
30773085
"an instance (such as ``C().f()``). Moreover, they can be called as regular "
30783086
"functions (such as ``f()``)."
30793087
msgstr ""
3088+
"静的メソッドは (``C.f()`` のように) クラスに対して呼び出すことも、 (``C()."
3089+
"f()`` のように) インスタンスに対して呼び出すこともできます。さらに、 "
3090+
"(``f()`` のように) 普通の関数として呼び出すこともできます。"
30803091

30813092
#: ../../library/functions.rst:1688
30823093
msgid ""
@@ -3112,6 +3123,10 @@ msgid ""
31123123
"``__name__``, ``__qualname__``, ``__doc__`` and ``__annotations__``), have a "
31133124
"new ``__wrapped__`` attribute, and are now callable as regular functions."
31143125
msgstr ""
3126+
"静的メソッドはメソッド属性 (``__module__``, ``__name__``, ``__qualname__``, "
3127+
"``__doc__`` そして ``__annotations__``) を継承するようになり、また新たに "
3128+
"``__wrapped__`` 属性を持つようになりました。さらに、静的メソッドを通常の関数"
3129+
"として呼び出すことができるようになりました。"
31153130

31163131
#: ../../library/functions.rst:1721
31173132
msgid ""
@@ -3172,13 +3187,18 @@ msgid ""
31723187
"The *object_or_type* determines the :term:`method resolution order` to be "
31733188
"searched. The search starts from the class right after the *type*."
31743189
msgstr ""
3190+
"*object_or_type* はメソッドの検索のための :term:`method resolution order` (メ"
3191+
"ソッド解決順序) を決定します。検索は *type* 直後のクラスから開始します。"
31753192

31763193
#: ../../library/functions.rst:1753
31773194
msgid ""
31783195
"For example, if :attr:`~class.__mro__` of *object_or_type* is ``D -> B -> C -"
31793196
"> A -> object`` and the value of *type* is ``B``, then :func:`super` "
31803197
"searches ``C -> A -> object``."
31813198
msgstr ""
3199+
"例えば *object_or_type* の :attr:`~class.__mro__` 属性が ``D -> B -> C -> A -"
3200+
"> object`` であり、 *type* の値が ``B`` だとすると、 :func:`super` は ``C -> "
3201+
"A -> object`` の順番でメソッドを検索します。"
31823202

31833203
#: ../../library/functions.rst:1757
31843204
msgid ""
@@ -3227,6 +3247,14 @@ msgid ""
32273247
"changes in the class hierarchy, and because that order can include sibling "
32283248
"classes that are unknown prior to runtime)."
32293249
msgstr ""
3250+
"2つ目の用途は動的な実行環境において協調的 (cooperative) な多重継承をサポート"
3251+
"することです。これは Python に特有の用途で、静的にコンパイルされる言語や、単"
3252+
"継承のみをサポートする言語には見られないものです。この機能により、同じ名前の"
3253+
"メソッドを実装する複数の基底クラスを使った \"ダイヤモンド型* の継承構造を実装"
3254+
"することができます。良い設計は、そのような実装において、どのような場合でも同"
3255+
"じ呼び出しシグネチャを持つように強制します。 (理由は呼び出しの順序が実行時に"
3256+
"決定されること、呼び出し順序はクラス階層構造の変化に順応すること、そして呼び"
3257+
"出し順序が実行時まで未知の兄弟クラスが含まれる場合があることです)。"
32303258

32313259
#: ../../library/functions.rst:1782
32323260
msgid "For both use cases, a typical superclass call looks like this::"
@@ -3239,6 +3267,9 @@ msgid ""
32393267
"lookups. One possible use case for this is calling :term:`descriptors "
32403268
"<descriptor>` in a parent or sibling class."
32413269
msgstr ""
3270+
"メソッドのルックアップに加えて、 :func:`super` は属性のルックアップに対しても"
3271+
"同様に動作します。考えうる用途のひとつは親クラスや兄弟クラスの :term:"
3272+
"`descriptors <descriptor>` (デスクリプタ) を呼び出すことです。"
32423273

32433274
#: ../../library/functions.rst:1793
32443275
msgid ""
@@ -3319,6 +3350,14 @@ msgid ""
33193350
"the :attr:`~object.__dict__` attribute. The following two statements create "
33203351
"identical :class:`type` objects:"
33213352
msgstr ""
3353+
"引数が3つの場合、新しい型オブジェクトを返します。これは本質的には :keyword:"
3354+
"`class` 文の動的な書式です。 *name* 文字列はクラス名で、 :attr:`~definition."
3355+
"__name__` 属性になります。 *bases* 基底クラスのタプルで、 :attr:`~class."
3356+
"__bases__` 属性になります; 空の場合は全てのクラスの基底クラスである :class:"
3357+
"`object` が追加されます。 *dict* は、クラス本体の属性とメソッドの定義を含む辞"
3358+
"書です; 辞書は :attr:`~object.__dict__` 属性になる前にコピーされたり、ラップ"
3359+
"されることがあります。以下の2つの文は同じ :class:`type` オブジェクトを生成し"
3360+
"ます:"
33223361

33233362
#: ../../library/functions.rst:1849
33243363
msgid "See also :ref:`bltin-type-objects`."
@@ -3331,6 +3370,9 @@ msgid ""
33313370
"in the same way that keywords in a class definition (besides *metaclass*) "
33323371
"would."
33333372
msgstr ""
3373+
"三引数形式の呼び出しに与えられたキーワード引数は、(*metaclass* を除く) クラス"
3374+
"定義におけるキーワード引数と同様に、適切なメタクラスの機構 (通常は :meth:"
3375+
"`~object.__init_subclass__`) に渡されます。"
33343376

33353377
#: ../../library/functions.rst:1856
33363378
msgid "See also :ref:`class-customization`."
@@ -3382,12 +3424,17 @@ msgid ""
33823424
"doesn't have a :attr:`~object.__dict__` attribute (for example, if its class "
33833425
"defines the :attr:`~object.__slots__` attribute)."
33843426
msgstr ""
3427+
"指定されたオブジェクトに :attr:`~object.__dict__` 属性がない場合 (たとえばそ"
3428+
"のクラスが :attr:`~object.__slots__` 属性を定義している場合)、 :exc:"
3429+
"`TypeError` 例外が送出されます。"
33853430

33863431
#: ../../library/functions.rst:1883
33873432
msgid ""
33883433
"Iterate over several iterables in parallel, producing tuples with an item "
33893434
"from each one."
33903435
msgstr ""
3436+
"複数のイテラブルを並行に反復処理し、各イテラブルの要素からなるタプルを生成し"
3437+
"ます。"
33913438

33923439
#: ../../library/functions.rst:1886
33933440
msgid "Example::"
@@ -3398,20 +3445,28 @@ msgid ""
33983445
"More formally: :func:`zip` returns an iterator of tuples, where the *i*-th "
33993446
"tuple contains the *i*-th element from each of the argument iterables."
34003447
msgstr ""
3448+
"より正式な定義: :func:`zip` は、 *i* 番目のタプルが 引数に与えた各イテラブル"
3449+
"の *i* 番目の要素を含むような、タプルのイテレータを返します。"
34013450

34023451
#: ../../library/functions.rst:1898
34033452
msgid ""
34043453
"Another way to think of :func:`zip` is that it turns rows into columns, and "
34053454
"columns into rows. This is similar to `transposing a matrix <https://en."
34063455
"wikipedia.org/wiki/Transpose>`_."
34073456
msgstr ""
3457+
":func:`zip` に対する別の考え方は、この関数は行を列に、また列を行に変換すると"
3458+
"いうことです。これは `行列の転置 <https://en.wikipedia.org/wiki/Transpose>`_ "
3459+
"とよく似ています。"
34083460

34093461
#: ../../library/functions.rst:1902
34103462
msgid ""
34113463
":func:`zip` is lazy: The elements won't be processed until the iterable is "
34123464
"iterated on, e.g. by a :keyword:`!for` loop or by wrapping in a :class:"
34133465
"`list`."
34143466
msgstr ""
3467+
":func:`zip` は遅延評価です: イテラブルが :keyword:`!for` ループに渡された"
3468+
"り、 :class:`list` でラップされたりするなどして反復処理されるまで、要素が実際"
3469+
"に処理されることはありません。"
34153470

34163471
#: ../../library/functions.rst:1906
34173472
msgid ""

0 commit comments

Comments
 (0)