@@ -1067,6 +1067,12 @@ msgid ""
10671067"feature was first added to the language and when it will (or did) become the "
10681068"default::"
10691069msgstr ""
1070+ "``from __future__ import <feature>`` という :ref:`future 文 <future>` は、コ"
1071+ "ンパイラーに将来の Python リリースで標準となる構文や意味を使用して現在のモ"
1072+ "ジュールをコンパイルするよう指示します。 :mod:`__future__` モジュールでは、 "
1073+ "*feature* のとりうる値をドキュメント化しています。このモジュールをインポート"
1074+ "し、その変数を評価することで、新機能が最初に言語に追加されたのはいつかや、い"
1075+ "つデフォルトになるか (またはなったか) を見ることができます::"
10701076
10711077#: ../../glossary.rst:483
10721078msgid "garbage collection"
@@ -1302,25 +1308,31 @@ msgstr ""
13021308
13031309#: ../../glossary.rst:591
13041310msgid "immortal"
1305- msgstr ""
1311+ msgstr "永続オブジェクト (immortal) "
13061312
13071313#: ../../glossary.rst:593
13081314msgid ""
13091315"If an object is immortal, its reference count is never modified, and "
13101316"therefore it is never deallocated."
13111317msgstr ""
1318+ "永続オブジェクトの場合、参照カウントが変更されることはなく、そのため割り当て"
1319+ "が解除されることもありません。"
13121320
13131321#: ../../glossary.rst:596
13141322msgid ""
13151323"Built-in strings and singletons are immortal objects. For example, :const:"
13161324"`True` and :const:`None` singletons are immmortal."
13171325msgstr ""
1326+ "組み込みの文字列とシングルトンは、永続オブジェクトです。例えば、 :const:"
1327+ "`True` や :const:`None` シングルトンは永続です。"
13181328
13191329#: ../../glossary.rst:599
13201330msgid ""
13211331"See `PEP 683 – Immortal Objects, Using a Fixed Refcount <https://peps.python."
13221332"org/pep-0683/>`_ for more information."
13231333msgstr ""
1334+ "詳細は `PEP 683 – Immortal Objects, Using a Fixed Refcount <https://peps."
1335+ "python.org/pep-0683/>`_ を参照してください。"
13241336
13251337#: ../../glossary.rst:601
13261338msgid "immutable"
@@ -1496,6 +1508,19 @@ msgid ""
14961508"with an iterator will just return the same exhausted iterator object used in "
14971509"the previous iteration pass, making it appear like an empty container."
14981510msgstr ""
1511+ "データの流れを表現するオブジェクトです。イテレータの :meth:`~iterator."
1512+ "__next__` メソッドを繰り返し呼び出す (または組み込み関数 :func:`next` に渡"
1513+ "す) と、流れの中の要素を一つずつ返します。データがなくなると、代わりに :exc:"
1514+ "`StopIteration` 例外を送出します。その時点で、イテレータオブジェクトは尽きて"
1515+ "おり、それ以降は :meth:`!__next__` を何度呼んでも :exc:`StopIteration` を送出"
1516+ "します。イテレータは、そのイテレータオブジェクト自体を返す :meth:`~iterator."
1517+ "__iter__` メソッドを実装しなければならないので、イテレータは他の iterable を"
1518+ "受理するほとんどの場所で利用できます。はっきりとした例外は複数の反復を行うよ"
1519+ "うなコードです。 (:class:`list` のような) コンテナオブジェクトは、自身を :"
1520+ "func:`iter` 関数にオブジェクトに渡したり :keyword:`for` ループ内で使うたび"
1521+ "に、新たな未使用のイテレータを生成します。これをイテレータで行おうとすると、"
1522+ "前回のイテレーションで使用済みの同じイテレータオブジェクトを単純に返すため、"
1523+ "空のコンテナのようになってしまします。"
14991524
15001525#: ../../glossary.rst:691
15011526msgid "More information can be found in :ref:`typeiter`."
0 commit comments