@@ -14,7 +14,7 @@ msgid ""
14
14
msgstr ""
15
15
"Project-Id-Version : Python 3.11\n "
16
16
"Report-Msgid-Bugs-To : \n "
17
- "POT-Creation-Date : 2023-02-03 14:14 +0000\n "
17
+ "POT-Creation-Date : 2023-02-10 14:15 +0000\n "
18
18
"PO-Revision-Date : 2021-06-28 01:50+0000\n "
19
19
"
Last-Translator :
Takanori Suzuki <[email protected] >, 2023\n "
20
20
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ "
@@ -285,28 +285,37 @@ msgid ""
285
285
"also extract components (sequence elements or object attributes) from the "
286
286
"value into variables."
287
287
msgstr ""
288
+ ":keyword:`match` 文は1つの式を指定し、その値と次に続く1つ以上のcaseブロックに"
289
+ "指定されたパターンを比較します。この機能はCやJava、JavaScript(や他の多数の言"
290
+ "語)のswitch文と表面的には似ていますが、RustやHaskellのパターンマッチングによ"
291
+ "り似ています。最初にマッチしたパターンのみが実行され、コンポーネント(シーケン"
292
+ "スの要素やオブジェクトの属性)から値を取り出して変数に代入することもできます。"
288
293
289
294
#: ../../tutorial/controlflow.rst:261
290
295
msgid ""
291
296
"The simplest form compares a subject value against one or more literals::"
292
- msgstr ""
297
+ msgstr "最も単純な形式は、対象の値に対して1つ以上のリテラルです:: "
293
298
294
299
#: ../../tutorial/controlflow.rst:274
295
300
msgid ""
296
301
"Note the last block: the \" variable name\" ``_`` acts as a *wildcard* and "
297
302
"never fails to match. If no case matches, none of the branches is executed."
298
303
msgstr ""
304
+ "最後のブロックについてのメモ: 変数名 ``_`` は *ワイルドカード* の働きをし、"
305
+ "マッチに絶対失敗しません。マッチするケースがない場合は、そのブロックも実行さ"
306
+ "れません。"
299
307
300
308
#: ../../tutorial/controlflow.rst:277
301
309
msgid ""
302
310
"You can combine several literals in a single pattern using ``|`` (\" or\" )::"
303
311
msgstr ""
312
+ "複数のリテラルを``|`` (\" or\" )を使用して組み合わせて1つのパターンにできます::"
304
313
305
314
#: ../../tutorial/controlflow.rst:282
306
315
msgid ""
307
316
"Patterns can look like unpacking assignments, and can be used to bind "
308
317
"variables::"
309
- msgstr ""
318
+ msgstr "パターンはアンパック代入ができ、変数に結びつけられます:: "
310
319
311
320
#: ../../tutorial/controlflow.rst:298
312
321
msgid ""
@@ -317,13 +326,20 @@ msgid ""
317
326
"which makes it conceptually similar to the unpacking assignment ``(x, y) = "
318
327
"point``."
319
328
msgstr ""
329
+ "慎重に学んでください!最初のパターンには2つのリテラルがあり、上で示したリテラ"
330
+ "ルパターンの拡張と考えることができます。しかし次の2つのパターンはリテラルと変"
331
+ "数の組み合わせのため、対象(``point``)から値を取り出して変数に *結びつけ* ま"
332
+ "す。4番目のパターンは2つの値を捕まえます。これは、アンパック代入 ``(x, y) = "
333
+ "point`` と概念的に似ています。"
320
334
321
335
#: ../../tutorial/controlflow.rst:305
322
336
msgid ""
323
337
"If you are using classes to structure your data you can use the class name "
324
338
"followed by an argument list resembling a constructor, but with the ability "
325
339
"to capture attributes into variables::"
326
340
msgstr ""
341
+ "データを構造化するためにクラスを使っている場合は、クラス名の後ろにコンストラ"
342
+ "クターのように引数のリストを指定できます。属性の値は変数に取り込まれます。"
327
343
328
344
#: ../../tutorial/controlflow.rst:326
329
345
msgid ""
@@ -334,6 +350,11 @@ msgid ""
334
350
"\" y\" ), the following patterns are all equivalent (and all bind the ``y`` "
335
351
"attribute to the ``var`` variable)::"
336
352
msgstr ""
353
+ "いくつかの組み込みクラスでは位置引数が使用でき、属性の順番を提供します(例: "
354
+ "データクラス)。クラスの ``__match_args__`` 特殊属性でによって、パターンの中で"
355
+ "属性の明確な位置を定義することもできます。(\" x\" , \" y\" )が設定された場合、以"
356
+ "下のすべてのパターンは等価です(すべて属性 ``y`` が ``var`` 変数に結びつけられ"
357
+ "ます)::"
337
358
338
359
#: ../../tutorial/controlflow.rst:337
339
360
msgid ""
@@ -351,17 +372,22 @@ msgid ""
351
372
"Patterns can be arbitrarily nested. For example, if we have a short list of "
352
373
"points, we could match it like this::"
353
374
msgstr ""
375
+ "パターンは任意のネストができます。たとえば、短いポイントのリストがある場合、"
376
+ "以下のようにマッチできます::"
354
377
355
378
#: ../../tutorial/controlflow.rst:359
356
379
msgid ""
357
380
"We can add an ``if`` clause to a pattern, known as a \" guard\" . If the "
358
381
"guard is false, ``match`` goes on to try the next case block. Note that "
359
382
"value capture happens before the guard is evaluated::"
360
383
msgstr ""
384
+ "パターンに ``if`` 節を追加できます。これは \" ガード\" と呼ばれます。ガードが"
385
+ "falseの場合、``match`` は次のcaseブロックの処理に移動します。ガードを評価する"
386
+ "前に値が取り出されることに注意してください::"
361
387
362
388
#: ../../tutorial/controlflow.rst:369
363
389
msgid "Several other key features of this statement:"
364
- msgstr ""
390
+ msgstr "この文のその他のいくつか重要な特徴:: "
365
391
366
392
#: ../../tutorial/controlflow.rst:371
367
393
msgid ""
@@ -413,6 +439,8 @@ msgid ""
413
439
"For a more detailed explanation and additional examples, you can look into :"
414
440
"pep:`636` which is written in a tutorial format."
415
441
msgstr ""
442
+ "より詳細な説明と追加の例は :pep:`636` にチュートリアル形式で記述してありま"
443
+ "す。"
416
444
417
445
#: ../../tutorial/controlflow.rst:420
418
446
msgid "Defining Functions"
0 commit comments