Skip to content

Commit acead4e

Browse files
committed
3.8.6 updates
1 parent 0d56d04 commit acead4e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+225
-575
lines changed

c-api/arg.po

Lines changed: 37 additions & 151 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,8 @@ msgid ""
303303
"a bytes object. The C variable may also be declared as "
304304
":c:type:`PyObject*`."
305305
msgstr ""
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
308310
msgid "``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*`."
317319
msgstr ""
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
320325
msgid "``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*`."
399404
msgstr ""
405+
"변환을 시도하지 않고, 파이썬 객체가 유니코드 객체일 것을 요구합니다. 객체가 유니코드 객체가 아니면 "
406+
":exc:`TypeError`\\를 발생시킵니다. C 변수는 :c:type:`PyObject*`\\로 선언될 수도 있습니다."
400407

401408
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/arg.rst:192
402409
msgid "``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."
438445
msgstr ""
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
441452
msgid ""
@@ -495,6 +506,11 @@ msgid ""
495506
"referenced integer will be set to the number of bytes in the output "
496507
"buffer."
497508
msgstr ""
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
500516
msgid "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."
751767
msgstr ""
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::"
764783
msgstr ""
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
767789
msgid ""
@@ -772,6 +794,10 @@ msgid ""
772794
"fails, the *converter* function should raise an exception and leave the "
773795
"content of *address* unmodified."
774796
msgstr ""
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
777803
msgid ""
@@ -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."
10191045
msgstr ""
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
10221056
msgid ""
@@ -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."
13261360
msgstr ""
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
13291366
msgid ""
@@ -1366,154 +1403,3 @@ msgid ""
13661403
"rather than a variable number of arguments."
13671404
msgstr "가변 개수의 인자가 아닌 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-

c-api/buffer.po

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ msgstr "C 또는 F"
589589

590590
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/buffer.rst:304
591591
msgid ":c:macro:`PyBUF_ND`"
592-
msgstr ""
592+
msgstr ":c:macro:`PyBUF_ND`"
593593

594594
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/buffer.rst:309
595595
msgid "compound requests"
@@ -738,7 +738,6 @@ msgstr ""
738738
"성공합니다."
739739

740740
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/buffer.rst:439
741-
#, fuzzy
742741
msgid ""
743742
"Send a request to *exporter* to fill in *view* as specified by *flags*. "
744743
"If the exporter cannot provide a buffer of the exact type, it MUST raise "
@@ -747,21 +746,20 @@ msgid ""
747746
msgstr ""
748747
"*flags*\\에 지정된 대로 *view*\\를 채우도록 *exporter*\\에게 요청을 보냅니다. 제공자(exporter)가 "
749748
"정확한 유형의 버퍼를 제공할 수 없다면, :c:data:`PyExc_BufferError`\\를 일으키고, "
750-
":c:member:`view->obj`\\를 ``NULL``\\로 설정하고, ``-1``\\를 반환해야 합니다."
749+
"``view->obj``\\를 ``NULL``\\로 설정하고, ``-1``\\를 반환해야 합니다."
751750

752751
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/buffer.rst:444
753-
#, fuzzy
754752
msgid ""
755753
"On success, fill in *view*, set ``view->obj`` to a new reference to "
756754
"*exporter* and return 0. In the case of chained buffer providers that "
757755
"redirect requests to a single object, ``view->obj`` MAY refer to this "
758756
"object instead of *exporter* (See :ref:`Buffer Object Structures <buffer-"
759757
"structs>`)."
760758
msgstr ""
761-
"성공하면, *view*\\를 채우고, :c:member:`view->obj`\\를 *exporter*\\에 대한 새 참조로 "
762-
"설정하고, 0을 반환합니다. 요청을 단일 객체로 리디렉션하는 연결된(chained) 버퍼 공급자의 경우, "
763-
":c:member:`view->obj`\\*exporter* 대신 이 객체를 참조할 수 있습니다 (:ref:`버퍼 객체 구조체 "
764-
"<buffer-structs>`\\보세요)."
759+
"성공하면, *view*\\를 채우고, ``view->obj``\\를 *exporter*\\에 대한 새 참조로 설정하고, 0을 "
760+
"반환합니다. 요청을 단일 객체로 리디렉션하는 연결된(chained) 버퍼 공급자의 경우, ``view->obj``\\ "
761+
"*exporter* 대신 이 객체를 참조할 수 있습니다 (:ref:`버퍼 객체 구조체 <buffer-structs>`\\ "
762+
"보세요)."
765763

766764
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/buffer.rst:449
767765
msgid ""
@@ -775,14 +773,13 @@ msgstr ""
775773
"소비자가 버퍼로 작업한 후에는, :c:func:`PyBuffer_Release`\\를 정확히 한 번 호출해야 합니다."
776774

777775
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/buffer.rst:457
778-
#, fuzzy
779776
msgid ""
780777
"Release the buffer *view* and decrement the reference count for "
781778
"``view->obj``. This function MUST be called when the buffer is no longer "
782779
"being used, otherwise reference leaks may occur."
783780
msgstr ""
784-
"버퍼 *view*\\를 해제하고 :c:member:`view->obj`\\에 대한 참조 횟수를 감소시킵니다. 버퍼가 더는 사용되지 "
785-
"않을 때, 이 함수를 반드시 호출해야 합니다. 그렇지 않으면 참조 누수가 발생할 수 있습니다."
781+
"버퍼 *view*\\를 해제하고 ``view->obj``\\에 대한 참조 횟수를 감소시킵니다. 버퍼가 더는 사용되지 않을 때, 이 "
782+
"함수를 반드시 호출해야 합니다. 그렇지 않으면 참조 누수가 발생할 수 있습니다."
786783

787784
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/buffer.rst:461
788785
msgid ""
@@ -872,15 +869,14 @@ msgstr ""
872869
"*view*\\를 채웁니다."
873870

874871
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/buffer.rst:517
875-
#, fuzzy
876872
msgid ""
877873
"On success, set ``view->obj`` to a new reference to *exporter* and return"
878874
" 0. Otherwise, raise :c:data:`PyExc_BufferError`, set ``view->obj`` to "
879875
"``NULL`` and return ``-1``;"
880876
msgstr ""
881-
"성공하면, :c:member:`view->obj`\\를 *exporter*\\에 대한 새 참조로 설정하고, 0을 반환합니다. 그렇지"
882-
" 않으면, :c:data:`PyExc_BufferError`\\를 일으키고, :c:member:`view->obj`\\를 "
883-
"``NULL``\\로 설정한 다음 ``-1``\\을 반환합니다."
877+
"성공하면, ``view->obj``\\를 *exporter*\\에 대한 새 참조로 설정하고, 0을 반환합니다. 그렇지 않으면, "
878+
":c:data:`PyExc_BufferError`\\를 일으키고, ``view->obj``\\ ``NULL``\\로 설정한 다음 "
879+
"``-1``\\을 반환합니다."
884880

885881
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/buffer.rst:521
886882
msgid ""

c-api/capsule.po

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ msgid ""
2727
msgstr "이 객체 사용에 대한 자세한 정보는 :ref:`using-capsules`\\를 참조하십시오."
2828

2929
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/capsule.rst:17
30-
#, fuzzy
3130
msgid ""
3231
"This subtype of :c:type:`PyObject` represents an opaque value, useful for"
3332
" C extension modules who need to pass an opaque value (as a "
@@ -37,9 +36,9 @@ msgid ""
3736
" APIs defined in dynamically loaded modules."
3837
msgstr ""
3938
"이 :c:type:`PyObject`\\의 서브 형은 불투명한 값을 나타내며, 파이썬 코드를 통해 다른 C 코드로 불투명한 "
40-
"값(:c:type:`void\\*` 포인터로)을 전달해야 하는 C 확장 모듈에 유용합니다. 이것은 한 모듈에서 정의된 C 함수 "
41-
"포인터를 다른 모듈에서 사용할 수 있게 만드는 데 종종 사용되므로, 일반 임포트 메커니즘을 사용하여 동적으로 로드된 모듈에 정의된 "
42-
"C API에 액세스할 수 있습니다."
39+
"값(:c:type:`void*` 포인터로)을 전달해야 하는 C 확장 모듈에 유용합니다. 이것은 한 모듈에서 정의된 C 함수 포인터를"
40+
" 다른 모듈에서 사용할 수 있게 만드는 데 종종 사용되므로, 일반 임포트 메커니즘을 사용하여 동적으로 로드된 모듈에 정의된 C "
41+
"API에 액세스할 수 있습니다."
4342

4443
#: /Users/flowdas/works/docs/python-docs-ko/src/Doc/c-api/capsule.rst:27
4544
msgid "The type of a destructor callback for a capsule. Defined as::"

0 commit comments

Comments
 (0)