@@ -17,9 +17,8 @@ msgstr ""
1717"Generated-By : Babel 2.17.0\n "
1818
1919#: ../../library/shelve.rst:2
20- #, fuzzy
2120msgid ":mod:`!shelve` --- Python object persistence"
22- msgstr ":mod:`shelve` --- 파이썬 객체 지속성"
21+ msgstr ":mod:`! shelve` --- 파이썬 객체 지속성"
2322
2423#: ../../library/shelve.rst:7
2524msgid "**Source code:** :source:`Lib/shelve.py`"
@@ -53,14 +52,13 @@ msgstr ""
5352"*flag* 매개 변수는 :func:`dbm.open`\\ 의 *flag* 매개 변수와 같게 해석됩니다."
5453
5554#: ../../library/shelve.rst:28
56- #, fuzzy
5755msgid ""
5856"By default, pickles created with :const:`pickle.DEFAULT_PROTOCOL` are "
5957"used to serialize values. The version of the pickle protocol can be "
6058"specified with the *protocol* parameter."
6159msgstr ""
62- "기본적으로, 값을 직렬화하는 데 버전 3 피클이 사용됩니다. 피클 프로토콜의 버전은 *protocol* 매개 변수로 지정할 수 "
63- "있습니다."
60+ "기본적으로, 값을 직렬화하는 데 :const:`pickle.DEFAULT_PROTOCOL` \\ 로 생성된 피클이 사용됩니다. 피클 "
61+ "프로토콜의 버전은 *protocol* 매개 변수로 지정할 수 있습니다."
6462
6563#: ../../library/shelve.rst:32
6664msgid ""
@@ -108,6 +106,8 @@ msgid ""
108106"with shelve.open('spam') as db:\n"
109107" db['eggs'] = 'eggs'"
110108msgstr ""
109+ "with shelve.open('spam') as db:\n"
110+ " db['eggs'] = 'eggs'"
111111
112112#: ../../library/shelve.rst:64
113113msgid ""
@@ -119,15 +119,14 @@ msgstr ""
119119"안전하지 않습니다. 피클과 마찬가지로, 쉘프를 로드하면 임의의 코드를 실행할 수 있습니다."
120120
121121#: ../../library/shelve.rst:68
122- #, fuzzy
123122msgid ""
124123"Shelf objects support most of methods and operations supported by "
125124"dictionaries (except copying, constructors and operators ``|`` and "
126125"``|=``). This eases the transition from dictionary based scripts to "
127126"those requiring persistent storage."
128127msgstr ""
129- "쉘프 객체는 딕셔너리에서 지원하는 모든 메서드를 지원합니다. 이것은 딕셔너리 기반 스크립트에서 영속적인 저장소를 요구하는 것으로의 "
130- "전환을 쉽게 만듭니다."
128+ "쉘프 객체는 딕셔너리에서 지원하는 대부분의 메서드와 연산을 지원합니다 (복사, 생성자 및 연산자 ``|`` \\ 와 ``|=`` \\ 는 "
129+ "제외합니다). 이것은 딕셔너리 기반 스크립트에서 영속적인 저장소를 요구하는 것으로의 전환을 쉽게 만듭니다."
131130
132131#: ../../library/shelve.rst:72
133132msgid "Two additional methods are supported:"
@@ -151,15 +150,15 @@ msgid ""
151150msgstr "영구 *딕셔너리* 객체를 동기화하고 닫습니다. 닫힌 쉘프에 대한 연산은 :exc:`ValueError`\\ 로 실패합니다."
152151
153152#: ../../library/shelve.rst:89
154- #, fuzzy
155153msgid ""
156154"`Persistent dictionary recipe "
157155"<https://code.activestate.com/recipes/576642-persistent-dict-with-"
158156"multiple-standard-file-format/>`_ with widely supported storage formats "
159157"and having the speed of native dictionaries."
160158msgstr ""
161159"널리 지원되는 저장 형식과 기본 딕셔너리의 속도를 갖춘 `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/>`_"
163162
164163#: ../../library/shelve.rst:95
165164msgid "Restrictions"
@@ -210,15 +209,15 @@ msgid ""
210209msgstr "*dict* 객체에 피클 된 값을 저장하는 :class:`collections.abc.MutableMapping`\\ 의 서브 클래스."
211210
212211#: ../../library/shelve.rst:125
213- #, fuzzy
214212msgid ""
215213"By default, pickles created with :const:`pickle.DEFAULT_PROTOCOL` are "
216214"used to serialize values. The version of the pickle protocol can be "
217215"specified with the *protocol* parameter. See the :mod:`pickle` "
218216"documentation for a discussion of the pickle protocols."
219217msgstr ""
220- "기본적으로, 값을 직렬화하는 데 버전 3 피클이 사용됩니다. 피클 프로토콜의 버전은 *protocol* 매개 변수로 지정할 수 "
221- "있습니다. 피클 프로토콜에 대한 설명은 :mod:`pickle` 설명서를 참조하십시오."
218+ "기본적으로, 값을 직렬화하는 데 :const:`pickle.DEFAULT_PROTOCOL`\\ 로 생성된 피클이 사용됩니다. 피클 "
219+ "프로토콜의 버전은 *protocol* 매개 변수로 지정할 수 있습니다. 피클 프로토콜에 대한 설명은 :mod:`pickle` "
220+ "설명서를 참조하십시오."
222221
223222#: ../../library/shelve.rst:130
224223msgid ""
@@ -256,7 +255,6 @@ msgid "Added context manager support."
256255msgstr "컨텍스트 관리자 지원 추가."
257256
258257#: ../../library/shelve.rst:155
259- #, fuzzy
260258msgid ""
261259"A subclass of :class:`Shelf` which exposes :meth:`!first`, :meth:`!next`,"
262260" :meth:`!previous`, :meth:`!last` and :meth:`!set_location` methods. "
@@ -268,12 +266,12 @@ msgid ""
268266" The optional *protocol*, *writeback*, and *keyencoding* parameters have"
269267" the same interpretation as for the :class:`Shelf` class."
270268msgstr ""
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* 및 "
277275"*keyencoding* 매개 변수는 :class:`Shelf` 클래스와 같게 해석됩니다."
278276
279277#: ../../library/shelve.rst:169
@@ -336,6 +334,36 @@ msgid ""
336334"\n"
337335"d.close() # close it"
338336msgstr ""
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() # 닫습니다"
339367
340368#: ../../library/shelve.rst:218
341369msgid "Module :mod:`dbm`"
@@ -355,17 +383,17 @@ msgstr ":mod:`shelve`\\에 의해 사용되는 객체 직렬화."
355383
356384#: ../../library/shelve.rst:9 ../../library/shelve.rst:97
357385msgid "module"
358- msgstr ""
386+ msgstr "모듈 "
359387
360388#: ../../library/shelve.rst:9
361389msgid "pickle"
362- msgstr ""
390+ msgstr "피클 "
363391
364392#: ../../library/shelve.rst:97
365393msgid "dbm.ndbm"
366- msgstr ""
394+ msgstr "dbm.ndbm "
367395
368396#: ../../library/shelve.rst:97
369397msgid "dbm.gnu"
370- msgstr ""
398+ msgstr "dbm.gnu "
371399
0 commit comments