8000 [skip ci] Update .po files · python/python-docs-ja@9ad78a5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9ad78a5

Browse files
author
Autobuild bot on TravisCI
committed
[skip ci] Update .po files
1 parent 02d6a42 commit 9ad78a5

File tree

5 files changed

+3885
-3813
lines changed

5 files changed

+3885
-3813
lines changed

installing/index.po

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgstr ""
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2018-06-30 05:56+0900\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13-
"Last-Translator: Naoki INADA <songofacandy@gmail.com>, 2017\n"
13+
"Last-Translator: takey <taketakeyyy@gmail.com>, 2018\n"
1414
"Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n"
1515
"MIME-Version: 1.0\n"
1616
"Content-Type: text/plain; charset=UTF-8\n"
@@ -88,6 +88,8 @@ msgid ""
8888
"packages to be installed for use by a particular application, rather than "
8989
"being installed system wide."
9090
msgstr ""
91+
"*仮想環境* "
92+
"は、システム全体にインストールするのではなく、特定のアプリケーションで使用するためにパッケージをインストールできるようにする半独立型のPython環境です。"
9193

9294
#: ../../installing/index.rst:40
9395
msgid ""

library/dataclasses.po

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ msgid ""
190190
"``eq`` and ``frozen`` flags in the :func:`dataclass` decorator."
191191
msgstr ""
192192
":meth:`__hash__` は、組み込みの :meth:`hash()` から使われたり、 dict や set のようなハッシュ化されたコレクションにオブジェクトを追加するときに使われます。\n"
193-
":meth:`__hash__` があるということはそのクラスのインスタンスが変更不能であることを意味します。\n"
193+
":meth:`__hash__` があるということはそのクラスのインスタンスが不変 (イミュータブル) であることを意味します。\n"
194194
"可変性というのは複雑な性質で、プログラマの意図、 :meth:`__eq__` が存在しているかどうかとその振る舞い、 :func:`dataclass` デコレータの ``eq`` フラグと ``frozen`` フラグの値に依存します。"
195195

196196
#: ../../library/dataclasses.rst:131
@@ -214,6 +214,10 @@ msgid ""
214214
" your class is logically immutable but can nonetheless be mutated. This is a"
215215
" specialized use case and should be considered carefully."
216216
msgstr ""
217+
":meth:`__hash__` が明示的に定義されていなかったり、 ``None`` に設定されていた場合は、 :func:`dataclass` は暗黙的に :meth:`__hash__` メソッドを追加する *かもしれません* 。\n"
218+
"推奨はできませんが、 ``unsafe_hash=True`` とすることで :func:`dataclass` に :meth:`__hash__` メソッドを作成させられます。\n"
219+
"こうしてしまうと、クラスが論理的には不変だがそれにもかかわらず変更できてしまう場合、問題になり得ます。\n"
220+
"こうするのは特別なユースケースで、慎重に検討するべきです。"
217221

218222
#: ../../library/dataclasses.rst:144
219223
msgid ""
@@ -222,6 +226,8 @@ msgid ""
222226
" dataclass and set ``unsafe_hash=True``; this will result in a "
223227
":exc:`TypeError`."
224228
msgstr ""
229+
":meth:`__hash__` メソッドが暗黙的に作られるかどうかを決定する規則は次の通りです。\n"
230+
"データクラスに明示的な :meth:`__hash__` メソッドを持たせた上で、 ``unsafe_hash=True`` と設定することはできません; こうすると :exc:`TypeError` になります。"
225231

226232
#: ../../library/dataclasses.rst:149
227233
msgid ""
@@ -233,6 +239,9 @@ msgid ""
233239
"of the superclass will be used (if the superclass is :class:`object`, this "
234240
"means it will fall back to id-based hashing)."
235241
msgstr ""
242+
"``eq`` と ``frozen`` が両方とも真だった場合、デフォルトでは :func:`dataclass` は :meth:`__hash__` メソッドを生成します。\n"
243+
"``eq`` が真で ``frozen`` が偽の場合、:meth:`__hash__` は ``None`` に設定され、(可変なので) ハッシュ化不可能とされます。\n"
244+
"``eq`` が偽の場合は、 :meth:`__hash__` は手を付けないまま、つまりスーパークラスの :meth:`__hash__` メソッドが使われることになります (スーパークラスが :class:`object` だった場合は、 id に基づいたハッシュ化にフォールバックするということになります)。"
236245

237246
#: ../../library/dataclasses.rst:157
238247
msgid ""

0 commit comments

Comments
 (0)
0