@@ -21,14 +21,13 @@ msgid "Allocating Objects on the Heap"
21
21
msgstr "힙에 객체 할당하기"
22
22
23
23
#: ../../c-api/allocation.rst:17
24
- #, fuzzy
25
24
msgid ""
26
25
"Initialize a newly allocated object *op* with its type and initial "
27
26
"reference. Returns the initialized object. Other fields of the object "
28
27
"are not affected."
29
28
msgstr ""
30
- "새로 할당된 객체 *op*\\ 를 형과 초기 참조로 초기화합니다. 초기화된 객체를 반환합니다. *type* \\ 이 객체가 순환 가비지 "
31
- "감지기에 참여함을 나타내면, 감지기의 감시되는 객체 집합에 추가됩니다. 객체의 다른 필드는 영향을 받지 않습니다."
29
+ "새로 할당된 객체 *op*\\ 를 형과 초기 참조로 초기화합니다. 초기화된 객체를 반환합니다. 객체의 다른 필드는 영향을 받지 "
30
+ "않습니다."
32
31
33
32
#: ../../c-api/allocation.rst:24
34
33
msgid ""
@@ -37,7 +36,6 @@ msgid ""
37
36
msgstr "이것은 :c:func:`PyObject_Init`\\ 가 수행하는 모든 작업을 수행하고, 가변 크기 객체의 길이 정보도 초기화합니다."
38
37
39
38
#: ../../c-api/allocation.rst:30
40
- #, fuzzy
41
39
msgid ""
42
40
"Allocate a new Python object using the C structure type *TYPE* and the "
43
41
"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by "
@@ -46,8 +44,9 @@ msgid ""
46
44
"size of the memory allocation is determined from the "
47
45
":c:member:`~PyTypeObject.tp_basicsize` field of the type object."
48
46
msgstr ""
49
- "C 구조체 형 *TYPE*\\ 과 파이썬 형 객체 *type*\\ 을 사용하여 새로운 파이썬 객체를 할당합니다. 파이썬 객체 헤더로 "
50
- "정의되지 않은 필드는 초기화되지 않습니다; 객체의 참조 횟수는 1이 됩니다. 메모리 할당의 크기는 형 객체의 "
47
+ "C 구조체 형 *TYPE*\\ 과 파이썬 형 객체 *typeobj* (``PyTypeObject*``) 를 사용하여 새로운 파이썬 "
48
+ "객체를 할당합니다. 파이썬 객체 헤더로 정의되지 않은 필드는 초기화되지 않습니다. 호출자는 객체에 대한 유일한 참조를 소유하게 "
49
+ "됩니다 (즉, 객체의 참조 횟수는 1이 됩니다). 메모리 할당의 크기는 형 객체의 "
51
50
":c:member:`~PyTypeObject.tp_basicsize` 필드에서 결정됩니다."
52
51
53
52
#: ../../c-api/allocation.rst:38
@@ -58,7 +57,6 @@ msgid ""
58
57
msgstr ""
59
58
60
59
#: ../../c-api/allocation.rst:45
61
- #, fuzzy
62
60
msgid ""
63
61
"Allocate a new Python object using the C structure type *TYPE* and the "
64
62
"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by "
@@ -70,11 +68,11 @@ msgid ""
70
68
"array of fields into the same allocation decreases the number of "
71
69
"allocations, improving the memory management efficiency."
72
70
msgstr ""
73
- "C 구조체 형 *TYPE*\\ 과 파이썬 타입 형 *type* \\ 을 사용하여 새로운 파이썬 객체를 할당합니다. 파이썬 객체 헤더로 "
74
- "정의되지 않은 필드는 초기화되지 않습니다. 할당된 메모리는 *TYPE* 구조체에 더해 *type* \\ 의 "
75
- ":c:member:`~PyTypeObject.tp_itemsize` 필드에 의해 주어진 크기의 *size* 필드를 허용합니다. 이는 "
76
- " 튜플과 같은 객체를 구현할 때 유용합니다. 튜플은 만들 때 크기를 결정할 수 있습니다. 같은 할당에 필드 배열을 포함 시키면, "
77
- "할당 횟수가 줄어들어, 메모리 관리 효율성이 향상됩니다."
71
+ "C 구조체 형 *TYPE*\\ 과 파이썬 타입 형 *typeobj* (``PyTypeObject*``) 를 사용하여 새로운 파이썬 "
72
+ "객체를 할당합니다. 파이썬 객체 헤더로 정의되지 않은 필드는 초기화되지 않습니다. 할당된 메모리는 *TYPE* 구조체에 더해 "
73
+ "*typeobj* \\ 의 :c:member:`~PyTypeObject.tp_itemsize` 필드에 의해 주어진 크기의 *size* "
74
+ "(``Py_ssize_t``) 필드를 허용합니다. 이는 튜플과 같은 객체를 구현할 때 유용합니다. 튜플은 만들 때 크기를 결정할 수"
75
+ " 있습니다. 같은 할당에 필드 배열을 포함 시키면, 할당 횟수가 줄어들어, 메모리 관리 효율성이 향상됩니다."
78
76
79
77
#: ../../c-api/allocation.rst:56
80
78
msgid ""
@@ -84,15 +82,14 @@ msgid ""
84
82
msgstr ""
85
83
86
84
#: ../../c-api/allocation.rst:63
87
- #, fuzzy
88
85
msgid ""
89
86
"Releases memory allocated to an object using :c:macro:`PyObject_New` or "
90
87
":c:macro:`PyObject_NewVar`. This is normally called from the "
91
88
":c:member:`~PyTypeObject.tp_dealloc` handler specified in the object's "
92
89
"type. The fields of the object should not be accessed after this call as"
93
90
" the memory is no longer a valid Python object."
94
91
msgstr ""
95
- ":c:func :`PyObject_New` 나 :c:func :`PyObject_NewVar`\\ 를 사용한 객체에 할당된 메모리를 "
92
+ ":c:macro :`PyObject_New` 나 :c:macro :`PyObject_NewVar`\\ 를 사용한 객체에 할당된 메모리를 "
96
93
"해제합니다. 이것은 일반적으로 객체의 형에 지정된 :c:member:`~PyTypeObject.tp_dealloc` 처리기에서 "
97
94
"호출됩니다. 메모리가 더는 유효한 파이썬 객체가 아니므로, 이 호출 후에는 객체의 필드에 액세스해서는 안 됩니다."
98
95
0 commit comments