@@ -17,9 +17,8 @@ msgstr ""
17
17
"Generated-By : Babel 2.17.0\n "
18
18
19
19
#: ../../library/shelve.rst:2
20
- #, fuzzy
21
20
msgid ":mod:`!shelve` --- Python object persistence"
22
- msgstr ":mod:`shelve` --- 파이썬 객체 지속성"
21
+ msgstr ":mod:`! shelve` --- 파이썬 객체 지속성"
23
22
24
23
#: ../../library/shelve.rst:7
25
24
msgid "**Source code:** :source:`Lib/shelve.py`"
@@ -53,14 +52,13 @@ msgstr ""
53
52
"*flag* 매개 변수는 :func:`dbm.open`\\ 의 *flag* 매개 변수와 같게 해석됩니다."
54
53
55
54
#: ../../library/shelve.rst:28
56
- #, fuzzy
57
55
msgid ""
58
56
"By default, pickles created with :const:`pickle.DEFAULT_PROTOCOL` are "
59
57
"used to serialize values. The version of the pickle protocol can be "
60
58
"specified with the *protocol* parameter."
61
59
msgstr ""
62
- "기본적으로, 값을 직렬화하는 데 버전 3 피클이 사용됩니다. 피클 프로토콜의 버전은 *protocol* 매개 변수로 지정할 수 "
63
- "있습니다."
60
+ "기본적으로, 값을 직렬화하는 데 :const:`pickle.DEFAULT_PROTOCOL` \\ 로 생성된 피클이 사용됩니다. 피클 "
61
+ "프로토콜의 버전은 *protocol* 매개 변수로 지정할 수 있습니다."
64
62
65
63
#: ../../library/shelve.rst:32
66
64
msgid ""
@@ -108,6 +106,8 @@ msgid ""
108
106
"with shelve.open('spam') as db:\n"
109
107
" db['eggs'] = 'eggs'"
110
108
msgstr ""
109
+ "with shelve.open('spam') as db:\n"
110
+ " db['eggs'] = 'eggs'"
111
111
112
112
#: ../../library/shelve.rst:64
113
113
msgid ""
@@ -119,15 +119,14 @@ msgstr ""
119
119
"안전하지 않습니다. 피클과 마찬가지로, 쉘프를 로드하면 임의의 코드를 실행할 수 있습니다."
120
120
121
121
#: ../../library/shelve.rst:68
122
- #, fuzzy
123
122
msgid ""
124
123
"Shelf objects support most of methods and operations supported by "
125
124
"dictionaries (except copying, constructors and operators ``|`` and "
126
125
"``|=``). This eases the transition from dictionary based scripts to "
127
126
"those requiring persistent storage."
128
127
msgstr ""
129
- "쉘프 객체는 딕셔너리에서 지원하는 모든 메서드를 지원합니다. 이것은 딕셔너리 기반 스크립트에서 영속적인 저장소를 요구하는 것으로의 "
130
- "전환을 쉽게 만듭니다."
128
+ "쉘프 객체는 딕셔너리에서 지원하는 대부분의 메서드와 연산을 지원합니다 (복사, 생성자 및 연산자 ``|`` \\ 와 ``|=`` \\ 는 "
129
+ "제외합니다). 이것은 딕셔너리 기반 스크립트에서 영속적인 저장소를 요구하는 것으로의 전환을 쉽게 만듭니다."
131
130
132
131
#: ../../library/shelve.rst:72
133
132
msgid "Two additional methods are supported:"
@@ -151,15 +150,15 @@ msgid ""
151
150
msgstr "영구 *딕셔너리* 객체를 동기화하고 닫습니다. 닫힌 쉘프에 대한 연산은 :exc:`ValueError`\\ 로 실패합니다."
152
151
153
152
#: ../../library/shelve.rst:89
154
- #, fuzzy
155
153
msgid ""
156
154
"`Persistent dictionary recipe "
157
155
"<https://code.activestate.com/recipes/576642-persistent-dict-with-"
158
156
"multiple-standard-file-format/>`_ with widely supported storage formats "
159
157
"and having the speed of native dictionaries."
160
158
msgstr ""
161
159
"널리 지원되는 저장 형식과 기본 딕셔너리의 속도를 갖춘 `Persistent dictionary recipe "
162
- "<https://code.activestate.com/recipes/576642/>`_"
160
+ "<https://code.activestate.com/recipes/576642-persistent-dict-with-"
161
+ "multiple-standard-file-format/>`_"
163
162
164
163
#: ../../library/shelve.rst:95
165
164
msgid "Restrictions"
@@ -210,15 +209,15 @@ msgid ""
210
209
msgstr "*dict* 객체에 피클 된 값을 저장하는 :class:`collections.abc.MutableMapping`\\ 의 서브 클래스."
211
210
212
211
#: ../../library/shelve.rst:125
213
- #, fuzzy
214
212
msgid ""
215
213
"By default, pickles created with :const:`pickle.DEFAULT_PROTOCOL` are "
216
214
"used to serialize values. The version of the pickle protocol can be "
217
215
"specified with the *protocol* parameter. See the :mod:`pickle` "
218
216
"documentation for a discussion of the pickle protocols."
219
217
msgstr ""
220
- "기본적으로, 값을 직렬화하는 데 버전 3 피클이 사용됩니다. 피클 프로토콜의 버전은 *protocol* 매개 변수로 지정할 수 "
221
- "있습니다. 피클 프로토콜에 대한 설명은 :mod:`pickle` 설명서를 참조하십시오."
218
+ "기본적으로, 값을 직렬화하는 데 :const:`pickle.DEFAULT_PROTOCOL`\\ 로 생성된 피클이 사용됩니다. 피클 "
219
+ "프로토콜의 버전은 *protocol* 매개 변수로 지정할 수 있습니다. 피클 프로토콜에 대한 설명은 :mod:`pickle` "
220
+ "설명서를 참조하십시오."
222
221
223
222
#: ../../library/shelve.rst:130
224
223
msgid ""
@@ -256,7 +255,6 @@ msgid "Added context manager support."
256
255
msgstr "컨텍스트 관리자 지원 추가."
257
256
258
257
#: ../../library/shelve.rst:155
259
- #, fuzzy
260
258
msgid ""
261
259
"A subclass of :class:`Shelf` which exposes :meth:`!first`, :meth:`!next`,"
262
260
" :meth:`!previous`, :meth:`!last` and :meth:`!set_location` methods. "
@@ -268,12 +266,12 @@ msgid ""
268
266
" The optional *protocol*, *writeback*, and *keyencoding* parameters have"
269
267
" the same interpretation as for the :class:`Shelf` class."
270
268
msgstr ""
271
- "`pybsddb <https://www.jcea.es/programacion/pybsddb.htm>`_ \\ 의 제삼자 "
272
- ":mod:`bsddb` 모듈에서는 사용할 수 있지만 다른 데이터베이스 모듈에서는 사용할 수 없는 :meth:`first`, "
273
- ":meth:`!next`, :meth:`previous`, :meth:`last` 및 :meth:`set_location` \\ 을 "
274
- "노출하는 :class:`Shelf` \\ 의 서브 클래스 . 생성자에 전달된 *dict* 객체는 이러한 메서드를 지원해야 합니다. 이것은 "
275
- " 일반적으로 :func:`bsddb.hashopen`, :func:`bsddb.btopen` 또는 "
276
- ":func:`bsddb.rnopen` 중 하나를 호출하여 수행됩니다. 선택적 *protocol*, *writeback* 및 "
269
+ ":meth:`!first`, :meth:`!next`, :meth:`!previous`, :meth:`!last` 및 "
270
+ ":meth:`!set_location` 메서드를 노출하는 :class:`Shelf` \\ 의 서브 클래스. `pybsddb "
271
+ "<https://www.jcea.es/programacion/pybsddb.htm>`_ \\ 의 제삼자 :mod:`!bsddb` "
272
+ "모듈에서는 사용할 수 있지만 다른 데이터베이스 모듈에서는 사용할 수 없습니다 . 생성자에 전달된 *dict* 객체는 이러한 메서드를 "
273
+ "지원해야 합니다. 이것은 일반적으로 :func:`! bsddb.hashopen`, :func:`! bsddb.btopen` 또는 "
274
+ ":func:`! bsddb.rnopen` 중 하나를 호출하여 수행됩니다. 선택적 *protocol*, *writeback* 및 "
277
275
"*keyencoding* 매개 변수는 :class:`Shelf` 클래스와 같게 해석됩니다."
278
276
279
277
#: ../../library/shelve.rst:169
@@ -336,6 +334,36 @@ msgid ""
336
334
"\n"
337
335
"d.close() # close it"
338
336
msgstr ""
337
+ "import shelve\n"
338
+ "\n"
339
+ "d = shelve.open(filename) # 열기 -- 파일은 저수준 라이브러리에 의해 추가된 접미사를 얻을\n"
340
+ " # 수 있습니다\n"
341
+ "\n"
342
+ "d[key] = data # 키에 데이터를 저장합니다 (기존 키를 사용하면 예전 데이터를\n"
343
+ " # 덮어씁니다)\n"
344
+ "data = d[key] # 키에서 데이터의 사본을 꺼냅니다 (그런 키가 없으면 KeyError를\n"
345
+ " # 발생시킵니다)\n"
346
+ "del d[key] # 키에 저장된 데이터를 삭제합니다 (그런 키가 없으면 KeyError를\n"
347
+ " # 발생시킵니다)\n"
348
+ "\n"
349
+ "flag = key in d # 키가 존재하면 참입니다\n"
350
+ "klist = list(d.keys()) # 존재하는 모든 키의 리스트 (느립니다!)\n"
351
+ "\n"
352
+ "# d가 writeback=True 없이 열렸으므로, 주의하십시오:\n"
353
+ "d['xx'] = [0, 1, 2] # 이것은 예상대로 작동합니다, 하지만...\n"
354
+ "d['xx'].append(3) # *이것은 그렇지 않습니다!* -- d['xx']는 여전히 [0, 1, "
355
+ "2]입니다!\n"
356
+ "\n"
357
+ "# writeback=True 없이 열린 d에서는, 신중하게 코딩해야 합니다:\n"
358
+ "temp = d['xx'] # 사본을 꺼냅니다\n"
359
+ "temp.append(5) # 사본을 수정합니다\n"
360
+ "d['xx'] = temp # 영속적으로 만들기 위해, 사본을 다시 저장합니다\n"
361
+ "\n"
362
+ "# 또는, d=shelve.open(filename,writeback=True)는 단지 d['xx'].append(5)로\n"
363
+ "# 코딩해도 기대한 대로 동작하게 만들지만, 더 많은 메모리를 소비하고 d.close() 연산을 더\n"
364
+ "# 느리게 만듭니다.\n"
365
+ "\n"
366
+ "d.close() # 닫습니다"
339
367
340
368
#: ../../library/shelve.rst:218
341
369
msgid "Module :mod:`dbm`"
@@ -355,17 +383,17 @@ msgstr ":mod:`shelve`\\에 의해 사용되는 객체 직렬화."
355
383
356
384
#: ../../library/shelve.rst:9 ../../library/shelve.rst:97
357
385
msgid "module"
358
- msgstr ""
386
+ msgstr "모듈 "
359
387
360
388
#: ../../library/shelve.rst:9
361
389
msgid "pickle"
362
- msgstr ""
390
+ msgstr "피클 "
363
391
364
392
#: ../../library/shelve.rst:97
365
393
msgid "dbm.ndbm"
366
- msgstr ""
394
+ msgstr "dbm.ndbm "
367
395
368
396
#: ../../library/shelve.rst:97
369
397
msgid "dbm.gnu"
370
- msgstr ""
398
+ msgstr "dbm.gnu "
371
399
0 commit comments