-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy path3.9.po
2606 lines (2226 loc) · 92.8 KB
/
3.9.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
# Shin Saito, 2021
# yaakiyu, 2022
# Arihiro TAKASE, 2023
# Takanori Suzuki <[email protected]>, 2024
# tomo, 2024
# Yasuyuki ARAKI, 2024
#
#, 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: Yasuyuki ARAKI, 2024\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.9.rst:3
msgid "What's New In Python 3.9"
msgstr "What's New In Python 3.9"
#: ../../whatsnew/3.9.rst:0
msgid "Editor"
msgstr "編集者"
#: ../../whatsnew/3.9.rst:5
msgid "Łukasz Langa"
msgstr "Łukasz Langa"
#: ../../whatsnew/3.9.rst:45
msgid ""
"This article explains the new features in Python 3.9, compared to 3.8. "
"Python 3.9 was released on October 5, 2020. For full details, see the :ref:"
"`changelog <changelog>`."
msgstr ""
#: ../../whatsnew/3.9.rst:51
msgid ":pep:`596` - Python 3.9 Release Schedule"
msgstr ":pep:`596` - Python 3.9 リリーススケジュール"
#: ../../whatsnew/3.9.rst:55
msgid "Summary -- Release highlights"
msgstr "概要 -- リリースハイライト"
#: ../../whatsnew/3.9.rst:60
msgid "New syntax features:"
msgstr "新たな文法機能:"
#: ../../whatsnew/3.9.rst:62
msgid ":pep:`584`, union operators added to ``dict``;"
msgstr ":pep:`584`、 ``dict`` に和集合の演算子が追加されました。"
#: ../../whatsnew/3.9.rst:63
msgid ":pep:`585`, type hinting generics in standard collections;"
msgstr ""
":pep:`585`、標準コレクション型の型ヒントにおける総称型 (generics) の使用。"
#: ../../whatsnew/3.9.rst:64
msgid ":pep:`614`, relaxed grammar restrictions on decorators."
msgstr ":pep:`614`、デコレータの適用における文法的制約の緩和。"
#: ../../whatsnew/3.9.rst:66
msgid "New built-in features:"
msgstr "新たな組み込み機能:"
#: ../../whatsnew/3.9.rst:68
msgid ":pep:`616`, string methods to remove prefixes and suffixes."
msgstr ":pep:`616`、prefixとsuffixを削除する文字列メソッド。"
#: ../../whatsnew/3.9.rst:70
msgid "New features in the standard library:"
msgstr "標準ライブラリの新機能:"
#: ../../whatsnew/3.9.rst:72
msgid ":pep:`593`, flexible function and variable annotations;"
msgstr ""
":pep:`593`、より柔軟な変数・関数アノテーション (訳注: ``Annotated`` の導入)。"
#: ../../whatsnew/3.9.rst:73
msgid ""
":func:`os.pidfd_open` added that allows process management without races and "
"signals."
msgstr ""
":func:`os.pidfd_open` が追加され、レースやシグナルを使わずにプロセス管理がで"
"きるようになりました。"
#: ../../whatsnew/3.9.rst:76
msgid "Interpreter improvements:"
msgstr "インタプリタの改善:"
#: ../../whatsnew/3.9.rst:78
msgid ""
":pep:`573`, fast access to module state from methods of C extension types;"
msgstr ""
#: ../../whatsnew/3.9.rst:80
msgid ":pep:`617`, CPython now uses a new parser based on PEG;"
msgstr ""
":pep:`617`、CPython における PEG (Parser Expression Grammar) ベースの新しい構"
"文解析器の使用。"
#: ../../whatsnew/3.9.rst:81
msgid ""
"a number of Python builtins (range, tuple, set, frozenset, list, dict) are "
"now sped up using :pep:`590` vectorcall;"
msgstr ""
"いくつかのPythonの組み込み型(range, tuple, set, frozenset, list, dict) を :"
"pep:`590` vectorcall を用いて高速化しました。"
#: ../../whatsnew/3.9.rst:83
msgid "garbage collection does not block on resurrected objects;"
msgstr ""
#: ../../whatsnew/3.9.rst:84
msgid ""
"a number of Python modules (:mod:`!_abc`, :mod:`!audioop`, :mod:`!_bz2`, :"
"mod:`!_codecs`, :mod:`!_contextvars`, :mod:`!_crypt`, :mod:`!_functools`, :"
"mod:`!_json`, :mod:`!_locale`, :mod:`math`, :mod:`operator`, :mod:"
"`resource`, :mod:`time`, :mod:`!_weakref`) now use multiphase initialization "
"as defined by PEP 489;"
msgstr ""
#: ../../whatsnew/3.9.rst:89
msgid ""
"a number of standard library modules (:mod:`!audioop`, :mod:`ast`, :mod:"
"`grp`, :mod:`!_hashlib`, :mod:`pwd`, :mod:`!_posixsubprocess`, :mod:"
"`random`, :mod:`select`, :mod:`struct`, :mod:`termios`, :mod:`zlib`) are now "
"using the stable ABI defined by PEP 384."
msgstr ""
#: ../../whatsnew/3.9.rst:94
msgid "New library modules:"
msgstr "新たなライブラリモジュール:"
#: ../../whatsnew/3.9.rst:96
msgid ""
":pep:`615`, the IANA Time Zone Database is now present in the standard "
"library in the :mod:`zoneinfo` module;"
msgstr ""
":pep:`615`、IANAのTime Zone Databaseが標準ライブラリの :mod:`zoneinfo` モ"
"ジュールで提供されるようになりました。"
#: ../../whatsnew/3.9.rst:98
msgid ""
"an implementation of a topological sort of a graph is now provided in the "
"new :mod:`graphlib` module."
msgstr ""
#: ../../whatsnew/3.9.rst:101
msgid "Release process changes:"
msgstr "リリースプロセスの変更:"
#: ../../whatsnew/3.9.rst:103
msgid ":pep:`602`, CPython adopts an annual release cycle."
msgstr ":pep:`602`、CPythonは年次のリリースサイクルを採用します。"
#: ../../whatsnew/3.9.rst:107
msgid "You should check for DeprecationWarning in your code"
msgstr "コード中の非推奨警告(DeprecationWarning)をチェックして下さい"
#: ../../whatsnew/3.9.rst:109
msgid ""
"When Python 2.7 was still supported, a lot of functionality in Python 3 was "
"kept for backward compatibility with Python 2.7. With the end of Python 2 "
"support, these backward compatibility layers have been removed, or will be "
"removed soon. Most of them emitted a :exc:`DeprecationWarning` warning for "
"several years. For example, using ``collections.Mapping`` instead of "
"``collections.abc.Mapping`` emits a :exc:`DeprecationWarning` since Python "
"3.3, released in 2012."
msgstr ""
"Python 2.7がまだサポートされていた期間、Python 3の多くの機能はPython 2.7との"
"後方互換性を保っていました。Python 2サポートの終了とともに、この後方互換性レ"
"イヤは除去されたか、間もなく除去されます。ここ数年で、それらの多くは警告 :"
"exc:`DeprecationWarning` を出すようになりました。例えば、2012年にリリースされ"
"たPython 3.3以降、``collections.abc.Mapping`` の代りに ``collections."
"Mapping`` を使うと、警告 :exc:`DeprecationWarning` が出ます。"
#: ../../whatsnew/3.9.rst:117
msgid ""
"Test your application with the :option:`-W` ``default`` command-line option "
"to see :exc:`DeprecationWarning` and :exc:`PendingDeprecationWarning`, or "
"even with :option:`-W` ``error`` to treat them as errors. :ref:`Warnings "
"Filter <warning-filter>` can be used to ignore warnings from third-party "
"code."
msgstr ""
"警告 :exc:`DeprecationWarning` および :exc:`PendingDeprecationWarning` を確認"
"するために、 :option:`-W` ``default`` コマンドラインオプションを付けて、あな"
"たのアプリケーションをテストして下さい。あるいは、:option:`-W` ``error`` で警"
"告をエラーとして扱うこともできます。サードパーティによるコードの警告を無視す"
"るには、:ref:`Warnings Filter <warning-filter>` を使うことができます。"
#: ../../whatsnew/3.9.rst:122
msgid ""
"Python 3.9 is the last version providing those Python 2 backward "
"compatibility layers, to give more time to Python projects maintainers to "
"organize the removal of the Python 2 support and add support for Python 3.9."
msgstr ""
"Python 3.9は、Python 2後方互換性レイヤを提供する最後のバージョンです。このレ"
"イヤは、Pythonプロジェクトの保守管理者に、Python 2サポートを止めてPython 3.9"
"サポートを追加する時間的な余裕を与えるためのものです。"
#: ../../whatsnew/3.9.rst:126
msgid ""
"Aliases to :ref:`Abstract Base Classes <collections-abstract-base-classes>` "
"in the :mod:`collections` module, like ``collections.Mapping`` alias to :"
"class:`collections.abc.Mapping`, are kept for one last release for backward "
"compatibility. They will be removed from Python 3.10."
msgstr ""
#: ../../whatsnew/3.9.rst:131
msgid ""
"More generally, try to run your tests in the :ref:`Python Development Mode "
"<devmode>` which helps to prepare your code to make it compatible with the "
"next Python version."
msgstr ""
"より一般的には、あなたのコードが次のバージョンのPythonと互換性を保てるよう、:"
"ref:`Python Development Mode <devmode>` でテストするようにしてください。"
#: ../../whatsnew/3.9.rst:135
msgid ""
"Note: a number of pre-existing deprecations were removed in this version of "
"Python as well. Consult the :ref:`removed-in-python-39` section."
msgstr ""
"注釈: Pythonのこのバージョンで、既存の多くの非推奨機能が削除されました。詳し"
"くは :ref:`removed-in-python-39` を見て下さい。"
#: ../../whatsnew/3.9.rst:140 ../../whatsnew/3.9.rst:1271
msgid "New Features"
msgstr "新しい機能"
#: ../../whatsnew/3.9.rst:143
msgid "Dictionary Merge & Update Operators"
msgstr "辞書のマージと更新演算子"
#: ../../whatsnew/3.9.rst:145
msgid ""
"Merge (``|``) and update (``|=``) operators have been added to the built-in :"
"class:`dict` class. Those complement the existing ``dict.update`` and "
"``{**d1, **d2}`` methods of merging dictionaries."
msgstr ""
"組み込みの :class:`dict` クラスにマージ(``|``)と更新(``|=``)演算子が追加され"
"ました。この演算子は、辞書をマージする既存の方法 ``dict.update`` と ``{**d1, "
"**d2}`` を補完します。"
#: ../../whatsnew/3.9.rst:149 ../../whatsnew/3.9.rst:282
msgid "Example::"
msgstr "以下はプログラム例です::"
#: ../../whatsnew/3.9.rst:151
msgid ""
">>> x = {\"key1\": \"value1 from x\", \"key2\": \"value2 from x\"}\n"
">>> y = {\"key2\": \"value2 from y\", \"key3\": \"value3 from y\"}\n"
">>> x | y\n"
"{'key1': 'value1 from x', 'key2': 'value2 from y', 'key3': 'value3 from y'}\n"
">>> y | x\n"
"{'key2': 'value2 from x', 'key3': 'value3 from y', 'key1': 'value1 from x'}"
msgstr ""
#: ../../whatsnew/3.9.rst:158
msgid ""
"See :pep:`584` for a full description. (Contributed by Brandt Bucher in :"
"issue:`36144`.)"
msgstr ""
"詳細は :pep:`584` を参照してください。(Brandt Bucher の貢献による :issue:"
"`36144`)"
#: ../../whatsnew/3.9.rst:162
msgid "New String Methods to Remove Prefixes and Suffixes"
msgstr "prefixとsuffixを削除する新しい文字列メソッド"
#: ../../whatsnew/3.9.rst:164
msgid ""
":meth:`str.removeprefix(prefix)<str.removeprefix>` and :meth:`str."
"removesuffix(suffix)<str.removesuffix>` have been added to easily remove an "
"unneeded prefix or a suffix from a string. Corresponding ``bytes``, "
"``bytearray``, and ``collections.UserString`` methods have also been added. "
"See :pep:`616` for a full description. (Contributed by Dennis Sweeney in :"
"issue:`39939`.)"
msgstr ""
"文字列から不要な prefix や suffix を簡単に削除する :meth:`str."
"removeprefix(prefix)<str.removeprefix>` と :meth:`str."
"removesuffix(suffix)<str.removesuffix>` が追加されました。 ``bytes``, "
"``bytearray``, ``collections.UserString`` にも同様のメソッドが追加されまし"
"た。詳細は :pep:`616` を参照してください。(Dennis Sweeney の貢献による :"
"issue:`39939`)"
#: ../../whatsnew/3.9.rst:172
msgid "Type Hinting Generics in Standard Collections"
msgstr "標準コレクション型の型ヒントにおける総称型 (generics) の使用"
#: ../../whatsnew/3.9.rst:174
msgid ""
"In type annotations you can now use built-in collection types such as "
"``list`` and ``dict`` as generic types instead of importing the "
"corresponding capitalized types (e.g. ``List`` or ``Dict``) from "
"``typing``. Some other types in the standard library are also now generic, "
"for example ``queue.Queue``."
msgstr ""
"型アノテーションで、``typing`` モジュールからインポートしていた大文字の型"
"(``List`` や ``Dict``)の代わりに、総称型(generics)で ``list`` や "
"``dict`` といった標準コレクション型が使用できるようになりました。いくつかの他"
"の標準ライブラリの型(``queue.Queue`` など)も総称型として使用できます。"
#: ../../whatsnew/3.9.rst:180 ../../whatsnew/3.9.rst:1159
msgid "Example:"
msgstr "例:"
#: ../../whatsnew/3.9.rst:182
msgid ""
"def greet_all(names: list[str]) -> None:\n"
" for name in names:\n"
" print(\"Hello\", name)"
msgstr ""
#: ../../whatsnew/3.9.rst:188
msgid ""
"See :pep:`585` for more details. (Contributed by Guido van Rossum, Ethan "
"Smith, and Batuhan Taşkaya in :issue:`39481`.)"
msgstr ""
"詳細は :pep:`585` を参照してください。(Guido van Rossum、Ethan Smith、"
"Batuhan Taşkaya の貢献による :issue:`39481`)"
#: ../../whatsnew/3.9.rst:192
msgid "New Parser"
msgstr "新しいパーサー"
#: ../../whatsnew/3.9.rst:194
msgid ""
"Python 3.9 uses a new parser, based on `PEG <https://en.wikipedia.org/wiki/"
"Parsing_expression_grammar>`_ instead of `LL(1) <https://en.wikipedia.org/"
"wiki/LL_parser>`_. The new parser's performance is roughly comparable to "
"that of the old parser, but the PEG formalism is more flexible than LL(1) "
"when it comes to designing new language features. We'll start using this "
"flexibility in Python 3.10 and later."
msgstr ""
"Python 3.9は、 `LL(1) <https://en.wikipedia.org/wiki/LL_parser>`_ に代えて "
"`PEG <https://en.wikipedia.org/wiki/Parsing_expression_grammar>`_ に基づく新"
"しいパーサーを採用しています。新しいパーサーのパフォーマンスは古いパーサーと"
"ほぼ同程度ですが、新しい言語の機能を設計する際に、PEGの形式主義はより柔軟で"
"す。我々は、この柔軟性をPython 3.10以降に使い始める予定です。"
#: ../../whatsnew/3.9.rst:202
msgid ""
"The :mod:`ast` module uses the new parser and produces the same AST as the "
"old parser."
msgstr ""
":mod:`ast` モジュールは、新しいパーサーを使って古いパーサーと同じASTを生成し"
"ます。"
#: ../../whatsnew/3.9.rst:205
msgid ""
"In Python 3.10, the old parser will be deleted and so will all functionality "
"that depends on it (primarily the :mod:`!parser` module, which has long been "
"deprecated). In Python 3.9 *only*, you can switch back to the LL(1) parser "
"using a command line switch (``-X oldparser``) or an environment variable "
"(``PYTHONOLDPARSER=1``)."
msgstr ""
#: ../../whatsnew/3.9.rst:211
msgid ""
"See :pep:`617` for more details. (Contributed by Guido van Rossum, Pablo "
"Galindo and Lysandros Nikolaou in :issue:`40334`.)"
msgstr ""
"詳細は :pep:`617` を参照してください。(Guido van Rossum,、Pablo Galindo、およ"
"びLysandros Nikolaouの貢献による :issue:`40334`)"
#: ../../whatsnew/3.9.rst:216
msgid "Other Language Changes"
msgstr "その他の言語変更"
#: ../../whatsnew/3.9.rst:218
msgid ""
":func:`__import__` now raises :exc:`ImportError` instead of :exc:"
"`ValueError`, which used to occur when a relative import went past its top-"
"level package. (Contributed by Ngalim Siregar in :issue:`37444`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:223
msgid ""
"Python now gets the absolute path of the script filename specified on the "
"command line (ex: ``python3 script.py``): the ``__file__`` attribute of the :"
"mod:`__main__` module became an absolute path, rather than a relative path. "
"These paths now remain valid after the current directory is changed by :func:"
"`os.chdir`. As a side effect, the traceback also displays the absolute path "
"for :mod:`__main__` module frames in this case. (Contributed by Victor "
"Stinner in :issue:`20443`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:231
msgid ""
"In the :ref:`Python Development Mode <devmode>` and in :ref:`debug build "
"<debug-build>`, the *encoding* and *errors* arguments are now checked for "
"string encoding and decoding operations. Examples: :func:`open`, :meth:`str."
"encode` and :meth:`bytes.decode`."
msgstr ""
#: ../../whatsnew/3.9.rst:236
msgid ""
"By default, for best performance, the *errors* argument is only checked at "
"the first encoding/decoding error and the *encoding* argument is sometimes "
"ignored for empty strings. (Contributed by Victor Stinner in :issue:`37388`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:241
msgid ""
"``\"\".replace(\"\", s, n)`` now returns ``s`` instead of an empty string "
"for all non-zero ``n``. It is now consistent with ``\"\".replace(\"\", "
"s)``. There are similar changes for :class:`bytes` and :class:`bytearray` "
"objects. (Contributed by Serhiy Storchaka in :issue:`28029`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:246
msgid ""
"Any valid expression can now be used as a :term:`decorator`. Previously, "
"the grammar was much more restrictive. See :pep:`614` for details. "
"(Contributed by Brandt Bucher in :issue:`39702`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:250
msgid ""
"Improved help for the :mod:`typing` module. Docstrings are now shown for all "
"special forms and special generic aliases (like ``Union`` and ``List``). "
"Using :func:`help` with generic alias like ``List[int]`` will show the help "
"for the correspondent concrete type (``list`` in this case). (Contributed by "
"Serhiy Storchaka in :issue:`40257`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:256
msgid ""
"Parallel running of :meth:`~agen.aclose` / :meth:`~agen.asend` / :meth:"
"`~agen.athrow` is now prohibited, and ``ag_running`` now reflects the actual "
"running status of the async generator. (Contributed by Yury Selivanov in :"
"issue:`30773`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:261
msgid ""
"Unexpected errors in calling the ``__iter__`` method are no longer masked by "
"``TypeError`` in the :keyword:`in` operator and functions :func:`~operator."
"contains`, :func:`~operator.indexOf` and :func:`~operator.countOf` of the :"
"mod:`operator` module. (Contributed by Serhiy Storchaka in :issue:`40824`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:267
msgid ""
"Unparenthesized lambda expressions can no longer be the expression part in "
"an ``if`` clause in comprehensions and generator expressions. See :issue:"
"`41848` and :issue:`43755` for details."
msgstr ""
#: ../../whatsnew/3.9.rst:273
msgid "New Modules"
msgstr "新たなモジュール"
#: ../../whatsnew/3.9.rst:276
msgid "zoneinfo"
msgstr ""
#: ../../whatsnew/3.9.rst:278
msgid ""
"The :mod:`zoneinfo` module brings support for the IANA time zone database to "
"the standard library. It adds :class:`zoneinfo.ZoneInfo`, a concrete :class:"
"`datetime.tzinfo` implementation backed by the system's time zone data."
msgstr ""
":mod:`zoneinfo` モジュールにより標準ライブラリにIANAのタイムゾーンデータベー"
"スへのサポートを導入されます。:class:`zoneinfo.ZoneInfo` という、システムのタ"
"イムゾーンデータを背景とした具体的な :class:`datetime.tzinfo` の実装が追加さ"
"れます。"
#: ../../whatsnew/3.9.rst:284
msgid ""
">>> from zoneinfo import ZoneInfo\n"
">>> from datetime import datetime, timedelta\n"
"\n"
">>> # Daylight saving time\n"
">>> dt = datetime(2020, 10, 31, 12, tzinfo=ZoneInfo(\"America/"
"Los_Angeles\"))\n"
">>> print(dt)\n"
"2020-10-31 12:00:00-07:00\n"
">>> dt.tzname()\n"
"'PDT'\n"
"\n"
">>> # Standard time\n"
">>> dt += timedelta(days=7)\n"
">>> print(dt)\n"
"2020-11-07 12:00:00-08:00\n"
">>> print(dt.tzname())\n"
"PST"
msgstr ""
#: ../../whatsnew/3.9.rst:302
msgid ""
"As a fall-back source of data for platforms that don't ship the IANA "
"database, the :pypi:`tzdata` module was released as a first-party package -- "
"distributed via PyPI and maintained by the CPython core team."
msgstr ""
#: ../../whatsnew/3.9.rst:308
msgid ""
":pep:`615` -- Support for the IANA Time Zone Database in the Standard Library"
msgstr ""
#: ../../whatsnew/3.9.rst:309
msgid "PEP written and implemented by Paul Ganssle"
msgstr "PEP作成と実装は Paul Ganssle による。"
#: ../../whatsnew/3.9.rst:313
msgid "graphlib"
msgstr "graphlib"
#: ../../whatsnew/3.9.rst:315
msgid ""
"A new module, :mod:`graphlib`, was added that contains the :class:`graphlib."
"TopologicalSorter` class to offer functionality to perform topological "
"sorting of graphs. (Contributed by Pablo Galindo, Tim Peters and Larry "
"Hastings in :issue:`17005`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:322
msgid "Improved Modules"
msgstr "改良されたモジュール"
#: ../../whatsnew/3.9.rst:325
msgid "ast"
msgstr "ast"
#: ../../whatsnew/3.9.rst:327
msgid ""
"Added the *indent* option to :func:`~ast.dump` which allows it to produce a "
"multiline indented output. (Contributed by Serhiy Storchaka in :issue:"
"`37995`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:331
msgid ""
"Added :func:`ast.unparse` as a function in the :mod:`ast` module that can be "
"used to unparse an :class:`ast.AST` object and produce a string with code "
"that would produce an equivalent :class:`ast.AST` object when parsed. "
"(Contributed by Pablo Galindo and Batuhan Taskaya in :issue:`38870`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:336
msgid ""
"Added docstrings to AST nodes that contains the ASDL signature used to "
"construct that node. (Contributed by Batuhan Taskaya in :issue:`39638`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:340
msgid "asyncio"
msgstr "asyncio"
#: ../../whatsnew/3.9.rst:342
msgid ""
"Due to significant security concerns, the *reuse_address* parameter of :meth:"
"`asyncio.loop.create_datagram_endpoint` is no longer supported. This is "
"because of the behavior of the socket option ``SO_REUSEADDR`` in UDP. For "
"more details, see the documentation for ``loop.create_datagram_endpoint()``. "
"(Contributed by Kyle Stanley, Antoine Pitrou, and Yury Selivanov in :issue:"
"`37228`.)"
msgstr ""
"セキュリティ上の重大な懸念により、:meth:`asyncio.loop."
"create_datagram_endpoint` での *reuse_address* 引数は無効になりました。これは"
"ソケットオプション `SO_REUSEADDR`` のUDP における挙動が原因です。詳しくは、"
"``loop.create_datagram_endpoint()`` のドキュメントを参照してください。(Kyle "
"Stanley, Antoine Pitrou, Yury Selivanov による貢献 :issue:`37228`)"
#: ../../whatsnew/3.9.rst:349
msgid ""
"Added a new :term:`coroutine` :meth:`~asyncio.loop."
"shutdown_default_executor` that schedules a shutdown for the default "
"executor that waits on the :class:`~concurrent.futures.ThreadPoolExecutor` "
"to finish closing. Also, :func:`asyncio.run` has been updated to use the "
"new :term:`coroutine`. (Contributed by Kyle Stanley in :issue:`34037`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:355
msgid ""
"Added :class:`asyncio.PidfdChildWatcher`, a Linux-specific child watcher "
"implementation that polls process file descriptors. (:issue:`38692`)"
msgstr ""
#: ../../whatsnew/3.9.rst:358
msgid ""
"Added a new :term:`coroutine` :func:`asyncio.to_thread`. It is mainly used "
"for running IO-bound functions in a separate thread to avoid blocking the "
"event loop, and essentially works as a high-level version of :meth:`~asyncio."
"loop.run_in_executor` that can directly take keyword arguments. (Contributed "
"by Kyle Stanley and Yury Selivanov in :issue:`32309`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:364
msgid ""
"When cancelling the task due to a timeout, :meth:`asyncio.wait_for` will now "
"wait until the cancellation is complete also in the case when *timeout* is "
"<= 0, like it does with positive timeouts. (Contributed by Elvis "
"Pranskevichus in :issue:`32751`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:369
msgid ""
":mod:`asyncio` now raises :exc:`TypeError` when calling incompatible methods "
"with an :class:`ssl.SSLSocket` socket. (Contributed by Ido Michael in :issue:"
"`37404`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:374
msgid "compileall"
msgstr "compileall"
#: ../../whatsnew/3.9.rst:376
msgid ""
"Added new possibility to use hardlinks for duplicated ``.pyc`` files: "
"*hardlink_dupes* parameter and --hardlink-dupes command line option. "
"(Contributed by Lumír 'Frenzy' Balhar in :issue:`40495`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:379
msgid ""
"Added new options for path manipulation in resulting ``.pyc`` files: "
"*stripdir*, *prependdir*, *limit_sl_dest* parameters and -s, -p, -e command "
"line options. Added the possibility to specify the option for an "
"optimization level multiple times. (Contributed by Lumír 'Frenzy' Balhar in :"
"issue:`38112`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:384
msgid "concurrent.futures"
msgstr "concurrent.futures"
#: ../../whatsnew/3.9.rst:386
msgid ""
"Added a new *cancel_futures* parameter to :meth:`concurrent.futures.Executor."
"shutdown` that cancels all pending futures which have not started running, "
"instead of waiting for them to complete before shutting down the executor. "
"(Contributed by Kyle Stanley in :issue:`39349`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:392
msgid ""
"Removed daemon threads from :class:`~concurrent.futures.ThreadPoolExecutor` "
"and :class:`~concurrent.futures.ProcessPoolExecutor`. This improves "
"compatibility with subinterpreters and predictability in their shutdown "
"processes. (Contributed by Kyle Stanley in :issue:`39812`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:397
msgid ""
"Workers in :class:`~concurrent.futures.ProcessPoolExecutor` are now spawned "
"on demand, only when there are no available idle workers to reuse. This "
"optimizes startup overhead and reduces the amount of lost CPU time to idle "
"workers. (Contributed by Kyle Stanley in :issue:`39207`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:403
msgid "curses"
msgstr "curses"
#: ../../whatsnew/3.9.rst:405
msgid ""
"Added :func:`curses.get_escdelay`, :func:`curses.set_escdelay`, :func:"
"`curses.get_tabsize`, and :func:`curses.set_tabsize` functions. (Contributed "
"by Anthony Sottile in :issue:`38312`.)"
msgstr ""
":func:`curses.get_escdelay`, :func:`curses.set_escdelay`, :func:`curses."
"get_tabsize`, :func:`curses.set_tabsize` の関数が追加されました。(Anthony "
"Sottileによる :issue:`38312` でのコントリビュート。)"
#: ../../whatsnew/3.9.rst:410
msgid "datetime"
msgstr "datetime"
#: ../../whatsnew/3.9.rst:411
msgid ""
"The :meth:`~datetime.date.isocalendar` of :class:`datetime.date` and :meth:"
"`~datetime.datetime.isocalendar` of :class:`datetime.datetime` methods now "
"returns a :func:`~collections.namedtuple` instead of a :class:`tuple`. "
"(Contributed by Donghee Na in :issue:`24416`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:417
msgid "distutils"
msgstr "distutils"
#: ../../whatsnew/3.9.rst:419
msgid ""
"The :command:`upload` command now creates SHA2-256 and Blake2b-256 hash "
"digests. It skips MD5 on platforms that block MD5 digest. (Contributed by "
"Christian Heimes in :issue:`40698`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:424
msgid "fcntl"
msgstr "fcntl"
#: ../../whatsnew/3.9.rst:426
msgid ""
"Added constants :const:`~fcntl.F_OFD_GETLK`, :const:`~fcntl.F_OFD_SETLK` "
"and :const:`~fcntl.F_OFD_SETLKW`. (Contributed by Donghee Na in :issue:"
"`38602`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:431
msgid "ftplib"
msgstr "ftplib"
#: ../../whatsnew/3.9.rst:433
msgid ""
":class:`~ftplib.FTP` and :class:`~ftplib.FTP_TLS` now raise a :class:"
"`ValueError` if the given timeout for their constructor is zero to prevent "
"the creation of a non-blocking socket. (Contributed by Donghee Na in :issue:"
"`39259`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:438
msgid "gc"
msgstr "gc"
#: ../../whatsnew/3.9.rst:440
msgid ""
"When the garbage collector makes a collection in which some objects "
"resurrect (they are reachable from outside the isolated cycles after the "
"finalizers have been executed), do not block the collection of all objects "
"that are still unreachable. (Contributed by Pablo Galindo and Tim Peters in :"
"issue:`38379`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:445
msgid ""
"Added a new function :func:`gc.is_finalized` to check if an object has been "
"finalized by the garbage collector. (Contributed by Pablo Galindo in :issue:"
"`39322`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:450
msgid "hashlib"
msgstr "hashlib"
#: ../../whatsnew/3.9.rst:452
msgid ""
"The :mod:`hashlib` module can now use SHA3 hashes and SHAKE XOF from OpenSSL "
"when available. (Contributed by Christian Heimes in :issue:`37630`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:456
msgid ""
"Builtin hash modules can now be disabled with ``./configure --without-"
"builtin-hashlib-hashes`` or selectively enabled with e.g. ``./configure --"
"with-builtin-hashlib-hashes=sha3,blake2`` to force use of OpenSSL based "
"implementation. (Contributed by Christian Heimes in :issue:`40479`)"
msgstr ""
#: ../../whatsnew/3.9.rst:464
msgid "http"
msgstr "http"
#: ../../whatsnew/3.9.rst:466
msgid ""
"HTTP status codes ``103 EARLY_HINTS``, ``418 IM_A_TEAPOT`` and ``425 "
"TOO_EARLY`` are added to :class:`http.HTTPStatus`. (Contributed by Donghee "
"Na in :issue:`39509` and Ross Rhodes in :issue:`39507`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:470
msgid "IDLE and idlelib"
msgstr "IDLE と idelelib"
#: ../../whatsnew/3.9.rst:472
msgid ""
"Added option to toggle cursor blink off. (Contributed by Zackery Spytz in :"
"issue:`4603`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:475
msgid ""
"Escape key now closes IDLE completion windows. (Contributed by Johnny "
"Najera in :issue:`38944`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:478
msgid ""
"Added keywords to module name completion list. (Contributed by Terry J. "
"Reedy in :issue:`37765`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:481
msgid "New in 3.9 maintenance releases"
msgstr ""
#: ../../whatsnew/3.9.rst:483
msgid ""
"Make IDLE invoke :func:`sys.excepthook` (when started without '-n'). User "
"hooks were previously ignored. (Contributed by Ken Hilton in :issue:"
"`43008`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:487
msgid "The changes above have been backported to 3.8 maintenance releases."
msgstr ""
#: ../../whatsnew/3.9.rst:489
msgid ""
"Rearrange the settings dialog. Split the General tab into Windows and Shell/"
"Ed tabs. Move help sources, which extend the Help menu, to the Extensions "
"tab. Make space for new options and shorten the dialog. The latter makes "
"the dialog better fit small screens. (Contributed by Terry Jan Reedy in :"
"issue:`40468`.) Move the indent space setting from the Font tab to the new "
"Windows tab. (Contributed by Mark Roseman and Terry Jan Reedy in :issue:"
"`33962`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:497
msgid ""
"Apply syntax highlighting to ``.pyi`` files. (Contributed by Alex Waygood "
"and Terry Jan Reedy in :issue:`45447`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:501
msgid "imaplib"
msgstr "imaplib"
#: ../../whatsnew/3.9.rst:503
msgid ""
":class:`~imaplib.IMAP4` and :class:`~imaplib.IMAP4_SSL` now have an optional "
"*timeout* parameter for their constructors. Also, the :meth:`~imaplib.IMAP4."
"open` method now has an optional *timeout* parameter with this change. The "
"overridden methods of :class:`~imaplib.IMAP4_SSL` and :class:`~imaplib."
"IMAP4_stream` were applied to this change. (Contributed by Donghee Na in :"
"issue:`38615`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:510
msgid ""
":meth:`imaplib.IMAP4.unselect` is added. :meth:`imaplib.IMAP4.unselect` "
"frees server's resources associated with the selected mailbox and returns "
"the server to the authenticated state. This command performs the same "
"actions as :meth:`imaplib.IMAP4.close`, except that no messages are "
"permanently removed from the currently selected mailbox. (Contributed by "
"Donghee Na in :issue:`40375`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:518
msgid "importlib"
msgstr "importlib"
#: ../../whatsnew/3.9.rst:520
msgid ""
"To improve consistency with import statements, :func:`importlib.util."
"resolve_name` now raises :exc:`ImportError` instead of :exc:`ValueError` for "
"invalid relative import attempts. (Contributed by Ngalim Siregar in :issue:"
"`37444`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:525
msgid ""
"Import loaders which publish immutable module objects can now publish "
"immutable packages in addition to individual modules. (Contributed by Dino "
"Viehland in :issue:`39336`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:529
msgid ""
"Added :func:`importlib.resources.files` function with support for "
"subdirectories in package data, matching backport in ``importlib_resources`` "
"version 1.5. (Contributed by Jason R. Coombs in :issue:`39791`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:534
msgid ""
"Refreshed ``importlib.metadata`` from ``importlib_metadata`` version 1.6.1."
msgstr ""
#: ../../whatsnew/3.9.rst:537
msgid "inspect"
msgstr "inspect"
#: ../../whatsnew/3.9.rst:539
msgid ""
":attr:`inspect.BoundArguments.arguments` is changed from ``OrderedDict`` to "
"regular dict. (Contributed by Inada Naoki in :issue:`36350` and :issue:"
"`39775`.)"
msgstr ""
":attr:`inspect.BoundArguments.arguments` は ``OrderedDict`` から標準のdictに"
"変更されました。(Inada Naoki の貢献による :issue:`36350`, :issue:`39775`)"
#: ../../whatsnew/3.9.rst:543
msgid "ipaddress"
msgstr "ipaddress"
#: ../../whatsnew/3.9.rst:545
msgid ""
":mod:`ipaddress` now supports IPv6 Scoped Addresses (IPv6 address with "
"suffix ``%<scope_id>``)."
msgstr ""
#: ../../whatsnew/3.9.rst:547
msgid ""
"Scoped IPv6 addresses can be parsed using :class:`ipaddress.IPv6Address`. If "
"present, scope zone ID is available through the :attr:`~ipaddress."
"IPv6Address.scope_id` attribute. (Contributed by Oleksandr Pavliuk in :issue:"
"`34788`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:551
msgid ""
"Starting with Python 3.9.5 the :mod:`ipaddress` module no longer accepts any "
"leading zeros in IPv4 address strings. (Contributed by Christian Heimes in :"
"issue:`36384`)."
msgstr ""
#: ../../whatsnew/3.9.rst:556
msgid "math"
msgstr "math"
#: ../../whatsnew/3.9.rst:558
msgid ""
"Expanded the :func:`math.gcd` function to handle multiple arguments. "
"Formerly, it only supported two arguments. (Contributed by Serhiy Storchaka "
"in :issue:`39648`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:562
msgid ""
"Added :func:`math.lcm`: return the least common multiple of specified "
"arguments. (Contributed by Mark Dickinson, Ananthakrishnan and Serhiy "
"Storchaka in :issue:`39479` and :issue:`39648`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:566
msgid ""
"Added :func:`math.nextafter`: return the next floating-point value after *x* "
"towards *y*. (Contributed by Victor Stinner in :issue:`39288`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:570
msgid ""
"Added :func:`math.ulp`: return the value of the least significant bit of a "
"float. (Contributed by Victor Stinner in :issue:`39310`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:575
msgid "multiprocessing"
msgstr "multiprocessing"
#: ../../whatsnew/3.9.rst:577
msgid ""
"The :class:`multiprocessing.SimpleQueue` class has a new :meth:"
"`~multiprocessing.SimpleQueue.close` method to explicitly close the queue. "
"(Contributed by Victor Stinner in :issue:`30966`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:583
msgid "nntplib"
msgstr "nntplib"
#: ../../whatsnew/3.9.rst:585
msgid ""
":class:`!NNTP` and :class:`!NNTP_SSL` now raise a :class:`ValueError` if the "
"given timeout for their constructor is zero to prevent the creation of a non-"
"blocking socket. (Contributed by Donghee Na in :issue:`39259`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:590
msgid "os"
msgstr "os"
#: ../../whatsnew/3.9.rst:592
msgid ""
"Added :const:`~os.CLD_KILLED` and :const:`~os.CLD_STOPPED` for :attr:`!"
"si_code`. (Contributed by Donghee Na in :issue:`38493`.)"
msgstr ""
#: ../../whatsnew/3.9.rst:595
msgid ""
"Exposed the Linux-specific :func:`os.pidfd_open` (:issue:`38692`) and :const:"
"`os.P_PIDFD` (:issue:`38713`) for process management with file descriptors."
msgstr ""
#: ../../whatsnew/3.9.rst:599
msgid ""
"The :func:`os.unsetenv` function is now also available on Windows. "
"(Contributed by Victor Stinner in :issue:`39413`.)"
msgstr ""
":func:`os.unsetenv` 関数が、Windowsでも使えるようになりました。(:issue:"
"`39413` におけるVictor Stinnerの貢献による)"
#: ../../whatsnew/3.9.rst:602
msgid ""