-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy path3.7.po
3862 lines (3294 loc) · 141 KB
/
3.7.po
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2025, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Osamu NAKAMURA, 2021
# mollinaca, 2021
# tomo, 2021
# Takanori Suzuki <[email protected]>, 2024
# Takuya Futatsugi, 2025
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.13\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-02-14 14:17+0000\n"
"PO-Revision-Date: 2021-06-29 13:04+0000\n"
"Last-Translator: Takuya Futatsugi, 2025\n"
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
"ja/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ja\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: ../../whatsnew/3.7.rst:3
msgid "What's New In Python 3.7"
msgstr "What's New In Python 3.7"
#: ../../whatsnew/3.7.rst:0
msgid "Editor"
msgstr "編集者"
#: ../../whatsnew/3.7.rst:5
msgid "Elvis Pranskevichus <[email protected]>"
msgstr "Elvis Pranskevichus <[email protected]>"
#: ../../whatsnew/3.7.rst:47
msgid ""
"This article explains the new features in Python 3.7, compared to 3.6. "
"Python 3.7 was released on June 27, 2018. For full details, see the :ref:"
"`changelog <changelog>`."
msgstr ""
"この記事では Python 3.6 と比較した Python 3.7 の新機能を解説します。Python "
"3.7 は2018年6月27日にリリースされました。全詳細については :ref:`変更履"
"歴 <changelog>` をご覧ください。"
#: ../../whatsnew/3.7.rst:53
msgid "Summary -- Release Highlights"
msgstr "概要 -- リリースハイライト"
#: ../../whatsnew/3.7.rst:58
msgid "New syntax features:"
msgstr "新たな文法機能:"
#: ../../whatsnew/3.7.rst:60
msgid ""
":ref:`PEP 563 <whatsnew37-pep563>`, postponed evaluation of type annotations."
msgstr ":ref:`PEP 563 <whatsnew37-pep563>` 、型アノテーションの評価の遅延。"
#: ../../whatsnew/3.7.rst:62
msgid "Backwards incompatible syntax changes:"
msgstr "後方非互換な文法の変更:"
#: ../../whatsnew/3.7.rst:64
msgid ":keyword:`async` and :keyword:`await` are now reserved keywords."
msgstr ""
":keyword:`async` と :keyword:`await` は予約されたキーワードになりました。"
#: ../../whatsnew/3.7.rst:66
msgid "New library modules:"
msgstr "新たなライブラリモジュール:"
#: ../../whatsnew/3.7.rst:68
msgid ""
":mod:`contextvars`: :ref:`PEP 567 -- Context Variables <whatsnew37-pep567>`"
msgstr ""
":mod:`contextvars`: :ref:`PEP 567 -- コンテキスト変数 <whatsnew37-pep567>`"
#: ../../whatsnew/3.7.rst:69
msgid ":mod:`dataclasses`: :ref:`PEP 557 -- Data Classes <whatsnew37-pep557>`"
msgstr ":mod:`dataclasses`: :ref:`PEP 557 -- データクラス <whatsnew37-pep557>`"
#: ../../whatsnew/3.7.rst:70
msgid ":ref:`whatsnew37_importlib_resources`"
msgstr ":ref:`whatsnew37_importlib_resources`"
#: ../../whatsnew/3.7.rst:72
msgid "New built-in features:"
msgstr "新たな組み込み機能:"
#: ../../whatsnew/3.7.rst:74
msgid ""
":ref:`PEP 553 <whatsnew37-pep553>`, the new :func:`breakpoint` function."
msgstr ":ref:`PEP 553 <whatsnew37-pep553>` 、新しい :func:`breakpoint` 関数。"
#: ../../whatsnew/3.7.rst:76
msgid "Python data model improvements:"
msgstr "Python のデータモデルの改善:"
#: ../../whatsnew/3.7.rst:78
msgid ""
":ref:`PEP 562 <whatsnew37-pep562>`, customization of access to module "
"attributes."
msgstr ""
":ref:`PEP 562 <whatsnew37-pep562>` 、モジュール属性へのアクセスのカスタマイ"
"ズ。"
#: ../../whatsnew/3.7.rst:81
msgid ""
":ref:`PEP 560 <whatsnew37-pep560>`, core support for typing module and "
"generic types."
msgstr ""
":ref:`PEP 560 <whatsnew37-pep560>` 、typing モジュールとジェネリック型に対す"
"る言語コアによるサポート。"
#: ../../whatsnew/3.7.rst:84
msgid ""
"the insertion-order preservation nature of :ref:`dict <typesmapping>` "
"objects `has been declared`_ to be an official part of the Python language "
"spec."
msgstr ""
":ref:`dict <typesmapping>` オブジェクトの挿入順序を保存するという性質が、公"
"式に Python 言語仕様の一部であると `宣言されました <has been declared>`_ 。"
#: ../../whatsnew/3.7.rst:90
msgid "Significant improvements in the standard library:"
msgstr "標準ライブラリーの顕著な改善"
#: ../../whatsnew/3.7.rst:92
msgid ""
"The :mod:`asyncio` module has received new features, significant :ref:"
"`usability and performance improvements <whatsnew37_asyncio>`."
msgstr ""
":mod:`asyncio` モジュールに新しい機能が加わりました。\n"
"顕著な :ref:`使い勝手とパフォーマンスの改善 <whatsnew37_asyncio>` です。"
#: ../../whatsnew/3.7.rst:95
msgid ""
"The :mod:`time` module gained support for :ref:`functions with nanosecond "
"resolution <whatsnew37-pep564>`."
msgstr ""
":mod:`time` モジュールが :ref:`ナノ秒単位の分解能を持つ関数 <whatsnew37-"
"pep564>` をサポートするようになりました。"
#: ../../whatsnew/3.7.rst:98
msgid "CPython implementation improvements:"
msgstr "CPython の実装の改善:"
#: ../../whatsnew/3.7.rst:100
msgid "Avoiding the use of ASCII as a default text encoding:"
msgstr "デフォルトのテキストエンコーディングとして ASCII を使わなくなりました:"
#: ../../whatsnew/3.7.rst:102
msgid ":ref:`PEP 538 <whatsnew37-pep538>`, legacy C locale coercion"
msgstr ":ref:`PEP 538 <whatsnew37-pep538>` 、レガシーな C ロケールの抑圧"
#: ../../whatsnew/3.7.rst:103
msgid ":ref:`PEP 540 <whatsnew37-pep540>`, forced UTF-8 runtime mode"
msgstr ":ref:`PEP 540 <whatsnew37-pep540>`, UTF-8 実行時モードの強制"
#: ../../whatsnew/3.7.rst:104
msgid ":ref:`PEP 552 <whatsnew37-pep552>`, deterministic .pycs"
msgstr ":ref:`PEP 552 <whatsnew37-pep552>` 、決定論的な .pyc"
#: ../../whatsnew/3.7.rst:105
msgid ":ref:`New Python Development Mode <whatsnew37-devmode>`"
msgstr ""
#: ../../whatsnew/3.7.rst:106
msgid ""
":ref:`PEP 565 <whatsnew37-pep565>`, improved :exc:`DeprecationWarning` "
"handling"
msgstr ""
":ref:`PEP 565 <whatsnew37-pep565>` 、 :exc:`DeprecationWarning` の取り扱いの"
"改善"
#: ../../whatsnew/3.7.rst:109
msgid "C API improvements:"
msgstr "C API の改善:"
#: ../../whatsnew/3.7.rst:111
msgid ":ref:`PEP 539 <whatsnew37-pep539>`, new C API for thread-local storage"
msgstr ""
":ref:`PEP 539 <whatsnew37-pep539>` 、スレッドローカルなストレージのための新し"
"い C API"
#: ../../whatsnew/3.7.rst:113
msgid "Documentation improvements:"
msgstr "ドキュメントの改善:"
#: ../../whatsnew/3.7.rst:115
msgid ":ref:`PEP 545 <whatsnew37-pep545>`, Python documentation translations"
msgstr ":ref:`PEP 545 <whatsnew37-pep545>` 、 Python ドキュメント翻訳"
#: ../../whatsnew/3.7.rst:116
msgid ""
"New documentation translations: `Japanese <https://docs.python.org/ja/>`_, "
"`French <https://docs.python.org/fr/>`_, and `Korean <https://docs.python."
"org/ko/>`_."
msgstr ""
"新しいドキュメント翻訳: `日本語 <https://docs.python.org/ja/>`_ 、 `フランス"
"語 <https://docs.python.org/fr/>`_ 、 `韓国語 <https://docs.python.org/ko/"
">`_ 。"
#: ../../whatsnew/3.7.rst:120
msgid ""
"This release features notable performance improvements in many areas. The :"
"ref:`whatsnew37-perf` section lists them in detail."
msgstr ""
"このリリースの特色は、多くの領域での特筆すべきパフォーマンスの改善です。\n"
":ref:`whatsnew37-perf` 節に詳細な一覧があります。"
#: ../../whatsnew/3.7.rst:123
msgid ""
"For a list of changes that may affect compatibility with previous Python "
"releases please refer to the :ref:`porting-to-python-37` section."
msgstr ""
"1つ前にリリースされた Python との互換性に影響を持つ変更の一覧については、 :"
"ref:`porting-to-python-37` 節を参照してください。"
#: ../../whatsnew/3.7.rst:128
msgid "New Features"
msgstr "新しい機能"
#: ../../whatsnew/3.7.rst:133
msgid "PEP 563: Postponed Evaluation of Annotations"
msgstr "PEP 563: アノテーションの遅延評価"
#: ../../whatsnew/3.7.rst:135
msgid ""
"The advent of type hints in Python uncovered two glaring usability issues "
"with the functionality of annotations added in :pep:`3107` and refined "
"further in :pep:`526`:"
msgstr ""
"Python における型ヒントの到来により、 :pep:`3107` で追加され :pep:`526` でさ"
"らに改善されたアノテーションの機能について、使い勝手に関する 2 つの明白な問題"
"が明らかになりました:"
#: ../../whatsnew/3.7.rst:139
msgid ""
"annotations could only use names which were already available in the current "
"scope, in other words they didn't support forward references of any kind; and"
msgstr ""
"アノテーションには現在のスコープで既に使える状態になっている名前しか使えな"
"い。言い換えれば、どんな種類の前方参照もサポートしない。"
#: ../../whatsnew/3.7.rst:143
msgid ""
"annotating source code had adverse effects on startup time of Python "
"programs."
msgstr ""
"ソースコードに注釈を付けるのは Python プログラムの起動時間に好ましくない影響"
"がある。"
#: ../../whatsnew/3.7.rst:146
msgid ""
"Both of these issues are fixed by postponing the evaluation of annotations. "
"Instead of compiling code which executes expressions in annotations at their "
"definition time, the compiler stores the annotation in a string form "
"equivalent to the AST of the expression in question. If needed, annotations "
"can be resolved at runtime using :func:`typing.get_type_hints`. In the "
"common case where this is not required, the annotations are cheaper to store "
"(since short strings are interned by the interpreter) and make startup time "
"faster."
msgstr ""
"これらの問題はどちらもアノテーションの評価を遅延することで解決します。\n"
"アノテーションの定義時に、アノテーションに含まれる式を評価するコードをコンパ"
"イルする代わりに、コンパイラは当該の式の AST と同等な文字列形式でアノテーショ"
"ンを保存します。\n"
"必要であれば、 :func:`typing.get_type_hints` を使って実行時にアノテーションを"
"解決できます。\n"
"たいていのケースではその必要は無く、(短い文字列はインタプリタによって格納され"
"るので) アノテーションを保存するコストはより安くなり、起動時間がより速くなり"
"ます。"
#: ../../whatsnew/3.7.rst:155
msgid ""
"Usability-wise, annotations now support forward references, making the "
"following syntax valid::"
msgstr ""
"使い勝手の点では、アノテーションは前方参照をサポートするようになり、次の文法"
"が妥当なものになりました::"
#: ../../whatsnew/3.7.rst:158
msgid ""
"class C:\n"
" @classmethod\n"
" def from_string(cls, source: str) -> C:\n"
" ...\n"
"\n"
" def validate_b(self, obj: B) -> bool:\n"
" ...\n"
"\n"
"class B:\n"
" ..."
msgstr ""
#: ../../whatsnew/3.7.rst:169
msgid ""
"Since this change breaks compatibility, the new behavior needs to be enabled "
"on a per-module basis in Python 3.7 using a :mod:`__future__` import::"
msgstr ""
"この変更は後方互換性を壊してしまうので、新しい振る舞いは Python 3.7 では :"
"mod:`__future__` インポートを使いモジュールごとに有効化する必要があります::"
#: ../../whatsnew/3.7.rst:172
msgid "from __future__ import annotations"
msgstr ""
#: ../../whatsnew/3.7.rst:174
msgid "It will become the default in Python 3.10."
msgstr "この振る舞いは Python 3.10 でデフォルトになります。"
#: ../../whatsnew/3.7.rst:178
msgid ":pep:`563` -- Postponed evaluation of annotations"
msgstr ":pep:`563` -- アノテーションの遅延評価"
#: ../../whatsnew/3.7.rst:179
msgid "PEP written and implemented by Łukasz Langa."
msgstr "PEP written and implemented by Łukasz Langa."
#: ../../whatsnew/3.7.rst:185
msgid "PEP 538: Legacy C Locale Coercion"
msgstr "PEP 538: レガシーな C ロケールの抑圧"
#: ../../whatsnew/3.7.rst:187
msgid ""
"An ongoing challenge within the Python 3 series has been determining a "
"sensible default strategy for handling the \"7-bit ASCII\" text encoding "
"assumption currently implied by the use of the default C or POSIX locale on "
"non-Windows platforms."
msgstr ""
"Python 3 シリーズにおける継続中の課題の一つは、非 Windows プラットフォームで"
"はデフォルトの C ロケールつまり POSIX ロケールの使用から現在のところ必然的に"
"導かれてしまう \"7-bit ASCII\" テキストエンコーディングの仮定を取り扱う賢明な"
"デフォルトの方針を決定することです。"
#: ../../whatsnew/3.7.rst:192
msgid ""
":pep:`538` updates the default interpreter command line interface to "
"automatically coerce that locale to an available UTF-8 based locale as "
"described in the documentation of the new :envvar:`PYTHONCOERCECLOCALE` "
"environment variable. Automatically setting ``LC_CTYPE`` this way means that "
"both the core interpreter and locale-aware C extensions (such as :mod:"
"`readline`) will assume the use of UTF-8 as the default text encoding, "
"rather than ASCII."
msgstr ""
":pep:`538` はインタープリタのデフォルトのコマンドラインインターフェースを更新"
"し、新しく加わった :envvar:`PYTHONCOERCECLOCALE` 環境変数のドキュメントにある"
"通り、自動的にロケールを UTF-8 に基づいた利用可能なロケールへ強制します。\n"
"この方法で ``LC_CTYPE`` を自動的に設定すると、コアのインタープリタと (:mod:"
"`readline` などの) ロケールを考慮する C 拡張はデフォルトのテキストエンコー"
"ディングとして ASCII ではなく UTF-8 を使うことになります。"
#: ../../whatsnew/3.7.rst:200
msgid ""
"The platform support definition in :pep:`11` has also been updated to limit "
"full text handling support to suitably configured non-ASCII based locales."
msgstr ""
":pep:`11` にあるプラットフォームのサポート定義も、適切に設定された非 ASCII に"
"基づくロケールだけにテキスト処理の完全なサポートを制限するよう更新されまし"
"た。"
#: ../../whatsnew/3.7.rst:203
msgid ""
"As part of this change, the default error handler for :data:`~sys.stdin` "
"and :data:`~sys.stdout` is now ``surrogateescape`` (rather than ``strict``) "
"when using any of the defined coercion target locales (currently ``C."
"UTF-8``, ``C.utf8``, and ``UTF-8``). The default error handler for :data:"
"`~sys.stderr` continues to be ``backslashreplace``, regardless of locale."
msgstr ""
"この変更の一部として、強制対象として定義されたのロケール (現時点では ``C."
"UTF-8``, ``C.utf8``, ``UTF-8``) を使っているときの :data:`~sys.stdin` と :"
"data:`~sys.stdout` のデフォルトのエラーハンドラは (``strict`` ではなく) "
"``surrogateescape`` になります。\n"
":data:`~sys.stderr` のデフォルトのエラーハンドラは、ロケールに関係無く引き続"
"き ``backslashreplace`` です。"
#: ../../whatsnew/3.7.rst:209
msgid ""
"Locale coercion is silent by default, but to assist in debugging potentially "
"locale related integration problems, explicit warnings (emitted directly on :"
"data:`~sys.stderr`) can be requested by setting "
"``PYTHONCOERCECLOCALE=warn``. This setting will also cause the Python "
"runtime to emit a warning if the legacy C locale remains active when the "
"core interpreter is initialized."
msgstr ""
"デフォルトではロケールの強制は暗黙に行われますが、ロケールが関係する結合にお"
"ける問題のデバッグを支援するために、 ``PYTHONCOERCECLOCALE=warn`` を設定する"
"ことで (:data:`~sys.stderr` に直接出力される) 明示的な警告を要求できます。\n"
"この設定を有効にしていると、コアのインタプリタの初期化時にレガシーな C ロケー"
"ルが有効なままの場合、 Python 実行器が警告を出力します。"
#: ../../whatsnew/3.7.rst:215
msgid ""
"While :pep:`538`'s locale coercion has the benefit of also affecting "
"extension modules (such as GNU ``readline``), as well as child processes "
"(including those running non-Python applications and older versions of "
"Python), it has the downside of requiring that a suitable target locale be "
"present on the running system. To better handle the case where no suitable "
"target locale is available (as occurs on RHEL/CentOS 7, for example), Python "
"3.7 also implements :ref:`whatsnew37-pep540`."
msgstr ""
":pep:`538` のロケール強制には、(非 Python アプリケーションや古いバージョンの "
"Python で動くのも含めた) 子プロセスに加え (GNU ``readline`` などの) 影響を受"
"ける拡張モジュールにも利益がある一方、適切な対象ロケールが実行するシステムに"
"存在することを要求するという負の面もあります。\n"
"(例えば、RHEL/CentOS 7 で起きているように) 適切な対象ロケールで利用可能なもの"
"が無いケースにきちんと対処するために、 Python 3.7 には :ref:`whatsnew37-"
"pep540` も実装されています。"
#: ../../whatsnew/3.7.rst:225
msgid ":pep:`538` -- Coercing the legacy C locale to a UTF-8 based locale"
msgstr ":pep:`538` -- レガシーな C ロケールから UTF-8 ベースのロケールへの強制"
#: ../../whatsnew/3.7.rst:226
msgid "PEP written and implemented by Nick Coghlan."
msgstr "PEP written and implemented by Nick Coghlan."
#: ../../whatsnew/3.7.rst:232
msgid "PEP 540: Forced UTF-8 Runtime Mode"
msgstr "PEP 540: 強制 UTF-8 実行モード"
#: ../../whatsnew/3.7.rst:234
msgid ""
"The new :option:`-X` ``utf8`` command line option and :envvar:`PYTHONUTF8` "
"environment variable can be used to enable the :ref:`Python UTF-8 Mode <utf8-"
"mode>`."
msgstr ""
#: ../../whatsnew/3.7.rst:238
msgid ""
"When in UTF-8 mode, CPython ignores the locale settings, and uses the UTF-8 "
"encoding by default. The error handlers for :data:`sys.stdin` and :data:"
"`sys.stdout` streams are set to ``surrogateescape``."
msgstr ""
#: ../../whatsnew/3.7.rst:242
msgid ""
"The forced UTF-8 mode can be used to change the text handling behavior in an "
"embedded Python interpreter without changing the locale settings of an "
"embedding application."
msgstr ""
#: ../../whatsnew/3.7.rst:246
msgid ""
"While :pep:`540`'s UTF-8 mode has the benefit of working regardless of which "
"locales are available on the running system, it has the downside of having "
"no effect on extension modules (such as GNU ``readline``), child processes "
"running non-Python applications, and child processes running older versions "
"of Python. To reduce the risk of corrupting text data when communicating "
"with such components, Python 3.7 also implements :ref:`whatsnew37-pep540`)."
msgstr ""
#: ../../whatsnew/3.7.rst:253
msgid ""
"The UTF-8 mode is enabled by default when the locale is ``C`` or ``POSIX``, "
"and the :pep:`538` locale coercion feature fails to change it to a UTF-8 "
"based alternative (whether that failure is due to ``PYTHONCOERCECLOCALE=0`` "
"being set, ``LC_ALL`` being set, or the lack of a suitable target locale)."
msgstr ""
#: ../../whatsnew/3.7.rst:260
msgid ":pep:`540` -- Add a new UTF-8 mode"
msgstr ":pep:`540` -- 新しい UTF-8 モードの追加"
#: ../../whatsnew/3.7.rst:261 ../../whatsnew/3.7.rst:363
msgid "PEP written and implemented by Victor Stinner"
msgstr "PEP written and implemented by Victor Stinner"
#: ../../whatsnew/3.7.rst:267
msgid "PEP 553: Built-in ``breakpoint()``"
msgstr "PEP 553: 組み込みの ``breakpoint()``"
#: ../../whatsnew/3.7.rst:269
msgid ""
"Python 3.7 includes the new built-in :func:`breakpoint` function as an easy "
"and consistent way to enter the Python debugger."
msgstr ""
"Python 3.7 には、 Python デバッガへ入って行くための簡単で一貫した手段である、"
"新しい組み込みの :func:`breakpoint` 関数があります。"
#: ../../whatsnew/3.7.rst:272
msgid ""
"Built-in ``breakpoint()`` calls :func:`sys.breakpointhook`. By default, the "
"latter imports :mod:`pdb` and then calls ``pdb.set_trace()``, but by binding "
"``sys.breakpointhook()`` to the function of your choosing, ``breakpoint()`` "
"can enter any debugger. Additionally, the environment variable :envvar:"
"`PYTHONBREAKPOINT` can be set to the callable of your debugger of choice. "
"Set ``PYTHONBREAKPOINT=0`` to completely disable built-in ``breakpoint()``."
msgstr ""
#: ../../whatsnew/3.7.rst:282
msgid ":pep:`553` -- Built-in breakpoint()"
msgstr ":pep:`553` -- 組み込みの breakpoint()"
#: ../../whatsnew/3.7.rst:283
msgid "PEP written and implemented by Barry Warsaw"
msgstr "PEP written and implemented by Barry Warsaw"
#: ../../whatsnew/3.7.rst:289
msgid "PEP 539: New C API for Thread-Local Storage"
msgstr "PEP 539: スレッドローカルストレージのための新しい C API"
#: ../../whatsnew/3.7.rst:291
msgid ""
"While Python provides a C API for thread-local storage support; the "
"existing :ref:`Thread Local Storage (TLS) API <thread-local-storage-api>` "
"has used :c:expr:`int` to represent TLS keys across all platforms. This has "
"not generally been a problem for officially support platforms, but that is "
"neither POSIX-compliant, nor portable in any practical sense."
msgstr ""
#: ../../whatsnew/3.7.rst:297
msgid ""
":pep:`539` changes this by providing a new :ref:`Thread Specific Storage "
"(TSS) API <thread-specific-storage-api>` to CPython which supersedes use of "
"the existing TLS API within the CPython interpreter, while deprecating the "
"existing API. The TSS API uses a new type :c:type:`Py_tss_t` instead of :c:"
"expr:`int` to represent TSS keys--an opaque type the definition of which may "
"depend on the underlying TLS implementation. Therefore, this will allow to "
"build CPython on platforms where the native TLS key is defined in a way that "
"cannot be safely cast to :c:expr:`int`."
msgstr ""
#: ../../whatsnew/3.7.rst:306
msgid ""
"Note that on platforms where the native TLS key is defined in a way that "
"cannot be safely cast to :c:expr:`int`, all functions of the existing TLS "
"API will be no-op and immediately return failure. This indicates clearly "
"that the old API is not supported on platforms where it cannot be used "
"reliably, and that no effort will be made to add such support."
msgstr ""
#: ../../whatsnew/3.7.rst:314
msgid ":pep:`539` -- A New C-API for Thread-Local Storage in CPython"
msgstr ""
#: ../../whatsnew/3.7.rst:315
msgid "PEP written by Erik M. Bray; implementation by Masayuki Yamamoto."
msgstr ""
#: ../../whatsnew/3.7.rst:321
msgid "PEP 562: Customization of Access to Module Attributes"
msgstr "PEP 562: モジュール属性へのアクセスのカスタマイズ"
#: ../../whatsnew/3.7.rst:323
msgid ""
"Python 3.7 allows defining :meth:`__getattr__` on modules and will call it "
"whenever a module attribute is otherwise not found. Defining :meth:"
"`__dir__` on modules is now also allowed."
msgstr ""
"Python 3.7 ではモジュールに :meth:`__getattr__` が定義でき、モジュール属性が"
"あるときでも無いときでもこのメソッドが呼び出されます。\n"
":meth:`__dir__` メソッドもモジュールに定義できます。"
#: ../../whatsnew/3.7.rst:327
msgid ""
"A typical example of where this may be useful is module attribute "
"deprecation and lazy loading."
msgstr ""
"この機能が役に立つ典型的な実例はモジュール属性の非推奨化と遅延読み込みです。"
#: ../../whatsnew/3.7.rst:332
msgid ":pep:`562` -- Module ``__getattr__`` and ``__dir__``"
msgstr ":pep:`562` -- モジュールの ``__getattr__`` と ``__dir__``"
#: ../../whatsnew/3.7.rst:333 ../../whatsnew/3.7.rst:422
msgid "PEP written and implemented by Ivan Levkivskyi"
msgstr "PEP written and implemented by Ivan Levkivskyi"
#: ../../whatsnew/3.7.rst:339
msgid "PEP 564: New Time Functions With Nanosecond Resolution"
msgstr "PEP 564: ナノ秒単位の分解能を持つ新しい時間関数"
#: ../../whatsnew/3.7.rst:341
msgid ""
"The resolution of clocks in modern systems can exceed the limited precision "
"of a floating-point number returned by the :func:`time.time` function and "
"its variants. To avoid loss of precision, :pep:`564` adds six new "
"\"nanosecond\" variants of the existing timer functions to the :mod:`time` "
"module:"
msgstr ""
#: ../../whatsnew/3.7.rst:347 ../../whatsnew/3.7.rst:1451
msgid ":func:`time.clock_gettime_ns`"
msgstr ":func:`time.clock_gettime_ns`"
#: ../../whatsnew/3.7.rst:348 ../../whatsnew/3.7.rst:1452
msgid ":func:`time.clock_settime_ns`"
msgstr ":func:`time.clock_settime_ns`"
#: ../../whatsnew/3.7.rst:349 ../../whatsnew/3.7.rst:1453
msgid ":func:`time.monotonic_ns`"
msgstr ":func:`time.monotonic_ns`"
#: ../../whatsnew/3.7.rst:350 ../../whatsnew/3.7.rst:1454
msgid ":func:`time.perf_counter_ns`"
msgstr ":func:`time.perf_counter_ns`"
#: ../../whatsnew/3.7.rst:351 ../../whatsnew/3.7.rst:1455
msgid ":func:`time.process_time_ns`"
msgstr ":func:`time.process_time_ns`"
#: ../../whatsnew/3.7.rst:352 ../../whatsnew/3.7.rst:1456
msgid ":func:`time.time_ns`"
msgstr ":func:`time.time_ns`"
#: ../../whatsnew/3.7.rst:354
msgid "The new functions return the number of nanoseconds as an integer value."
msgstr "新しい関数は、整数値としてナノ秒単位の数値を返します。"
#: ../../whatsnew/3.7.rst:356
msgid ""
":pep:`Measurements <0564#annex-clocks-resolution-in-python>` show that on "
"Linux and Windows the resolution of :func:`time.time_ns` is approximately 3 "
"times better than that of :func:`time.time`."
msgstr ""
#: ../../whatsnew/3.7.rst:362
msgid ":pep:`564` -- Add new time functions with nanosecond resolution"
msgstr ":pep:`564` -- ナノ秒単位の分解能を持つ新しい時間関数の追加"
#: ../../whatsnew/3.7.rst:369
msgid "PEP 565: Show DeprecationWarning in ``__main__``"
msgstr ""
#: ../../whatsnew/3.7.rst:371
msgid ""
"The default handling of :exc:`DeprecationWarning` has been changed such that "
"these warnings are once more shown by default, but only when the code "
"triggering them is running directly in the :mod:`__main__` module. As a "
"result, developers of single file scripts and those using Python "
"interactively should once again start seeing deprecation warnings for the "
"APIs they use, but deprecation warnings triggered by imported application, "
"library and framework modules will continue to be hidden by default."
msgstr ""
#: ../../whatsnew/3.7.rst:379
msgid ""
"As a result of this change, the standard library now allows developers to "
"choose between three different deprecation warning behaviours:"
msgstr ""
#: ../../whatsnew/3.7.rst:382
msgid ""
":exc:`FutureWarning`: always displayed by default, recommended for warnings "
"intended to be seen by application end users (e.g. for deprecated "
"application configuration settings)."
msgstr ""
#: ../../whatsnew/3.7.rst:385
msgid ""
":exc:`DeprecationWarning`: displayed by default only in :mod:`__main__` and "
"when running tests, recommended for warnings intended to be seen by other "
"Python developers where a version upgrade may result in changed behaviour or "
"an error."
msgstr ""
#: ../../whatsnew/3.7.rst:389
msgid ""
":exc:`PendingDeprecationWarning`: displayed by default only when running "
"tests, intended for cases where a future version upgrade will change the "
"warning category to :exc:`DeprecationWarning` or :exc:`FutureWarning`."
msgstr ""
#: ../../whatsnew/3.7.rst:393
msgid ""
"Previously both :exc:`DeprecationWarning` and :exc:"
"`PendingDeprecationWarning` were only visible when running tests, which "
"meant that developers primarily writing single file scripts or using Python "
"interactively could be surprised by breaking changes in the APIs they used."
msgstr ""
#: ../../whatsnew/3.7.rst:400
msgid ":pep:`565` -- Show DeprecationWarning in ``__main__``"
msgstr ""
#: ../../whatsnew/3.7.rst:401
msgid "PEP written and implemented by Nick Coghlan"
msgstr "PEP written and implemented by Nick Coghlan"
#: ../../whatsnew/3.7.rst:407
msgid "PEP 560: Core Support for ``typing`` module and Generic Types"
msgstr ""
"PEP 560: ``typing`` モジュールとジェネリック型に対する言語コアによるサポート"
#: ../../whatsnew/3.7.rst:409
msgid ""
"Initially :pep:`484` was designed in such way that it would not introduce "
"*any* changes to the core CPython interpreter. Now type hints and the :mod:"
"`typing` module are extensively used by the community, so this restriction "
"is removed. The PEP introduces two special methods :meth:`__class_getitem__` "
"and ``__mro_entries__``, these methods are now used by most classes and "
"special constructs in :mod:`typing`. As a result, the speed of various "
"operations with types increased up to 7 times, the generic types can be used "
"without metaclass conflicts, and several long standing bugs in :mod:`typing` "
"module are fixed."
msgstr ""
"当初 :pep:`484` は、 CPython のインタプリタのコア部分に *どんな* 変更も施さな"
"いような方法で設計されていました。\n"
"今では型ヒントと :mod:`typing` モジュールはコミュニティに広く使われるように"
"なったため、この制限は取り除かれました。\n"
"この PEP では、2 つの特殊メソッド :meth:`__class_getitem__` と "
"``__mro_entries__`` が導入され、これらのメソッドはほとんどのクラスと :mod:"
"`typing` にある特別な構成物に使われています。\n"
"その結果、型に関する様々な操作の速度が最大で 7 倍にまでなり、ジェネリック型は"
"メタクラスの衝突を起こさずに使えるようになり、 :mod:`typing` にずっとあったい"
"くつかのバグが修正されました。"
#: ../../whatsnew/3.7.rst:421
msgid ":pep:`560` -- Core support for typing module and generic types"
msgstr ""
":pep:`560` -- typing モジュールとジェネリック型に対する言語コアによるサポート"
#: ../../whatsnew/3.7.rst:428
msgid "PEP 552: Hash-based .pyc Files"
msgstr ""
#: ../../whatsnew/3.7.rst:430
msgid ""
"Python has traditionally checked the up-to-dateness of bytecode cache files "
"(i.e., ``.pyc`` files) by comparing the source metadata (last-modified "
"timestamp and size) with source metadata saved in the cache file header when "
"it was generated. While effective, this invalidation method has its "
"drawbacks. When filesystem timestamps are too coarse, Python can miss "
"source updates, leading to user confusion. Additionally, having a timestamp "
"in the cache file is problematic for `build reproducibility <https://"
"reproducible-builds.org/>`_ and content-based build systems."
msgstr ""
#: ../../whatsnew/3.7.rst:439
msgid ""
":pep:`552` extends the pyc format to allow the hash of the source file to be "
"used for invalidation instead of the source timestamp. Such ``.pyc`` files "
"are called \"hash-based\". By default, Python still uses timestamp-based "
"invalidation and does not generate hash-based ``.pyc`` files at runtime. "
"Hash-based ``.pyc`` files may be generated with :mod:`py_compile` or :mod:"
"`compileall`."
msgstr ""
#: ../../whatsnew/3.7.rst:445
msgid ""
"Hash-based ``.pyc`` files come in two variants: checked and unchecked. "
"Python validates checked hash-based ``.pyc`` files against the corresponding "
"source files at runtime but doesn't do so for unchecked hash-based pycs. "
"Unchecked hash-based ``.pyc`` files are a useful performance optimization "
"for environments where a system external to Python (e.g., the build system) "
"is responsible for keeping ``.pyc`` files up-to-date."
msgstr ""
#: ../../whatsnew/3.7.rst:452
msgid "See :ref:`pyc-invalidation` for more information."
msgstr ""
#: ../../whatsnew/3.7.rst:456
msgid ":pep:`552` -- Deterministic pycs"
msgstr ""
#: ../../whatsnew/3.7.rst:457
msgid "PEP written and implemented by Benjamin Peterson"
msgstr "PEP written and implemented by Benjamin Peterson"
#: ../../whatsnew/3.7.rst:463
msgid "PEP 545: Python Documentation Translations"
msgstr ""
#: ../../whatsnew/3.7.rst:465
msgid ""
":pep:`545` describes the process of creating and maintaining Python "
"documentation translations."
msgstr ""
#: ../../whatsnew/3.7.rst:468
msgid "Three new translations have been added:"
msgstr ""
#: ../../whatsnew/3.7.rst:470
msgid "Japanese: https://docs.python.org/ja/"
msgstr "日本語: https://docs.python.org/ja/"
#: ../../whatsnew/3.7.rst:471
msgid "French: https://docs.python.org/fr/"
msgstr "フランス語: https://docs.python.org/fr/"
#: ../../whatsnew/3.7.rst:472
msgid "Korean: https://docs.python.org/ko/"
msgstr "韓国語: https://docs.python.org/ko/"
#: ../../whatsnew/3.7.rst:476
msgid ":pep:`545` -- Python Documentation Translations"
msgstr ":pep:`545` -- Python ドキュメント翻訳"
#: ../../whatsnew/3.7.rst:477
msgid ""
"PEP written and implemented by Julien Palard, Inada Naoki, and Victor "
"Stinner."
msgstr ""
"PEP written and implemented by Julien Palard, Inada Naoki, and Victor "
"Stinner."
#: ../../whatsnew/3.7.rst:484
msgid "Python Development Mode (-X dev)"
msgstr ""
#: ../../whatsnew/3.7.rst:486
msgid ""
"The new :option:`-X` ``dev`` command line option or the new :envvar:"
"`PYTHONDEVMODE` environment variable can be used to enable :ref:`Python "
"Development Mode <devmode>`. When in development mode, Python performs "
"additional runtime checks that are too expensive to be enabled by default. "
"See :ref:`Python Development Mode <devmode>` documentation for the full "
"description."
msgstr ""
#: ../../whatsnew/3.7.rst:495
msgid "Other Language Changes"
msgstr "その他の言語変更"
#: ../../whatsnew/3.7.rst:497
msgid ""
"An :keyword:`await` expression and comprehensions containing an :keyword:"
"`async for` clause were illegal in the expressions in :ref:`formatted string "
"literals <f-strings>` due to a problem with the implementation. In Python "
"3.7 this restriction was lifted."
msgstr ""
#: ../../whatsnew/3.7.rst:502
msgid ""
"More than 255 arguments can now be passed to a function, and a function can "
"now have more than 255 parameters. (Contributed by Serhiy Storchaka in :"
"issue:`12844` and :issue:`18896`.)"
msgstr ""
#: ../../whatsnew/3.7.rst:506
msgid ""
":meth:`bytes.fromhex` and :meth:`bytearray.fromhex` now ignore all ASCII "
"whitespace, not only spaces. (Contributed by Robert Xiao in :issue:`28927`.)"
msgstr ""
#: ../../whatsnew/3.7.rst:509
msgid ""
":class:`str`, :class:`bytes`, and :class:`bytearray` gained support for the "
"new :meth:`isascii() <str.isascii>` method, which can be used to test if a "
"string or bytes contain only the ASCII characters. (Contributed by INADA "
"Naoki in :issue:`32677`.)"
msgstr ""
#: ../../whatsnew/3.7.rst:514
msgid ""
":exc:`ImportError` now displays module name and module ``__file__`` path "
"when ``from ... import ...`` fails. (Contributed by Matthias Bussonnier in :"
"issue:`29546`.)"
msgstr ""
#: ../../whatsnew/3.7.rst:518
msgid ""
"Circular imports involving absolute imports with binding a submodule to a "
"name are now supported. (Contributed by Serhiy Storchaka in :issue:`30024`.)"
msgstr ""
#: ../../whatsnew/3.7.rst:522
msgid ""
"``object.__format__(x, '')`` is now equivalent to ``str(x)`` rather than "
"``format(str(self), '')``. (Contributed by Serhiy Storchaka in :issue:"
"`28974`.)"
msgstr ""
#: ../../whatsnew/3.7.rst:526
msgid ""
"In order to better support dynamic creation of stack traces, :class:`types."
"TracebackType` can now be instantiated from Python code, and the :attr:"
"`~traceback.tb_next` attribute on :ref:`tracebacks <traceback-objects>` is "
"now writable. (Contributed by Nathaniel J. Smith in :issue:`30579`.)"
msgstr ""
#: ../../whatsnew/3.7.rst:532
msgid ""
"When using the :option:`-m` switch, ``sys.path[0]`` is now eagerly expanded "
"to the full starting directory path, rather than being left as the empty "
"directory (which allows imports from the *current* working directory at the "
"time when an import occurs) (Contributed by Nick Coghlan in :issue:`33053`.)"
msgstr ""
#: ../../whatsnew/3.7.rst:538
msgid ""
"The new :option:`-X` ``importtime`` option or the :envvar:"
"`PYTHONPROFILEIMPORTTIME` environment variable can be used to show the "
"timing of each module import. (Contributed by Inada Naoki in :issue:`31415`.)"
msgstr ""
#: ../../whatsnew/3.7.rst:545
msgid "New Modules"
msgstr "新たなモジュール"
#: ../../whatsnew/3.7.rst:550
msgid "contextvars"
msgstr "contextvars"
#: ../../whatsnew/3.7.rst:552
msgid ""
"The new :mod:`contextvars` module and a set of :ref:`new C APIs "
"<contextvarsobjects>` introduce support for *context variables*. Context "
"variables are conceptually similar to thread-local variables. Unlike TLS, "
"context variables support asynchronous code correctly."
msgstr ""
#: ../../whatsnew/3.7.rst:558
msgid ""
"The :mod:`asyncio` and :mod:`decimal` modules have been updated to use and "
"support context variables out of the box. Particularly the active decimal "
"context is now stored in a context variable, which allows decimal operations "
"to work with the correct context in asynchronous code."
msgstr ""
#: ../../whatsnew/3.7.rst:565
msgid ":pep:`567` -- Context Variables"
msgstr ":pep:`567` -- コンテキスト変数"
#: ../../whatsnew/3.7.rst:566
msgid "PEP written and implemented by Yury Selivanov"
msgstr "PEP written and implemented by Yury Selivanov"
#: ../../whatsnew/3.7.rst:572
msgid "dataclasses"
msgstr "データクラス"
#: ../../whatsnew/3.7.rst:574
msgid ""
"The new :func:`~dataclasses.dataclass` decorator provides a way to declare "
"*data classes*. A data class describes its attributes using class variable "
"annotations. Its constructor and other magic methods, such as :meth:"
"`~object.__repr__`, :meth:`~object.__eq__`, and :meth:`~object.__hash__` are "
"generated automatically."
msgstr ""
"新しい :func:`~dataclasses.dataclass` デコレータにより *データクラス* を宣言"
"する方法が提供されます。\n"
"データクラスは属性を記述するのに、クラス変数アノテーションを使います。\n"
"コンストラクタや他の :meth:`~object.__repr__`, :meth:`~object.__eq__`, :meth:"
"`~object.__hash__` などのマジックメソッドは自動で生成されます。"
#: ../../whatsnew/3.7.rst:580
msgid "Example::"
msgstr "以下はプログラム例です::"
#: ../../whatsnew/3.7.rst:582
msgid ""
"@dataclass\n"
"class Point:\n"
" x: float\n"
" y: float\n"
" z: float = 0.0\n"
"\n"
"p = Point(1.5, 2.5)\n"
"print(p) # produces \"Point(x=1.5, y=2.5, z=0.0)\""
msgstr ""
#: ../../whatsnew/3.7.rst:593
msgid ":pep:`557` -- Data Classes"
msgstr ":pep:`557` -- データクラス"
#: ../../whatsnew/3.7.rst:594
msgid "PEP written and implemented by Eric V. Smith"
msgstr "PEP written and implemented by Eric V. Smith"
#: ../../whatsnew/3.7.rst:600
msgid "importlib.resources"
msgstr "importlib.resources"
#: ../../whatsnew/3.7.rst:602
msgid ""
"The new :mod:`importlib.resources` module provides several new APIs and one "
"new ABC for access to, opening, and reading *resources* inside packages. "
"Resources are roughly similar to files inside packages, but they needn't be "
"actual files on the physical file system. Module loaders can provide a :"
"meth:`get_resource_reader` function which returns a :class:`importlib.abc."
"ResourceReader` instance to support this new API. Built-in file path "
"loaders and zip file loaders both support this."
msgstr ""
#: ../../whatsnew/3.7.rst:610
msgid "Contributed by Barry Warsaw and Brett Cannon in :issue:`32248`."
msgstr "Contributed by Barry Warsaw and Brett Cannon in :issue:`32248`."
#: ../../whatsnew/3.7.rst:614
msgid ""
"`importlib_resources <https://importlib-resources.readthedocs.io/en/latest/"
">`_ -- a PyPI backport for earlier Python versions."
msgstr ""
#: ../../whatsnew/3.7.rst:619
msgid "Improved Modules"
msgstr "改良されたモジュール"
#: ../../whatsnew/3.7.rst:623
msgid "argparse"