@@ -72,14 +72,13 @@ msgstr ""
7272"p``\\ 와 동등합니다."
7373
7474#: ../../c-api/dict.rst:60
75- #, fuzzy
7675msgid ""
7776"This is the same as :c:func:`PyDict_Contains`, but *key* is specified as "
7877"a :c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
7978":c:expr:`PyObject*`."
8079msgstr ""
81- "이것은 :c:func:`PyDict_GetItem `\\ 와 같지만, *key*\\ 가 :c:type :`PyObject*`\\ 가 아닌 "
82- ":c:type :`const char*`\\ 로 지정됩니다."
80+ "이것은 :c:func:`PyDict_Contains `\\ 와 같지만, *key*\\ 가 :c:expr :`PyObject*`\\ 가 아닌 "
81+ ":c:expr :`const char*` UTF-8 인코딩된 바이트 문자열로 지정됩니다."
8382
8483#: ../../c-api/dict.rst:69
8584msgid "Return a new dictionary that contains the same key-value pairs as *p*."
@@ -97,36 +96,33 @@ msgstr ""
9796"실패하면 ``-1``\\ 을 반환합니다. 이 함수는 *val*\\ 에 대한 참조를 훔치지 *않습니다*."
9897
9998#: ../../c-api/dict.rst:82
100- #, fuzzy
10199msgid ""
102100"This is the same as :c:func:`PyDict_SetItem`, but *key* is specified as a"
103101" :c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
104102":c:expr:`PyObject*`."
105103msgstr ""
106- "이것은 :c:func:`PyDict_GetItem `\\ 와 같지만, *key*\\ 가 :c:type :`PyObject*`\\ 가 아닌 "
107- ":c:type :`const char*`\\ 로 지정됩니다."
104+ "이것은 :c:func:`PyDict_SetItem `\\ 와 같지만, *key*\\ 가 :c:expr :`PyObject*`\\ 가 아닌 "
105+ ":c:expr :`const char*` UTF-8 인코딩된 바이트 문자열로 지정됩니다."
108106
109107#: ../../c-api/dict.rst:89
110- #, fuzzy
111108msgid ""
112109"Remove the entry in dictionary *p* with key *key*. *key* must be "
113110":term:`hashable`; if it isn't, :exc:`TypeError` is raised. If *key* is "
114111"not in the dictionary, :exc:`KeyError` is raised. Return ``0`` on success"
115112" or ``-1`` on failure."
116113msgstr ""
117- "딕셔너리 *p*\\ 에서 키가 *key*\\ 인 항목을 제거합니다. *key*\\ 는 해시 가능해야 합니다. 그렇지 않으면 "
118- ":exc:`TypeError`\\ 가 발생합니다. *key*\\ 가 딕셔너리에 없으면, :exc:`KeyError` \\ 가 발생합니다. "
119- "성공하면 ``0``\\ 을, 실패하면 ``-1``\\ 을 반환합니다."
114+ "딕셔너리 *p*\\ 에서 키가 *key*\\ 인 항목을 제거합니다. *key*\\ 는 :term:` 해시 가능 <hashable>` \\ 해야 "
115+ " 합니다. 그렇지 않으면 :exc:`TypeError`\\ 가 발생합니다. *key*\\ 가 딕셔너리에 없으면, "
116+ ":exc:`KeyError` \\ 가 발생합니다. 성공하면 ``0``\\ 을, 실패하면 ``-1``\\ 을 반환합니다."
120117
121118#: ../../c-api/dict.rst:97
122- #, fuzzy
123119msgid ""
124120"This is the same as :c:func:`PyDict_DelItem`, but *key* is specified as a"
125121" :c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
126122":c:expr:`PyObject*`."
127123msgstr ""
128- "이것은 :c:func:`PyDict_GetItem `\\ 와 같지만, *key*\\ 가 :c:type :`PyObject*`\\ 가 아닌 "
129- ":c:type :`const char*`\\ 로 지정됩니다."
124+ "이것은 :c:func:`PyDict_DelItem `\\ 와 같지만, *key*\\ 가 :c:expr :`PyObject*`\\ 가 아닌 "
125+ ":c:expr :`const char*` UTF-8 인코딩된 바이트 문자열로 지정됩니다."
130126
131127#: ../../c-api/dict.rst:104
132128msgid ""
@@ -153,24 +149,22 @@ msgid "See also the :c:func:`PyObject_GetItem` function."
153149msgstr ""
154150
155151#: ../../c-api/dict.rst:119
156- #, fuzzy
157152msgid ""
158153"Return a :term:`borrowed reference` to the object from dictionary *p* "
159154"which has a key *key*. Return ``NULL`` if the key *key* is missing "
160155"*without* setting an exception."
161156msgstr ""
162- "딕셔너리 *p*\\ 에서 키가 *key*\\ 인 객체를 반환합니다. *key* 키가 없으면 예외를 설정하지 *않고* "
163- "``NULL``\\ 을 반환합니다."
157+ "딕셔너리 *p*\\ 에서 키가 *key*\\ 인 객체에 대한 :term:`빌린 참조 <borrowed reference>` \\ 를 "
158+ "반환합니다. *key* 키가 없으면 예외를 설정하지 *않고* ``NULL``\\ 을 반환합니다."
164159
165160#: ../../c-api/dict.rst:125
166- #, fuzzy
167161msgid ""
168162"Exceptions that occur while this calls :meth:`~object.__hash__` and "
169163":meth:`~object.__eq__` methods are silently ignored. Prefer the "
170164":c:func:`PyDict_GetItemWithError` function instead."
171165msgstr ""
172- ":meth:`__hash__`\\ 와 :meth:`__eq__` 메서드를 호출하는 동안 발생하는 예외는 억제됩니다. 에러 보고를 "
173- "얻으려면 대신 :c:func:`PyDict_GetItemWithError()` \\ 를 사용하십시오."
166+ ":meth:`~object. __hash__`\\ 와 :meth:`~object. __eq__` 메서드를 호출하는 동안 발생하는 예외는 "
167+ "조용히 무시됩니다. 대신 :c:func:`PyDict_GetItemWithError` 함수를 사용하십시오."
174168
175169#: ../../c-api/dict.rst:129
176170msgid ""
@@ -188,36 +182,35 @@ msgstr ""
188182"``NULL``\\ 을 반환합니다. 키가 없으면 예외를 설정하지 **않고** ``NULL``\\ 을 반환합니다."
189183
190184#: ../../c-api/dict.rst:144
191- #, fuzzy
192185msgid ""
193186"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a"
194187" :c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
195188":c:expr:`PyObject*`."
196189msgstr ""
197- "이것은 :c:func:`PyDict_GetItem`\\ 와 같지만, *key*\\ 가 :c:type :`PyObject*`\\ 가 아닌 "
198- ":c:type :`const char*`\\ 로 지정됩니다."
190+ "이것은 :c:func:`PyDict_GetItem`\\ 와 같지만, *key*\\ 가 :c:expr :`PyObject*`\\ 가 아닌 "
191+ ":c:expr :`const char*` UTF-8로 인코딩된 바이트 문자열로 지정됩니다."
199192
200193#: ../../c-api/dict.rst:150
201- #, fuzzy
202194msgid ""
203195"Exceptions that occur while this calls :meth:`~object.__hash__` and "
204196":meth:`~object.__eq__` methods or while creating the temporary "
205197":class:`str` object are silently ignored. Prefer using the "
206198":c:func:`PyDict_GetItemWithError` function with your own "
207199":c:func:`PyUnicode_FromString` *key* instead."
208200msgstr ""
209- ":meth:`__hash__`\\ 와 :meth:`__eq__` 메서드를 호출하고 임시 문자열 객체를 만드는 동안 발생하는 예외는 "
210- "억제됩니다. 에러 보고를 얻으려면 대신 :c:func:`PyDict_GetItemWithError()`\\ 를 사용하십시오."
201+ ":meth:`~object.__hash__`\\ 와 :meth:`~object.__eq__` 메서드를 호출하는 동안이나 임시 "
202+ ":class:`str` 객체를 만드는 동안 발생하는 예외는 조용히 무시됩니다. 대신 자체 "
203+ ":c:func:`PyUnicode_FromString` *key*\\ 와 함께 "
204+ ":c:func:`PyDict_GetItemWithError` 함수를 사용하는 것이 좋습니다."
211205
212206#: ../../c-api/dict.rst:159
213- #, fuzzy
214207msgid ""
215208"Similar to :c:func:`PyDict_GetItemRef`, but *key* is specified as a "
216209":c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
217210":c:expr:`PyObject*`."
218211msgstr ""
219- "이것은 :c:func:`PyDict_GetItem `\\ 와 같지만 , *key*\\ 가 :c:type :`PyObject*`\\ 가 아닌 "
220- ":c:type :`const char*`\\ 로 지정됩니다."
212+ "이것은 :c:func:`PyDict_GetItemRef `\\ 와 유시하지만 , *key*\\ 가 :c:expr :`PyObject*`\\ 가"
213+ " 아닌 :c:expr :`const char*` UTF-8로 인코딩된 바이트 문자열로 지정됩니다."
221214
222215#: ../../c-api/dict.rst:168
223216msgid ""
@@ -278,14 +271,13 @@ msgid ""
278271msgstr ""
279272
280273#: ../../c-api/dict.rst:217
281- #, fuzzy
282274msgid ""
283275"Similar to :c:func:`PyDict_Pop`, but *key* is specified as a "
284276":c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
285277":c:expr:`PyObject*`."
286278msgstr ""
287- "이것은 :c:func:`PyDict_GetItem `\\ 와 같지만 , *key*\\ 가 :c:type :`PyObject*`\\ 가 아닌 "
288- ":c:type :`const char*`\\ 로 지정됩니다."
279+ "이것은 :c:func:`PyDict_Pop `\\ 와 유사하지만 , *key*\\ 가 :c:expr :`PyObject*`\\ 가 아닌 "
280+ ":c:expr :`const char*` UTF-8로 인코딩된 바이트 문자열로 지정됩니다."
289281
290282#: ../../c-api/dict.rst:226
291283msgid ""
@@ -312,7 +304,6 @@ msgid ""
312304msgstr "딕셔너리에 있는 항목의 수를 반환합니다. 이는 딕셔너리에 대한 ``len(p)``\\ 와 동등합니다."
313305
314306#: ../../c-api/dict.rst:250
315- #, fuzzy
316307msgid ""
317308"Iterate over all key-value pairs in the dictionary *p*. The "
318309":c:type:`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` "
@@ -329,7 +320,7 @@ msgstr ""
329320"딕셔너리 *p*\\ 의 모든 키-값 쌍을 이터레이트 합니다. *ppos*\\ 에 의해 참조된 "
330321":c:type:`Py_ssize_t`\\ 는, 이터레이션을 시작하기 위해 이 함수를 처음 호출하기 전에 ``0``\\ 으로 초기화되어야"
331322" 합니다; 이 함수는 딕셔너리의 각 쌍에 대해 참을 반환하고, 모든 쌍이 보고되었으면 거짓을 반환합니다. 매개 변수 "
332- "*pkey*\\ 와 *pvalue*\\ 는 각각 키와 값으로 채울 :c:type :`PyObject*` 변수를 가리 키거나, "
323+ "*pkey*\\ 와 *pvalue*\\ 는 각각 키와 값으로 채울 :c:expr :`PyObject*` 변수를 가리 키거나, "
333324"``NULL`` 일 수 있습니다. 이들을 통해 반환된 참조는 모두 빌린(borrowed) 것입니다. 이터레이션 중에 "
334325"*ppos*\\ 를 변경하면 안 됩니다. 이 값은 내부 딕셔너리 구조 내의 오프셋을 나타내며, 구조가 희박하므로 오프셋이 연속되지 "
335326"않습니다."
@@ -349,6 +340,13 @@ msgid ""
349340" ...\n"
350341"}"
351342msgstr ""
343+ "PyObject *key, *value;\n"
344+ "Py_ssize_t pos = 0;\n"
345+ "\n"
346+ "while (PyDict_Next(self->dict, &pos, &key, &value)) {\n"
347+ " /* 값으로 흥미로운 작업을 수행합니다... */\n"
348+ " ...\n"
349+ "}"
352350
353351#: ../../c-api/dict.rst:271
354352msgid ""
@@ -379,6 +377,23 @@ msgid ""
379377" Py_DECREF(o);\n"
380378"}"
381379msgstr ""
380+ "PyObject *key, *value;\n"
381+ "Py_ssize_t pos = 0;\n"
382+ "\n"
383+ "while (PyDict_Next(self->dict, &pos, &key, &value)) {\n"
384+ " long i = PyLong_AsLong(value);\n"
385+ " if (i == -1 && PyErr_Occurred()) {\n"
386+ " return -1;\n"
387+ " }\n"
388+ " PyObject *o = PyLong_FromLong(i + 1);\n"
389+ " if (o == NULL)\n"
390+ " return -1;\n"
391+ " if (PyDict_SetItem(self->dict, key, o) < 0) {\n"
392+ " Py_DECREF(o);\n"
393+ " return -1;\n"
394+ " }\n"
395+ " Py_DECREF(o);\n"
396+ "}"
382397
383398#: ../../c-api/dict.rst:293
384399msgid ""
@@ -397,6 +412,11 @@ msgid ""
397412"}\n"
398413"Py_END_CRITICAL_SECTION();"
399414msgstr ""
415+ "Py_BEGIN_CRITICAL_SECTION(self->dict);\n"
416+ "while (PyDict_Next(self->dict, &pos, &key, &value)) {\n"
417+ " ...\n"
418+ "}\n"
419+ "Py_END_CRITICAL_SECTION();"
400420
401421#: ../../c-api/dict.rst:307
402422msgid ""
@@ -446,6 +466,10 @@ msgid ""
446466" if override or key not in a:\n"
447467" a[key] = value"
448468msgstr ""
469+ "def PyDict_MergeFromSeq2(a, seq2, override):\n"
470+ " for key, value in seq2:\n"
471+ " if override or key not in a:\n"
472+ " a[key] = value"
449473
450474#: ../../c-api/dict.rst:340
451475msgid ""
@@ -548,20 +572,19 @@ msgstr ""
548572
549573#: ../../c-api/dict.rst:8
550574msgid "object"
551- msgstr ""
575+ msgstr "객체 "
552576
553577#: ../../c-api/dict.rst:8
554- #, fuzzy
555578msgid "dictionary"
556- msgstr "딕셔너리 객체 "
579+ msgstr "딕셔너리"
557580
558581#: ../../c-api/dict.rst:242
559582msgid "built-in function"
560- msgstr ""
583+ msgstr "내장 함수 "
561584
562585#: ../../c-api/dict.rst:242
563586msgid "len"
564- msgstr ""
587+ msgstr "len "
565588
566589#~ msgid ""
567590#~ "Insert *val* into the dictionary *p* "
0 commit comments