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

Skip to content

Commit 1e06e39

Browse files
author
github-actions
committed
Merge 3.11 into 3.9
1 parent c68570f commit 1e06e39

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

reference/expressions.po

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,13 @@ msgid ""
706706
"exc:`AttributeError` or :exc:`TypeError`, while :meth:`~generator.throw` "
707707
"will just raise the passed in exception immediately."
708708
msgstr ""
709+
"``yield from <expr>`` を使用した場合、与えられた式はイテラブルでなければなり"
710+
"ません。そのイテラブルをイテレートすることで生成された値は現在のジェネレータ"
711+
"のメソッドの呼び出し元へ直接渡されます。:meth:`~generator.send` で渡されたあ"
712+
"らゆる値と :meth:`~generator.throw` で渡されたあらゆる例外は根底のイテレータ"
713+
"に適切なメソッドがあれば渡されます。適切なメソッドがない場合、:meth:"
714+
"`~generator.send` は :exc:`AttributeError` か :exc:`TypeError` を、:meth:"
715+
"`~generator.throw` は渡された例外を即座に送出します。"
709716

710717
#: ../../reference/expressions.rst:490
711718
msgid ""

reference/import.po

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,13 +1607,21 @@ msgid ""
16071607
"module. ``find_spec()`` returns a fully populated spec for the module. This "
16081608
"spec will always have \"loader\" set (with one exception)."
16091609
msgstr ""
1610+
":meth:`~importlib.abc.PathEntryFinder.find_spec` は 2 つの引数を取ります。イ"
1611+
"ンポートしようとしているモジュールの完全修飾名と、 (オプションの) 対象モ"
1612+
"ジュールです。 `find_spec()` はモジュールに対応する完全に初期化 (populated) "
1613+
"された仕様を返します。この仕様は (1つの例外を除いて) 常に \"loader\" セットを"
1614+
"持っています。"
16101615

16111616
#: ../../reference/import.rst:859
16121617
msgid ""
16131618
"To indicate to the import machinery that the spec represents a namespace :"
16141619
"term:`portion`, the path entry finder sets \"submodule_search_locations\" to "
16151620
"a list containing the portion."
16161621
msgstr ""
1622+
"モジュール仕様が名前空間 :term:`ポーション <portion>` を表していることをイン"
1623+
"ポート機構に示すために、パスエントリ・ファインダーはモジュール仕様の "
1624+
"\"submodule_search_locations\" を名前空間ポーションを含むリストに設定します。"
16171625

16181626
#: ../../reference/import.rst:863
16191627
msgid ""
@@ -1715,6 +1723,12 @@ msgid ""
17151723
"latter indicates that the meta path search should continue, while raising an "
17161724
"exception terminates it immediately."
17171725
msgstr ""
1726+
"(標準のインポートシステム全体を停止するのではなく) すでにメタパスにいるフック"
1727+
"からあるモジュールのインポートを選択的に防ぐためには、 :meth:`~importlib.abc."
1728+
"MetaPathFinder.find_spec` から ``None`` を返す代わりに、直接 :exc:"
1729+
"`ModuleNotFoundError` を送出するだけで十分です。 ``None`` を返すのはメタパス"
1730+
"の走査を続けるべきであることを意味しますが、例外を送出するとすぐに走査を打ち"
1731+
"切ります。"
17181732

17191733
#: ../../reference/import.rst:916
17201734
msgid "Package Relative Imports"

0 commit comments

Comments
 (0)