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

Commit0ebccee

Browse files
author
github-actions
committed
Merge 3.11 into 3.8
1 parent09a6b3c commit0ebccee

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
@@ -698,6 +698,13 @@ msgid ""
698698
"exc:`AttributeError` or :exc:`TypeError`, while :meth:`~generator.throw` "
699699
"will just raise the passed in exception immediately."
700700
msgstr""
701+
"``yield from <expr>`` を使用した場合、与えられた式はイテラブルでなければなり"
702+
"ません。そのイテラブルをイテレートすることで生成された値は現在のジェネレータ"
703+
"のメソッドの呼び出し元へ直接渡されます。:meth:`~generator.send` で渡されたあ"
704+
"らゆる値と :meth:`~generator.throw` で渡されたあらゆる例外は根底のイテレータ"
705+
"に適切なメソッドがあれば渡されます。適切なメソッドがない場合、:meth:"
706+
"`~generator.send` は :exc:`AttributeError` か :exc:`TypeError` を、:meth:"
707+
"`~generator.throw` は渡された例外を即座に送出します。"
701708

702709
#:../../reference/expressions.rst:488
703710
msgid""

‎reference/import.po

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

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

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

17171731
#:../../reference/import.rst:916
17181732
msgid"Package Relative Imports"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp