Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 85732b9

Browse files
author
github-actions
committed
Merge 3.11 into 3.8
1 parent 7ee4a7b commit 85732b9

File tree

2 files changed

+115
-3
lines changed

2 files changed

+115
-3
lines changed

howto/clinic.po

Lines changed: 112 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,10 @@ msgid ""
369369
"should have just the text, based at the left margin, with no line wider than "
370370
"80 characters. (Argument Clinic will preserve indents inside the docstring.)"
371371
msgstr ""
372+
"docstring を切り取って ``[clinic]`` の行の間に貼り付け、適切にクォートされた "
373+
"C の文字列になるようにガラクタを全て削除します。そうすると、80文字以上の行が"
374+
"ない、左マージンに揃えられた、テキストだけになるはずです。 (Argument Clinic "
375+
"は docstring 内のインデントを保持します。)"
372376

373377
#: ../../howto/clinic.rst:199
374378
msgid ""
@@ -377,6 +381,10 @@ msgid ""
377381
"``help()`` on your builtin in the future, the first line will be built "
378382
"automatically based on the function's signature.)"
379383
msgstr ""
384+
"古い docstring の最初の行に関数シグネチャのようなものがある場合は、その行を破"
385+
"棄します。 (docstring は最早必要ありません — 将来あなたのビルトインで "
386+
"``help()`` を使うときは、 最初の行は、 関数のシグネチャに基づいて自動的にビル"
387+
"ドされます。)"
380388

381389
#: ../../howto/clinic.rst:205 ../../howto/clinic.rst:226
382390
#: ../../howto/clinic.rst:250 ../../howto/clinic.rst:308
@@ -392,12 +400,17 @@ msgid ""
392400
"paragraph consisting of a single 80-column line at the beginning of the "
393401
"docstring."
394402
msgstr ""
403+
"あなたの docstring に「要約」(summary)行がない場合、 Argument Clinic は文句を"
404+
"言います。 なので、それがあることを確認しましょう。 「要約」行は、 docstring "
405+
"の先頭にあり、 80 桁以内の単一の行で構成される段落である必要があります。"
395406

396407
#: ../../howto/clinic.rst:216
397408
msgid ""
398409
"(Our example docstring consists solely of a summary line, so the sample code "
399410
"doesn't have to change for this step.)"
400411
msgstr ""
412+
"(例の docstring は要約行のみで構成されているため、このステップではサンプル・"
413+
"コードを変更する必要はありません。)"
401414

402415
#: ../../howto/clinic.rst:219
403416
msgid ""
@@ -407,6 +420,10 @@ msgid ""
407420
"module, include any sub-modules, and if the function is a method on a class "
408421
"it should include the class name too."
409422
msgstr ""
423+
"docstring に関数の名前を入力し、その後に空白行を入力します。 これは関数の "
424+
"Python 名であり、 関数への完全なドット・パス(full dotted path)である必要があ"
425+
"ります。つまり、それはモジュール名で始まり、サブモジュールが含まれている必要"
426+
"があり、関数がクラスのメソッドである場合は、クラス名も含める必要があります。"
410427

411428
#: ../../howto/clinic.rst:234
412429
msgid ""
@@ -417,46 +434,65 @@ msgid ""
417434
"statics go at the top. (In our sample code we'll just show the two blocks "
418435
"next to each other.)"
419436
msgstr ""
437+
"モジュールまたはクラスがこの C ファイルの Argument Clinic で初めて使用される"
438+
"場合は、モジュール および/または クラスを宣言する必要があります。 Argument "
439+
"Clinic 界隈では、これらを C ファイルの先頭近くの別のブロックで宣言することが"
440+
"好ましいとされます。これは、インクルード・ファイル や statics が先頭に配置さ"
441+
"れるのと同一の手法です。 (なお、 このコード例では、説明の都合上 2 つのブロッ"
442+
"クを続けて表示しています。)"
420443

421444
#: ../../howto/clinic.rst:242
422445
msgid ""
423446
"The name of the class and module should be the same as the one seen by "
424447
"Python. Check the name defined in the :c:type:`PyModuleDef` or :c:type:"
425448
"`PyTypeObject` as appropriate."
426449
msgstr ""
450+
"クラス名とモジュール名は、 Python で表示されるものと同一にする必要がありま"
451+
"す。 :c:type:`PyModuleDef` または :c:type:`PyTypeObject` で定義されている名前"
452+
"を適宜確認してください。"
427453

428454
#: ../../howto/clinic.rst:246
429455
msgid ""
430456
"When you declare a class, you must also specify two aspects of its type in "
431457
"C: the type declaration you'd use for a pointer to an instance of this "
432458
"class, and a pointer to the :c:type:`PyTypeObject` for this class."
433459
msgstr ""
460+
"クラスを宣言するときは、 C では、その型の 2 つの側面も指定する必要がありま"
461+
"す。 それは、このクラスのインスタンスへのポインタに使用する型宣言と、このクラ"
462+
"スの :c:type:`PyTypeObject` へのポインタに使用する型宣言です。"
434463

435464
#: ../../howto/clinic.rst:266
436465
msgid ""
437466
"Declare each of the parameters to the function. Each parameter should get "
438467
"its own line. All the parameter lines should be indented from the function "
439468
"name and the docstring."
440469
msgstr ""
470+
"関数のための各引数(parameters)を宣言します。 各引数は、それぞれ独立した行であ"
471+
"る必要があります。すべての引数行は、関数名と docstring からインデントさせる必"
472+
"要があります。"
441473

442474
#: ../../howto/clinic.rst:270
443475
msgid "The general form of these parameter lines is as follows:"
444-
msgstr ""
476+
msgstr "これらの引数行の一般的な形式は以下のとおりです:"
445477

446478
#: ../../howto/clinic.rst:276
447479
msgid "If the parameter has a default value, add that after the converter:"
448480
msgstr ""
481+
"引数にデフォルト値がある場合は、コンバーター(converter)の後に追加します:"
449482

450483
#: ../../howto/clinic.rst:283
451484
msgid ""
452485
"Argument Clinic's support for \"default values\" is quite sophisticated; "
453486
"please see :ref:`the section below on default values <default_values>` for "
454487
"more information."
455488
msgstr ""
489+
"「デフォルト値」に対する Argument Clinic のサポートは非常に洗練されています。"
490+
"詳細については、 :ref:`下記 引数のデフォルト値 セクション <default_values>` "
491+
"を参照してください。"
456492

457493
#: ../../howto/clinic.rst:287
458494
msgid "Add a blank line below the parameters."
459-
msgstr ""
495+
msgstr "全ての引数の下に空白行を追加します。"
460496

461497
#: ../../howto/clinic.rst:289
462498
msgid ""
@@ -466,6 +502,10 @@ msgid ""
466502
"convenience syntax intended to make porting old code into Argument Clinic "
467503
"easier."
468504
msgstr ""
505+
"「コンバーター」(converter)は、 C で使用される変数の型と、実行時に Python の"
506+
"値を C の値に変換する方法の、両方を確立します。 ここでは、 「レガシー・コン"
507+
"バーター」(legacy converter) と呼ばれるものを使用します。これは、古いコード"
508+
"を Argument Clinic に簡単に移植できるようにするための便利な構文です。"
469509

470510
#: ../../howto/clinic.rst:296
471511
msgid ""
@@ -476,57 +516,84 @@ msgid ""
476516
"parsing function what the type of the variable is and how to convert it. "
477517
"For more on format units please see :ref:`arg-parsing`.)"
478518
msgstr ""
519+
"各引数について、その引数の「フォーマット単位」を ``PyArg_Parse()`` のフォー"
520+
"マット引数からコピーし、 引用符に囲まれた文字列にして、 *that* にコンバーター"
521+
"として指定します。 (「フォーマット単位」(format unit)とは、引数解析関数に変数"
522+
"の型とその変換方法を伝える ``format`` パラメータの 1 ~ 3 文字の部分文字列の"
523+
"正式な名前です。フォーマット単位の詳細については、 :ref:`arg-parsing` を参照"
524+
"してください。)"
479525

480526
#: ../../howto/clinic.rst:305
481527
msgid ""
482528
"For multicharacter format units like ``z#``, use the entire two-or-three "
483529
"character string."
484530
msgstr ""
531+
"``z#`` のような複数文字のフォーマット単位の場合、2または3文字の文字列全体を使"
532+
"用します。"
485533

486534
#: ../../howto/clinic.rst:323
487535
msgid ""
488536
"If your function has ``|`` in the format string, meaning some parameters "
489537
"have default values, you can ignore it. Argument Clinic infers which "
490538
"parameters are optional based on whether or not they have default values."
491539
msgstr ""
540+
"関数のフォーマット文字列に ``|`` が含まれている場合、つまり一部の引数にデフォ"
541+
"ルト値がある場合は、無視してかまいません。 Argument Clinic は、デフォルト値が"
542+
"あるかどうかに基づいて、どの引数がオプションなのかを推測します。"
492543

493544
#: ../../howto/clinic.rst:328
494545
msgid ""
495546
"If your function has ``$`` in the format string, meaning it takes keyword-"
496547
"only arguments, specify ``*`` on a line by itself before the first keyword-"
497548
"only argument, indented the same as the parameter lines."
498549
msgstr ""
550+
"関数のフォーマット文字列に ``$`` が含まれている場合、つまりキーワードのみの引"
551+
"数を取る場合は、最初のキーワードのみの引数の、前の行に ``*`` を単独で指定し、"
552+
"引数行と同一のインデントを行います。"
499553

500554
#: ../../howto/clinic.rst:333
501555
msgid "(``_pickle.Pickler.dump`` has neither, so our sample is unchanged.)"
502556
msgstr ""
557+
"(なお、 ``_pickle.Pickler.dump`` にはどちらも含まれていないため、サンプルは変"
558+
"更されていません。)"
503559

504560
#: ../../howto/clinic.rst:336
505561
msgid ""
506562
"If the existing C function calls :c:func:`PyArg_ParseTuple` (as opposed to :"
507563
"c:func:`PyArg_ParseTupleAndKeywords`), then all its arguments are positional-"
508564
"only."
509565
msgstr ""
566+
"既存の C 関数が、(:c:func:`PyArg_ParseTupleAndKeywords` ではなく、) :c:func:"
567+
"`PyArg_ParseTuple` を呼び出す場合、そのすべての引数は位置のみです(positional-"
568+
"only)。"
510569

511570
#: ../../howto/clinic.rst:340
512571
msgid ""
513572
"To mark all parameters as positional-only in Argument Clinic, add a ``/`` on "
514573
"a line by itself after the last parameter, indented the same as the "
515574
"parameter lines."
516575
msgstr ""
576+
"Argument Clinic ですべての引数を位置のみ(positional-only)としてマークするに"
577+
"は、引数行と同一のインデントにして、最後の引数の次の行に ``/`` を追加します。"
517578

518579
#: ../../howto/clinic.rst:344
519580
msgid ""
520581
"Currently this is all-or-nothing; either all parameters are positional-only, "
521582
"or none of them are. (In the future Argument Clinic may relax this "
522583
"restriction.)"
523584
msgstr ""
585+
"現在のところ、これは、すべての引数が位置のみ(positional-only)であるか、全てが"
586+
"そうでないかのどちらかです(all-or-nothing)。 (Argument Clinic は将来はこの制"
587+
"限を緩和する可能性もあります。)"
524588

525589
#: ../../howto/clinic.rst:364
526590
msgid ""
527591
"It's helpful to write a per-parameter docstring for each parameter. But per-"
528592
"parameter docstrings are optional; you can skip this step if you prefer."
529593
msgstr ""
594+
"各引数に引数ごとの docstring (per-parameter docstring)を記述すると助けになり"
595+
"ます。 ただし、引数ごとの docstring はオプションですので、必要に応じて、この"
596+
"手順はスキップできます。"
530597

531598
#: ../../howto/clinic.rst:368
532599
msgid ""
@@ -537,33 +604,50 @@ msgid ""
537604
"amount. You can write as much text as you like, across multiple lines if "
538605
"you wish."
539606
msgstr ""
607+
"引数ごとの docstring を追加する方法: 引数ごとの docstring の最初の行は、引数"
608+
"行定義よりもさらにインデントする必要があります。 この最初の行の左マージンは、"
609+
"引数ごとの docstring 全体の左マージンを確定します。 あなたが書くすべてのテキ"
610+
"ストは、この左マージン量だけアウトデントされます。 必要に応じて、複数行にまた"
611+
"がって、好きなだけテキストを書くことができます。"
540612

541613
#: ../../howto/clinic.rst:392
542614
msgid ""
543615
"Save and close the file, then run ``Tools/clinic/clinic.py`` on it. With "
544616
"luck everything worked---your block now has output, and a ``.c.h`` file has "
545617
"been generated! Reopen the file in your text editor to see::"
546618
msgstr ""
619+
"ファイルを保存して閉じ、 そのファイルに対して ``Tools/clinic/clinic.py`` を実"
620+
"行します。 運が良ければすべてうまくいきます --- つまり、 Argument Clinic ブ"
621+
"ロックに出力があり、かつ、 ``.c.h`` ファイルが生成されまます! テキスト・エ"
622+
"ディタでそのファイルを再度開いて確認します::"
547623

548624
#: ../../howto/clinic.rst:411
549625
msgid ""
550626
"Obviously, if Argument Clinic didn't produce any output, it's because it "
551627
"found an error in your input. Keep fixing your errors and retrying until "
552628
"Argument Clinic processes your file without complaint."
553629
msgstr ""
630+
"Argument Clinic が明らかに出力を生成しなかった場合、それは入力にエラーが見つ"
631+
"かったためです。 Argument Clinic が問題なくファイルを処理するまで、エラーの修"
632+
"正と再試行を続けて下さい。。"
554633

555634
#: ../../howto/clinic.rst:415
556635
msgid ""
557636
"For readability, most of the glue code has been generated to a ``.c.h`` "
558637
"file. You'll need to include that in your original ``.c`` file, typically "
559638
"right after the clinic module block::"
560639
msgstr ""
640+
"読みやすさのために、ほとんどのグルー・コードは ``.c.h`` ファイルに生成されて"
641+
"います。 これを元の ``.c`` ファイルにインクルードする必要があり、通常は "
642+
"clinic モジュール・ブロックの直後に置きます::"
561643

562644
#: ../../howto/clinic.rst:421
563645
msgid ""
564646
"Double-check that the argument-parsing code Argument Clinic generated looks "
565647
"basically the same as the existing code."
566648
msgstr ""
649+
"Argument Clinic が生成した引数解析コードが既存のコードと基本的に同じであるこ"
650+
"とをダブル・チェックします。"
567651

568652
#: ../../howto/clinic.rst:424
569653
msgid ""
@@ -572,20 +656,32 @@ msgid ""
572656
"`PyArg_ParseTupleAndKeywords`; ensure that the code generated by Argument "
573657
"Clinic calls the *exact* same function."
574658
msgstr ""
659+
"1番目に、両方の場所で同じ引数解析関数が使用されていることを確認します。 既存"
660+
"のコードは :c:func:`PyArg_ParseTuple` または :c:func:"
661+
"`PyArg_ParseTupleAndKeywords` のいずれかを呼び出す必要があります。 Argument "
662+
"Clinic によって生成されたコードが *まったく同じ* 関数を呼び出すことを確認して"
663+
"ください。"
575664

576665
#: ../../howto/clinic.rst:430
577666
msgid ""
578667
"Second, the format string passed in to :c:func:`PyArg_ParseTuple` or :c:func:"
579668
"`PyArg_ParseTupleAndKeywords` should be *exactly* the same as the hand-"
580669
"written one in the existing function, up to the colon or semi-colon."
581670
msgstr ""
671+
"2番目、 :c:func:`PyArg_ParseTuple` または :c:func:"
672+
"`PyArg_ParseTupleAndKeywords` に渡されるフォーマット文字列は、コロンまたはセ"
673+
"ミコロン含めて、既存の関数で手書きされたものと *まったく同じ* でなければなり"
674+
"ません。"
582675

583676
#: ../../howto/clinic.rst:435
584677
msgid ""
585678
"(Argument Clinic always generates its format strings with a ``:`` followed "
586679
"by the name of the function. If the existing code's format string ends with "
587680
"``;``, to provide usage help, this change is harmless—don't worry about it.)"
588681
msgstr ""
682+
"(Argument Clinic は常に ``:`` の後に関数名が続くフォーマット文字列を生成しま"
683+
"す。既存のコードのフォーマット文字列が ``;`` で終わっていた場合のこの変更は使"
684+
"用法のヘルプを提供するためで、この変更は無害です。 心配してないでください。)"
589685

590686
#: ../../howto/clinic.rst:440
591687
msgid ""
@@ -594,13 +690,19 @@ msgid ""
594690
"function), ensure that the second argument is *exactly* the same between the "
595691
"two invocations."
596692
msgstr ""
693+
"3 番目に、フォーマット単位が 2 つの引数(arguments)を必要とする引数"
694+
"(parameters)(length 変数や、エンコード文字列や、変換関数へのポインタなど)につ"
695+
"いては、2 番目の引数(argument)が 2 つの呼び出し間で *正確に同じである* ことを"
696+
"確認してください。"
597697

598698
#: ../../howto/clinic.rst:445
599699
msgid ""
600700
"Fourth, inside the output portion of the block you'll find a preprocessor "
601701
"macro defining the appropriate static :c:type:`PyMethodDef` structure for "
602702
"this builtin::"
603703
msgstr ""
704+
"4 番目に、ブロックの出力部分内に、このビルトインの適切な静的 :c:type:"
705+
"`PyMethodDef` 構造を定義するプリプロセッサ・マクロがあります::"
604706

605707
#: ../../howto/clinic.rst:452
606708
msgid ""
@@ -711,7 +813,7 @@ msgstr "``True``、``False``、``None``"
711813
msgid ""
712814
"Simple symbolic constants like ``sys.maxsize``, which must start with the "
713815
"name of the module"
714-
msgstr ""
816+
msgstr "必ずモジュール名で始まる、 ``sys.maxsize`` のような単純な記号定数"
715817

716818
#: ../../howto/clinic.rst:570
717819
msgid ""
@@ -724,6 +826,8 @@ msgid ""
724826
"(In the future, this may need to get even more elaborate, to allow full "
725827
"expressions like ``CONSTANT - 1``.)"
726828
msgstr ""
829+
"(将来的には、`CONSTANT - 1`` のような式を表現可能にするために、さらに精巧にす"
830+
"る必要があるかもしれません。)"
727831

728832
#: ../../howto/clinic.rst:578
729833
msgid "Renaming the C functions and variables generated by Argument Clinic"
@@ -1072,6 +1176,9 @@ msgid ""
10721176
"Clinic converters. On the left is the legacy converter, on the right is the "
10731177
"text you'd replace it with."
10741178
msgstr ""
1179+
"以下の表は、 legacy converter から実際の Argument Clinic converter へのマッピ"
1180+
"ングを示す表です。左側は legacy converter で、右側がそれを置き換えたテキスト"
1181+
"です。"
10751182

10761183
#: ../../howto/clinic.rst:825
10771184
msgid "``'B'``"
@@ -1410,6 +1517,8 @@ msgid ""
14101517
"As an example, here's our sample ``pickle.Pickler.dump`` using the proper "
14111518
"converter::"
14121519
msgstr ""
1520+
"例題の ``pickle.Pickler.dump`` 適切な converter を使用したものを以下示しま"
1521+
"す::"
14131522

14141523
#: ../../howto/clinic.rst:881
14151524
msgid ""

library/sqlite3.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,6 +1146,9 @@ msgid ""
11461146
"Exception raised when the relational integrity of the database is affected, "
11471147
"e.g. a foreign key check fails. It is a subclass of :exc:`DatabaseError`."
11481148
msgstr ""
1149+
"データベースの参照整合性が影響を受ける場合に発生する例外。 たとえば外部キーの"
1150+
"チェック(foreign key check)が失敗したとき。 :exc:`DatabaseError` のサブクラス"
1151+
"です。"
11491152

11501153
#: ../../library/sqlite3.rst:835
11511154
msgid ""

0 commit comments

Comments
 (0)