5
5
#
6
6
# Translators:
7
7
# 伏尾 佳悟 <fushio.keigo@gmail.com>, 2020
8
- # Yusuke Miyazaki <miyazaki.dev@gmail.com>, 2020
9
8
# 秘湯 <xwhhsprings@gmail.com>, 2020
10
9
# Naoki Nakamura <agent@sohzoh.com>, 2020
11
10
# Tetsuo Koyama <tkoyama010@gmail.com>, 2020
12
11
# mollinaca, 2020
13
12
# tomo, 2020
13
+ # Yusuke Miyazaki <miyazaki.dev@gmail.com>, 2020
14
14
#
15
15
#, fuzzy
16
16
msgid ""
17
17
msgstr ""
18
18
"Project-Id-Version: Python 3.8\n"
19
19
"Report-Msgid-Bugs-To: \n"
20
- "POT-Creation-Date: 2020-11-25 15:46+0000\n"
20
+ "POT-Creation-Date: 2020-11-27 15:46+0000\n"
21
21
"PO-Revision-Date: 2020-11-02 15:36+0000\n"
22
- "Last-Translator:tomo , 2020\n"
22
+ "Last-Translator:Yusuke Miyazaki <miyazaki.dev@gmail.com> , 2020\n"
23
23
"Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n"
24
24
"MIME-Version: 1.0\n"
25
25
"Content-Type: text/plain; charset=UTF-8\n"
@@ -43965,7 +43965,7 @@ msgstr ""
43965
43965
43966
43966
#: ../../glossary.rst:310
43967
43967
msgid "dictionary comprehension"
43968
- msgstr ""
43968
+ msgstr "dictionary comprehension "
43969
43969
43970
43970
#: ../../glossary.rst:312
43971
43971
msgid ""
@@ -43974,6 +43974,9 @@ msgid ""
43974
43974
"range(10)}`` generates a dictionary containing key ``n`` mapped to value ``n"
43975
43975
" ** 2``. See :ref:`comprehensions`."
43976
43976
msgstr ""
43977
+ "(辞書内包表記) iterable 内の全てあるいは一部の要素を処理して、その結果からなる辞書を返すコンパクトな書き方です。 ``results = "
43978
+ "{n: n ** 2 for n in range(10)}`` とすると、キー ``n`` を値 ``n ** 2`` に対応付ける辞書を生成します。"
43979
+ " :ref:`comprehensions` を参照してください。"
43977
43980
43978
43981
#: ../../glossary.rst:316
43979
43982
msgid "dictionary view"
@@ -44583,6 +44586,8 @@ msgid ""
44583
44586
"with an :meth:`__iter__` method or with a :meth:`__getitem__` method that "
44584
44587
"implements :term:`Sequence <sequence>` semantics."
44585
44588
msgstr ""
44589
+ "(反復可能オブジェクト) 要素を一度に 1 つずつ返せるオブジェクトです。\n"
44590
+ "反復可能オブジェクトの例には、(:class:`list`, :class:`str`, :class:`tuple` といった) 全てのシーケンス型や、 :class:`dict` や :term:`ファイルオブジェクト <file object>` といった幾つかの非シーケンス型、 あるいは :term:`Sequence <sequence>` 意味論を実装した :meth:`__iter__` メソッドか :meth:`__getitem__` メソッドを持つ任意のクラスのインスタンスが含まれます。"
44586
44591
44587
44592
#: ../../glossary.rst:598
44588
44593
msgid ""
@@ -87472,7 +87477,7 @@ msgstr "*invalidation_mode* 引数を追加しました。"
87472
87477
#: ../../library/compileall.rst:188 ../../library/compileall.rst:238
87473
87478
#: ../../library/compileall.rst:264
87474
87479
msgid "The *invalidation_mode* parameter's default value is updated to None."
87475
- msgstr ""
87480
+ msgstr "*invalidation_mode* 引数のデフォルト値が None に変更されました。 "
87476
87481
87477
87482
#: ../../library/compileall.rst:191
87478
87483
msgid "Setting *workers* to 0 now chooses the optimal number of cores."
@@ -200729,12 +200734,12 @@ msgstr "負値のシフト数は不正であり、 :exc:`ValueError` が送出
200729
200734
#: ../../library/stdtypes.rst:437
200730
200735
msgid ""
200731
200736
"A left shift by *n* bits is equivalent to multiplication by ``pow(2, n)``."
200732
- msgstr ""
200737
+ msgstr "*n* ビットの左シフトは、 ``pow(2, n)`` による乗算と等価です。 "
200733
200738
200734
200739
#: ../../library/stdtypes.rst:440
200735
200740
msgid ""
200736
200741
"A right shift by *n* bits is equivalent to floor division by ``pow(2, n)``."
200737
- msgstr ""
200742
+ msgstr "*n* ビットの右シフトは、 ``pow(2, n)`` による切り捨て除算と等価です。 "
200738
200743
200739
200744
#: ../../library/stdtypes.rst:443
200740
200745
msgid ""
@@ -202242,6 +202247,7 @@ msgid ""
202242
202247
"means that characters like digraphs will only have their first letter "
202243
202248
"capitalized, instead of the full character."
202244
202249
msgstr ""
202250
+ "最初の文字が大文字ではなくタイトルケースに置き換えられるようになりました。つまり二重音字のような文字はすべての文字が大文字にされるのではなく、最初の文字だけ大文字にされるようになります。"
202245
202251
202246
202252
#: ../../library/stdtypes.rst:1520
202247
202253
msgid ""
@@ -273721,16 +273727,17 @@ msgstr ""
273721
273727
msgid ""
273722
273728
"If you're not using the :keyword:`with` keyword, then you should call "
273723
273729
"``f.close()`` to close the file and immediately free up any system resources"
273724
- " used by it. If you don't explicitly close a file, Python's garbage "
273725
- "collector will eventually destroy the object and close the open file for "
273726
- "you, but the file may stay open for a while. Another risk is that different"
273727
- " Python implementations will do this clean-up at different times."
273730
+ " used by it."
273728
273731
msgstr ""
273729
- ":keyword:`with` キーワードを使わない場合は、``f.close()`` を呼び出してファイルを閉じ、そのファイルが使っていたシステムリソースをすぐに解放する必要があります。\n"
273730
- "明示的にファイルを閉じなかった場合は、いつかは Python のガベージコレクタがそのファイルオブジェクトを破棄し開かれいていたファイルを閉じますが、しばらくはファイルが開かれたままでいる可能性があります。\n"
273731
- "他に考えられるリスクは、別の Python の実装ではこの片付け処理が別のタイミングで実行されることです。"
273732
273732
273733
- #: ../../tutorial/inputoutput.rst:338
273733
+ #: ../../tutorial/inputoutput.rst:335
273734
+ msgid ""
273735
+ "Calling ``f.write()`` without using the :keyword:`!with` keyword or calling "
273736
+ "``f.close()`` **might** result in the arguments of ``f.write()`` not being "
273737
+ "completely written to the disk, even if the program exits successfully."
273738
+ msgstr ""
273739
+
273740
+ #: ../../tutorial/inputoutput.rst:343
273734
273741
msgid ""
273735
273742
"After a file object is closed, either by a :keyword:`with` statement or by "
273736
273743
"calling ``f.close()``, attempts to use the file object will automatically "
@@ -273739,17 +273746,17 @@ msgstr ""
273739
273746
":keyword:`with` 文や ``f.close()`` "
273740
273747
"の呼び出しによって閉じられた後にファイルオブジェクトを使おうとするとそこで処理が失敗します。::"
273741
273748
273742
- #: ../../tutorial/inputoutput.rst:352
273749
+ #: ../../tutorial/inputoutput.rst:357
273743
273750
msgid "Methods of File Objects"
273744
273751
msgstr "ファイルオブジェクトのメソッド"
273745
273752
273746
- #: ../../tutorial/inputoutput.rst:354
273753
+ #: ../../tutorial/inputoutput.rst:359
273747
273754
msgid ""
273748
273755
"The rest of the examples in this section will assume that a file object "
273749
273756
"called ``f`` has already been created."
273750
273757
msgstr "この節の以降の例は、 ``f`` というファイルオブジェクトが既に生成されているものと仮定します。"
273751
273758
273752
- #: ../../tutorial/inputoutput.rst:357
273759
+ #: ../../tutorial/inputoutput.rst:362
273753
273760
msgid ""
273754
273761
"To read a file's contents, call ``f.read(size)``, which reads some quantity "
273755
273762
"of data and returns it as a string (in text mode) or bytes object (in binary"
@@ -273767,7 +273774,7 @@ msgstr ""
273767
273774
" *size* が負でない数ならば、最大で (テキストモードの場合) *size* 文字、(バイナリモードの場合) *size* "
273768
273775
"バイトを読み出して返します。ファイルの終端にすでに達していた場合、 ``f.read()`` は空の文字列 (``''``) を返します。 ::"
273769
273776
273770
- #: ../../tutorial/inputoutput.rst:371
273777
+ #: ../../tutorial/inputoutput.rst:376
273771
273778
msgid ""
273772
273779
"``f.readline()`` reads a single line from the file; a newline character "
273773
273780
"(``\\n``) is left at the end of the string, and is only omitted on the last "
@@ -273781,34 +273788,34 @@ msgstr ""
273781
273788
" ``f.readline()`` が空の文字列を返したら、ファイルの終端に達したことが分かります。一方、空行は ``'\\n'``、すなわち改行 1 "
273782
273789
"文字だけからなる文字列で表現されます。 ::"
273783
273790
273784
- #: ../../tutorial/inputoutput.rst:385
273791
+ #: ../../tutorial/inputoutput.rst:390
273785
273792
msgid ""
273786
273793
"For reading lines from a file, you can loop over the file object. This is "
273787
273794
"memory efficient, fast, and leads to simple code::"
273788
273795
msgstr ""
273789
273796
"ファイルから複数行を読み取るには、ファイルオブジェクトに対してループを書く方法があります。この方法はメモリを効率的に使え、高速で、簡潔なコードになります::"
273790
273797
273791
- #: ../../tutorial/inputoutput.rst:394
273798
+ #: ../../tutorial/inputoutput.rst:399
273792
273799
msgid ""
273793
273800
"If you want to read all the lines of a file in a list you can also use "
273794
273801
"``list(f)`` or ``f.readlines()``."
273795
273802
msgstr "ファイルのすべての行をリスト形式で読み取りたいなら、``list(f)`` や ``f.readlines()`` を使うこともできます。"
273796
273803
273797
- #: ../../tutorial/inputoutput.rst:397
273804
+ #: ../../tutorial/inputoutput.rst:402
273798
273805
msgid ""
273799
273806
"``f.write(string)`` writes the contents of *string* to the file, returning "
273800
273807
"the number of characters written. ::"
273801
273808
msgstr "``f.write(string)`` は、*string* の内容をファイルに書き込み、書き込まれた文字数を返します。 ::"
273802
273809
273803
- #: ../../tutorial/inputoutput.rst:403
273810
+ #: ../../tutorial/inputoutput.rst:408
273804
273811
msgid ""
273805
273812
"Other types of objects need to be converted -- either to a string (in text "
273806
273813
"mode) or a bytes object (in binary mode) -- before writing them::"
273807
273814
msgstr ""
273808
273815
"オブジェクトの他の型は、書き込む前に変換しなければなりません -- 文字列 (テキストモード) と bytes オブジェクト (バイナリーモード) "
273809
273816
"のいずれかです::"
273810
273817
273811
- #: ../../tutorial/inputoutput.rst:411
273818
+ #: ../../tutorial/inputoutput.rst:416
273812
273819
msgid ""
273813
273820
"``f.tell()`` returns an integer giving the file object's current position in"
273814
273821
" the file represented as number of bytes from the beginning of the file when"
@@ -273817,7 +273824,7 @@ msgstr ""
273817
273824
"``f.tell()`` "
273818
273825
"は、ファイルオブジェクトのファイル中における現在の位置を示す整数を返します。ファイル中の現在の位置は、バイナリモードではファイルの先頭からのバイト数で、テキストモードでは不明瞭な値で表されます。"
273819
273826
273820
- #: ../../tutorial/inputoutput.rst:415
273827
+ #: ../../tutorial/inputoutput.rst:420
273821
273828
msgid ""
273822
273829
"To change the file object's position, use ``f.seek(offset, whence)``. The "
273823
273830
"position is computed from adding *offset* to a reference point; the "
@@ -273832,7 +273839,7 @@ msgstr ""
273832
273839
"ならばファイルの 先頭から測り、1 ならば現在のファイル位置を使い、2 ならばファイルの終端を参照点として使います。*whence* "
273833
273840
"は省略することができ、デフォルトの値は 0、すなわち参照点としてファイルの先頭を使います。 ::"
273834
273841
273835
- #: ../../tutorial/inputoutput.rst:434
273842
+ #: ../../tutorial/inputoutput.rst:439
273836
273843
msgid ""
273837
273844
"In text files (those opened without a ``b`` in the mode string), only seeks "
273838
273845
"relative to the beginning of the file are allowed (the exception being "
@@ -273844,7 +273851,7 @@ msgstr ""
273844
273851
"(例外として、``seek(0, 2)`` でファイルの末尾へのシークは可能です)。また、唯一の有効な *offset* 値は ``f.tell()``"
273845
273852
" から返された値か、0 のいずれかです。それ以外の *offset* 値は未定義の振る舞いを引き起こします。"
273846
273853
273847
- #: ../../tutorial/inputoutput.rst:440
273854
+ #: ../../tutorial/inputoutput.rst:445
273848
273855
msgid ""
273849
273856
"File objects have some additional methods, such as :meth:`~file.isatty` and "
273850
273857
":meth:`~file.truncate` which are less frequently used; consult the Library "
@@ -273853,11 +273860,11 @@ msgstr ""
273853
273860
"ファイルオブジェクトには、他にも :meth:`~file.isatty` や :meth:`~file.truncate` "
273854
273861
"といった、あまり使われないメソッドがあります。ファイルオブジェクトについての完全なガイドは、ライブラリリファレンスを参照してください。"
273855
273862
273856
- #: ../../tutorial/inputoutput.rst:448
273863
+ #: ../../tutorial/inputoutput.rst:453
273857
273864
msgid "Saving structured data with :mod:`json`"
273858
273865
msgstr ":mod:`json` による構造化されたデータの保存"
273859
273866
273860
- #: ../../tutorial/inputoutput.rst:452
273867
+ #: ../../tutorial/inputoutput.rst:457
273861
273868
msgid ""
273862
273869
"Strings can easily be written to and read from a file. Numbers take a bit "
273863
273870
"more effort, since the :meth:`read` method only returns strings, which will "
@@ -273871,7 +273878,7 @@ msgstr ""
273871
273878
" 123 "
273872
273879
"に変換しなくてはならないからです。もっと複雑なデータ型、例えば入れ子になったリストや辞書の場合、手作業でのパースやシリアライズは困難になります。"
273873
273880
273874
- #: ../../tutorial/inputoutput.rst:459
273881
+ #: ../../tutorial/inputoutput.rst:464
273875
273882
msgid ""
273876
273883
"Rather than having users constantly writing and debugging code to save "
273877
273884
"complicated data types to files, Python allows you to use the popular data "
@@ -273889,7 +273896,7 @@ msgstr ""
273889
273896
"(serializing)` と呼ばれます。文字列表現からデータを再構築することは、:dfn:`デシリアライズ (deserializing)` "
273890
273897
"と呼ばれます。シリアライズされてからデシリアライズされるまでの間に、オブジェクトの文字列表現はファイルやデータの形で保存したり、ネットワークを通じて離れたマシンに送ったりすることができます。"
273891
273898
273892
- #: ../../tutorial/inputoutput.rst:470
273899
+ #: ../../tutorial/inputoutput.rst:475
273893
273900
msgid ""
273894
273901
"The JSON format is commonly used by modern applications to allow for data "
273895
273902
"exchange. Many programmers are already familiar with it, which makes it a "
@@ -273898,13 +273905,13 @@ msgstr ""
273898
273905
"JSON 形式は現代的なアプリケーションでデータをやりとりする際によく使われます。多くのプログラマーが既に JSON に詳しいため、JSON "
273899
273906
"はデータの相互交換をする場合の良い選択肢です。"
273900
273907
273901
- #: ../../tutorial/inputoutput.rst:474
273908
+ #: ../../tutorial/inputoutput.rst:479
273902
273909
msgid ""
273903
273910
"If you have an object ``x``, you can view its JSON string representation "
273904
273911
"with a simple line of code::"
273905
273912
msgstr "オブジェクト ``x`` があり、その JSON 形式の文字列表現を見るには、単純な1行のコードを書くだけです::"
273906
273913
273907
- #: ../../tutorial/inputoutput.rst:481
273914
+ #: ../../tutorial/inputoutput.rst:486
273908
273915
msgid ""
273909
273916
"Another variant of the :func:`~json.dumps` function, called "
273910
273917
":func:`~json.dump`, simply serializes the object to a :term:`text file`. So"
@@ -273913,13 +273920,13 @@ msgstr ""
273913
273920
":func:`~json.dumps` に似た関数に、:func:`~json.dump` があり、こちらは単純にオブジェクトを :term:`text"
273914
273921
" file` にシリアライズします。``f`` が書き込み用に開かれた :term:`text file` だとすると、次のように書くことができます::"
273915
273922
273916
- #: ../../tutorial/inputoutput.rst:487
273923
+ #: ../../tutorial/inputoutput.rst:492
273917
273924
msgid ""
273918
273925
"To decode the object again, if ``f`` is a :term:`text file` object which has"
273919
273926
" been opened for reading::"
273920
273927
msgstr "逆にデシリアライズするには、``f`` が読み込み用に開かれた :term:`text file` だとすると、次のようになります::"
273921
273928
273922
- #: ../../tutorial/inputoutput.rst:492
273929
+ #: ../../tutorial/inputoutput.rst:497
273923
273930
msgid ""
273924
273931
"This simple serialization technique can handle lists and dictionaries, but "
273925
273932
"serializing arbitrary class instances in JSON requires a bit of extra "
@@ -273929,11 +273936,11 @@ msgstr ""
273929
273936
"このような単純なシリアライズをする手法は、リストや辞書を扱うことはできますが、任意のクラス・インスタンスを JSON "
273930
273937
"にシリアライズするにはもう少し努力しなくてはなりません。:mod:`json` モジュールのリファレンスにこれについての解説があります。"
273931
273938
273932
- #: ../../tutorial/inputoutput.rst:498
273939
+ #: ../../tutorial/inputoutput.rst:503
273933
273940
msgid ":mod:`pickle` - the pickle module"
273934
273941
msgstr ":mod:`pickle` - pickle モジュール"
273935
273942
273936
- #: ../../tutorial/inputoutput.rst:500
273943
+ #: ../../tutorial/inputoutput.rst:505
273937
273944
msgid ""
273938
273945
"Contrary to :ref:`JSON <tut-json>`, *pickle* is a protocol which allows the "
273939
273946
"serialization of arbitrarily complex Python objects. As such, it is "