@@ -1489,6 +1489,8 @@ msgid ""
14891489"object is implicitly created when an exception occurs, and may also be "
14901490"explicitly created by calling :class:`types.TracebackType`."
14911491msgstr ""
1492+ "トレースバックオブジェクトは例外のスタックトレースを表現します。\n"
1493+ "トレースバックオブジェクトは例外が起きたときに暗黙的に作成されたり、 :class:`types.TracebackType` を呼び出して明示的にも作成されたりします。"
14921494
14931495#: ../../reference/datamodel.rst:1025
14941496msgid ""
@@ -1525,6 +1527,10 @@ msgid ""
15251527"number of its frame object if the exception occurred in a :keyword:`try` "
15261528"statement with no matching except clause or with a finally clause."
15271529msgstr ""
1530+ "読み出し専用の特殊属性: :attr:`tb_frame` は現在のレベルにおける実行フレームを指します; :attr:`tb_lineno` "
1531+ "は例外の発生した行番号です; :attr:`tb_lasti` は厳密な命令コードです。トレースバック内の行番号や最後に実行された命令は、 "
1532+ ":keyword:`try` 文内で例外が発生し、かつ対応する :keyword:`except` 節や :keyword:`finally` "
1533+ "節がない場合には、フレームオブジェクト内の行番号とは異なるかもしれません。"
15281534
15291535#: ../../reference/datamodel.rst:1060
15301536msgid ""
@@ -2050,6 +2056,8 @@ msgid ""
20502056"their hash value, and will also be correctly identified as unhashable when "
20512057"checking ``isinstance(obj, collections.abc.Hashable)``."
20522058msgstr ""
2059+ ":meth:`__eq__` をオーバーライドしていて :meth:`__hash__` を定義していないクラスでは、 :meth:`__hash__` は暗黙的に ``None`` に設定されます。\n"
2060+ "クラスの :meth:`__hash__` メソッドが ``None`` の場合、そのクラスのインスタンスのハッシュ値を取得しようとすると適切な :exc:`TypeError` が送出され、 ``isinstance(obj, collections.abc.Hashable)`` でチェックするとハッシュ不能なものとして正しく認識されます。"
20532061
20542062#: ../../reference/datamodel.rst:1432
20552063msgid ""
@@ -2068,6 +2076,9 @@ msgid ""
20682076":exc:`TypeError` would be incorrectly identified as hashable by an "
20692077"``isinstance(obj, collections.abc.Hashable)`` call."
20702078msgstr ""
2079+ ":meth:`__eq__` をオーバーライドしていないクラスがハッシュサポートを抑制したい場合、クラス定義に ``__hash__ = None`` "
2080+ "を含めてください。クラス自身で明示的に :exc:`TypeError` を送出する :meth:`__hash__` を定義すると、 "
2081+ "``isinstance(obj, collections.abc.Hashable)`` 呼び出しで誤ってハッシュ可能と識別されるでしょう。"
20712082
20722083#: ../../reference/datamodel.rst:1445
20732084msgid ""
@@ -2095,6 +2106,8 @@ msgid ""
20952106"made guarantees about this ordering (and it typically varies between 32-bit "
20962107"and 64-bit builds)."
20972108msgstr ""
2109+ "ハッシュ値の変更は、集合のイテレーション順序に影響します。Python はこの順序付けを保証していません (そして通常 32-bit と 64-bit "
2110+ "の間でも異なります)。"
20982111
20992112#: ../../reference/datamodel.rst:1459
21002113msgid "See also :envvar:`PYTHONHASHSEED`."
@@ -2262,22 +2275,25 @@ msgid ""
22622275"module globals (whether by code within the module, or via a reference to the"
22632276" module's globals dictionary) is unaffected."
22642277msgstr ""
2278+ "モジュールの ``__getattr__`` を定義したり ``__class__`` "
2279+ "を設定したりしても、影響があるのは属性アクセスの構文が使われる検索だけです -- モジュールの globals への直接アクセスは "
2280+ "(モジュール内のコードからとモジュールの globals のどちらでも) 影響を受けません。"
22652281
22662282#: ../../reference/datamodel.rst:1593
22672283msgid "``__class__`` module attribute is now writable."
22682284msgstr "モジュールの属性 ``__class__`` が書き込み可能になりました。"
22692285
22702286#: ../../reference/datamodel.rst:1596
22712287msgid "``__getattr__`` and ``__dir__`` module attributes."
2272- msgstr ""
2288+ msgstr "``__getattr__`` モジュール属性と ``__dir__`` モジュール属性。 "
22732289
22742290#: ../../reference/datamodel.rst:1601
22752291msgid ":pep:`562` - Module __getattr__ and __dir__"
2276- msgstr ""
2292+ msgstr ":pep:`562` - モジュールの __getattr__ と __dir__ "
22772293
22782294#: ../../reference/datamodel.rst:1602
22792295msgid "Describes the ``__getattr__`` and ``__dir__`` functions on modules."
2280- msgstr ""
2296+ msgstr "モジュールの ``__getattr__`` 関数および ``__dir__`` 関数の説明。 "
22812297
22822298#: ../../reference/datamodel.rst:1608
22832299msgid "Implementing Descriptors"
0 commit comments