@@ -12,7 +12,7 @@ msgid ""
12
12
msgstr ""
13
13
"Project-Id-Version : Python 3.10\n "
14
14
"Report-Msgid-Bugs-To : \n "
15
- "POT-Creation-Date : 2021-07-27 13:07 +0000\n "
15
+ "POT-Creation-Date : 2021-08-10 13:16 +0000\n "
16
16
"PO-Revision-Date : 2021-06-28 01:12+0000\n "
17
17
"Last-Translator : Osamu NAKAMURA, 2021\n "
18
18
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -82,7 +82,7 @@ msgstr ""
82
82
"オプションの *writeback* パラメータが ``True`` に設定されている場合は、アクセスされたすべてのエントリはメモリ上にキャッシュされ、 :meth:`~Shelf.sync` および :meth:`~Shelf.close` を呼び出した際に書き戻されます;\n"
83
83
"この機能は永続的な辞書上の可変の要素に対する変更を容易にしますが、多数のエントリがアクセスされた場合、膨大な量のメモリがキャッシュのために消費され、アクセスされた全てのエントリを書き戻す (アクセスされたエントリが可変であるか、あるいは実際に変更されたかを決定する方法は存在しないのです) ために、ファイルを閉じる操作が非常に低速になります。"
84
84
85
- #: ../../library/shelve.rst:44 ../../library/shelve.rst:140
85
+ #: ../../library/shelve.rst:44 ../../library/shelve.rst:142
86
86
msgid ""
87
87
":data:`pickle.DEFAULT_PROTOCOL` is now used as the default pickle protocol."
88
88
msgstr ""
@@ -96,7 +96,7 @@ msgstr ""
96
96
"シェルフが自動的に閉じることに依存しないでください; それがもう必要ない場合は常に :meth:`~Shelf.close` を明示的に呼ぶか、 "
97
97
":func:`shelve.open` をコンテキストマネージャとして使用してください::"
98
98
99
- #: ../../library/shelve.rst:59
99
+ #: ../../library/shelve.rst:61
100
100
msgid ""
101
101
"Because the :mod:`shelve` module is backed by :mod:`pickle`, it is insecure "
102
102
"to load a shelf from an untrusted source. Like with pickle, loading a shelf"
@@ -105,19 +105,19 @@ msgstr ""
105
105
":mod:`shelve` モジュールは裏で :mod:`pickle` を使っているので、信頼できないソースからシェルフを読み込むのは危険です。 "
106
106
"pickle と同じく、 shelf の読み込みでも任意のコードを実行できるからです。"
107
107
108
- #: ../../library/shelve.rst:63
108
+ #: ../../library/shelve.rst:65
109
109
msgid ""
110
110
"Shelf objects support most of methods and operations supported by "
111
111
"dictionaries (except copying, constructors and operators ``|`` and ``|=``)."
112
112
" This eases the transition from dictionary based scripts to those requiring"
113
113
" persistent storage."
114
114
msgstr ""
115
115
116
- #: ../../library/shelve.rst:67
116
+ #: ../../library/shelve.rst:69
117
117
msgid "Two additional methods are supported:"
118
118
msgstr "追加でサポートされるメソッドが二つあります:"
119
119
120
- #: ../../library/shelve.rst:71
120
+ #: ../../library/shelve.rst:73
121
121
msgid ""
122
122
"Write back all entries in the cache if the shelf was opened with *writeback*"
123
123
" set to :const:`True`. Also empty the cache and synchronize the persistent "
@@ -128,14 +128,14 @@ msgstr ""
128
128
"にセットして開かれている場合に、キャッシュ中の全てのエントリを書き戻します。また可能な場合は、キャッシュを空にしてディスク上の永続的な辞書を同期します。このメソッドはシェルフを"
129
129
" :meth:`close` によって閉じるとき自動的に呼び出されます。"
130
130
131
- #: ../../library/shelve.rst:78
131
+ #: ../../library/shelve.rst:80
132
132
msgid ""
133
133
"Synchronize and close the persistent *dict* object. Operations on a closed "
134
134
"shelf will fail with a :exc:`ValueError`."
135
135
msgstr ""
136
136
"永続的な *辞書* オブジェクトを同期して閉じます。既に閉じられているシェルフに対して呼び出すと :exc:`ValueError` を出し失敗します。"
137
137
138
- #: ../../library/shelve.rst:84
138
+ #: ../../library/shelve.rst:86
139
139
msgid ""
140
140
"`Persistent dictionary recipe "
141
141
"<https://code.activestate.com/recipes/576642/>`_ with widely supported "
@@ -144,11 +144,11 @@ msgstr ""
144
144
"通常の辞書に近い速度をもち、いろいろなストレージフォーマットに対応した、 `永続化辞書のレシピ "
145
145
"<https://code.activestate.com/recipes/576642/>`_ 。"
146
146
147
- <
1241
div class="diff-text-inner">#: ../../library/shelve.rst:90
147
+ #: ../../library/shelve.rst:92
148
148
msgid "Restrictions"
149
149
msgstr "制限事項"
150
150
151
- #: ../../library/shelve.rst:96
151
+ #: ../../library/shelve.rst:98
152
152
msgid ""
153
153
"The choice of which database package will be used (such as :mod:`dbm.ndbm` "
154
154
"or :mod:`dbm.gnu`) depends on which interface is available. Therefore it is"
@@ -164,7 +164,7 @@ msgstr ""
164
164
"これはデータベースに記録されたオブジェクト (の pickle 化された表現) "
165
165
"はかなり小さくなければならず、キー衝突が生じた場合に、稀にデータベースを更新することができなくなることを意味します。"
166
166
167
- #: ../../library/shelve.rst:104
167
+ #: ../../library/shelve.rst:106
168
168
msgid ""
169
169
"The :mod:`shelve` module does not support *concurrent* read/write access to "
170
170
"shelved objects. (Multiple simultaneous read accesses are safe.) When a "
@@ -178,23 +178,23 @@ msgstr ""
178
178
" Unix のファイルロック機構を使うことができますが、この機構は Unix "
179
179
"のバージョン間で異なり、使われているデータベースの実装について知識が必要となります。"
180
180
181
- #: ../../library/shelve.rst:114
181
+ #: ../../library/shelve.rst:116
182
182
msgid ""
183
183
"A subclass of :class:`collections.abc.MutableMapping` which stores pickled "
184
184
"values in the *dict* object."
185
185
msgstr ""
186
186
":class:`collections.abc.MutableMapping` のサブクラスで、 *dict* "
187
187
"オブジェクト内にpickle化された値を保持します。"
188
188
189
- #: ../../library/shelve.rst:117
189
+ #: ../../library/shelve.rst:119
190
190
msgid ""
191
191
"By default, pickles created with :data:`pickle.DEFAULT_PROTOCOL` are used to"
192
192
" serialize values. The version of the pickle protocol can be specified with"
193
193
" the *protocol* parameter. See the :mod:`pickle` documentation for a "
194
194
"discussion of the pickle protocols."
195
195
msgstr ""
196
196
197
- #: ../../library/shelve.rst:122
197
+ #: ../../library/shelve.rst:124
198
198
msgid ""
199
199
"If the *writeback* parameter is ``True``, the object will hold a cache of "
200
200
"all entries accessed and write them back to the *dict* at sync and close "
@@ -205,33 +205,33 @@ msgstr ""
205
205
"に設定されていれば、アクセスされたすべてのエントリはメモリ上にキャッシュされ、ファイルを閉じる際に *dict* に書き戻されます; "
206
206
"この機能により、
10000
可変のエントリに対して自然な操作が可能になりますが、さらに多くのメモリを消費し、辞書をファイルと同期して閉じる際に長い時間がかかるようになります。"
207
207
208
- #: ../../library/shelve.rst:127
208
+ #: ../../library/shelve.rst:129
209
209
msgid ""
210
210
"The *keyencoding* parameter is the encoding used to encode keys before they "
211
211
"are used with the underlying dict."
212
212
msgstr ""
213
213
"*keyencoding* パラメータは、shelf の背後にある dict "
214
214
"に対して使われる前にキーをエンコードするのに使用されるエンコーディングです。"
215
215
216
- #: ../../library/shelve.rst:130
216
+ #: ../../library/shelve.rst:132
217
217
msgid ""
218
218
"A :class:`Shelf` object can also be used as a context manager, in which case"
219
219
" it will be automatically closed when the :keyword:`with` block ends."
220
220
msgstr ""
221
221
":class:`Shelf` オブジェクトは、コンテキストマネージャとしても使用できます。この場合、 :keyword:`with` "
222
222
"ブロックが終了する際に、自動的に閉じられます。"
223
223
224
- #: ../../library/shelve.rst:133
224
+ #: ../../library/shelve.rst:135
225
225
msgid ""
226
226
"Added the *keyencoding* parameter; previously, keys were always encoded in "
227
227
"UTF-8."
228
228
msgstr "*keyencoding* パラメータを追加; 以前はキーは常に UTF-8 でエンコードされていました。"
229
229
230
- #: ../../library/shelve.rst:137
230
+ #: ../../library/shelve.rst:139
231
231
msgid "Added context manager support."
232
232
msgstr "コンテキストマネージャーサポートが追加されました。"
233
233
234
- #: ../../library/shelve.rst:147
234
+ #: ../../library/shelve.rst:149
235
235
msgid ""
236
236
"A subclass of :class:`Shelf` which exposes :meth:`first`, :meth:`!next`, "
237
237
":meth:`previous`, :meth:`last` and :meth:`set_location` which are available "
@@ -252,7 +252,7 @@ msgstr ""
252
252
"のいずれかを呼び出して得られるオブジェクトが条件を満たしています。オプションの *protocol*, *writeback* および "
253
253
"*keyencoding* パラメータは :class:`Shelf` クラスにおけるパラメータと同様に解釈されます。"
254
254
255
- #: ../../library/shelve.rst:160
255
+ #: ../../library/shelve.rst:162
256
256
msgid ""
257
257
"A subclass of :class:`Shelf` which accepts a *filename* instead of a dict-"
258
258
"like object. The underlying file will be opened using :func:`dbm.open`. By"
@@ -266,28 +266,28 @@ msgstr ""
266
266
" :func:`.open` 関数におけるパラメータと同様に解釈されます。オプションの *protocol* および *writeback* "
267
267
"パラメータは :class:`Shelf` クラスにおけるパラメータと同様に解釈されます。"
268
268
269
- #: ../../library/shelve.rst:171
269
+ #: ../../library/shelve.rst:173
270
270
msgid "Example"
271
271
msgstr "使用例"
272
272
273
- #: ../../library/shelve.rst:173
273
+ #: ../../library/shelve.rst:175
274
274
msgid ""
275
275
"To summarize the interface (``key`` is a string, ``data`` is an arbitrary "
276
276
"object)::"
277
277
msgstr "インターフェースは以下のコードに集約されています (``key`` は文字列で、``data`` は任意のオブジェクトです)::"
278
278
279
- #: ../../library/shelve.rst:210
279
+ #: ../../library/shelve.rst:212
280
280
msgid "Module :mod:`dbm`"
281
281
msgstr ":mod:`dbm` モジュール"
282
282
283
- #: ../../library/shelve.rst:210
283
+ #: ../../library/shelve.rst:212
284
284
msgid "Generic interface to ``dbm``-style databases."
285
285
msgstr "``dbm`` スタイルのデータベースに対する共通インターフェース。"
286
286
287
- #: ../../library/shelve.rst:212
287
+ #: ../../library/shelve.rst:214
288
288
msgid "Module :mod:`pickle`"
289
289
msgstr ":mod:`pickle` モジュール"
290
290
291
- #: ../../library/shelve.rst:213
291
+ #: ../../library/shelve.rst:215
292
292
msgid "Object serialization used by :mod:`shelve`."
293
293
msgstr ":mod:`shelve` によって使われるオブジェクト整列化機構。"
0 commit comments