55#
66# Translators:
77# 伏尾 佳悟 <fushio.keigo@gmail.com>, 2020
8- # Yusuke Miyazaki <miyazaki.dev@gmail.com>, 2020
98# 秘湯 <xwhhsprings@gmail.com>, 2020
109# Naoki Nakamura <agent@sohzoh.com>, 2020
1110# Tetsuo Koyama <tkoyama010@gmail.com>, 2020
1211# mollinaca, 2020
1312# tomo, 2020
13+ # Yusuke Miyazaki <miyazaki.dev@gmail.com>, 2020
1414#
1515#, fuzzy
1616msgid ""
1717msgstr ""
1818"Project-Id-Version: Python 3.8\n"
1919"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"
2121"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"
2323"Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n"
2424"MIME-Version: 1.0\n"
2525"Content-Type: text/plain; charset=UTF-8\n"
@@ -43965,7 +43965,7 @@ msgstr ""
4396543965
4396643966#: ../../glossary.rst:310
4396743967msgid "dictionary comprehension"
43968- msgstr ""
43968+ msgstr "dictionary comprehension "
4396943969
4397043970#: ../../glossary.rst:312
4397143971msgid ""
@@ -43974,6 +43974,9 @@ msgid ""
4397443974"range(10)}`` generates a dictionary containing key ``n`` mapped to value ``n"
4397543975" ** 2``. See :ref:`comprehensions`."
4397643976msgstr ""
43977+ "(辞書内包表記) iterable 内の全てあるいは一部の要素を処理して、その結果からなる辞書を返すコンパクトな書き方です。 ``results = "
43978+ "{n: n ** 2 for n in range(10)}`` とすると、キー ``n`` を値 ``n ** 2`` に対応付ける辞書を生成します。"
43979+ " :ref:`comprehensions` を参照してください。"
4397743980
4397843981#: ../../glossary.rst:316
4397943982msgid "dictionary view"
@@ -44583,6 +44586,8 @@ msgid ""
4458344586"with an :meth:`__iter__` method or with a :meth:`__getitem__` method that "
4458444587"implements :term:`Sequence <sequence>` semantics."
4458544588msgstr ""
44589+ "(反復可能オブジェクト) 要素を一度に 1 つずつ返せるオブジェクトです。\n"
44590+ "反復可能オブジェクトの例には、(:class:`list`, :class:`str`, :class:`tuple` といった) 全てのシーケンス型や、 :class:`dict` や :term:`ファイルオブジェクト <file object>` といった幾つかの非シーケンス型、 あるいは :term:`Sequence <sequence>` 意味論を実装した :meth:`__iter__` メソッドか :meth:`__getitem__` メソッドを持つ任意のクラスのインスタンスが含まれます。"
4458644591
4458744592#: ../../glossary.rst:598
4458844593msgid ""
@@ -87472,7 +87477,7 @@ msgstr "*invalidation_mode* 引数を追加しました。"
8747287477#: ../../library/compileall.rst:188 ../../library/compileall.rst:238
8747387478#: ../../library/compileall.rst:264
8747487479msgid "The *invalidation_mode* parameter's default value is updated to None."
87475- msgstr ""
87480+ msgstr "*invalidation_mode* 引数のデフォルト値が None に変更されました。 "
8747687481
8747787482#: ../../library/compileall.rst:191
8747887483msgid "Setting *workers* to 0 now chooses the optimal number of cores."
@@ -200729,12 +200734,12 @@ msgstr "負値のシフト数は不正であり、 :exc:`ValueError` が送出
200729200734#: ../../library/stdtypes.rst:437
200730200735msgid ""
200731200736"A left shift by *n* bits is equivalent to multiplication by ``pow(2, n)``."
200732- msgstr ""
200737+ msgstr "*n* ビットの左シフトは、 ``pow(2, n)`` による乗算と等価です。 "
200733200738
200734200739#: ../../library/stdtypes.rst:440
200735200740msgid ""
200736200741"A right shift by *n* bits is equivalent to floor division by ``pow(2, n)``."
200737- msgstr ""
200742+ msgstr "*n* ビットの右シフトは、 ``pow(2, n)`` による切り捨て除算と等価です。 "
200738200743
200739200744#: ../../library/stdtypes.rst:443
200740200745msgid ""
@@ -202242,6 +202247,7 @@ msgid ""
202242202247"means that characters like digraphs will only have their first letter "
202243202248"capitalized, instead of the full character."
202244202249msgstr ""
202250+ "最初の文字が大文字ではなくタイトルケースに置き換えられるようになりました。つまり二重音字のような文字はすべての文字が大文字にされるのではなく、最初の文字だけ大文字にされるようになります。"
202245202251
202246202252#: ../../library/stdtypes.rst:1520
202247202253msgid ""
@@ -273721,16 +273727,17 @@ msgstr ""
273721273727msgid ""
273722273728"If you're not using the :keyword:`with` keyword, then you should call "
273723273729"``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."
273728273731msgstr ""
273729- ":keyword:`with` キーワードを使わない場合は、``f.close()`` を呼び出してファイルを閉じ、そのファイルが使っていたシステムリソースをすぐに解放する必要があります。\n"
273730- "明示的にファイルを閉じなかった場合は、いつかは Python のガベージコレクタがそのファイルオブジェクトを破棄し開かれいていたファイルを閉じますが、しばらくはファイルが開かれたままでいる可能性があります。\n"
273731- "他に考えられるリスクは、別の Python の実装ではこの片付け処理が別のタイミングで実行されることです。"
273732273732
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
273734273741msgid ""
273735273742"After a file object is closed, either by a :keyword:`with` statement or by "
273736273743"calling ``f.close()``, attempts to use the file object will automatically "
@@ -273739,17 +273746,17 @@ msgstr ""
273739273746":keyword:`with` 文や ``f.close()`` "
273740273747"の呼び出しによって閉じられた後にファイルオブジェクトを使おうとするとそこで処理が失敗します。::"
273741273748
273742- #: ../../tutorial/inputoutput.rst:352
273749+ #: ../../tutorial/inputoutput.rst:357
273743273750msgid "Methods of File Objects"
273744273751msgstr "ファイルオブジェクトのメソッド"
273745273752
273746- #: ../../tutorial/inputoutput.rst:354
273753+ #: ../../tutorial/inputoutput.rst:359
273747273754msgid ""
273748273755"The rest of the examples in this section will assume that a file object "
273749273756"called ``f`` has already been created."
273750273757msgstr "この節の以降の例は、 ``f`` というファイルオブジェクトが既に生成されているものと仮定します。"
273751273758
273752- #: ../../tutorial/inputoutput.rst:357
273759+ #: ../../tutorial/inputoutput.rst:362
273753273760msgid ""
273754273761"To read a file's contents, call ``f.read(size)``, which reads some quantity "
273755273762"of data and returns it as a string (in text mode) or bytes object (in binary"
@@ -273767,7 +273774,7 @@ msgstr ""
273767273774" *size* が負でない数ならば、最大で (テキストモードの場合) *size* 文字、(バイナリモードの場合) *size* "
273768273775"バイトを読み出して返します。ファイルの終端にすでに達していた場合、 ``f.read()`` は空の文字列 (``''``) を返します。 ::"
273769273776
273770- #: ../../tutorial/inputoutput.rst:371
273777+ #: ../../tutorial/inputoutput.rst:376
273771273778msgid ""
273772273779"``f.readline()`` reads a single line from the file; a newline character "
273773273780"(``\\n``) is left at the end of the string, and is only omitted on the last "
@@ -273781,34 +273788,34 @@ msgstr ""
273781273788" ``f.readline()`` が空の文字列を返したら、ファイルの終端に達したことが分かります。一方、空行は ``'\\n'``、すなわち改行 1 "
273782273789"文字だけからなる文字列で表現されます。 ::"
273783273790
273784- #: ../../tutorial/inputoutput.rst:385
273791+ #: ../../tutorial/inputoutput.rst:390
273785273792msgid ""
273786273793"For reading lines from a file, you can loop over the file object. This is "
273787273794"memory efficient, fast, and leads to simple code::"
273788273795msgstr ""
273789273796"ファイルから複数行を読み取るには、ファイルオブジェクトに対してループを書く方法があります。この方法はメモリを効率的に使え、高速で、簡潔なコードになります::"
273790273797
273791- #: ../../tutorial/inputoutput.rst:394
273798+ #: ../../tutorial/inputoutput.rst:399
273792273799msgid ""
273793273800"If you want to read all the lines of a file in a list you can also use "
273794273801"``list(f)`` or ``f.readlines()``."
273795273802msgstr "ファイルのすべての行をリスト形式で読み取りたいなら、``list(f)`` や ``f.readlines()`` を使うこともできます。"
273796273803
273797- #: ../../tutorial/inputoutput.rst:397
273804+ #: ../../tutorial/inputoutput.rst:402
273798273805msgid ""
273799273806"``f.write(string)`` writes the contents of *string* to the file, returning "
273800273807"the number of characters written. ::"
273801273808msgstr "``f.write(string)`` は、*string* の内容をファイルに書き込み、書き込まれた文字数を返します。 ::"
273802273809
273803- #: ../../tutorial/inputoutput.rst:403
273810+ #: ../../tutorial/inputoutput.rst:408
273804273811msgid ""
273805273812"Other types of objects need to be converted -- either to a string (in text "
273806273813"mode) or a bytes object (in binary mode) -- before writing them::"
273807273814msgstr ""
273808273815"オブジェクトの他の型は、書き込む前に変換しなければなりません -- 文字列 (テキストモード) と bytes オブジェクト (バイナリーモード) "
273809273816"のいずれかです::"
273810273817
273811- #: ../../tutorial/inputoutput.rst:411
273818+ #: ../../tutorial/inputoutput.rst:416
273812273819msgid ""
273813273820"``f.tell()`` returns an integer giving the file object's current position in"
273814273821" the file represented as number of bytes from the beginning of the file when"
@@ -273817,7 +273824,7 @@ msgstr ""
273817273824"``f.tell()`` "
273818273825"は、ファイルオブジェクトのファイル中における現在の位置を示す整数を返します。ファイル中の現在の位置は、バイナリモードではファイルの先頭からのバイト数で、テキストモードでは不明瞭な値で表されます。"
273819273826
273820- #: ../../tutorial/inputoutput.rst:415
273827+ #: ../../tutorial/inputoutput.rst:420
273821273828msgid ""
273822273829"To change the file object's position, use ``f.seek(offset, whence)``. The "
273823273830"position is computed from adding *offset* to a reference point; the "
@@ -273832,7 +273839,7 @@ msgstr ""
273832273839"ならばファイルの 先頭から測り、1 ならば現在のファイル位置を使い、2 ならばファイルの終端を参照点として使います。*whence* "
273833273840"は省略することができ、デフォルトの値は 0、すなわち参照点としてファイルの先頭を使います。 ::"
273834273841
273835- #: ../../tutorial/inputoutput.rst:434
273842+ #: ../../tutorial/inputoutput.rst:439
273836273843msgid ""
273837273844"In text files (those opened without a ``b`` in the mode string), only seeks "
273838273845"relative to the beginning of the file are allowed (the exception being "
@@ -273844,7 +273851,7 @@ msgstr ""
273844273851"(例外として、``seek(0, 2)`` でファイルの末尾へのシークは可能です)。また、唯一の有効な *offset* 値は ``f.tell()``"
273845273852" から返された値か、0 のいずれかです。それ以外の *offset* 値は未定義の振る舞いを引き起こします。"
273846273853
273847- #: ../../tutorial/inputoutput.rst:440
273854+ #: ../../tutorial/inputoutput.rst:445
273848273855msgid ""
273849273856"File objects have some additional methods, such as :meth:`~file.isatty` and "
273850273857":meth:`~file.truncate` which are less frequently used; consult the Library "
@@ -273853,11 +273860,11 @@ msgstr ""
273853273860"ファイルオブジェクトには、他にも :meth:`~file.isatty` や :meth:`~file.truncate` "
273854273861"といった、あまり使われないメソッドがあります。ファイルオブジェクトについての完全なガイドは、ライブラリリファレンスを参照してください。"
273855273862
273856- #: ../../tutorial/inputoutput.rst:448
273863+ #: ../../tutorial/inputoutput.rst:453
273857273864msgid "Saving structured data with :mod:`json`"
273858273865msgstr ":mod:`json` による構造化されたデータの保存"
273859273866
273860- #: ../../tutorial/inputoutput.rst:452
273867+ #: ../../tutorial/inputoutput.rst:457
273861273868msgid ""
273862273869"Strings can easily be written to and read from a file. Numbers take a bit "
273863273870"more effort, since the :meth:`read` method only returns strings, which will "
@@ -273871,7 +273878,7 @@ msgstr ""
273871273878" 123 "
273872273879"に変換しなくてはならないからです。もっと複雑なデータ型、例えば入れ子になったリストや辞書の場合、手作業でのパースやシリアライズは困難になります。"
273873273880
273874- #: ../../tutorial/inputoutput.rst:459
273881+ #: ../../tutorial/inputoutput.rst:464
273875273882msgid ""
273876273883"Rather than having users constantly writing and debugging code to save "
273877273884"complicated data types to files, Python allows you to use the popular data "
@@ -273889,7 +273896,7 @@ msgstr ""
273889273896"(serializing)` と呼ばれます。文字列表現からデータを再構築することは、:dfn:`デシリアライズ (deserializing)` "
273890273897"と呼ばれます。シリアライズされてからデシリアライズされるまでの間に、オブジェクトの文字列表現はファイルやデータの形で保存したり、ネットワークを通じて離れたマシンに送ったりすることができます。"
273891273898
273892- #: ../../tutorial/inputoutput.rst:470
273899+ #: ../../tutorial/inputoutput.rst:475
273893273900msgid ""
273894273901"The JSON format is commonly used by modern applications to allow for data "
273895273902"exchange. Many programmers are already familiar with it, which makes it a "
@@ -273898,13 +273905,13 @@ msgstr ""
273898273905"JSON 形式は現代的なアプリケーションでデータをやりとりする際によく使われます。多くのプログラマーが既に JSON に詳しいため、JSON "
273899273906"はデータの相互交換をする場合の良い選択肢です。"
273900273907
273901- #: ../../tutorial/inputoutput.rst:474
273908+ #: ../../tutorial/inputoutput.rst:479
273902273909msgid ""
273903273910"If you have an object ``x``, you can view its JSON string representation "
273904273911"with a simple line of code::"
273905273912msgstr "オブジェクト ``x`` があり、その JSON 形式の文字列表現を見るには、単純な1行のコードを書くだけです::"
273906273913
273907- #: ../../tutorial/inputoutput.rst:481
273914+ #: ../../tutorial/inputoutput.rst:486
273908273915msgid ""
273909273916"Another variant of the :func:`~json.dumps` function, called "
273910273917":func:`~json.dump`, simply serializes the object to a :term:`text file`. So"
@@ -273913,13 +273920,13 @@ msgstr ""
273913273920":func:`~json.dumps` に似た関数に、:func:`~json.dump` があり、こちらは単純にオブジェクトを :term:`text"
273914273921" file` にシリアライズします。``f`` が書き込み用に開かれた :term:`text file` だとすると、次のように書くことができます::"
273915273922
273916- #: ../../tutorial/inputoutput.rst:487
273923+ #: ../../tutorial/inputoutput.rst:492
273917273924msgid ""
273918273925"To decode the object again, if ``f`` is a :term:`text file` object which has"
273919273926" been opened for reading::"
273920273927msgstr "逆にデシリアライズするには、``f`` が読み込み用に開かれた :term:`text file` だとすると、次のようになります::"
273921273928
273922- #: ../../tutorial/inputoutput.rst:492
273929+ #: ../../tutorial/inputoutput.rst:497
273923273930msgid ""
273924273931"This simple serialization technique can handle lists and dictionaries, but "
273925273932"serializing arbitrary class instances in JSON requires a bit of extra "
@@ -273929,11 +273936,11 @@ msgstr ""
273929273936"このような単純なシリアライズをする手法は、リストや辞書を扱うことはできますが、任意のクラス・インスタンスを JSON "
273930273937"にシリアライズするにはもう少し努力しなくてはなりません。:mod:`json` モジュールのリファレンスにこれについての解説があります。"
273931273938
273932- #: ../../tutorial/inputoutput.rst:498
273939+ #: ../../tutorial/inputoutput.rst:503
273933273940msgid ":mod:`pickle` - the pickle module"
273934273941msgstr ":mod:`pickle` - pickle モジュール"
273935273942
273936- #: ../../tutorial/inputoutput.rst:500
273943+ #: ../../tutorial/inputoutput.rst:505
273937273944msgid ""
273938273945"Contrary to :ref:`JSON <tut-json>`, *pickle* is a protocol which allows the "
273939273946"serialization of arbitrarily complex Python objects. As such, it is "