@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version :Python 3.8\n "
1313"Report-Msgid-Bugs-To :\n "
14- "POT-Creation-Date :2020-02-09 12:40 +0000\n "
14+ "POT-Creation-Date :2020-09-02 14:59 +0000\n "
1515"PO-Revision-Date :2020-05-30 11:53+0000\n "
1616"Last-Translator :tomo, 2020\n "
1717"Language-Team :Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -912,14 +912,10 @@ msgstr ""
912912#: ../../faq/design.rst:573
913913msgid ""
914914"For Python, many of the advantages of interface specifications can be "
915- "obtained by an appropriate test discipline for components. There is also a "
916- "tool, PyChecker, which can be used to find problems due to subclassing."
915+ "obtained by an appropriate test discipline for components."
917916msgstr ""
918- "Python "
919- "では、コンポーネントの適切なテスト規律によって、インタフェース仕様の多くの強みを活かせます。サブクラス化による問題を見つけるために使えるツール "
920- "PyChecker もあります。"
921917
922- #: ../../faq/design.rst:577
918+ #: ../../faq/design.rst:576
923919msgid ""
924920"A good test suite for a module can both provide a regression test and serve "
925921"as a module interface specification and a set of examples. Many Python "
@@ -935,7 +931,7 @@ msgstr ""
935931" :mod:`doctest` や :mod:`unittest` "
936932"モジュール、あるいはサードパーティのテストフレームワークで、モジュールのコードの全ての行に及ぶ徹底的なテストスイートを構成できます。"
937933
938- #: ../../faq/design.rst:585
934+ #: ../../faq/design.rst:584
939935msgid ""
940936"An appropriate testing discipline can help build large complex applications "
941937"in Python as well as having interface specifications would. In fact, it can"
@@ -950,7 +946,7 @@ msgstr ""
950946" :meth:`append` メソッドは新しい要素をある内部リストの終わりに加えます。インタフェース仕様ではこの :meth:`append` "
951947"の実装が実際にこれを行うかをテストできませんが、テストスイートならこの機能を簡単に確かめられます。"
952948
953- #: ../../faq/design.rst:593
949+ #: ../../faq/design.rst:592
954950msgid ""
955951"Writing test suites is very helpful, and you might want to design your code "
956952"with an eye to making it easily tested. One increasingly popular technique,"
@@ -961,11 +957,11 @@ msgstr ""
961957"テストスイートを書くことはとても役に立ちますし、テストのしやすさという視点でコードを設計することにもつながります。テスト指向開発は、人気を増しつつある技法で、実際のコードを書き始める前に、最初からテストスイートの部品を書くことを求めます。もちろん、"
962958" Python で粗雑にテストケースを全く書かないこともできます。"
963959
964- #: ../../faq/design.rst:601
960+ #: ../../faq/design.rst:600
965961msgid "Why is there no goto?"
966962msgstr "なぜ goto が無いのですか?"
967963
968- #: ../../faq/design.rst:603
964+ #: ../../faq/design.rst:602
969965msgid ""
970966"You can use exceptions to provide a\" structured goto\" that even works "
971967"across function calls. Many feel that exceptions can conveniently emulate "
@@ -975,25 +971,25 @@ msgstr ""
975971"関数の呼び出しをまたいでも動作する\" 構造化された goto\" をまかなうものとして例外を使えます。C、Fortran、その他の言語での "
976972"\" go\" あるいは\" goto\" 構造の適切な用途は全て、例外で同じようなことををすれば便利であると、広く感じられています。例えば::"
977973
978- #: ../../faq/design.rst:618
974+ #: ../../faq/design.rst:617
979975msgid ""
980976"This doesn't allow you to jump into the middle of a loop, but that's usually"
981977" considered an abuse of goto anyway. Use sparingly."
982978msgstr "例外ではループ内へ跳ぶことはできませんが、どちらにしてもそれは goto の乱用と見なされるものです。使うのは控えてください。"
983979
984- #: ../../faq/design.rst:623
980+ #: ../../faq/design.rst:622
985981msgid "Why can't raw strings (r-strings) end with a backslash?"
986982msgstr "なぜ raw 文字列 (r-strings) はバックスラッシュで終わってはいけないのですか?"
987983
988- #: ../../faq/design.rst:625
984+ #: ../../faq/design.rst:624
989985msgid ""
990986"More precisely, they can't end with an odd number of backslashes: the "
991987"unpaired backslash at the end escapes the closing quote character, leaving "
992988"an unterminated string."
993989msgstr ""
994990"正確には、奇数個のバックスラッシュで終わってはいけません。終わりの対になっていないバックスラッシュは、閉じ引用文字をエスケープし、終っていない文字列を残してしまいます。"
995991
996- #: ../../faq/design.rst:629
992+ #: ../../faq/design.rst:628
997993msgid ""
998994"Raw strings were designed to ease creating input for processors (chiefly "
999995"regular expression engines) that want to do their own backslash escape "
@@ -1007,22 +1003,22 @@ msgstr ""
10071003"文字列はそれを認めません。その代わりに、バックスラッシュでエスケープすることで、引用文字を文字列として渡すことができます。r-string "
10081004"が意図された目的に使われるときに、この規則が役に立つのです。"
10091005
1010- #: ../../faq/design.rst:636
1006+ #: ../../faq/design.rst:635
10111007msgid ""
10121008"If you're trying to build Windows pathnames, note that all Windows system "
10131009"calls accept forward slashes too::"
10141010msgstr "Windows のパス名を構築するときには、Windows のシステムコールは普通のスラッシュも受け付けることを憶えておいてください::"
10151011
1016- #: ../../faq/design.rst:641
1012+ #: ../../faq/design.rst:640
10171013msgid ""
10181014"If you're trying to build a pathname for a DOS command, try e.g. one of ::"
10191015msgstr "DOS コマンドのパス名を構築するときには、例えばこの中のどれかを試してください::"
10201016
1021- #: ../../faq/design.rst:649
1017+ #: ../../faq/design.rst:648
10221018msgid "Why doesn't Python have a\" with\" statement for attribute assignments?"
10231019msgstr "属性の代入に\" with\" 文が使えないのはなぜですか?"
10241020
1025- #: ../../faq/design.rst:651
1021+ #: ../../faq/design.rst:650
10261022msgid ""
10271023"Python has a 'with' statement that wraps the execution of a block, calling "
10281024"code on the entrance and exit from the block. Some language have a "
@@ -1031,11 +1027,11 @@ msgstr ""
10311027"Python には、ブロックの実行を包む 'with' "
10321028"文があり、ブロックに入るときとブロックから出るときに、コードを呼び出します。以下のような構造を持つ言語があります::"
10331029
1034- #: ../../faq/design.rst:659
1030+ #: ../../faq/design.rst:658
10351031msgid "In Python, such a construct would be ambiguous."
10361032msgstr "Python では、このような構造は曖昧になるでしょう。"
10371033
1038- #: ../../faq/design.rst:661
1034+ #: ../../faq/design.rst:660
10391035msgid ""
10401036"Other languages, such as Object Pascal, Delphi, and C++, use static types, "
10411037"so it's possible to know, in an unambiguous way, what member is being "
@@ -1046,7 +1042,7 @@ msgstr ""
10461042"Pascal、Delphi、C++のような他の言語では、静的な型を使うので、曖昧な方法でも、どのメンバに代入されているのか分かります。これが静的型付けの要点です"
10471043" -- コンパイラは *いつでも* コンパイル時にすべての変数のスコープを知るのです。"
10481044
1049- #: ../../faq/design.rst:666
1045+ #: ../../faq/design.rst:665
10501046msgid ""
10511047"Python uses dynamic types. It is impossible to know in advance which "
10521048"attribute will be referenced at runtime. Member attributes may be added or "
@@ -1057,11 +1053,11 @@ msgstr ""
10571053"Python "
10581054"は動的な型を使います。実行時にどの属性が参照されるか事前に分かりません。動作中にメンバ属性が追加あるいは除去されるかもしれません。これでは、単純に読むだけではどのアトリビュートが参照されているか分かりません。ローカルなのか、グローバルなのか、メンバ属性なのか?"
10591055
1060- #: ../../faq/design.rst:672
1056+ #: ../../faq/design.rst:671
10611057msgid "For instance, take the following incomplete snippet::"
10621058msgstr "例えば、以下の不完全なコード片を考えましょう::"
10631059
1064- #: ../../faq/design.rst:678
1060+ #: ../../faq/design.rst:677
10651061msgid ""
10661062"The snippet assumes that\" a\" must have a member attribute called\" x\" . "
10671063"However, there is nothing in Python that tells the interpreter this. What "
@@ -1074,47 +1070,47 @@ msgstr ""
10741070"という名前のグローバル変数があったら、それが with ブロックの中で使われるのでしょうか。この通り、Python "
10751071"の動的な特質から、このような選択はとても難しい物になっています。"
10761072
1077- #: ../../faq/design.rst:684
1073+ #: ../../faq/design.rst:683
10781074msgid ""
10791075"The primary benefit of\" with\" and similar language features (reduction of "
10801076"code volume) can, however, easily be achieved in Python by assignment. "
10811077"Instead of::"
10821078msgstr "しかし、\" with\" やそれに類する言語の機能の一番の利点 (コード量の削減) は、 Python では代入により簡単に手に入れられます::"
10831079
1084- #: ../../faq/design.rst:691
1080+ #: ../../faq/design.rst:690
10851081msgid "write this::"
10861082msgstr "こう書いてください::"
10871083
1088- #: ../../faq/design.rst:698
1084+ #: ../../faq/design.rst:697
10891085msgid ""
10901086"This also has the side-effect of increasing execution speed because name "
10911087"bindings are resolved at run-time in Python, and the second version only "
10921088"needs to perform the resolution once."
10931089msgstr "Python では実行時に名前束縛が解決され、後者はその解決が一度で済むため、これには実行速度をあげる副作用もあります。"
10941090
1095- #: ../../faq/design.rst:704
1091+ #: ../../faq/design.rst:703
10961092msgid "Why are colons required for the if/while/def/class statements?"
10971093msgstr "if/while/def/class 文にコロンが必要なのはなぜですか?"
10981094
1099- #: ../../faq/design.rst:706
1095+ #: ../../faq/design.rst:705
11001096msgid ""
11011097"The colon is required primarily to enhance readability (one of the results "
11021098"of the experimental ABC language). Consider this::"
11031099msgstr "主に可読性を高めるため (実験的な ABC 言語の結果の一つ) に、コロンが必要です::"
11041100
1105- #: ../../faq/design.rst:712
1101+ #: ../../faq/design.rst:711
11061102msgid "versus ::"
11071103msgstr "と::"
11081104
1109- #: ../../faq/design.rst:717
1105+ #: ../../faq/design.rst:716
11101106msgid ""
11111107"Notice how the second one is slightly easier to read. Notice further how a "
11121108"colon sets off the example in this FAQ answer; it's a standard usage in "
11131109"English."
11141110msgstr ""
11151111"を考えれば、後者のほうが少し読みやすいでしょう。さらに言えば、この FAQ の解答例は次のようになるでしょう。これは、英語の標準的な用法です。"
11161112
1117- #: ../../faq/design.rst:720
1113+ #: ../../faq/design.rst:719
11181114msgid ""
11191115"Another minor reason is that the colon makes it easier for editors with "
11201116"syntax highlighting; they can look for colons to decide when indentation "
@@ -1123,21 +1119,21 @@ msgid ""
11231119msgstr ""
11241120"他の小さな理由は、コロンによってエディタがシンタックスハイライトをしやすくなることです。プログラムテキストの手の込んだ解析をしなくても、コロンを探せばいつインデントを増やすべきかを決められます。"
11251121
1126- #: ../../faq/design.rst:726
1122+ #: ../../faq/design.rst:725
11271123msgid "Why does Python allow commas at the end of lists and tuples?"
11281124msgstr "なぜ Python ではリストやタプルの最後にカンマがあっても良いのですか?"
11291125
1130- #: ../../faq/design.rst:728
1126+ #: ../../faq/design.rst:727
11311127msgid ""
11321128"Python lets you add a trailing comma at the end of lists, tuples, and "
11331129"dictionaries::"
11341130msgstr "Python では、リスト、タプル、辞書の最後の要素の後端にカンマをつけても良いことになっています::"
11351131
1136- #: ../../faq/design.rst:739
1132+ #: ../../faq/design.rst:738
11371133msgid "There are several reasons to allow this."
11381134msgstr "これを許すのには、いくつかの理由があります。"
11391135
1140- #: ../../faq/design.rst:741
1136+ #: ../../faq/design.rst:740
11411137msgid ""
11421138"When you have a literal value for a list, tuple, or dictionary spread across"
11431139" multiple lines, it's easier to add more elements because you don't have to "
@@ -1146,13 +1142,13 @@ msgid ""
11461142msgstr ""
11471143"リストやタプルや辞書のリテラルが複数行に渡っているときに、前の行にカンマを追加するのを覚えておく必要が無いため、要素を追加するのが楽になります。また、文法エラーを起こすこと無く、行の並べ替えを行うことができます。"
11481144
1149- #: ../../faq/design.rst:746
1145+ #: ../../faq/design.rst:745
11501146msgid ""
11511147"Accidentally omitting the comma can lead to errors that are hard to "
11521148"diagnose. For example::"
11531149msgstr "間違えてカンマを落としてしまうと、診断しづらいエラーにつながります。例えば::"
11541150
1155- #: ../../faq/design.rst:756
1151+ #: ../../faq/design.rst:755
11561152msgid ""
11571153"This list looks like it has four elements, but it actually contains three: "
11581154"\" fee\" ,\" fiefoo\" and\" fum\" . Always adding the comma avoids this source"
@@ -1162,7 +1158,7 @@ msgstr ""
11621158"\" fee\" 、\" fiefoo\" 、\" fum\" です。\n"
11631159"常にカンマを付けるようにすれば、この種のエラーが避けられます。"
11641160
1165- #: ../../faq/design.rst:759
1161+ #: ../../faq/design.rst:758
11661162msgid ""
11671163"Allowing the trailing comma may also make programmatic code generation "
11681164"easier."