@@ -303,6 +303,8 @@ msgid ""
303303"a bytes object. The C variable may also be declared as "
304304":c:type:`PyObject*`."
305305msgstr ""
306+ "변환을 시도하지 않고, 파이썬 객체가 :class:`bytes` 객체일 것을 요구합니다. 객체가 바이트열 객체가 아니면 "
307+ ":exc:`TypeError`\\ 를 발생시킵니다. C 변수는 :c:type:`PyObject*`\\ 로 선언될 수도 있습니다."
306308
307309#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/arg.rst:139
308310msgid "``Y`` (:class:`bytearray`) [PyByteArrayObject \\ *]"
@@ -315,6 +317,9 @@ msgid ""
315317"a :class:`bytearray` object. The C variable may also be declared as "
316318":c:type:`PyObject*`."
317319msgstr ""
320+ "변환을 시도하지 않고, 파이썬 객체가 :class:`bytearray` 객체일 것을 요구합니다. 객체가 "
321+ ":class:`bytearray` 객체가 아니면 :exc:`TypeError`\\ 를 발생시킵니다. C 변수는 "
322+ ":c:type:`PyObject*`\\ 로 선언될 수도 있습니다."
318323
319324#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/arg.rst:156
320325msgid "``u`` (:class:`str`) [const Py_UNICODE \\ *]"
@@ -397,6 +402,8 @@ msgid ""
397402"any conversion. Raises :exc:`TypeError` if the object is not a Unicode "
398403"object. The C variable may also be declared as :c:type:`PyObject*`."
399404msgstr ""
405+ "변환을 시도하지 않고, 파이썬 객체가 유니코드 객체일 것을 요구합니다. 객체가 유니코드 객체가 아니면 "
406+ ":exc:`TypeError`\\ 를 발생시킵니다. C 변수는 :c:type:`PyObject*`\\ 로 선언될 수도 있습니다."
400407
401408#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/arg.rst:192
402409msgid "``w*`` (read-write :term:`bytes-like object`) [Py_buffer]"
@@ -436,6 +443,10 @@ msgid ""
436443"contents of the argument text. The text will be encoded in the encoding "
437444"specified by the first argument."
438445msgstr ""
446+ "이 포맷에는 두 개의 인자가 필요합니다. 첫 번째는 입력으로만 사용되며, 인코딩 이름을 가리키는 NUL 종료 문자열로 "
447+ ":c:type:`const char*`\\ 이거나, ``'utf-8'`` 인코딩이 사용되도록 하는 ``NULL``\\ 이어야 합니다. "
448+ "명명된 인코딩이 파이썬에 알려지지 않았으면 예외가 발생합니다. 두 번째 인자는 :c:type:`char**`\\ 여야 합니다; "
449+ "참조하는 포인터의 값은 인자 텍스트의 내용이 있는 버퍼로 설정됩니다. 텍스트는 첫 번째 인자에 지정된 인코딩으로 인코딩됩니다."
439450
440451#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/arg.rst:206
441452msgid ""
@@ -495,6 +506,11 @@ msgid ""
495506"referenced integer will be set to the number of bytes in the output "
496507"buffer."
497508msgstr ""
509+ "세 가지 인자가 필요합니다. 첫 번째는 입력으로만 사용되며, 인코딩 이름을 가리키는 NUL 종료 문자열로 :c:type:`const"
510+ " char*`\\ 이거나, ``'utf-8'`` 인코딩이 사용되도록 하는 ``NULL``\\ 이어야 합니다. 명명된 인코딩이 파이썬에 "
511+ "알려지지 않았으면 예외가 발생합니다. 두 번째 인자는 :c:type:`char**`\\ 여야 합니다; 참조하는 포인터의 값은 인자 "
512+ "텍스트의 내용이 있는 버퍼로 설정됩니다. 텍스트는 첫 번째 인자에 지정된 인코딩으로 인코딩됩니다. 세 번째 인자는 정수에 대한 "
513+ "포인터여야 합니다; 참조된 정수는 출력 버퍼의 바이트 수로 설정됩니다."
498514
499515#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/arg.rst:231
500516msgid "There are two modes of operation:"
@@ -749,6 +765,9 @@ msgid ""
749765"Python object does not have the required type, :exc:`TypeError` is "
750766"raised."
751767msgstr ""
768+ "C 객체 포인터에 파이썬 객체를 저장합니다. 이것은 ``O``\\ 와 유사하지만, 두 개의 C 인자를 취합니다: 첫 번째는 파이썬 형"
769+ " 객체의 주소이고, 두 번째는 객체 포인터가 저장되는 (:c:type:`PyObject*` 형의) C 변수의 주소입니다. 파이썬 "
770+ "객체가 필요한 형이 아니면, :exc:`TypeError`\\ 가 발생합니다."
752771
753772#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/arg.rst:352
754773#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/arg.rst:657
@@ -762,6 +781,9 @@ msgid ""
762781"address of a C variable (of arbitrary type), converted to :c:type:`void "
763782"*`. The *converter* function in turn is called as follows::"
764783msgstr ""
784+ "*converter* 함수를 통해 파이썬 객체를 C 변수로 변환합니다. 두 개의 인자를 취합니다: 첫 번째는 함수이고, 두 번째는 "
785+ ":c:type:`void *`\\ 로 변환된, (임의의 형의) C 변수의 주소입니다. *converter* 함수는 다음과 같이 "
786+ "호출됩니다::"
765787
766788#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/arg.rst:339
767789msgid ""
@@ -772,6 +794,10 @@ msgid ""
772794"fails, the *converter* function should raise an exception and leave the "
773795"content of *address* unmodified."
774796msgstr ""
797+ "여기서 *object*\\ 는 변환할 파이썬 객체이고 *address*\\ 는 :c:func:`PyArg_Parse\\ *` 함수에 "
798+ "전달된 :c:type:`void*` 인자입니다. 반환된 *status*\\ 는 성공적인 변환의 경우 ``1``\\ 이고 변환에 실패한 "
799+ "경우 ``0``\\ 이어야 합니다. 변환이 실패하면, *converter* 함수는 예외를 발생시키고 *address*\\ 의 내용을 "
800+ "수정하지 않은 상태로 두어야 합니다."
775801
776802#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/arg.rst:345
777803msgid ""
@@ -1017,6 +1043,14 @@ msgid ""
10171043" a tuple or contains the wrong number of elements; an exception will be "
10181044"set if there was a failure."
10191045msgstr ""
1046+ "인자 형을 지정하기 위해 포맷 문자열을 사용하지 않는 더 간단한 형식의 매개 변수 조회. 이 방법으로 매개 변수를 꺼내는 함수는 "
1047+ "함수나 메서드 테이블에서 :const:`METH_VARARGS`\\ 로 선언되어야 합니다. 실제 매개 변수를 포함하는 튜플은 "
1048+ "*args*\\ 로 전달되어야 합니다; 이것은 실제로 튜플이어야 합니다. 튜플의 길이는 *min* 이상 *max* 이하이어야 합니다;"
1049+ " *min*\\ 과 *max*\\ 는 같을 수 있습니다. 추가 인자는 함수에 전달되어야 하며, 각 인자는 "
1050+ ":c:type:`PyObject*` 변수에 대한 포인터여야 합니다; 이들은 *args*\\ 의 값으로 채워집니다; 빌린 참조가 "
1051+ "포함됩니다. *args*\\ 에서 제공하지 않는 선택적 매개 변수에 해당하는 변수는 채워지지 않습니다; 이것들은 호출자에 의해 "
1052+ "초기화되어야 합니다. 이 함수는 성공하면 참을 반환하고 *args*\\ 가 튜플이 아니거나, 잘못된 수의 요소를 포함하면 거짓을 "
1053+ "반환합니다; 실패하면 예외가 설정됩니다."
10201054
10211055#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/arg.rst:493
10221056msgid ""
@@ -1324,6 +1358,9 @@ msgid ""
13241358":c:type:`void*`) as its argument and should return a \" new\" Python "
13251359"object, or ``NULL`` if an error occurred."
13261360msgstr ""
1361+ "*converter* 함수를 통해 *anything*\\ 을 파이썬 객체로 변환합니다. 함수는 인자로 "
1362+ "*anything*\\ (:c:type:`void*`\\ 와 호환되어야 합니다)을 사용하여 호출되며 \" 새\" 파이썬 객체를 "
1363+ "반환하거나, 에러가 발생하면 ``NULL``\\ 을 반환해야 합니다."
13271364
13281365#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/arg.rst:660
13291366msgid ""
@@ -1366,154 +1403,3 @@ msgid ""
13661403"rather than a variable number of arguments."
13671404msgstr "가변 개수의 인자가 아닌 va_list를 받아들인다는 점을 제외하면, :c:func:`Py_BuildValue`\\ 와 동일합니다."
13681405
1369- #~ msgid ""
1370- #~ "Requires that the Python object is "
1371- #~ "a :class:`bytes` object, without attempting"
1372- #~ " any conversion. Raises :exc:`TypeError` "
1373- #~ "if the object is not a bytes "
1374- #~ "object. The C variable may also "
1375- #~ "be declared as :c:type:`PyObject\\*`."
1376- #~ msgstr ""
1377-
1378- #~ msgid ""
1379- #~ "Requires that the Python object is "
1380- #~ "a :class:`bytearray` object, without "
1381- #~ "attempting any conversion. Raises "
1382- #~ ":exc:`TypeError` if the object is not"
1383- #~ " a :class:`bytearray` object. The C "
1384- #~ "variable may also be declared as "
1385- #~ ":c:type:`PyObject\\*`."
1386- #~ msgstr ""
1387-
1388- #~ msgid ""
1389- #~ "Requires that the Python object is "
1390- #~ "a Unicode object, without attempting any"
1391- #~ " conversion. Raises :exc:`TypeError` if "
1392- #~ "the object is not a Unicode "
1393- #~ "object. The C variable may also "
1394- #~ "be declared as :c:type:`PyObject\\*`."
1395- #~ msgstr ""
1396-
1397- #~ msgid ""
1398- #~ "This format requires two arguments. The"
1399- #~ " first is only used as input, "
1400- #~ "and must be a :c:type:`const char\\*`"
1401- #~ " which points to the name of an"
1402- #~ " encoding as a NUL-terminated string,"
1403- #~ " or ``NULL``, in which case "
1404- #~ "``'utf-8'`` encoding is used. An "
1405- #~ "exception is raised if the named "
1406- #~ "encoding is not known to Python. "
1407- #~ "The second argument must be a "
1408- #~ ":c:type:`char\\*\\*`; the value of the "
1409- #~ "pointer it references will be set "
1410- #~ "to a buffer with the contents of"
1411- #~ " the argument text. The text will "
1412- #~ "be encoded in the encoding specified "
1413- #~ "by the first argument."
1414- #~ msgstr ""
1415-
1416- #~ msgid ""
1417- #~ "It requires three arguments. The first"
1418- #~ " is only used as input, and "
1419- #~ "must be a :c:type:`const char\\*` which"
1420- #~ " points to the name of an "
1421- #~ "encoding as a NUL-terminated string, "
1422- #~ "or ``NULL``, in which case ``'utf-8'``"
1423- #~ " encoding is used. An exception is"
1424- #~ " raised if the named encoding is "
1425- #~ "not known to Python. The second "
1426- #~ "argument must be a :c:type:`char\\*\\*`; "
1427- #~ "the value of the pointer it "
1428- #~ "references will be set to a buffer"
1429- #~ " with the contents of the argument"
1430- #~ " text. The text will be encoded "
1431- #~ "in the encoding specified by the "
1432- #~ "first argument. The third argument must"
1433- #~ " be a pointer to an integer; "
1434- #~ "the referenced integer will be set "
1435- #~ "to the number of bytes in the "
1436- #~ "output buffer."
1437- #~ msgstr ""
1438-
1439- #~ msgid ""
1440- #~ "Store a Python object in a C "
1441- #~ "object pointer. This is similar to "
1442- #~ "``O``, but takes two C arguments: "
1443- #~ "the first is the address of a "
1444- #~ "Python type object, the second is "
1445- #~ "the address of the C variable (of"
1446- #~ " type :c:type:`PyObject\\*`) into which the"
1447- #~ " object pointer is stored. If the"
1448- #~ " Python object does not have the "
1449- #~ "required type, :exc:`TypeError` is raised."
1450- #~ msgstr ""
1451-
1452- #~ msgid ""
1453- #~ "Convert a Python object to a C "
1454- #~ "variable through a *converter* function. "
1455- #~ "This takes two arguments: the first "
1456- #~ "is a function, the second is the"
1457- #~ " address of a C variable (of "
1458- #~ "arbitrary type), converted to :c:type:`void"
1459- #~ " \\*`. The *converter* function in "
1460- #~ "turn is called as follows::"
1461- #~ msgstr ""
1462-
1463- #~ msgid ""
1464- #~ "where *object* is the Python object "
1465- #~ "to be converted and *address* is "
1466- #~ "the :c:type:`void\\*` argument that was "
1467- #~ "passed to the :c:func:`PyArg_Parse\\*` "
1468- #~ "function. The returned *status* should "
1469- #~ "be ``1`` for a successful conversion "
1470- #~ "and ``0`` if the conversion has "
1471- #~ "failed. When the conversion fails, the"
1472- #~ " *converter* function should raise an "
1473- #~ "exception and leave the content of "
1474- #~ "*address* unmodified."
1475- #~ msgstr ""
1476-
1477- #~ msgid ""
1478- #~ "A simpler form of parameter retrieval"
1479- #~ " which does not use a format "
1480- #~ "string to specify the types of the"
1481- #~ " arguments. Functions which use this "
1482- #~ "method to retrieve their parameters "
1483- #~ "should be declared as :const:`METH_VARARGS`"
1484- #~ " in function or method tables. The"
1485- #~ " tuple containing the actual parameters "
1486- #~ "should be passed as *args*; it "
1487- #~ "must actually be a tuple. The "
1488- #~ "length of the tuple must be at "
1489- #~ "least *min* and no more than "
1490- #~ "*max*; *min* and *max* may be "
1491- #~ "equal. Additional arguments must be "
1492- #~ "passed to the function, each of "
1493- #~ "which should be a pointer to a "
1494- #~ ":c:type:`PyObject\\*` variable; these will be"
1495- #~ " filled in with the values from "
1496- #~ "*args*; they will contain borrowed "
1497- #~ "references. The variables which correspond"
1498- #~ " to optional parameters not given by"
1499- #~ " *args* will not be filled in; "
1500- #~ "these should be initialized by the "
1501- #~ "caller. This function returns true on"
1502- #~ " success and false if *args* is "
1503- #~ "not a tuple or contains the wrong"
1504- #~ " number of elements; an exception "
1505- #~ "will be set if there was a "
1506- #~ "failure."
1507- #~ msgstr ""
1508-
1509- #~ msgid ""
1510- #~ "Convert *anything* to a Python object"
1511- #~ " through a *converter* function. The "
1512- #~ "function is called with *anything* "
1513- #~ "(which should be compatible with "
1514- #~ ":c:type:`void \\*`) as its argument and"
1515- #~ " should return a \"new\" Python "
1516- #~ "object, or ``NULL`` if an error "
1517- #~ "occurred."
1518- #~ msgstr ""
1519-
0 commit comments