Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7ab3689

Browse files
author
Autobuild bot on TravisCI
committed
[skip ci] Update .po files
1 parent301c5dc commit7ab3689

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

‎reference/expressions.po

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ msgid ""
201201
" immutable, the same rules as for literals apply (i.e., two occurrences of "
202202
"the empty tuple may or may not yield the same object)."
203203
msgstr""
204+
"中身が空の丸括弧のペアは、空のタプルオブジェクトを表します。\n"
205+
"タプルは変更不能なので、リテラルと同じ規則が適用されます (すなわち、空のタプルが二箇所で使われると、それらは同じオブジェクトになることもあるし、ならないこともあります)。"
204206

205207
#:../../reference/expressions.rst:155
206208
msgid""
@@ -627,6 +629,8 @@ msgid ""
627629
":exc:`StopIteration`, or automatically when the subiterator is a generator "
628630
"(by returning a value from the subgenerator)."
629631
msgstr""
632+
"根底のイテレータの完了時、引き起こされた :exc:`StopIteration` インスタンスの :attr:`~StopIteration.value` 属性はその yield 式の値となります。\n"
633+
":exc:`StopIteration` を起こす際に明示的にセットされるか、サブイテレータがジェネレータであれば (サブイテレータからかえる値で) 自動的にセットされるかのどちらかです。"
630634

631635
#:../../reference/expressions.rst:490
632636
msgid"Added ``yield from <expr>`` to delegate control flow to a subiterator."
@@ -666,7 +670,7 @@ msgstr ":pep:`380` - サブジェネレータへの委譲構文"
666670
msgid""
667671
"The proposal to introduce the :token:`yield_from` syntax, making delegation "
668672
"to subgenerators easy."
669-
msgstr""
673+
msgstr"サブジェネレータの委譲を簡単にするための、 :token:`yield_from` 構文の導入提案。"
670674

671675
#:../../reference/expressions.rst:510
672676
msgid":pep:`525` - Asynchronous Generators"
@@ -789,6 +793,8 @@ msgid ""
789793
":keyword:`async def` further defines the function as an :term:`asynchronous "
790794
"generator` function."
791795
msgstr""
796+
":keyword:`async def` を使用して定義された関数やメソッドに yield 式があると、その関数は :term:`非同期ジェネレータ "
797+
"<asynchronous generator>` 関数として定義されます。"
792798

793799
#:../../reference/expressions.rst:619
794800
msgid""
@@ -859,7 +865,7 @@ msgstr ""
859865
msgid""
860866
"The expression ``yield from <expr>`` is a syntax error when used in an "
861867
"asynchronous generator function."
862-
msgstr""
868+
msgstr"``yield from <expr>`` 式は、非同期ジェネレータ関数で使われると文法エラーになります。"
863869

864870
#:../../reference/expressions.rst:669
865871
msgid"Asynchronous generator-iterator methods"
@@ -869,7 +875,7 @@ msgstr "非同期ジェネレータイテレータメソッド"
869875
msgid""
870876
"This subsection describes the methods of an asynchronous generator iterator,"
871877
" which are used to control the execution of a generator function."
872-
msgstr""
878+
msgstr"この小節では、ジェネレータ関数の実行制御に使われる非同期ジェネレータイテレータのメソッドについて説明します。"
873879

874880
#:../../reference/expressions.rst:679
875881
msgid""

‎tutorial/controlflow.po

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# Arihiro TAKASE, 2017
1313
# Osamu NAKAMURA, 2017
1414
# kento <k.denjiry@gmail.com>, 2018
15-
# tomo,2018
15+
# tomo,2019
1616
#
1717
#,fuzzy
1818
msgid ""
@@ -21,7 +21,7 @@ msgstr ""
2121
"Report-Msgid-Bugs-To:\n"
2222
"POT-Creation-Date:2019-07-09 11:52+0900\n"
2323
"PO-Revision-Date:2017-02-16 23:40+0000\n"
24-
"Last-Translator:tomo,2018\n"
24+
"Last-Translator:tomo,2019\n"
2525
"Language-Team:Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n"
2626
"MIME-Version:1.0\n"
2727
"Content-Type:text/plain; charset=UTF-8\n"
@@ -296,6 +296,10 @@ msgid ""
296296
"for variables of enclosing functions, named in a :keyword:`nonlocal` "
297297
"statement), although they may be referenced."
298298
msgstr""
299+
"関数を *実行 (execution)* するとき、関数のローカル変数のために使われる新たなシンボルテーブル (symbol table) が用意されます。\n"
300+
"もっと正確にいうと、関数内で変数への代入を行うと、その値はすべてこのローカルなシンボルテーブルに記憶されます。\n"
301+
"一方、変数の参照を行うと、まずローカルなシンボルテーブルが検索され、次にさらに外側の関数のローカルなシンボルテーブルを検索し、その後グローバルなシンボルテーブルを調べ、最後に組み込みの名前テーブルを調べます。\n"
302+
"従って、関数の中では (グローバル変数が :keyword:`global` 文で指定されていたり、外側の関数の変数が :keyword:`nonlocal` 文で指定されていない限り) グローバル変数や外側の関数の変数に直接値を代入できませんが、参照することはできます。"
299303

300304
#:../../tutorial/controlflow.rst:288
301305
msgid""
@@ -514,6 +518,10 @@ msgid ""
514518
"positional arguments beyond the formal parameter list. (``*name`` must "
515519
"occur before ``**name``.) For example, if we define a function like this::"
516520
msgstr""
521+
"仮引数の最後に ``**name`` の形式のものがあると、それまでの仮引数に対応したものを除くすべてのキーワード引数が入った辞書 (:ref:`typesmapping` を参照) を受け取ります。\n"
522+
"``**name`` は ``*name`` の形式をとる、仮引数のリストを超えた位置引数の入った :ref:`タプル <tut-tuples>` を受け取る引数 (次の小節で述べます) と組み合わせられます。\n"
523+
"(``*name`` は ``**name`` より前になければなりません)。\n"
524+
"例えば、ある関数の定義を以下のようにすると::"
517525

518526
#:../../tutorial/controlflow.rst:500
519527
msgid"It could be called like this::"
@@ -567,12 +575,15 @@ msgid ""
567575
"separately, write the function call with the ``*`` operator to unpack the "
568576
"arguments out of a list or tuple::"
569577
msgstr""
578+
"引数がすでにリストやタプルになっていて、個別な位置引数を要求する関数呼び出しに渡すためにアンパックする必要がある場合には、逆の状況が起こります。\n"
579+
"例えば、組み込み関数 :func:`range` は引数 *start* と *stop* を別に与える必要があります。\n"
580+
"個別に引数を与えることができない場合、関数呼び出しを ``*`` 演算子を使って書き、リストやタプルから引数をアンパックします::"
570581

571582
#:../../tutorial/controlflow.rst:577
572583
msgid""
573584
"In the same fashion, dictionaries can deliver keyword arguments with the "
574585
"``**`` operator::"
575-
msgstr""
586+
msgstr"同じやりかたで、``**`` オペレータを使って辞書でもキーワード引数を渡せます::"
576587

577588
#:../../tutorial/controlflow.rst:593
578589
msgid"Lambda Expressions"
@@ -760,6 +771,9 @@ msgid ""
760771
"functions and methods. Always use ``self`` as the name for the first method"
761772
" argument (see :ref:`tut-firstclasses` for more on classes and methods)."
762773
msgstr""
774+
"クラスや関数に一貫性のある名前を付けること。慣習では ``UpperCamelCase`` をクラス名に使い、 "
775+
"``lowercase_with_underscores`` を関数名やメソッド名に使います。常に ``self`` をメソッドの第 1 引数の名前 "
776+
"(クラスやメソッドについては :ref:`tut-firstclasses` を見よ) として使うこと。"
763777

764778
#:../../tutorial/controlflow.rst:751
765779
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp