@@ -72,14 +72,13 @@ msgstr ""
72
72
"p``\\ 와 동등합니다."
73
73
74
74
#: ../../c-api/dict.rst:60
75
- #, fuzzy
76
75
msgid ""
77
76
"This is the same as :c:func:`PyDict_Contains`, but *key* is specified as "
78
77
"a :c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
79
78
":c:expr:`PyObject*`."
80
79
msgstr ""
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 인코딩된 바이트 문자열로 지정됩니다."
83
82
84
83
#: ../../c-api/dict.rst:69
85
84
msgid "Return a new dictionary that contains the same key-value pairs as *p*."
@@ -97,36 +96,33 @@ msgstr ""
97
96
"실패하면 ``-1``\\ 을 반환합니다. 이 함수는 *val*\\ 에 대한 참조를 훔치지 *않습니다*."
98
97
99
98
#: ../../c-api/dict.rst:82
100
- #, fuzzy
101
99
msgid ""
102
100
"This is the same as :c:func:`PyDict_SetItem`, but *key* is specified as a"
103
101
" :c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
104
102
":c:expr:`PyObject*`."
105
103
msgstr ""
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 인코딩된 바이트 문자열로 지정됩니다."
108
106
109
107
#: ../../c-api/dict.rst:89
110
- #, fuzzy
111
108
msgid ""
112
109
"Remove the entry in dictionary *p* with key *key*. *key* must be "
113
110
":term:`hashable`; if it isn't, :exc:`TypeError` is raised. If *key* is "
114
111
"not in the dictionary, :exc:`KeyError` is raised. Return ``0`` on success"
115
112
" or ``-1`` on failure."
116
113
msgstr ""
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``\\ 을 반환합니다."
120
117
121
118
#: ../../c-api/dict.rst:97
122
- #, fuzzy
123
119
msgid ""
124
120
"This is the same as :c:func:`PyDict_DelItem`, but *key* is specified as a"
125
121
" :c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
126
122
":c:expr:`PyObject*`."
127
123
msgstr ""
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 인코딩된 바이트 문자열로 지정됩니다."
130
126
131
127
#: ../../c-api/dict.rst:104
132
128
msgid ""
@@ -153,24 +149,22 @@ msgid "See also the :c:func:`PyObject_GetItem` function."
153
149
msgstr ""
154
150
155
151
#: ../../c-api/dict.rst:119
156
- #, fuzzy
157
152
msgid ""
158
153
"Return a :term:`borrowed reference` to the object from dictionary *p* "
159
154
"which has a key *key*. Return ``NULL`` if the key *key* is missing "
160
155
"*without* setting an exception."
161
156
msgstr ""
162
- "딕셔너리 *p*\\ 에서 키가 *key*\\ 인객체를 반환합니다. *key* 키가 없으면 예외를 설정하지 *않고* "
163
- "``NULL``\\ 을 반환합니다."
157
+ "딕셔너리 *p*\\ 에서 키가 *key*\\ 인객체에 대한 :term:`빌린 참조 <borrowed reference>` \\ 를 "
158
+ "반환합니다. *key* 키가 없으면 예외를 설정하지 *않고* ``NULL``\\ 을 반환합니다."
164
159
165
160
#: ../../c-api/dict.rst:125
166
- #, fuzzy
167
161
msgid ""
168
162
"Exceptions that occur while this calls :meth:`~object.__hash__` and "
169
163
":meth:`~object.__eq__` methods are silently ignored. Prefer the "
170
164
":c:func:`PyDict_GetItemWithError` function instead."
171
165
msgstr ""
172
- ":meth:`__hash__`\\ 와 :meth:`__eq__` 메서드를 호출하는 동안 발생하는 예외는 억제됩니다. 에러 보고를 "
173
- "얻으려면 대신 :c:func:`PyDict_GetItemWithError()` \\ 를 사용하십시오."
166
+ ":meth:`~object. __hash__`\\ 와 :meth:`~object. __eq__` 메서드를 호출하는 동안 발생하는 예외는 "
167
+ "조용히 무시됩니다. 대신 :c:func:`PyDict_GetItemWithError` 함수를 사용하십시오."
174
168
175
169
#: ../../c-api/dict.rst:129
176
170
msgid ""
@@ -188,36 +182,35 @@ msgstr ""
188
182
"``NULL``\\ 을 반환합니다. 키가 없으면 예외를 설정하지 **않고** ``NULL``\\ 을 반환합니다."
189
183
190
184
#: ../../c-api/dict.rst:144
191
- #, fuzzy
192
185
msgid ""
193
186
"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a"
194
187
" :c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
195
188
":c:expr:`PyObject*`."
196
189
msgstr ""
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로 인코딩된 바이트 문자열로 지정됩니다."
199
192
200
193
#: ../../c-api/dict.rst:150
201
- #, fuzzy
202
194
msgid ""
203
195
"Exceptions that occur while this calls :meth:`~object.__hash__` and "
204
196
":meth:`~object.__eq__` methods or while creating the temporary "
205
197
":class:`str` object are silently ignored. Prefer using the "
206
198
":c:func:`PyDict_GetItemWithError` function with your own "
207
199
":c:func:`PyUnicode_FromString` *key* instead."
208
200
msgstr ""
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` 함수를 사용하는 것이 좋습니다."
211
205
212
206
#: ../../c-api/dict.rst:159
213
- #, fuzzy
214
207
msgid ""
215
208
"Similar to :c:func:`PyDict_GetItemRef`, but *key* is specified as a "
216
209
":c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
217
210
":c:expr:`PyObject*`."
218
211
msgstr ""
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로 인코딩된 바이트 문자열로 지정됩니다."
221
214
222
215
#: ../../c-api/dict.rst:168
223
216
msgid ""
@@ -278,14 +271,13 @@ msgid ""
278
271
msgstr ""
279
272
280
273
#: ../../c-api/dict.rst:217
281
- #, fuzzy
282
274
msgid ""
283
275
"Similar to :c:func:`PyDict_Pop`, but *key* is specified as a "
284
276
":c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
285
277
":c:expr:`PyObject*`."
286
278
msgstr ""
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로 인코딩된 바이트 문자열로 지정됩니다."
289
281
290
282
#: ../../c-api/dict.rst:226
291
283
msgid ""
@@ -312,7 +304,6 @@ msgid ""
312
304
msgstr "딕셔너리에 있는 항목의 수를 반환합니다. 이는 딕셔너리에 대한 ``len(p)``\\ 와 동등합니다."
313
305
314
306
#: ../../c-api/dict.rst:250
315
- #, fuzzy
316
307
msgid ""
317
308
"Iterate over all key-value pairs in the dictionary *p*. The "
318
309
":c:type:`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` "
@@ -329,7 +320,7 @@ msgstr ""
329
320
"딕셔너리 *p*\\ 의 모든 키-값 쌍을 이터레이트 합니다. *ppos*\\ 에 의해 참조된 "
330
321
":c:type:`Py_ssize_t`\\ 는, 이터레이션을 시작하기 위해 이 함수를 처음 호출하기 전에 ``0``\\ 으로 초기화되어야"
331
322
" 합니다; 이 함수는 딕셔너리의 각 쌍에 대해 참을 반환하고, 모든 쌍이 보고되었으면 거짓을 반환합니다. 매개 변수 "
332
- "*pkey*\\ 와 *pvalue*\\ 는 각각 키와 값으로 채울 :c:type :`PyObject*` 변수를 가리 키거나, "
323
+ "*pkey*\\ 와 *pvalue*\\ 는 각각 키와 값으로 채울 :c:expr :`PyObject*` 변수를 가리 키거나, "
333
324
"``NULL`` 일 수 있습니다. 이들을 통해 반환된 참조는 모두 빌린(borrowed) 것입니다. 이터레이션 중에 "
334
325
"*ppos*\\ 를 변경하면 안 됩니다. 이 값은 내부 딕셔너리 구조 내의 오프셋을 나타내며, 구조가 희박하므로 오프셋이 연속되지 "
335
326
"않습니다."
@@ -349,6 +340,13 @@ msgid ""
349
340
" ...\n"
350
341
"}"
351
342
msgstr ""
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
+ "}"
352
350
353
351
#: ../../c-api/dict.rst:271
354
352
msgid ""
@@ -379,6 +377,23 @@ msgid ""
379
377
" Py_DECREF(o);\n"
380
378
"}"
381
379
msgstr ""
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
+ "}"
382
397
383
398
#: ../../c-api/dict.rst:293
384
399
msgid ""
@@ -397,6 +412,11 @@ msgid ""
397
412
"}\n"
398
413
"Py_END_CRITICAL_SECTION();"
399
414
msgstr ""
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();"
400
420
401
421
#: ../../c-api/dict.rst:307
402
422
msgid ""
@@ -446,6 +466,10 @@ msgid ""
446
466
" if override or key not in a:\n"
447
467
" a[key] = value"
448
468
msgstr ""
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"
449
473
450
474
#: ../../c-api/dict.rst:340
451
475
msgid ""
@@ -548,20 +572,19 @@ msgstr ""
548
572
549
573
#: ../../c-api/dict.rst:8
550
574
msgid "object"
551
- msgstr ""
575
+ msgstr "객체 "
552
576
553
577
#: ../../c-api/dict.rst:8
554
- #, fuzzy
555
578
msgid "dictionary"
556
- msgstr "딕셔너리 객체 "
579
+ msgstr "딕셔너리"
557
580
558
581
#: ../../c-api/dict.rst:242
559
582
msgid "built-in function"
560
- msgstr ""
583
+ msgstr "내장 함수 "
561
584
562
585
#: ../../c-api/dict.rst:242
563
586
msgid "len"
564
- msgstr ""
587
+ msgstr "len "
565
588
566
589
#~ msgid ""
567
590
#~ "Insert *val* into the dictionary *p* "