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

Commit6564485

Browse files
author
github-actions
committed
Update translations from Transifex
1 parent93b347b commit6564485

File tree

15 files changed

+550
-107
lines changed

15 files changed

+550
-107
lines changed

‎library/collections.abc.po

Lines changed: 96 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
7-
# Takanori Suzuki <takanori@takanory.net>, 2021
87
# tomo, 2022
98
# Takeshi Nakazato, 2022
109
# souma987, 2023
1110
# TENMYO Masakazu, 2024
1211
# 石井明久, 2024
12+
# Takanori Suzuki <takanori@takanory.net>, 2024
1313
#
1414
#,fuzzy
1515
msgid ""
1616
msgstr ""
1717
"Project-Id-Version:Python 3.13\n"
1818
"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"
2020
"PO-Revision-Date:2021-06-28 00:56+0000\n"
21-
"Last-Translator:石井明久, 2024\n"
21+
"Last-Translator:Takanori Suzuki <takanori@takanory.net>, 2024\n"
2222
"Language-Team:Japanese (https://app.transifex.com/python-doc/teams/5390/"
2323
"ja/)\n"
2424
"MIME-Version:1.0\n"
@@ -95,6 +95,11 @@ msgid ""
9595
"`reversed` function automatically fall back to using ``__getitem__`` and "
9696
"``__len__``."
9797
msgstr""
98+
"この例では、クラス :class:`!D` は ``__contains__``, ``__iter__``, "
99+
"``__reversed__`` を定義する必要がありません。なぜなら :ref:`in 演算子 "
100+
"<comparisons>`, the :term:`反復 <iterable>` ロジック, および :func:"
101+
"`reversed` 関数は自動的に ``__getitem__`` と ``__len__`` を使うようにフォール"
102+
"バックするからです。"
98103

99104
#:../../library/collections.abc.rst:82
100105
msgid""
@@ -277,6 +282,8 @@ msgid ""
277282
"Inherited :class:`Sequence` methods and ``append``, ``clear``, ``reverse``, "
278283
"``extend``, ``pop``, ``remove``, and ``__iadd__``"
279284
msgstr""
285+
":class:`Sequence` から継承したメソッドと、 ``append``, ``clear``, "
286+
"``reverse``, ``extend``, ``pop``, ``remove``, ``__iadd__``"
280287

281288
#:../../library/collections.abc.rst:144
282289
msgid":class:`ByteString`"
@@ -443,11 +450,11 @@ msgstr "``aclose``, ``__aiter__``, ``__anext__``"
443450

444451
#:../../library/collections.abc.rst:180
445452
msgid":class:`Buffer` [1]_"
446-
msgstr""
453+
msgstr":class:`Buffer` [1]_"
447454

448455
#:../../library/collections.abc.rst:180
449456
msgid"``__buffer__``"
450-
msgstr""
457+
msgstr"``__buffer__``"
451458

452459
#:../../library/collections.abc.rst:185
453460
msgid"Footnotes"
@@ -460,6 +467,11 @@ msgid ""
460467
"set to :const:`None`. This only works for simple interfaces. More complex "
461468
"interfaces require registration or direct subclassing."
462469
msgstr""
470+
"これらの抽象基底クラスは :meth:`~abc.ABCMeta.__subclasshook__` をオーバーライ"
471+
"ドして、必要なメソッドが存在し、かつ :const:`None` に指定されていないことを確"
472+
"かめることによってインターフェースをテストすることをサポートします。このテス"
473+
"トは単純なインターフェースに対してのみ有効に働きます。より複雑なインター"
474+
"フェースは基底クラスへの登録や直接派生することが必要になります。"
463475

464476
#:../../library/collections.abc.rst:192
465477
msgid""
@@ -469,30 +481,35 @@ msgid ""
469481
"method. The only reliable way to determine whether an object is :term:"
470482
"`iterable` is to call ``iter(obj)``."
471483
msgstr""
484+
"``isinstance(obj, Iterable)`` によるチェックは :class:`Iterable` として登録さ"
485+
"れたクラスや :meth:`~container.__iter__` メソッドを持つクラスを検出します"
486+
"が、 :meth:`~object.__getitem__` メソッドにより反復処理を行うクラスは検出しま"
487+
"せん。オブジェクトがイテラブル (:term:`iterable`) かどうかを確認する唯一の信"
488+
"頼できる方法は ``iter(obj)`` を呼び出すことです。"
472489

473490
#:../../library/collections.abc.rst:200
474491
msgid"Collections Abstract Base Classes -- Detailed Descriptions"
475492
msgstr"コレクションの抽象基底クラス -- 詳細な説明"
476493

477494
#:../../library/collections.abc.rst:205
478495
msgid"ABC for classes that provide the :meth:`~object.__contains__` method."
479-
msgstr""
496+
msgstr":meth:`~object.__contains__` メソッドを提供するクラスの ABC です。"
480497

481498
#:../../library/collections.abc.rst:209
482499
msgid"ABC for classes that provide the :meth:`~object.__hash__` method."
483-
msgstr""
500+
msgstr":meth:`~object.__hash__` メソッドを提供するクラスの ABC です。"
484501

485502
#:../../library/collections.abc.rst:213
486503
msgid"ABC for classes that provide the :meth:`~object.__len__` method."
487-
msgstr""
504+
msgstr":meth:`~object.__len__` メソッドを提供するクラスの ABC です。"
488505

489506
#:../../library/collections.abc.rst:217
490507
msgid"ABC for classes that provide the :meth:`~object.__call__` method."
491-
msgstr""
508+
msgstr":meth:`~object.__call__` メソッドを提供するクラスの ABC です。"
492509

493510
#:../../library/collections.abc.rst:221
494511
msgid"ABC for classes that provide the :meth:`~container.__iter__` method."
495-
msgstr""
512+
msgstr":meth:`~container.__iter__` メソッドを提供するクラスの ABC です。"
496513

497514
#:../../library/collections.abc.rst:223
498515
msgid""
@@ -502,6 +519,11 @@ msgid ""
502519
"method. The only reliable way to determine whether an object is :term:"
503520
"`iterable` is to call ``iter(obj)``."
504521
msgstr""
522+
"``isinstance(obj, Iterable)`` によるチェックは :class:`Iterable` として登録さ"
523+
"れたクラスや :meth:`~container.__iter__` メソッドを持つクラスを検出します"
524+
"が、 :meth:`~object.__getitem__` メソッドにより反復処理を行うクラスは検出しま"
525+
"せん。オブジェクトがイテラブル (:term:`iterable`) かどうかを確認する唯一の信"
526+
"頼できる方法は ``iter(obj)`` を呼び出すことです。"
505527

506528
#:../../library/collections.abc.rst:232
507529
msgid"ABC for sized iterable container classes."
@@ -520,6 +542,7 @@ msgid ""
520542
"ABC for iterable classes that also provide the :meth:`~object.__reversed__` "
521543
"method."
522544
msgstr""
545+
":meth:`~object.__reversed__` メソッドを提供するイテラブルクラスの ABC です。"
523546

524547
#:../../library/collections.abc.rst:251
525548
msgid""
@@ -528,6 +551,10 @@ msgid ""
528551
"`~generator.send`, :meth:`~generator.throw` and :meth:`~generator.close` "
529552
"methods."
530553
msgstr""
554+
":pep:`342` で定義された、:term:`イテレータ <iterator>` を :meth:`~generator."
555+
"send`, :meth:`~generator.throw`, :meth:`~generator.close` の各メソッドに拡張"
556+
"するプロトコルを実装する、:term:`ジェネレータ <generator>` クラスの ABC で"
557+
"す。"
531558

532559
#:../../library/collections.abc.rst:262
533560
msgid"ABCs for read-only and mutable :term:`sequences <sequence>`."
@@ -545,6 +572,13 @@ msgid ""
545572
"method is linear (as it would be with a linked list), the mixins will have "
546573
"quadratic performance and will likely need to be overridden."
547574
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+
"する必要があるでしょう。"
548582

549583
#:../../library/collections.abc.rst:273
550584
msgid"The index() method added support for *stop* and *start* arguments."
@@ -556,10 +590,14 @@ msgid ""
556590
"union, like ``bytes | bytearray``, or :class:`collections.abc.Buffer`. For "
557591
"use as an ABC, prefer :class:`Sequence` or :class:`collections.abc.Buffer`."
558592
msgstr""
593+
"ABCの :class:`ByteString` は非推奨になりました。型ヒントでは ``bytes | "
594+
"bytearray`` のようなユニオン型または :class:`collections.abc.Buffer` を使用し"
595+
"てください。ABCとしての場合は :class:`Sequence` または :class:`collections."
596+
"abc.Buffer` を使用してください。"
559597

560598
#:../../library/collections.abc.rst:286
561599
msgid"ABCs for read-only and mutable :ref:`sets <types-set>`."
562-
msgstr""
600+
msgstr"読み出し専用でミュータブルな :ref:`集合 <types-set>` の ABC です。"
563601

564602
#:../../library/collections.abc.rst:291
565603
msgid"ABCs for read-only and mutable :term:`mappings <mapping>`."
@@ -579,6 +617,8 @@ msgid ""
579617
"expressions. Custom implementations must provide the :meth:`~object."
580618
"__await__` method."
581619
msgstr""
620+
":keyword:`await` で使用できる :term:`awaitable` オブジェクトの ABC です。カス"
621+
"タムの実装は、:meth:`~object.__await__` メソッドを提供しなければなりません。"
582622

583623
#:../../library/collections.abc.rst:306
584624
msgid""
@@ -596,6 +636,12 @@ msgid ""
596636
"``isinstance(gencoro, Awaitable)`` for them will return ``False``. Use :func:"
597637
"`inspect.isawaitable` to detect them."
598638
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` を使ってください。"
599645

600646
#:../../library/collections.abc.rst:320
601647
msgid""
@@ -605,6 +651,12 @@ msgid ""
605651
"must also implement :meth:`~object.__await__`. All :class:`Coroutine` "
606652
"instances are also instances of :class:`Awaitable`."
607653
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+
"あります。"
608660

609661
#:../../library/collections.abc.rst:328
610662
msgid""
@@ -614,12 +666,20 @@ msgid ""
614666
"``isinstance(gencoro, Coroutine)`` for them will return ``False``. Use :func:"
615667
"`inspect.isawaitable` to detect them."
616668
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` を使ってください。"
617675

618676
#:../../library/collections.abc.rst:338
619677
msgid""
620678
"ABC for classes that provide an ``__aiter__`` method. See also the "
621679
"definition of :term:`asynchronous iterable`."
622680
msgstr""
681+
"``__aiter__`` メソッドを提供するクラスの ABC です。:term:`asynchronous "
682+
"iterable` の定義も参照してください。"
623683

624684
#:../../library/collections.abc.rst:345
625685
msgid""
@@ -634,12 +694,16 @@ msgid ""
634694
"ABC for :term:`asynchronous generator` classes that implement the protocol "
635695
"defined in :pep:`525` and :pep:`492`."
636696
msgstr""
697+
":pep:`525` と :pep:`492` に定義されているプロトコルを実装した :term:`非同期"
698+
"ジェネレータ <asynchronous generator>` クラスの ABC です。"
637699

638700
#:../../library/collections.abc.rst:359
639701
msgid""
640702
"ABC for classes that provide the :meth:`~object.__buffer__` method, "
641703
"implementing the :ref:`buffer protocol <bufferobjects>`. See :pep:`688`."
642704
msgstr""
705+
":ref:`buffer protocol <bufferobjects>` を実装する :meth:`~object.__buffer__` "
706+
"メソッドを提供するクラスのABCです。:pep:`688` を参照してください。"
643707

644708
#:../../library/collections.abc.rst:365
645709
msgid"Examples and Recipes"
@@ -662,6 +726,11 @@ msgid ""
662726
"__iter__`, and :meth:`~object.__len__`. The ABC supplies the remaining "
663727
"methods such as :meth:`!__and__` and :meth:`~frozenset.isdisjoint`::"
664728
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` といったメソッドを提供します::"
665734

666735
#:../../library/collections.abc.rst:403
667736
msgid"Notes on using :class:`Set` and :class:`MutableSet` as a mixin:"
@@ -680,13 +749,24 @@ msgid ""
680749
"classmethod or regular method that can construct new instances from an "
681750
"iterable argument."
682751
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` をオーバーライドする必要があります。"
683760

684761
#:../../library/collections.abc.rst:417
685762
msgid""
686763
"To override the comparisons (presumably for speed, as the semantics are "
687764
"fixed), redefine :meth:`~object.__le__` and :meth:`~object.__ge__`, then the "
688765
"other operations will automatically follow suit."
689766
msgstr""
767+
"(たぶん意味はそのままに速度を向上する目的で)比較をオーバーライドする場合、 :"
768+
"meth:`~object.__le__` と :meth:`~object.__ge__` だけを再定義すれば、その他の"
769+
"演算は自動的に追随します。"
690770

691771
#:../../library/collections.abc.rst:423
692772
msgid""
@@ -696,6 +776,11 @@ msgid ""
696776
"using mixins, inherit from both :meth:`Set` and :meth:`Hashable`, then "
697777
"define ``__hash__ = Set._hash``."
698778
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`` と定義してください。"
699784

700785
#:../../library/collections.abc.rst:431
701786
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp