@@ -149,7 +149,7 @@ msgstr "``__prepare__`` 名前空間フックの導入"
149
149
150
150
#: ../../library/types.rst:74
151
151
msgid "Resolve MRO entries dynamically as specified by :pep:`560`."
152
- msgstr ""
152
+ msgstr ":pep:`560` で指定されたとおりに MRO エントリを動的に解決します。 "
153
153
154
154
#: ../../library/types.rst:76
155
155
msgid ""
@@ -160,6 +160,7 @@ msgid ""
160
160
"it doesn't have an :meth:`!__mro_entries__` method, then it is included in "
161
161
"the return tuple unchanged."
162
162
msgstr ""
163
+ "この関数は、 *bases* 内にある :class:`type` のインスタンスでないアイテムを探し、 :meth:`~object.__mro_entries__` メソッドを持つオブジェクトを、このメソッドを呼び出した結果をアンパックしたものに置き換えたタプルを返します。 *bases* のアイテムが :class:`type` のインスタンスである場合、または :meth:`!__mro_entries__` メソッドを持たない場合は、戻り値のタプルには変更されずに含まれます。"
163
164
164
165
#: ../../library/types.rst:87
165
166
msgid ""
@@ -168,6 +169,7 @@ msgid ""
168
169
"(following the mechanisms laid out in :pep:`560`). This is useful for "
169
170
"introspecting :ref:`Generics <user-defined-generics>`."
170
171
msgstr ""
172
+ "いずれかの基底クラスに対して :meth:`~object.__mro_entries__` メソッドが呼び出される前に、 *cls* の基底クラスとして元々与えられたオブジェクトのタプルを返します (:pep:`560` で定められた仕組みに従って)。これは :ref:`ジェネリクス <user-defined-generics>` の内省に有用です。"
171
173
172
174
#: ../../library/types.rst:92
173
175
msgid ""
@@ -176,6 +178,7 @@ msgid ""
176
178
"``__orig_bases__`` attribute, :attr:`cls.__bases__ <type.__bases__>` is "
177
179
"returned."
178
180
msgstr ""
181
+ "``__orig_bases__`` 属性を持つクラスの場合、この関数は ``cls.__orig_bases__`` の値を返します。 ``__orig_bases__`` 属性を持たないクラスの場合、 :attr:`cls.__bases__ <type.__bases__>` が返されます。"
179
182
180
183
#: ../../library/types.rst:97
181
184
msgid "Examples::"
@@ -304,6 +307,7 @@ msgid ""
304
307
"The type of :ref:`code objects <code-objects>` such as returned by :func:"
305
308
"`compile`."
306
309
msgstr ""
310
+ ":func:`compile` によって返されるような :ref:`コードオブジェクト <code-objects>` の型です。"
307
311
308
312
#: ../../library/types.rst:193
309
313
msgid ""
@@ -321,12 +325,14 @@ msgid ""
321
325
"required by the initializer. The audit event only occurs for direct "
322
326
"instantiation of code objects, and is not raised for normal compilation."
323
327
msgstr ""
328
+ "監査対象の引数は、イニシャライザの必要とする名前や位置と一致しない可能性があることに注意してください。この監査イベントは、コードオブジェクトの直接インスタンス化の場合にのみ発生し、通常のコンパイル時には発生しません。"
324
329
325
330
#: ../../library/types.rst:201
326
331
msgid ""
327
332
"The type for cell objects: such objects are used as containers for a "
328
333
"function's :term:`closure variables <closure variable>`."
329
334
msgstr ""
335
+ "セルオブジェクトの型です。このオブジェクトは、関数の :term:`クロージャ変数 <closure variable>` のコンテナとして使用されます。"
330
336
331
337
#: ../../library/types.rst:209
332
338
msgid "The type of methods of user-defined class instances."
@@ -347,12 +353,14 @@ msgid ""
347
353
"The type of methods of some built-in data types and base classes such as :"
348
354
"meth:`object.__init__` or :meth:`object.__lt__`."
349
355
msgstr ""
356
+ ":meth:`object.__init__` や :meth:`object.__lt__` のような、一部の組み込みデータ型や基底クラスのメソッドの型です。"
350
357
351
358
#: ../../library/types.rst:230
352
359
msgid ""
353
360
"The type of *bound* methods of some built-in data types and base classes. "
354
361
"For example it is the type of :code:`object().__str__`."
355
362
msgstr ""
363
+ "一部の組み込みデータ型や基底クラスの *バインドされた* メソッドの型です。例えば、 :code:`object().__str__` の型です。"
356
364
357
365
#: ../../library/types.rst:238
358
366
msgid "The type of :data:`NotImplemented`."
@@ -362,12 +370,14 @@ msgstr ":data:`NotImplemented` の型です。"
362
370
msgid ""
363
371
"The type of methods of some built-in data types such as :meth:`str.join`."
364
372
msgstr ""
373
+ ":meth:`str.join` のような、一部の組み込みデータ型のメソッドの型です。"
365
374
366
375
#: ../../library/types.rst:252
367
376
msgid ""
368
377
"The type of *unbound* class methods of some built-in data types such as "
369
378
"``dict.__dict__['fromkeys']``."
370
379
msgstr ""
380
+ "``dict.__dict__['fromkeys']`` のような、一部の組み込みデータ型の *アンバインドされた* クラスメソッドの型です。"
371
381
372
382
#: ../../library/types.rst:260
373
383
msgid ""
@@ -379,17 +389,18 @@ msgstr ""
379
389
380
390
#: ../../library/types.rst:265
381
391
msgid ":ref:`Documentation on module objects <module-objects>`"
382
- msgstr ""
392
+ msgstr ":ref:`モジュールオブジェクトのドキュメント <module-objects>` "
383
393
384
394
#: ../../library/types.rst:266
385
395
msgid ""
386
396
"Provides details on the special attributes that can be found on instances "
387
397
"of :class:`!ModuleType`."
388
398
msgstr ""
399
+ ":class:`!ModuleType` のインスタンスにおいて見つかる特殊属性の詳細を提供しています。"
389
400
390
401
#: ../../library/types.rst:269
391
402
msgid ":func:`importlib.util.module_from_spec`"
392
- msgstr ""
403
+ msgstr ":func:`importlib.util.module_from_spec` "
393
404
394
405
#: ../../library/types.rst:270
395
406
msgid ""
@@ -399,6 +410,7 @@ msgid ""
399
410
"ModuleType` instances which ensures the various attributes are set "
400
411
"appropriately."
401
412
msgstr ""
413
+ ":class:`!ModuleType` コンストラクタを使用して作成したモジュールは、多くの特殊属性が未設定であるか、デフォルト値に設定された状態で作成されます。 :func:`!module_from_spec` は、さまざまな属性が適切に設定されることを保証する、より堅牢な :class:`!ModuleType` インスタンスの作成方法を提供しています。"
402
414
403
415
#: ../../library/types.rst:278
404
416
msgid "The type of :data:`Ellipsis`."
@@ -409,13 +421,15 @@ msgid ""
409
421
"The type of :ref:`parameterized generics <types-genericalias>` such as "
410
422
"``list[int]``."
411
423
msgstr ""
424
+ "``list[int]`` のような :ref:`パラメータ化されたジェネリクス <types-genericalias>` の型です。"
412
425
413
426
#: ../../library/types.rst:287
414
427
msgid ""
415
428
"``t_origin`` should be a non-parameterized generic class, such as ``list``, "
416
429
"``tuple`` or ``dict``. ``t_args`` should be a :class:`tuple` (possibly of "
417
430
"length 1) of types which parameterize ``t_origin``::"
418
431
msgstr ""
432
+ "``t_origin`` は、 ``list`` 、 ``tuple`` 、 ``dict`` のような、パラメータ化されていないジェネリッククラスであるべきです。 ``t_args`` は、 ``t_origin`` をパラメータ化する型の (長さは 1 であるかもしれない) :class:`tuple` であるべきです。::"
419
433
420
434
#: ../../library/types.rst:291
421
435
msgid ""
@@ -429,15 +443,15 @@ msgstr ""
429
443
430
444
#: ../../library/types.rst:300
431
445
msgid "This type can now be subclassed."
432
- msgstr ""
446
+ msgstr "この型は今はサブクラス化できます。 "
433
447
434
448
#: ../../library/types.rst:305
435
449
msgid ":ref:`Generic Alias Types<types-genericalias>`"
436
- msgstr ""
450
+ msgstr ":ref:`ジェネリックエイリアス型 <types-genericalias>` "
437
451
438
452
#: ../../library/types.rst:306
439
453
msgid "In-depth documentation on instances of :class:`!types.GenericAlias`"
440
- msgstr ""
454
+ msgstr ":class:`!types.GenericAlias` のインスタンスに関する詳細なドキュメント "
441
455
442
456
#: ../../library/types.rst:308
443
457
msgid ":pep:`585` - Type Hinting Generics In Standard Collections"
@@ -446,15 +460,15 @@ msgstr ""
446
460
447
461
#: ../../library/types.rst:309
448
462
msgid "Introducing the :class:`!types.GenericAlias` class"
449
- msgstr ""
463
+ msgstr ":class:`!types.GenericAlias` クラスの紹介 "
450
464
451
465
#: ../../library/types.rst:313
452
466
msgid "The type of :ref:`union type expressions<types-union>`."
453
- msgstr ""
467
+ msgstr ":ref:`合集型表現 <types-union>` の型です。 "
454
468
455
469
#: ../../library/types.rst:319
456
470
msgid "This is now an alias for :class:`typing.Union`."
457
- msgstr ""
471
+ msgstr "現在これは :class:`typing.Union` のエイリアスです。 "
458
472
459
473
#: ../../library/types.rst:323
460
474
msgid ""
@@ -470,12 +484,14 @@ msgid ""
470
484
"available attributes and operations, and guidance on creating tracebacks "
471
485
"dynamically."
472
486
msgstr ""
487
+ "利用可能な属性と操作、およびトレースバックの動的作成のガイダンスについては、 :ref:`言語リファレンス <traceback-objects>` を参照してください。"
473
488
474
489
#: ../../library/types.rst:332
475
490
msgid ""
476
491
"The type of :ref:`frame objects <frame-objects>` such as found in :attr:`tb."
477
492
"tb_frame <traceback.tb_frame>` if ``tb`` is a traceback object."
478
493
msgstr ""
494
+ "``tb`` がトレースバックオブジェクトの場合、 :attr:`tb.tb_frame <traceback.tb_frame>` にあるような :ref:`フレームオブジェクト <frame-objects>` の型です。"
479
495
480
496
#: ../../library/types.rst:338
481
497
msgid ""
@@ -485,6 +501,7 @@ msgid ""
485
501
"purpose as the :class:`property` type, but for classes defined in extension "
486
502
"modules."
487
503
msgstr ""
504
+ ":attr:`FrameType.f_locals <frame.f_locals>` や ``array.array.typecode`` のような、拡張モジュールにおいて ``PyGetSetDef`` で定義されたオブジェクトの型です。この型はオブジェクトの属性の記述子として使用され、 :class:`property` 型と同じ目的を持ちますが、こちらは拡張モジュールで定義されたクラスのためのものです。"
488
505
489
506
#: ../../library/types.rst:347
490
507
msgid ""
@@ -506,6 +523,7 @@ msgid ""
506
523
"will be added as an attribute on the class. This allows the slot to appear "
507
524
"in the class's :attr:`~type.__dict__`."
508
525
msgstr ""
526
+ "さらに、 :attr:`~object.__slots__` 属性でクラスが定義された場合、各スロットに対して :class:`!MemberDescriptorType` のインスタンスがクラスの属性として追加されます。これによりスロットがクラスの :attr:`~type.__dict__` に現れるようになります。"
509
527
510
528
#: ../../library/types.rst:358
511
529
msgid ""
@@ -530,6 +548,7 @@ msgid ""
530
548
"Updated to support the new union (``|``) operator from :pep:`584`, which "
531
549
"simply delegates to the underlying mapping."
532
550
msgstr ""
551
+ ":pep:`584` からの新しい合集演算子 (``|``) をサポートするように更新されました。これは単に元になったマッピングに委託します。"
533
552
534
553
#: ../../library/types.rst:376
535
554
msgid ""
@@ -590,15 +609,15 @@ msgstr "元になったマッピングの values に対する新しいビュー
590
609
591
610
#: ../../library/types.rst:418
592
611
msgid "Return a reverse iterator over the keys of the underlying mapping."
593
- msgstr ""
612
+ msgstr "元になったマッピングのキーを逆順で繰り返すイテレータを返します。 "
594
613
595
614
#: ../../library/types.rst:424
596
615
msgid "Return a hash of the underlying mapping."
597
- msgstr ""
616
+ msgstr "元になったマッピングのハッシュを返します。 "
598
617
599
618
#: ../../library/types.rst:430
600
619
msgid "The type of :ref:`capsule objects <capsules>`."
601
- msgstr ""
620
+ msgstr ":ref:`カプセルオブジェクト <capsules>` の型です。 "
602
621
603
622
#: ../../library/types.rst:436
604
623
msgid "Additional Utility Classes and Functions"
@@ -617,6 +636,7 @@ msgid ""
617
636
"Unlike :class:`object`, with :class:`!SimpleNamespace` you can add and "
618
637
"remove attributes."
619
638
msgstr ""
639
+ ":class:`object` とは異なり、 :class:`!SimpleNamespace` では属性を追加したり削除したりできます。"
620
640
621
641
#: ../../library/types.rst:446
622
642
msgid ""
@@ -628,6 +648,7 @@ msgid ""
628
648
"key-value pairs from that argument (either a mapping object or an :term:"
629
649
"`iterable` object producing key-value pairs). All such keys must be strings."
630
650
msgstr ""
651
+ ":py:class:`SimpleNamespace` オブジェクトは :class:`dict` と同じ方法で初期化できます。つまり、キーワード引数、単一の位置引数、または両方で初期化できます。キーワード引数で初期化した場合、それらは直接元になる名前空間に追加されます。また、位置引数で初期化した場合、元になる名前空間はその引数からのキーバリューペアで更新されます (マッピングオブジェクトまたはキーバリューペアを生成する :term:`イテラブル <iterable>` オブジェクト)。このようなキーはすべて文字列でなければなりません。"
631
652
632
653
#: ../../library/types.rst:457
633
654
msgid "The type is roughly equivalent to the following code::"
@@ -665,16 +686,18 @@ msgstr ""
665
686
msgid ""
666
687
":class:`!SimpleNamespace` objects are supported by :func:`copy.replace`."
667
688
msgstr ""
689
+ ":class:`!SimpleNamespace` オブジェクトは :func:`copy.replace` でサポートされます。"
668
690
669
691
#: ../../library/types.rst:481
670
692
msgid ""
671
693
"Attribute order in the repr changed from alphabetical to insertion (like "
672
694
"``dict``)."
673
695
msgstr ""
696
+ "repr の属性の順序がアルファベット順から挿入順 (``dict`` のように) に変更されました。"
674
697
675
698
#: ../../library/types.rst:485
676
699
msgid "Added support for an optional positional argument."
677
- msgstr ""
700
+ msgstr "オプションの位置引数のサポートが追加されました。 "
678
701
679
702
#: ../../library/types.rst:490
680
703
msgid "Route attribute access on a class to __getattr__."
0 commit comments