@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version :Python 3.8\n "
13
13
"Report-Msgid-Bugs-To :\n "
14
- "POT-Creation-Date :2021-01-01 16:06 +0000\n "
14
+ "POT-Creation-Date :2021-03-23 16:51 +0000\n "
15
15
"PO-Revision-Date :2020-05-30 12:12+0000\n "
16
16
"Last-Translator :tomo, 2020\n "
17
17
"Language-Team :Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -283,10 +283,9 @@ msgstr ""
283
283
284
284
#: ../../library/types.rst:212
285
285
msgid ""
286
- "The type of :term:`modules <module>`.Constructor takes the name of the "
286
+ "The type of :term:`modules <module>`.The constructor takes the name of the "
287
287
"module to be created and optionally its :term:`docstring`."
288
288
msgstr ""
289
- ":term:`module` の型です。コンストラクタは生成するモジュールの名前と任意でその :term:`docstring` を受け取ります。"
290
289
291
290
#: ../../library/types.rst:216
292
291
msgid ""
@@ -304,15 +303,31 @@ msgstr "モジュールの :term:`docstring` です。デフォルトは ``None`
304
303
msgid "The :term:`loader` which loaded the module. Defaults to ``None``."
305
304
msgstr "モジュールをロードする :term:`loader` です。デフォルトは ``None`` です。"
306
305
307
- #: ../../library/types.rst:227 ../../library/types.rst:241
306
+ #: ../../library/types.rst:227
307
+ msgid ""
308
+ "This attribute is to match :attr:`importlib.machinery.ModuleSpec.loader` as "
309
+ "stored in the attr:`__spec__` object."
310
+ msgstr ""
311
+
312
+ #: ../../library/types.rst:231
313
+ msgid ""
314
+ "A future version of Python may stop setting this attribute by default. To "
315
+ "guard against this potential change, preferrably read from the "
316
+ ":attr:`__spec__` attribute instead or use ``getattr(module,\" __loader__\" , "
317
+ "None)`` if you explicitly need to use this attribute."
318
+ msgstr ""
319
+
320
+ #: ../../library/types.rst:237 ../../library/types.rst:262
308
321
msgid "Defaults to ``None``. Previously the attribute was optional."
309
322
msgstr "デフォルトが ``None`` になりました。以前はオプションでした。"
310
323
311
- #: ../../library/types.rst:232
312
- msgid "The name of the module."
313
- msgstr "モジュールの名前です。"
324
+ #: ../../library/types.rst:242
325
+ msgid ""
326
+ "The name of the module. Expected to match "
327
+ ":attr:`importlib.machinery.ModuleSpec.name`."
328
+ msgstr ""
314
329
315
- #: ../../library/types.rst:236
330
+ #: ../../library/types.rst:247
316
331
msgid ""
317
332
"Which :term:`package` a module belongs to. If the module is top-level (i.e. "
318
333
"not a part of any specific package) then the attribute should be set to "
@@ -323,30 +338,50 @@ msgstr ""
323
338
"(すなわち、いかなる特定のパッケージの一部でもない) 場合、この属性は ``''`` に設定されます。そうでない場合、パッケージ名 "
324
339
"(モジュールがパッケージ自身なら :attr:`__name__`) に設定されます。デフォルトは ``None`` です。"
325
340
326
- #: ../../library/types.rst:247
341
+ #: ../../library/types.rst:252
342
+ msgid ""
343
+ "This attribute is to match :attr:`importlib.machinery.ModuleSpec.parent` as "
344
+ "stored in the attr:`__spec__` object."
345
+ msgstr ""
346
+
347
+ #: ../../library/types.rst:256
348
+ msgid ""
349
+ "A future version of Python may stop setting this attribute by default. To "
350
+ "guard against this potential change, preferrably read from the "
351
+ ":attr:`__spec__` attribute instead or use ``getattr(module,\" __package__\" ,"
352
+ " None)`` if you explicitly need to use this attribute."
353
+ msgstr ""
354
+
355
+ #: ../../library/types.rst:267
356
+ msgid ""
357
+ "A record of the the module's import-system-related state. Expected to be an "
358
+ "instance of :class:`importlib.machinery.ModuleSpec`."
359
+ msgstr ""
360
+
361
+ #: ../../library/types.rst:275
327
362
msgid "The type of traceback objects such as found in ``sys.exc_info()[2]``."
328
363
msgstr "``sys.exc_info()[2]`` で得られるようなトレースバックオブジェクトの型です。"
329
364
330
- #: ../../library/types.rst:249
365
+ #: ../../library/types.rst:277
331
366
msgid ""
332
367
"See :ref:`the language reference <traceback-objects>` for details of the "
333
368
"available attributes and operations, and guidance on creating tracebacks "
334
369
"dynamically."
335
370
msgstr ""
336
371
337
- #: ../../library/types.rst:256
372
+ #: ../../library/types.rst:284
338
373
msgid ""
339
374
"The type of frame objects such as found in ``tb.tb_frame`` if ``tb`` is a "
340
375
"traceback object."
341
376
msgstr "フレームオブジェクトの型です。トレースバックオブジェクト ``tb`` の ``tb.tb_frame`` などです。"
342
377
343
- #: ../../library/types.rst:259
378
+ #: ../../library/types.rst:287
344
379
msgid ""
345
380
"See :ref:`the language reference <frame-objects>` for details of the "
346
381
"available attributes and operations."
347
382
msgstr ""
348
383
349
- #: ../../library/types.rst:265
384
+ #: ../../library/types.rst:293
350
385
msgid ""
351
386
"The type of objects defined in extension modules with ``PyGetSetDef``, such "
352
387
"as ``FrameType.f_locals`` or ``array.array.typecode``. This type is used as"
@@ -357,7 +392,7 @@ msgstr ""
357
392
"``PyGetSetDef`` によって定義されたオブジェクトの型です。この型はオブジェクト属性のディスクリプタとして利用されます。 "
358
393
":class:`property` 型と同じ目的を持った型ですが、こちらは拡張モジュールで定義された型のためのものです。"
359
394
360
- #: ../../library/types.rst:273
395
+ #: ../../library/types.rst:301
361
396
msgid ""
362
397
"The type of objects defined in extension modules with ``PyMemberDef``, such "
363
398
"as ``datetime.timedelta.days``. This type is used as descriptor for simple "
@@ -369,49 +404,49 @@ msgstr ""
369
404
"によって定義されたオブジェクトの型です。この型は、標準の変換関数を利用するような、Cのシンプルなデータメンバで利用されます。 "
370
405
":class:`property` 型と同じ目的を持った型ですが、こちらは拡張モジュールで定義された型のためのものです。"
371
406
372
- #: ../../library/types.rst:280
407
+ #: ../../library/types.rst:308
373
408
msgid ""
374
409
"In other implementations of Python, this type may be identical to "
375
410
"``GetSetDescriptorType``."
376
411
msgstr "Pythonの他の実装では、この型は ``GetSetDescriptorType`` と同じかもしれません。"
377
412
378
- #: ../../library/types.rst:285
413
+ #: ../../library/types.rst:313
379
414
msgid ""
380
415
"Read-only proxy of a mapping. It provides a dynamic view on the mapping's "
381
416
"entries, which means that when the mapping changes, the view reflects these "
382
417
"changes."
383
418
msgstr ""
384
419
"読み出し専用のマッピングのプロキシです。マッピングのエントリーに関する動的なビューを提供します。つまり、マッピングが変わった場合にビューがこれらの変更を反映するということです。"
385
420
386
- #: ../../library/types.rst:293
421
+ #: ../../library/types.rst:321
387
422
msgid ""
388
423
"Return ``True`` if the underlying mapping has a key *key*, else ``False``."
389
424
msgstr ""
390
425
"元になったマッピングが *key* というキーを持っている場合 ``True`` を返します。そうでなければ ``False`` を返します。"
391
426
392
- #: ../../library/types.rst:298
427
+ #: ../../library/types.rst:326
393
428
msgid ""
394
429
"Return the item of the underlying mapping with key *key*. Raises a "
395
430
":exc:`KeyError` if *key* is not in the underlying mapping."
396
431
msgstr ""
397
432
"元になったマッピングの *key* というキーに対応するアイテムを返します。 *key* が存在しなければ、 :exc:`KeyError` "
398
433
"が発生します。"
399
434
400
- #: ../../library/types.rst:303
435
+ #: ../../library/types.rst:331
401
436
msgid ""
402
437
"Return an iterator over the keys of the underlying mapping. This is a "
403
438
"shortcut for ``iter(proxy.keys())``."
404
439
msgstr "元になったマッピングのキーを列挙するイテレータを返します。これは ``iter(proxy.keys())`` のショートカットです。"
405
440
406
- #: ../../library/types.rst:308
441
+ #: ../../library/types.rst:336
407
442
msgid "Return the number of items in the underlying mapping."
408
443
msgstr "元になったマッピングに含まれるアイテムの数を返します。"
409
444
410
- #: ../../library/types.rst:312
445
+ #: ../../library/types.rst:340
411
446
msgid "Return a shallow copy of the underlying mapping."
412
447
msgstr "元になったマッピングの浅いコピーを返します。"
413
448
414
- #: ../../library/types.rst:316
449
+ #: ../../library/types.rst:344
415
450
msgid ""
416
451
"Return the value for *key* if *key* is in the underlying mapping, else "
417
452
"*default*. If *default* is not given, it defaults to ``None``, so that this"
@@ -421,31 +456,31 @@ msgstr ""
421
456
"*default* が与えられない場合は、デフォルト値の ``None`` になります。そのため、このメソッドが :exc:`KeyError` "
422
457
"を発生させることはありません。"
423
458
424
- #: ../../library/types.rst:322
459
+ #: ../../library/types.rst:350
425
460
msgid ""
426
461
"Return a new view of the underlying mapping's items (``(key, value)`` "
427
462
"pairs)."
428
463
msgstr "元になったマッピングの items (``(key, value)`` ペアの列) に対する新しいビューを返します。"
429
464
430
- #: ../../library/types.rst:327
465
+ #: ../../library/types.rst:355
431
466
msgid "Return a new view of the underlying mapping's keys."
432
467
msgstr "元になったマッピングの keys に対する新しいビューを返します。"
433
468
434
- #: ../../library/types.rst:331
469
+ #: ../../library/types.rst:359
435
470
msgid "Return a new view of the underlying mapping's values."
436
471
msgstr "元になったマッピングの values に対する新しいビューを返します。"
437
472
438
- #: ../../library/types.rst:335
473
+ #: ../../library/types.rst:363
439
474
msgid "Additional Utility Classes and Functions"
440
475
msgstr "追加のユーティリティクラスと関数"
441
476
442
- #: ../../library/types.rst:339
477
+ #: ../../library/types.rst:367
443
478
msgid ""
444
479
"A simple :class:`object` subclass that provides attribute access to its "
445
480
"namespace, as well as a meaningful repr."
446
481
msgstr "名前空間への属性アクセスに加えて意味のある repr を提供するための、単純な :class:`object` サブクラスです。"
447
482
448
- #: ../../library/types.rst:342
483
+ #: ../../library/types.rst:370
449
484
msgid ""
450
485
"Unlike :class:`object`, with ``SimpleNamespace`` you can add and remove "
451
486
"attributes. If a ``SimpleNamespace`` object is initialized with keyword "
@@ -454,11 +489,11 @@ msgstr ""
454
489
":class:`object` とは異なり、 ``SimpleNamespace`` は、属性を追加したり削除したりすることができます。 "
455
490
"``SimpleNamespace`` オブジェクトがキーワード引数で初期化される場合、それらは元になる名前空間に直接追加されます。"
456
491
457
- #: ../../library/types.rst:346
492
+ #: ../../library/types.rst:374
458
493
msgid "The type is roughly equivalent to the following code::"
459
494
msgstr "この型は以下のコードとほぼ等価です::"
460
495
461
- #: ../../library/types.rst:362
496
+ #: ../../library/types.rst:390
462
497
msgid ""
463
498
"``SimpleNamespace`` may be useful as a replacement for ``class NS: pass``. "
464
499
"However, for a structured record type use :func:`~collections.namedtuple` "
@@ -468,11 +503,11 @@ msgstr ""
468
503
"を置き換えるものとして有用かもしれません。ですが、構造化されたレコード型に対しては、これよりはむしろ "
469
504
":func:`~collections.namedtuple` を使用してください。"
470
505
471
- #: ../../library/types.rst:371
506
+ #: ../../library/types.rst:399
472
507
msgid "Route attribute access on a class to __getattr__."
473
508
msgstr "クラスの属性アクセスを __getattr__ に振り替えます。"
474
509
475
- #: ../../library/types.rst:373
510
+ #: ../../library/types.rst:401
476
511
msgid ""
477
512
"This is a descriptor, used to define attributes that act differently when "
478
513
"accessed through an instance and through a class. Instance access remains "
@@ -482,19 +517,19 @@ msgstr ""
482
517
"これは記述子で、インスタンス経由のアクセスとクラス経由のアクセスで振る舞いが異なる属性を定義するのに使います。インスタンスアクセスは通常通りですが、クラス経由の属性アクセスはクラスの"
483
518
" __getattr__ メソッドに振り替えられます。これは AttributeError の送出により行われます。"
484
519
485
- #: ../../library/types.rst:378
520
+ #: ../../library/types.rst:406
486
521
msgid ""
487
522
"This allows one to have properties active on an instance, and have virtual "
488
523
"attributes on the class with the same name (see Enum for an example)."
489
524
msgstr ""
490
525
"これによって、インスタンス上で有効なプロパティを持ち、クラス上で同名の仮想属性を持つことができます (例については "
491
526
":class:`~enum.Enum` を参照してください)。"
492
527
493
- #: ../../library/types.rst:385
528
+ #: ../../library/types.rst:413
494
529
msgid "Coroutine Utility Functions"
495
530
msgstr "コルーチンユーティリティ関数"
496
531
497
- #: ../../library/types.rst:389
532
+ #: ../../library/types.rst:417
498
533
msgid ""
499
534
"This function transforms a :term:`generator` function into a "
500
535
":term:`coroutine function` which returns a generator-based coroutine. The "
@@ -507,11 +542,11 @@ msgstr ""
507
542
":term:`coroutine` オブジェクトかつ :term:`awaitable` であるとみなされます。ただし、必ずしも "
508
543
":meth:`__await__` メソッドを実装する必要はありません。"
509
544
510
- #: ../../library/types.rst:396
545
+ #: ../../library/types.rst:424
511
546
msgid "If *gen_func* is a generator function, it will be modified in-place."
512
547
msgstr "*gen_func* はジェネレータ関数で、インプレースに変更されます。"
513
548
514
- #: ../../library/types.rst:398
549
+ #: ../../library/types.rst:426
515
550
msgid ""
516
551
"If *gen_func* is not a generator function, it will be wrapped. If it returns"
517
552
" an instance of :class:`collections.abc.Generator`, the instance will be "