4
4
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
#
6
6
# Translators:
7
- # Takanori Suzuki <[email protected] >, 2021
8
7
# tomo, 2022
9
8
# Takeshi Nakazato, 2022
10
9
# souma987, 2023
11
10
# TENMYO Masakazu, 2024
12
11
# 石井明久, 2024
12
+ # Takanori Suzuki <[email protected] >, 2024
13
13
#
14
14
#, fuzzy
15
15
msgid ""
16
16
msgstr ""
17
17
"Project-Id-Version : Python 3.13\n "
18
18
"Report-Msgid-Bugs-To : \n "
19
- "POT-Creation-Date : 2024-08-03 20 :15+0000\n "
19
+ "POT-Creation-Date : 2024-08-16 14 :15+0000\n "
20
20
"PO-Revision-Date : 2021-06-28 00:56+0000\n "
21
- "Last-Translator : 石井明久 , 2024\n "
21
+ "
Last-Translator :
Takanori Suzuki <[email protected] > , 2024\n"
22
22
"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
23
23
"ja/)\n "
24
24
"MIME-Version : 1.0\n "
@@ -95,6 +95,11 @@ msgid ""
95
95
"`reversed` function automatically fall back to using ``__getitem__`` and "
96
96
"``__len__``."
97
97
msgstr ""
98
+ "この例では、クラス :class:`!D` は ``__contains__``, ``__iter__``, "
99
+ "``__reversed__`` を定義する必要がありません。なぜなら :ref:`in 演算子 "
100
+ "<comparisons>`, the :term:`反復 <iterable>` ロジック, および :func:"
101
+ "`reversed` 関数は自動的に ``__getitem__`` と ``__len__`` を使うようにフォール"
102
+ "バックするからです。"
98
103
99
104
#: ../../library/collections.abc.rst:82
100
105
msgid ""
@@ -277,6 +282,8 @@ msgid ""
277
282
"Inherited :class:`Sequence` methods and ``append``, ``clear``, ``reverse``, "
278
283
"``extend``, ``pop``, ``remove``, and ``__iadd__``"
279
284
msgstr ""
285
+ ":class:`Sequence` から継承したメソッドと、 ``append``, ``clear``, "
286
+ "``reverse``, ``extend``, ``pop``, ``remove``, ``__iadd__``"
280
287
281
288
#: ../../library/collections.abc.rst:144
282
289
msgid ":class:`ByteString`"
@@ -443,11 +450,11 @@ msgstr "``aclose``, ``__aiter__``, ``__anext__``"
443
450
444
451
#: ../../library/collections.abc.rst:180
445
452
msgid ":class:`Buffer` [1]_"
446
- msgstr ""
453
+ msgstr ":class:`Buffer` [1]_ "
447
454
448
455
#: ../../library/collections.abc.rst:180
449
456
msgid "``__buffer__``"
450
- msgstr ""
457
+ msgstr "``__buffer__`` "
451
458
452
459
#: ../../library/collections.abc.rst:185
453
460
msgid "Footnotes"
@@ -460,6 +467,11 @@ msgid ""
460
467
"set to :const:`None`. This only works for simple interfaces. More complex "
461
468
"interfaces require registration or direct subclassing."
462
469
msgstr ""
470
+ "これらの抽象基底クラスは :meth:`~abc.ABCMeta.__subclasshook__` をオーバーライ"
471
+ "ドして、必要なメソッドが存在し、かつ :const:`None` に指定されていないことを確"
472
+ "かめることによってインターフェースをテストすることをサポートします。このテス"
473
+ "トは単純なインターフェースに対してのみ有効に働きます。より複雑なインター"
474
+ "フェースは基底クラスへの登録や直接派生することが必要になります。"
463
475
464
476
#: ../../library/collections.abc.rst:192
465
477
msgid ""
@@ -469,30 +481,35 @@ msgid ""
469
481
"method. The only reliable way to determine whether an object is :term:"
470
482
"`iterable` is to call ``iter(obj)``."
471
483
msgstr ""
484
+ "``isinstance(obj, Iterable)`` によるチェックは :class:`Iterable` として登録さ"
485
+ "れたクラスや :meth:`~container.__iter__` メソッドを持つクラスを検出します"
486
+ "が、 :meth:`~object.__getitem__` メソッドにより反復処理を行うクラスは検出しま"
487
+ "せん。オブジェクトがイテラブル (:term:`iterable`) かどうかを確認する唯一の信"
488
+ "頼できる方法は ``iter(obj)`` を呼び出すことです。"
472
489
473
490
#: ../../library/collections.abc.rst:200
474
491
msgid "Collections Abstract Base Classes -- Detailed Descriptions"
475
492
msgstr "コレクションの抽象基底クラス -- 詳細な説明"
476
493
477
494
#: ../../library/collections.abc.rst:205
478
495
msgid "ABC for classes that provide the :meth:`~object.__contains__` method."
479
- msgstr ""
496
+ msgstr ":meth:`~object.__contains__` メソッドを提供するクラスの ABC です。 "
480
497
481
498
#: ../../library/collections.abc.rst:209
482
499
msgid "ABC for classes that provide the :meth:`~object.__hash__` method."
483
- msgstr ""
500
+ msgstr ":meth:`~object.__hash__` メソッドを提供するクラスの ABC です。 "
484
501
485
502
#: ../../library/collections.abc.rst:213
486
503
msgid "ABC for classes that provide the :meth:`~object.__len__` method."
487
- msgstr ""
504
+ msgstr ":meth:`~object.__len__` メソッドを提供するクラスの ABC です。 "
488
505
489
506
#: ../../library/collections.abc.rst:217
490
507
msgid "ABC for classes that provide the :meth:`~object.__call__` method."
491
- msgstr ""
508
+ msgstr ":meth:`~object.__call__` メソッドを提供するクラスの ABC です。 "
492
509
493
510
#: ../../library/collections.abc.rst:221
494
511
msgid "ABC for classes that provide the :meth:`~container.__iter__` method."
495
- msgstr ""
512
+ msgstr ":meth:`~container.__iter__` メソッドを提供するクラスの ABC です。 "
496
513
497
514
#: ../../library/collections.abc.rst:223
498
515
msgid ""
@@ -502,6 +519,11 @@ msgid ""
502
519
"method. The only reliable way to determine whether an object is :term:"
503
520
"`iterable` is to call ``iter(obj)``."
504
521
msgstr ""
522
+ "``isinstance(obj, Iterable)`` によるチェックは :class:`Iterable` として登録さ"
523
+ "れたクラスや :meth:`~container.__iter__` メソッドを持つクラスを検出します"
524
+ "が、 :meth:`~object.__getitem__` メソッドにより反復処理を行うクラスは検出しま"
525
+ "せん。オブジェクトがイテラブル (:term:`iterable`) かどうかを確認する唯一の信"
526
+ "頼できる方法は ``iter(obj)`` を呼び出すことです。"
505
527
506
528
#: ../../library/collections.abc.rst:232
507
529
msgid "ABC for sized iterable container classes."
@@ -520,6 +542,7 @@ msgid ""
520
542
"ABC for iterable classes that also provide the :meth:`~object.__reversed__` "
521
543
"method."
522
544
msgstr ""
545
+ ":meth:`~object.__reversed__` メソッドを提供するイテラブルクラスの ABC です。"
523
546
524
547
#: ../../library/collections.abc.rst:251
525
548
msgid ""
@@ -528,6 +551,10 @@ msgid ""
528
551
"`~generator.send`, :meth:`~generator.throw` and :meth:`~generator.close` "
529
552
"methods."
530
553
msgstr ""
554
+ ":pep:`342` で定義された、:term:`イテレータ <iterator>` を :meth:`~generator."
555
+ "send`, :meth:`~generator.throw`, :meth:`~generator.close` の各メソッドに拡張"
556
+ "するプロトコルを実装する、:term:`ジェネレータ <generator>` クラスの ABC で"
557
+ "す。"
531
558
532
559
#: ../../library/collections.abc.rst:262
533
560
msgid "ABCs for read-only and mutable :term:`sequences <sequence>`."
@@ -545,6 +572,13 @@ msgid ""
545
572
"method is linear (as it would be with a linked list), the mixins will have "
546
573
"quadratic performance and will likely need to be overridden."
547
574
msgstr ""
575
+ "実装における注意: :meth:`~container.__iter__`, :meth:`~object."
576
+ "__reversed__`, :meth:`index` など、一部の mixin メソッドは、下層の :meth:"
577
+ "`~object.__getitem__` メソッドを繰り返し呼び出します。その結果、:meth:"
578
+ "`~object.__getitem__` が定数のアクセス速度で実装されている場合、mixin メソッ"
579
+ "ドは線形のパフォーマンスとなります。下層のメソッドが線形 (リンクされたリスト"
580
+ "の場合など) の場合、mixin は 2 乗のパフォーマンスとなるため、多くの場合上書き"
581
+ "する必要があるでしょう。"
548
582
549
583
#: ../../library/collections.abc.rst:273
550
584
msgid "The index() method added support for *stop* and *start* arguments."
@@ -556,10 +590,14 @@ msgid ""
556
590
"union, like ``bytes | bytearray``, or :class:`collections.abc.Buffer`. For "
557
591
"use as an ABC, prefer :class:`Sequence` or :class:`collections.abc.Buffer`."
558
592
msgstr ""
593
+ "ABCの :class:`ByteString` は非推奨になりました。型ヒントでは ``bytes | "
594
+ "bytearray`` のようなユニオン型または :class:`collections.abc.Buffer` を使用し"
595
+ "てください。ABCとしての場合は :class:`Sequence` または :class:`collections."
596
+ "abc.Buffer` を使用してください。"
559
597
560
598
#: ../../library/collections.abc.rst:286
561
599
msgid "ABCs for read-only and mutable :ref:`sets <types-set>`."
562
- msgstr ""
600
+ msgstr "読み出し専用でミュータブルな :ref:`集合 <types-set>` の ABC です。 "
563
601
564
602
#: ../../library/collections.abc.rst:291
565
603
msgid "ABCs for read-only and mutable :term:`mappings <mapping>`."
@@ -579,6 +617,8 @@ msgid ""
579
617
"expressions. Custom implementations must provide the :meth:`~object."
580
618
"__await__` method."
581
619
msgstr ""
620
+ ":keyword:`await` で使用できる :term:`awaitable` オブジェクトの ABC です。カス"
621
+ "タムの実装は、:meth:`~object.__await__` メソッドを提供しなければなりません。"
582
622
583
623
#: ../../library/collections.abc.rst:306
584
624
msgid ""
@@ -596,6 +636,12 @@ msgid ""
596
636
"``isinstance(gencoro, Awaitable)`` for them will return ``False``. Use :func:"
597
637
"`inspect.isawaitable` to detect them."
598
638
msgstr ""
639
+ "CPython では、ジェネレータベースのコルーチン (:func:`@types.coroutine <types."
640
+ "coroutine>` で修飾された :term:`ジェネレータ <generator>`) は、 :meth:"
641
+ "`~object.__await__` メソッドを持たないにもかかわらず*待機可能* "
642
+ "(*awaitables*) です。 ``isinstance(gencoro, Awaitable)`` はそのようなコルーチ"
643
+ "ンに対して ``False`` を返します。そのようなコルーチンを検出するためには :"
644
+ "func:`inspect.isawaitable` を使ってください。"
599
645
600
646
#: ../../library/collections.abc.rst:320
601
647
msgid ""
@@ -605,6 +651,12 @@ msgid ""
605
651
"must also implement :meth:`~object.__await__`. All :class:`Coroutine` "
606
652
"instances are also instances of :class:`Awaitable`."
607
653
msgstr ""
654
+ ":term:`コルーチン <coroutine>` と互換性のあるクラスの ABC です。これらは、:"
655
+ "ref:`coroutine-objects` で定義された :meth:`~coroutine.send`, :meth:"
656
+ "`~coroutine.throw`, :meth:`~coroutine.close` のメソッドを実装します。カスタム"
657
+ "の実装は、:meth:`~object.__await__` も実装しなければなりません。:class:"
658
+ "`Coroutine` のすべてのインスタンスは、 :class:`Awaitable` のインスタンスでも"
659
+ "あります。"
608
660
609
661
#: ../../library/collections.abc.rst:328
610
662
msgid ""
@@ -614,12 +666,20 @@ msgid ""
614
666
"``isinstance(gencoro, Coroutine)`` for them will return ``False``. Use :func:"
615
667
"`inspect.isawaitable` to detect them."
616
668
msgstr ""
669
+ "CPython では、ジェネレータベースのコルーチン (:func:`@types.coroutine <types."
670
+ "coroutine>` で修飾された :term:`ジェネレータ <generator>`) は、 :meth:"
671
+ "`~object.__await__` メソッドを持たないにもかかわらず*待機可能* "
672
+ "(*awaitables*) です。 ``isinstance(gencoro, Coroutine)`` はそのようなコルーチ"
673
+ "ンに対して ``False`` を返します。そのようなコルーチンを検出するためには :"
674
+ "func:`inspect.isawaitable` を使ってください。"
617
675
618
676
#: ../../library/collections.abc.rst:338
619
677
msgid ""
620
678
"ABC for classes that provide an ``__aiter__`` method. See also the "
621
679
"definition of :term:`asynchronous iterable`."
622
680
msgstr ""
681
+ "``__aiter__`` メソッドを提供するクラスの ABC です。:term:`asynchronous "
682
+ "iterable` の定義も参照してください。"
623
683
624
684
#: ../../library/collections.abc.rst:345
625
685
msgid ""
@@ -634,12 +694,16 @@ msgid ""
634
694
"ABC for :term:`asynchronous generator` classes that implement the protocol "
635
695
"defined in :pep:`525` and :pep:`492`."
636
696
msgstr ""
697
+ ":pep:`525` と :pep:`492` に定義されているプロトコルを実装した :term:`非同期"
698
+ "ジェネレータ <asynchronous generator>` クラスの ABC です。"
637
699
638
700
#: ../../library/collections.abc.rst:359
639
701
msgid ""
640
702
"ABC for classes that provide the :meth:`~object.__buffer__` method, "
641
703
"implementing the :ref:`buffer protocol <bufferobjects>`. See :pep:`688`."
642
704
msgstr ""
705
+ ":ref:`buffer protocol <bufferobjects>` を実装する :meth:`~object.__buffer__` "
706
+ "メソッドを提供するクラスのABCです。:pep:`688` を参照してください。"
643
707
644
708
#: ../../library/collections.abc.rst:365
645
709
msgid "Examples and Recipes"
@@ -662,6 +726,11 @@ msgid ""
662
726
"__iter__`, and :meth:`~object.__len__`. The ABC supplies the remaining "
663
727
"methods such as :meth:`!__and__` and :meth:`~frozenset.isdisjoint`::"
664
728
msgstr ""
729
+ "幾つかの ABC はコンテナ型 API を提供するクラスを開発するのを助ける mixin 型と"
730
+ "しても使えます。例えば、 :class:`Set` API を提供するクラスを作る場合、3つの基"
731
+ "本になる抽象メソッド :meth:`~object.__contains__`, :meth:`~container."
732
+ "__iter__`, :meth:`~object.__len__` だけが必要です。ABC が残りの :meth:`!"
733
+ "__and__` や :meth:`~frozenset.isdisjoint` といったメソッドを提供します::"
665
734
666
735
#: ../../library/collections.abc.rst:403
667
736
msgid "Notes on using :class:`Set` and :class:`MutableSet` as a mixin:"
@@ -680,13 +749,24 @@ msgid ""
680
749
"classmethod or regular method that can construct new instances from an "
681
750
"iterable argument."
682
751
msgstr ""
752
+ "幾つかの set の操作は新しい set を作るので、デフォルトの mixin メソッドは :"
753
+ "term:`イテラブル <iterable>` から新しいインスタンスを作成する方法を必要としま"
754
+ "す。クラスのコンストラクタは ``ClassName(iterable)`` の形のシグネチャを持つと"
755
+ "仮定されます。内部の :meth:`!_from_iterable` という :class:`classmethod` が "
756
+ "``cls(iterable)`` を呼び出して新しい set を作る部分でこの仮定が使われていま"
757
+ "す。コンストラクタのシグネチャが異なるクラスで :class:`Set` を使う場合は、 "
758
+ "iterable 引数から新しいインスタンスを生成できるクラスメソッドあるいは仕様に"
759
+ "沿ったメソッドで :meth:`!_from_iterable` をオーバーライドする必要があります。"
683
760
684
761
#: ../../library/collections.abc.rst:417
685
762
msgid ""
686
763
"To override the comparisons (presumably for speed, as the semantics are "
687
764
"fixed), redefine :meth:`~object.__le__` and :meth:`~object.__ge__`, then the "
688
765
"other operations will automatically follow suit."
689
766
msgstr ""
767
+ "(たぶん意味はそのままに速度を向上する目的で)比較をオーバーライドする場合、 :"
768
+ "meth:`~object.__le__` と :meth:`~object.__ge__` だけを再定義すれば、その他の"
769
+ "演算は自動的に追随します。"
690
770
691
771
#: ../../library/collections.abc.rst:423
692
772
msgid ""
@@ -696,6 +776,11 @@ msgid ""
696
776
"using mixins, inherit from both :meth:`Set` and :meth:`Hashable`, then "
697
777
"define ``__hash__ = Set._hash``."
698
778
msgstr ""
779
+ ":class:`Set` mixin型は set のハッシュ値を計算する :meth:`!_hash` メソッドを提"
780
+ "供しますが、すべての set が :term:`hashable` や immutable とは限らないの"
781
+ "で、 :meth:`~object.__hash__` は提供しません。 mixin を使ってハッシュ可能な "
782
+ "set を作る場合は、 :class:`Set` と :meth:`Hashable` の両方を継承して、 "
783
+ "``__hash__ = Set._hash`` と定義してください。"
699
784
700
785
#: ../../library/collections.abc.rst:431
701
786
msgid ""
0 commit comments