| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 72ca85d commit a4249bc
34 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -256,6 +256,12 @@ msgid "" | |||
| 256 | 256 | "\"virtual subclasses\" registered with the ABC's :meth:`register` method are " | |
| 257 | 257 | "not affected." | |
| 258 | 258 | msgstr "" | |
| 259 | + "クラスに動的に抽象メソッドを追加する、あるいはメソッドやクラスが作られた後か" | ||
| 260 | + "ら抽象的かどうかの状態を変更しようと試みることは、:func:" | ||
| 261 | + "`update_abstractmethods` 関数を使ってのみサポートされます。 :func:" | ||
| 262 | + "`abstractmethod` が影響を与えるのは正規の継承により派生したサブクラスのみで、" | ||
| 263 | + "ABC の :meth:`register` メソッドで登録された \"仮想的サブクラス\" は影響され" | ||
| 264 | + "ません。" | ||
| 259 | 265 | ||
| 260 | 266 | #: ../../library/abc.rst:183 | |
| 261 | 267 | msgid "" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -77,6 +77,10 @@ msgid "" | |||
| 77 | 77 | "`above <abstract-grammar>`. They are defined in the :mod:`_ast` C module " | |
| 78 | 78 | "and re-exported in :mod:`ast`." | |
| 79 | 79 | msgstr "" | |
| 80 | + "このクラスは全ての AST ノード・クラスの基底です。実際のノード・クラスは :ref:" | ||
| 81 | + "`先に <abstract-grammar>` 示した :file:`Parser/Python.asdl` ファイルから派生" | ||
| 82 | + "したものです。これらのクラスは :mod:`_ast` C モジュールで定義され、 :mod:" | ||
| 83 | + "`ast` にもエクスポートし直されています。" | ||
| 80 | 84 | ||
| 81 | 85 | #: ../../library/ast.rst:51 | |
| 82 | 86 | msgid "" | |
@@ -140,6 +144,13 @@ msgid "" | |||
| 140 | 144 | "the node. The UTF-8 offset is recorded because the parser uses UTF-8 " | |
| 141 | 145 | "internally." | |
| 142 | 146 | msgstr "" | |
| 147 | + ":class:`ast.expr` や :class:`ast.stmt` のサブクラスのインスタンスは :attr:" | ||
| 148 | + "`lineno`, :attr:`col_offset`, :attr:`end_lineno`, および :attr:" | ||
| 149 | + "`end_col_offset` 属性を持ちます。 :attr:`lineno` と :attr:`end_lineno` はソー" | ||
| 150 | + "ステキストの範囲を最初と最後の行番号で表し (1 から数え始めるので、最初の行の" | ||
| 151 | + "行番号は 1 となります)、 :attr:`col_offset` と :attr:`end_col_offset` はノー" | ||
| 152 | + "ドが生成した最初と最後のトークンの UTF-8 バイトオフセットです。 UTF-8 オフ" | ||
| 153 | + "セットはパーサが内部で使用するので記録されます。" | ||
| 143 | 154 | ||
| 144 | 155 | #: ../../library/ast.rst:91 | |
| 145 | 156 | msgid "" | |
@@ -647,6 +658,8 @@ msgid "" | |||
| 647 | 658 | "The ``target`` attribute cannot be of class :class:`Tuple` or :class:`List`, " | |
| 648 | 659 | "unlike the targets of :class:`Assign`." | |
| 649 | 660 | msgstr "" | |
| 661 | + ":class:`Assign` と異なり、 ``target`` 属性は class :class:`Tuple` や :class:" | ||
| 662 | + "`List` であってはいけません。" | ||
| 650 | 663 | ||
| 651 | 664 | #: ../../library/ast.rst:858 | |
| 652 | 665 | msgid "" | |
@@ -1281,13 +1294,20 @@ msgid "" | |||
| 1281 | 1294 | "following Python literal structures: strings, bytes, numbers, tuples, lists, " | |
| 1282 | 1295 | "dicts, sets, booleans, ``None`` and ``Ellipsis``." | |
| 1283 | 1296 | msgstr "" | |
| 1297 | + "Python のリテラルやコンテナ表現のみを含む式ノードまたは文字列を評価します。与" | ||
| 1298 | + "えられる文字列またはノードは次の Python リテラル構造のみからなるものに限られ" | ||
| 1299 | + "ます: 文字列、バイト列、数、タプル、リスト、辞書、集合、ブール値、``None``、" | ||
| 1300 | + "``Ellipsis``。" | ||
| 1284 | 1301 | ||
| 1285 | 1302 | #: ../../library/ast.rst:1967 | |
| 1286 | 1303 | msgid "" | |
| 1287 | 1304 | "This can be used for evaluating strings containing Python values without the " | |
| 1288 | 1305 | "need to parse the values oneself. It is not capable of evaluating " | |
| 1289 | 1306 | "arbitrarily complex expressions, for example involving operators or indexing." | |
| 1290 | 1307 | msgstr "" | |
| 1308 | + "この関数は Python の式を含んだ文字列を、値自身を解析することなしに評価するの" | ||
| 1309 | + "に使えます。この関数は、例えば演算や添え字を含んだ任意の複雑な表現を評価する" | ||
| 1310 | + "のには使えません。" | ||
| 1291 | 1311 | ||
| 1292 | 1312 | #: ../../library/ast.rst:1972 | |
| 1293 | 1313 | msgid "" | |
@@ -1306,6 +1326,8 @@ msgid "" | |||
| 1306 | 1326 | "It is possible to crash the Python interpreter due to stack depth " | |
| 1307 | 1327 | "limitations in Python's AST compiler." | |
| 1308 | 1328 | msgstr "" | |
| 1329 | + "Python の抽象構文木コンパイラのスタックの深さの限界を越えることで、 Python イ" | ||
| 1330 | + "ンタプリタをクラッシュさせる可能性があります。" | ||
| 1309 | 1331 | ||
| 1310 | 1332 | #: ../../library/ast.rst:1985 | |
| 1311 | 1333 | msgid "" | |
@@ -1693,6 +1715,9 @@ msgid "" | |||
| 1693 | 1715 | "token-based and parse-tree-based views of python programs by inserting two-" | |
| 1694 | 1716 | "way links between tokens and ast nodes." | |
| 1695 | 1717 | msgstr "" | |
| 1718 | + "`leoAst.py <https://leoeditor.com/appendices.html#leoast-py>`_ は ast ノード" | ||
| 1719 | + "とトークンの間の双方向リンクを挿入することにより、Python プログラムに対する" | ||
| 1720 | + "トークンベースの視点と構文木ベースの視点を統合します。" | ||
| 1696 | 1721 | ||
| 1697 | 1722 | #: ../../library/ast.rst:2252 | |
| 1698 | 1723 | msgid "" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -79,6 +79,11 @@ msgid "" | |||
| 79 | 79 | "executed. A :attr:`conditional <cond>` breakpoint always counts a :attr:" | |
| 80 | 80 | "`hit <hits>`." | |
| 81 | 81 | msgstr "" | |
| 82 | + "ブレークポイントを作るとき、関連付けられる :attr:`ファイル名 <file>` は正規化" | ||
| 83 | + "されていなければなりません。:attr:`funcname` が定義されると、ブレークポイント" | ||
| 84 | + "の :attr:`ヒット <hits>` はその関数の最初の行が実行されたときにカウントされま" | ||
| 85 | + "す。:attr:`条件付き <cond>` ブレークポイントは毎回 :attr:`ヒット <hits>` をカ" | ||
| 86 | + "ウントします。" | ||
| 82 | 87 | ||
| 83 | 88 | #: ../../library/bdb.rst:39 | |
| 84 | 89 | msgid ":class:`Breakpoint` instances have the following methods:" | |
@@ -142,7 +147,7 @@ msgstr "" | |||
| 142 | 147 | ||
| 143 | 148 | #: ../../library/bdb.rst:77 | |
| 144 | 149 | msgid ":class:`Breakpoint` instances have the following attributes:" | |
| 145 | - msgstr "" | ||
| 150 | + msgstr ":class:`Breakpoint` インスタンスは以下の属性を持ちます:" | ||
| 146 | 151 | ||
| 147 | 152 | #: ../../library/bdb.rst:81 | |
| 148 | 153 | msgid "File name of the :class:`Breakpoint`." | |
@@ -422,17 +427,23 @@ msgid "" | |||
| 422 | 427 | "Called from :meth:`dispatch_line` when either :meth:`stop_here` or :meth:" | |
| 423 | 428 | "`break_here` returns ``True``." | |
| 424 | 429 | msgstr "" | |
| 430 | + ":meth:`stop_here` か :meth:`break_here` が ``True`` を返したときに、 :meth:" | ||
| 431 | + "`dispatch_line` から呼び出されます。" | ||
| 425 | 432 | ||
| 426 | 433 | #: ../../library/bdb.rst:250 | |
| 427 | 434 | msgid "" | |
| 428 | 435 | "Called from :meth:`dispatch_return` when :meth:`stop_here` returns ``True``." | |
| 429 | 436 | msgstr "" | |
| 437 | + ":meth:`stop_here` が ``True`` を返したときに、 :meth:`dispatch_return` から呼" | ||
| 438 | + "び出されます。" | ||
| 430 | 439 | ||
| 431 | 440 | #: ../../library/bdb.rst:254 | |
| 432 | 441 | msgid "" | |
| 433 | 442 | "Called from :meth:`dispatch_exception` when :meth:`stop_here` returns " | |
| 434 | 443 | "``True``." | |
| 435 | 444 | msgstr "" | |
| 445 | + ":meth:`stop_here` が ``True`` を返したときに、 :meth:`dispatch_exception` か" | ||
| 446 | + "ら呼び出されます。" | ||
| 436 | 447 | ||
| 437 | 448 | #: ../../library/bdb.rst:259 | |
| 438 | 449 | msgid "Handle how a breakpoint must be removed when it is a temporary one." | |
@@ -470,6 +481,8 @@ msgid "" | |||
| 470 | 481 | "Stop when the line with the *lineno* greater than the current one is reached " | |
| 471 | 482 | "or when returning from current frame." | |
| 472 | 483 | msgstr "" | |
| 484 | + "現在の行番号よりも大きい *lineno* に到達したとき、あるいは、現在のフレームか" | ||
| 485 | + "ら戻るときにストップします。" | ||
| 473 | 486 | ||
| 474 | 487 | #: ../../library/bdb.rst:286 | |
| 475 | 488 | msgid "" | |
@@ -521,6 +534,8 @@ msgid "" | |||
| 521 | 534 | "Delete the breakpoints in *filename* and *lineno*. If none were set, return " | |
| 522 | 535 | "an error message." | |
| 523 | 536 | msgstr "" | |
| 537 | + "*filename* の *lineno* 行にあるブレークポイントを削除します。もしブレークポイ" | ||
| 538 | + "ントが無かった場合、エラーメッセージを返します。" | ||
| 524 | 539 | ||
| 525 | 540 | #: ../../library/bdb.rst:317 | |
| 526 | 541 | msgid "" | |
@@ -537,11 +552,15 @@ msgid "" | |||
| 537 | 552 | "Delete all breakpoints in *filename*. If none were set, return an error " | |
| 538 | 553 | "message." | |
| 539 | 554 | msgstr "" | |
| 555 | + "*filename* にあるすべてのブレークポイントを削除します。もしブレークポイントが" | ||
| 556 | + "無かった場合、エラーメッセージを返します。" | ||
| 540 | 557 | ||
| 541 | 558 | #: ../../library/bdb.rst:328 | |
| 542 | 559 | msgid "" | |
| 543 | 560 | "Delete all existing breakpoints. If none were set, return an error message." | |
| 544 | 561 | msgstr "" | |
| 562 | + "存在するすべてのブレークポイントを削除します。もしブレークポイントが無かった" | ||
| 563 | + "場合、エラーメッセージを返します。" | ||
| 545 | 564 | ||
| 546 | 565 | #: ../../library/bdb.rst:333 | |
| 547 | 566 | msgid "" | |
@@ -557,6 +576,7 @@ msgstr "" | |||
| 557 | 576 | #: ../../library/bdb.rst:342 | |
| 558 | 577 | msgid "Return True if there is a breakpoint for *lineno* in *filename*." | |
| 559 | 578 | msgstr "" | |
| 579 | + "*filename* の *lineno* にブレークポイントが存在するかどうかを返します。" | ||
| 560 | 580 | ||
| 561 | 581 | #: ../../library/bdb.rst:346 | |
| 562 | 582 | msgid "" | |
@@ -606,7 +626,7 @@ msgstr "" | |||
| 606 | 626 | ||
| 607 | 627 | #: ../../library/bdb.rst:374 | |
| 608 | 628 | msgid "The function name or ``\"<lambda>\"``." | |
| 609 | - msgstr "" | ||
| 629 | + msgstr "関数名もしくは ``\"<lambda>\"``。" | ||
| 610 | 630 | ||
| 611 | 631 | #: ../../library/bdb.rst:375 | |
| 612 | 632 | msgid "The input arguments." | |
@@ -662,6 +682,8 @@ msgid "" | |||
| 662 | 682 | "Return True if we should break here, depending on the way the :class:" | |
| 663 | 683 | "`Breakpoint` *b* was set." | |
| 664 | 684 | msgstr "" | |
| 685 | + ":class:`Breakpoint` *b* が設定された方法に依存する方法で、この場所でブレーク" | ||
| 686 | + "する必要があれば真を返します。" | ||
| 665 | 687 | ||
| 666 | 688 | #: ../../library/bdb.rst:409 | |
| 667 | 689 | msgid "" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,6 +34,11 @@ msgid "" | |||
| 34 | 34 | "look at the :mod:`code` module. (The :mod:`codeop` module is lower-level, " | |
| 35 | 35 | "used to support compiling a possibly incomplete chunk of Python code.)" | |
| 36 | 36 | msgstr "" | |
| 37 | + "この章で解説されるモジュールで Python の対話インタプリタに似たインターフェー" | ||
| 38 | + "スを書くことができます。もし Python そのもの以外に何か特殊な機能をサポートし" | ||
| 39 | + "た Python インタプリタを作りたければ、 :mod:`code` モジュールを参照してくださ" | ||
| 40 | + "い。 (:mod:`codeop` モジュールはより低レベルで、不完全(かもしれない) Python " | ||
| 41 | + "コード断片のコンパイルをサポートするために使われます。)" | ||
| 37 | 42 | ||
| 38 | 43 | #: ../../library/custominterp.rst:13 | |
| 39 | 44 | msgid "The full list of modules described in this chapter is:" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -589,6 +589,12 @@ msgid "" | |||
| 589 | 589 | "``name: value`` pairs. dataclasses, dicts, lists, and tuples are recursed " | |
| 590 | 590 | "into. Other objects are copied with :func:`copy.deepcopy`." | |
| 591 | 591 | msgstr "" | |
| 592 | + "データクラス ``obj`` を (ファクトリ関数 ``dict_factory`` を使い) 辞書に変換し" | ||
| 593 | + "ます。\n" | ||
| 594 | + "それぞれのデータクラスは、 ``name: value`` という組になっている、フィールドの" | ||
| 595 | + "辞書に変換されます。\n" | ||
| 596 | + "データクラス、辞書、リスト、タプルは再帰的に処理されます。\n" | ||
| 597 | + "その他のオブジェクトは :func:`copy.deepcopy` でコピーされます。" | ||
| 592 | 598 | ||
| 593 | 599 | #: ../../library/dataclasses.rst:331 | |
| 594 | 600 | msgid "Example of using :func:`asdict` on nested dataclasses::" | |
@@ -603,6 +609,8 @@ msgid "" | |||
| 603 | 609 | ":func:`asdict` raises :exc:`TypeError` if ``obj`` is not a dataclass " | |
| 604 | 610 | "instance." | |
| 605 | 611 | msgstr "" | |
| 612 | + "``obj`` がデータクラスのインスタンスでなかった場合、 :func:`asdict` は :exc:" | ||
| 613 | + "`TypeError` を送出します。" | ||
| 606 | 614 | ||
| 607 | 615 | #: ../../library/dataclasses.rst:357 | |
| 608 | 616 | msgid "" | |
@@ -611,6 +619,11 @@ msgid "" | |||
| 611 | 619 | "values. dataclasses, dicts, lists, and tuples are recursed into. Other " | |
| 612 | 620 | "objects are copied with :func:`copy.deepcopy`." | |
| 613 | 621 | msgstr "" | |
| 622 | + "データクラス ``obj`` を (ファクトリ関数 ``tuple_factory`` を使い) タプルに変" | ||
| 623 | + "換します。\n" | ||
| 624 | + "それぞれのデータクラスは、フィールド値のタプルに変換されます。\n" | ||
| 625 | + "データクラス、辞書、リスト、タプルは再帰的に処理されます。\n" | ||
| 626 | + "その他のオブジェクトは :func:`copy.deepcopy` でコピーされます。" | ||
| 614 | 627 | ||
| 615 | 628 | #: ../../library/dataclasses.rst:363 | |
| 616 | 629 | msgid "Continuing from the previous example::" | |
@@ -621,6 +634,8 @@ msgid "" | |||
| 621 | 634 | ":func:`astuple` raises :exc:`TypeError` if ``obj`` is not a dataclass " | |
| 622 | 635 | "instance." | |
| 623 | 636 | msgstr "" | |
| 637 | + "``obj`` がデータクラスのインスタンスでなかった場合、 :func:`astuple` は :exc:" | ||
| 638 | + "`TypeError` を送出します。" | ||
| 624 | 639 | ||
| 625 | 640 | #: ../../library/dataclasses.rst:377 | |
| 626 | 641 | msgid "" | |
@@ -668,6 +683,11 @@ msgid "" | |||
| 668 | 683 | "`TypeError`. If values in ``changes`` do not specify fields, raises :exc:" | |
| 669 | 684 | "`TypeError`." | |
| 670 | 685 | msgstr "" | |
| 686 | + "``obj`` と同じ型のオブジェクトを新しく作成し、フィールドを ``changes`` にある" | ||
| 687 | + "値で置き換えます。\n" | ||
| 688 | + "``obj`` がデータクラスではなかった場合、 :exc:`TypeError` を送出します。\n" | ||
| 689 | + "``changes`` にある値がフィールドを指定していなかった場合も、 :exc:" | ||
| 690 | + "`TypeError` を送出します。" | ||
| 671 | 691 | ||
| 672 | 692 | #: ../../library/dataclasses.rst:417 | |
| 673 | 693 | msgid "" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -104,6 +104,10 @@ msgid "" | |||
| 104 | 104 | "least as recent as the one available in ``ensurepip``, pass the ``--" | |
| 105 | 105 | "upgrade`` option::" | |
| 106 | 106 | msgstr "" | |
| 107 | + "この起動方法は ``pip`` をインストールします。既にインストールされていた場合は" | ||
| 108 | + "何もしません。インストールされた ``pip`` のバージョンを ``ensurepip`` で利用" | ||
| 109 | + "できるもののうち、できるだけ新しいものにするためには、``--upgrade`` オプショ" | ||
| 110 | + "ンを追加して::" | ||
| 107 | 111 | ||
| 108 | 112 | #: ../../library/ensurepip.rst:58 | |
| 109 | 113 | msgid "" | |
@@ -181,6 +185,8 @@ msgid "" | |||
| 181 | 185 | "Returns a string specifying the available version of pip that will be " | |
| 182 | 186 | "installed when bootstrapping an environment." | |
| 183 | 187 | msgstr "" | |
| 188 | + "環境にブートストラップする際にインストールされることになる利用可能な pip の" | ||
| 189 | + "バージョンを示す文字列を返します。" | ||
| 184 | 190 | ||
| 185 | 191 | #: ../../library/ensurepip.rst:98 | |
| 186 | 192 | msgid "Bootstraps ``pip`` into the current or designated environment." | |
@@ -200,6 +206,8 @@ msgid "" | |||
| 200 | 206 | "*upgrade* indicates whether or not to upgrade an existing installation of an " | |
| 201 | 207 | "earlier version of ``pip`` to the available version." | |
| 202 | 208 | msgstr "" | |
| 209 | + "*upgrade* で、 ``pip`` の利用可能なバージョンとして、インストール済みの以前の" | ||
| 210 | + "バージョンをアップグレードするかどうかを指定します。" | ||
| 203 | 211 | ||
| 204 | 212 | #: ../../library/ensurepip.rst:107 | |
| 205 | 213 | msgid "" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -286,3 +286,5 @@ msgid "" | |||
| 286 | 286 | "Example of a segmentation fault on Linux with and without enabling the fault " | |
| 287 | 287 | "handler:" | |
| 288 | 288 | msgstr "" | |
| 289 | + "フォールトハンドラを有効化・無効化したときの Linuxでのセグメンテーション" | ||
| 290 | + "フォールトの例:" | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -118,6 +118,8 @@ msgid "" | |||
| 118 | 118 | "Raises an :ref:`auditing event <auditing>` ``gc.get_objects`` with argument " | |
| 119 | 119 | "``generation``." | |
| 120 | 120 | msgstr "" | |
| 121 | + "引数 ``generation`` で :ref:`監査イベント <auditing>` ``gc.get_objects`` を送" | ||
| 122 | + "出します。 " | ||
| 121 | 123 | ||
| 122 | 124 | #: ../../library/gc.rst:79 | |
| 123 | 125 | msgid "" | |
@@ -229,6 +231,8 @@ msgid "" | |||
| 229 | 231 | "Raises an :ref:`auditing event <auditing>` ``gc.get_referrers`` with " | |
| 230 | 232 | "argument ``objs``." | |
| 231 | 233 | msgstr "" | |
| 234 | + "引数 ``objs`` を指定して :ref:`監査イベント <auditing>` ``gc.get_referrers`` " | ||
| 235 | + "を送出します。 " | ||
| 232 | 236 | ||
| 233 | 237 | #: ../../library/gc.rst:151 | |
| 234 | 238 | msgid "" | |
@@ -255,6 +259,8 @@ msgid "" | |||
| 255 | 259 | "Raises an :ref:`auditing event <auditing>` ``gc.get_referents`` with " | |
| 256 | 260 | "argument ``objs``." | |
| 257 | 261 | msgstr "" | |
| 262 | + "引数 ``objs`` を指定して :ref:`監査イベント <auditing>` ``gc.get_referents`` " | ||
| 263 | + "を送出します。 " | ||
| 258 | 264 | ||
| 259 | 265 | #: ../../library/gc.rst:163 | |
| 260 | 266 | msgid "" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments