@@ -25,32 +25,33 @@ msgid "There are two functions specifically for working with iterators."
2525msgstr "νΉν μ΄ν°λ μ΄ν°λ₯Ό μ¬μ©νκΈ° μν λ ν¨μκ° μμ΅λλ€."
2626
2727#: ../../c-api/iter.rst:12
28- #, fuzzy
2928msgid ""
3029"Return non-zero if the object *o* can be safely passed to "
3130":c:func:`PyIter_Next`, and ``0`` otherwise. This function always "
3231"succeeds."
33- msgstr "κ°μ²΄ *o*\\ κ° μ΄ν°λ μ΄ν° νλ‘ν μ½μ μ§μνλ©΄ μ°Έμ λλ €μ€λλ€. μ΄ ν¨μλ νμ μ±κ³΅ν©λλ€."
32+ msgstr ""
33+ "κ°μ²΄ *o*\\ κ° :c:func:`PyIter_Next`\\ μ μμ νκ² μ λ¬λ μ μμΌλ©΄ ``0``\\ μ΄ μλ κ°μ, κ·Έλ μ§ μμΌλ©΄"
34+ " ``0``\\ μ λλ €μ€λλ€. μ΄ ν¨μλ νμ μ±κ³΅ν©λλ€."
3435
3536#: ../../c-api/iter.rst:17
36- #, fuzzy
3737msgid ""
3838"Return non-zero if the object *o* provides the :class:`AsyncIterator` "
3939"protocol, and ``0`` otherwise. This function always succeeds."
40- msgstr "κ°μ²΄ *o*\\ κ° μ΄ν°λ μ΄ν° νλ‘ν μ½μ μ§μνλ©΄ μ°Έμ λλ €μ€λλ€. μ΄ ν¨μλ νμ μ±κ³΅ν©λλ€."
40+ msgstr ""
41+ "κ°μ²΄ *o*\\ κ° :class:`AsyncIterator` νλ‘ν μ½μ μ§μνλ©΄ ``0``\\ μ΄ μλ κ°μ, κ·Έλ μ§ μμΌλ©΄ "
42+ "``0``\\ μ λλ €μ€λλ€. μ΄ ν¨μλ νμ μ±κ³΅ν©λλ€."
4143
4244#: ../../c-api/iter.rst:24
43- #, fuzzy
4445msgid ""
4546"Return the next value from the iterator *o*. The object must be an "
4647"iterator according to :c:func:`PyIter_Check` (it is up to the caller to "
4748"check this). If there are no remaining values, returns ``NULL`` with no "
4849"exception set. If an error occurs while retrieving the item, returns "
4950"``NULL`` and passes along the exception."
5051msgstr ""
51- "μ΄ν°λ μ΄μ
*o*\\ μμ λ€μ κ°μ λ°νν©λλ€. κ°μ²΄λ μ΄ν°λ μ΄ν° μ¬μΌ ν©λλ€ (μ΄κ²μ νμΈνλ κ²μ νΈμΆμ μ±
μμ
λλ€). λ¨μ "
52- "κ°μ΄ μμΌλ©΄, μμΈκ° μ€μ λμ§ μμ μνλ‘ ``NULL``\\ μ λ°νν©λλ€. νλͺ©μ κΊΌλ΄λ λμ μλ¬κ° λ°μνλ©΄, "
53- "``NULL``\\ μ λ°ννκ³ μμΈλ₯Ό μ λ¬ν©λλ€."
52+ "μ΄ν°λ μ΄ν° *o*\\ μμ λ€μ κ°μ λ°νν©λλ€. κ°μ²΄λ :c:func:`PyIter_Check` \\ μ λ°λ₯΄λ μ΄ν°λ μ΄ν° μ¬μΌ "
53+ "ν©λλ€ (μ΄κ²μ νμΈνλ κ²μ νΈμΆμ μ±
μμ
λλ€). λ¨μ κ°μ΄ μμΌλ©΄, μμΈκ° μ€μ λμ§ μμ μνλ‘ ``NULL``\\ μ "
54+ "λ°νν©λλ€. νλͺ©μ κΊΌλ΄λ λμ μλ¬κ° λ°μνλ©΄, ``NULL``\\ μ λ°ννκ³ μμΈλ₯Ό μ λ¬ν©λλ€."
5455
5556#: ../../c-api/iter.rst:30
5657msgid ""
@@ -84,6 +85,28 @@ msgid ""
8485" /* continue doing useful work */\n"
8586"}"
8687msgstr ""
88+ "PyObject *iterator = PyObject_GetIter(obj);\n"
89+ "PyObject *item;\n"
90+ "\n"
91+ "if (iterator == NULL) {\n"
92+ " /* μλ¬λ₯Ό μ νν©λλ€ */\n"
93+ "}\n"
94+ "\n"
95+ "while ((item = PyIter_Next(iterator))) {\n"
96+ " /* itemμΌλ‘ λκ° ν©λλ€ */\n"
97+ " ...\n"
98+ " /* λλλ©΄ μ°Έμ‘°λ₯Ό λ°νν©λλ€ */\n"
99+ " Py_DECREF(item);\n"
100+ "}\n"
101+ "\n"
102+ "Py_DECREF(iterator);\n"
103+ "\n"
104+ "if (PyErr_Occurred()) {\n"
105+ " /* μλ¬λ₯Ό μ νν©λλ€ */\n"
106+ "}\n"
107+ "else {\n"
108+ " /* μΈλͺ¨μλ μΌμ κ³μν©λλ€ */\n"
109+ "}"
87110
88111#: ../../c-api/iter.rst:59
89112msgid ""
0 commit comments