FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-docs-ko/c-api/extension-modules.po at refs/heads/3.14 · python/python-docs-ko · GitHub
python
python-docs-ko
Repository navigation
Code
Issues
377
(377)
Pull requests
1
(1)
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
python-docs-ko
/
c-api
/
extension-modules.po
Copy path
More file actions
More file actions
Latest commit
History
History
History
464 lines (413 loc) · 21.9 KB
Breadcrumbs
python-docs-ko
/
c-api
/
extension-modules.po
Copy path
File metadata and controls
464 lines (413 loc) · 21.9 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
#
SOME DESCRIPTIVE TITLE.
#
Copyright (C) 2001 Python Software Foundation
#
This file is distributed under the same license as the Python package.
#
FIRST AUTHOR <EMAIL@ADDRESS>, 2025.
#
msgid ""
msgstr ""
"
Project-Id-Version
:
Python 3.14\n
"
"
Report-Msgid-Bugs-To
:
\n
"
"
POT-Creation-Date
:
2025-10-11 20:40+0000\n
"
"
PO-Revision-Date
:
2026-06-05 20:00+0000\n
"
"
Last-Translator
:
Mir Jung <ham4051@gmail.com>\n
"
"
Language
:
ko\n
"
"
Language-Team
:
Korean (https://python.flowdas.com)\n
"
"
Plural-Forms
:
nplurals=1; plural=0;\n
"
"
MIME-Version
:
1.0\n
"
"
Content-Type
:
text/plain; charset=utf-8\n
"
"
Content-Transfer-Encoding
:
8bit\n
"
"
Generated-By
:
Babel 2.18.0\n
"
#:
../../c-api/extension-modules.rst:6
msgid
"Defining extension modules"
msgstr
"확장 모듈 정의"
#:
../../c-api/extension-modules.rst:8
msgid
""
"A C extension for CPython is a shared library (for example, a ``.so`` "
"file on Linux, ``.pyd`` DLL on Windows), which is loadable into the "
"Python process (for example, it is compiled with compatible compiler "
"settings), and which exports an :ref:`initialization function <extension-"
"export-hook>`."
msgstr
""
"CPython용 C 확장은 공유 라이브러리(예를 들어 리눅스의 ``.so`` 파일, 윈도우의 ``.pyd`` DLL)로, 파이썬 "
"프로세스로 로드 가능하고(예를 들어 호환되는 컴파일러 설정으로 컴파일된) :ref:`초기화 함수 <extension-export-"
"hook>`
\\
를 익스포트합니다."
#:
../../c-api/extension-modules.rst:13
msgid
""
"To be importable by default (that is, by "
":py:class:`importlib.machinery.ExtensionFileLoader`), the shared library "
"must be available on :py:attr:`sys.path`, and must be named after the "
"module name plus an extension listed in "
":py:attr:`importlib.machinery.EXTENSION_SUFFIXES`."
msgstr
""
"기본적으로 임포트 가능하려면(즉, :py:class:`importlib.machinery.ExtensionFileLoader`
\\
"
"에 의해), 공유 라이브러리는 :py:attr:`sys.path` 에 있어야 하고, 모듈 이름에 "
":py:attr:`importlib.machinery.EXTENSION_SUFFIXES` 에 나열된 확장자를 붙인 이름이어야 "
"합니다."
#:
../../c-api/extension-modules.rst:21
msgid
""
"Building, packaging and distributing extension modules is best done with "
"third-party tools, and is out of scope of this document. One suitable "
"tool is Setuptools, whose documentation can be found at "
"https://setuptools.pypa.io/en/latest/setuptools.html."
msgstr
""
"확장 모듈을 빌드, 패키징 및 배포하는 작업은 제삼자 도구를 사용하는 것이 가장 좋으며, 이 문서의 범위를 벗어납니다. 적합한 도구"
" 중 하나는 Setuptools로, 문서는 "
"https://setuptools.pypa.io/en/latest/setuptools.html 에서 찾을 수 있습니다."
#:
../../c-api/extension-modules.rst:26
msgid
""
"Normally, the initialization function returns a module definition "
"initialized using :c:func:`PyModuleDef_Init`. This allows splitting the "
"creation process into several phases:"
msgstr
""
"일반적으로 초기화 함수는 :c:func:`PyModuleDef_Init` 을 사용하여 초기화된 모듈 정의를 반환합니다. 이를 통해 "
"생성 과정을 여러 단계로 나눌 수 있습니다:"
#:
../../c-api/extension-modules.rst:30
msgid
""
"Before any substantial code is executed, Python can determine which "
"capabilities the module supports, and it can adjust the environment or "
"refuse loading an incompatible extension."
msgstr
""
"실질적인 코드가 실행되기 전에, 파이썬은 모듈이 지원하는 기능을 파악하고, 환경을 조정하거나 호환되지 않는 확장의 로드를 거부할 수"
" 있습니다."
#:
../../c-api/extension-modules.rst:33
msgid
""
"By default, Python itself creates the module object -- that is, it does "
"the equivalent of :py:meth:`object.__new__` for classes. It also sets "
"initial attributes like :attr:`~module.__package__` and "
":attr:`~module.__loader__`."
msgstr
""
"기본적으로 파이썬 자체가 모듈 객체를 생성합니다 -- 즉, 클래스의 경우 :py:meth:`object.__new__` 와 동등한 "
"작업을 수행합니다. 또한 :attr:`~module.__package__` 와 :attr:`~module.__loader__` 같은"
" 초기 어트리뷰트를 설정합니다."
#:
../../c-api/extension-modules.rst:37
msgid
""
"Afterwards, the module object is initialized using extension-specific "
"code -- the equivalent of :py:meth:`~object.__init__` on classes."
msgstr
""
"이후 모듈 객체는 확장에 특화된 코드를 사용하여 초기화됩니다 -- 클래스의 경우 :py:meth:`~object.__init__` "
"와 동등합니다."
#:
../../c-api/extension-modules.rst:40
msgid
""
"This is called *multi-phase initialization* to distinguish it from the "
"legacy (but still supported) *single-phase initialization* scheme, where "
"the initialization function returns a fully constructed module. See the "
":ref:`single-phase-initialization section below <single-phase-"
"initialization>` for details."
msgstr
""
"이것은 초기화 함수가 완전히 구성된 모듈을 반환하는 레거시(하지만 여전히 지원되는) *단일 단계 초기화* 방식과 구별하기 위해 "
"*다단계 초기화*
\\
라고 합니다. 자세한 내용은 :ref:`아래의 단일 단계 초기화 섹션 <single-phase-"
"initialization>`
\\
을 참조하십시오."
#:
../../c-api/extension-modules.rst:48
msgid
"Added support for multi-phase initialization (:pep:`489`)."
msgstr
"다단계 초기화 지원이 추가되었습니다 (:pep:`489`)."
#:
../../c-api/extension-modules.rst:52
msgid
"Multiple module instances"
msgstr
"다중 모듈 인스턴스"
#:
../../c-api/extension-modules.rst:54
msgid
""
"By default, extension modules are not singletons. For example, if the "
":py:attr:`sys.modules` entry is removed and the module is re-imported, a "
"new module object is created, and typically populated with fresh method "
"and type objects. The old module is subject to normal garbage collection."
" This mirrors the behavior of pure-Python modules."
msgstr
""
"기본적으로 확장 모듈은 싱글톤이 아닙니다. 예를 들어, :py:attr:`sys.modules` 항목이 제거되고 모듈이 다시 "
"임포트되면 새 모듈 객체가 생성되고, 일반적으로 새 메서드와 형 객체로 채워집니다. 이전 모듈은 일반적인 가비지 컬렉션의 대상이 "
"됩니다. 이는 순수 파이썬 모듈의 동작을 반영합니다."
#:
../../c-api/extension-modules.rst:61
msgid
""
"Additional module instances may be created in :ref:`sub-interpreters "
"<sub-interpreter-support>` or after Python runtime reinitialization "
"(:c:func:`Py_Finalize` and :c:func:`Py_Initialize`). In these cases, "
"sharing Python objects between module instances would likely cause "
"crashes or undefined behavior."
msgstr
""
"추가 모듈 인스턴스는 :ref:`서브 인터프리터 <sub-interpreter-support>` 에서 또는 파이썬 런타임 "
"재초기화(:c:func:`Py_Finalize` 와 :c:func:`Py_Initialize`) 후에 생성될 수 있습니다. 이 경우"
" 모듈 인스턴스 간에 파이썬 객체를 공유하면 크래시나 정의되지 않은 동작이 발생할 가능성이 있습니다."
#:
../../c-api/extension-modules.rst:68
msgid
""
"To avoid such issues, each instance of an extension module should be "
"*isolated*: changes to one instance should not implicitly affect the "
"others, and all state owned by the module, including references to Python"
" objects, should be specific to a particular module instance. See :ref"
":`isolating-extensions-howto` for more details and a practical guide."
msgstr
""
"이러한 문제를 피하려면 확장 모듈의 각 인스턴스가 *격리*
\\
되어야 합니다: 한 인스턴스의 변경이 다른 인스턴스에 묵시적으로 "
"영향을 주어서는 안 되며, 파이썬 객체에 대한 참조를 포함하여 모듈이 소유한 모든 상태는 특정 모듈 인스턴스에 한정되어야 합니다. "
"자세한 내용과 실용적인 안내는 :ref:`isolating-extensions-howto`
\\
를 참조하십시오."
#:
../../c-api/extension-modules.rst:74
msgid
""
"A simpler way to avoid these issues is :ref:`raising an error on repeated"
" initialization <isolating-extensions-optout>`."
msgstr
""
"이러한 문제를 피하는 더 간단한 방법은 :ref:`반복 초기화 시 에러 발생시키기 <isolating-extensions-"
"optout>`
\\
입니다."
#:
../../c-api/extension-modules.rst:77
msgid
""
"All modules are expected to support :ref:`sub-interpreters <sub-"
"interpreter-support>`, or otherwise explicitly signal a lack of support. "
"This is usually achieved by isolation or blocking repeated "
"initialization, as above. A module may also be limited to the main "
"interpreter using the :c:data:`Py_mod_multiple_interpreters` slot."
msgstr
""
"모든 모듈은 :ref:`서브 인터프리터 <sub-interpreter-support>`
\\
를 지원하거나, 그렇지 않으면 지원하지 "
"않음을 명시적으로 알려야 합니다. 이는 위에서 설명한 것처럼 격리 또는 반복 초기화 차단을 통해 보통 달성됩니다. 모듈은 "
":c:data:`Py_mod_multiple_interpreters` 슬롯을 사용하여 메인 인터프리터로만 제한될 수도 있습니다."
#:
../../c-api/extension-modules.rst:89
msgid
"Initialization function"
msgstr
"초기화 함수"
#:
../../c-api/extension-modules.rst:91
msgid
""
"The initialization function defined by an extension module has the "
"following signature:"
msgstr
"확장 모듈이 정의하는 초기화 함수의 시그니처는 다음과 같습니다:"
#:
../../c-api/extension-modules.rst:96
#,
python-brace-format
msgid
""
"Its name should be :samp:`PyInit_{<name>}`, with ``<name>`` replaced by "
"the name of the module."
msgstr
"이름은 :samp:`PyInit_{<name>}` 이어야 하며, ``<name>`` 은 모듈 이름으로 대체됩니다."
#:
../../c-api/extension-modules.rst:99
#,
python-brace-format
msgid
""
"For modules with ASCII-only names, the function must instead be named "
":samp:`PyInit_{<name>}`, with ``<name>`` replaced by the name of the "
"module. When using :ref:`multi-phase-initialization`, non-ASCII module "
"names are allowed. In this case, the initialization function name is "
":samp:`PyInitU_{<name>}`, with ``<name>`` encoded using Python's "
"*punycode* encoding with hyphens replaced by underscores. In Python:"
msgstr
""
"ASCII만으로 구성된 이름의 모듈은 함수 이름이 :samp:`PyInit_{<name>}` 이어야 하며, ``<name>`` 은 "
"모듈 이름으로 대체됩니다. :ref:`multi-phase-initialization` 을 사용할 때는 ASCII가 아닌 모듈 "
"이름도 허용됩니다. 이 경우 초기화 함수 이름은 :samp:`PyInitU_{<name>}` 이며, ``<name>`` 은 파이썬의"
" *punycode* 인코딩으로 인코딩되고 하이픈은 밑줄로 대체됩니다. 파이썬으로 표현하면:"
#:
../../c-api/extension-modules.rst:106
msgid
""
"def initfunc_name(name):\n"
" try:\n"
" suffix = b'_' + name.encode('ascii')\n"
" except UnicodeEncodeError:\n"
" suffix = b'U_' + name.encode('punycode').replace(b'-', b'_')\n"
" return b'PyInit' + suffix"
msgstr
""
"def initfunc_name(name):\n"
" try:\n"
" suffix = b'_' + name.encode('ascii')\n"
" except UnicodeEncodeError:\n"
" suffix = b'U_' + name.encode('punycode').replace(b'-', b'_')\n"
" return b'PyInit' + suffix"
#:
../../c-api/extension-modules.rst:115
msgid
""
"It is recommended to define the initialization function using a helper "
"macro:"
msgstr
"초기화 함수는 헬퍼 매크로를 사용하여 정의하는 것이 권장됩니다:"
#:
../../c-api/extension-modules.rst:119
msgid
"Declare an extension module initialization function. This macro:"
msgstr
"확장 모듈 초기화 함수를 선언합니다. 이 매크로는:"
#:
../../c-api/extension-modules.rst:122
msgid
"specifies the :c:expr:`PyObject*` return type,"
msgstr
":c:expr:`PyObject*` 반환 형을 지정하고,"
#:
../../c-api/extension-modules.rst:123
msgid
"adds any special linkage declarations required by the platform, and"
msgstr
"플랫폼에 필요한 특수 링크 선언을 추가하며,"
#:
../../c-api/extension-modules.rst:124
msgid
"for C++, declares the function as ``extern
\"
C
\"
``."
msgstr
"C++의 경우 함수를 ``extern
\"
C
\"
`` 로 선언합니다."
#:
../../c-api/extension-modules.rst:126
msgid
"For example, a module called ``spam`` would be defined like this::"
msgstr
"예를 들어, ``spam`` 이라는 모듈은 다음과 같이 정의됩니다::"
#:
../../c-api/extension-modules.rst:128
#,
python-brace-format
msgid
""
"static struct PyModuleDef spam_module = {\n"
" .m_base = PyModuleDef_HEAD_INIT,\n"
" .m_name =
\"
spam
\"
,\n"
" ...\n"
"};\n"
"\n"
"PyMODINIT_FUNC\n"
"PyInit_spam(void)\n"
"{\n"
" return PyModuleDef_Init(&spam_module);\n"
"}"
msgstr
""
"static struct PyModuleDef spam_module = {\n"
" .m_base = PyModuleDef_HEAD_INIT,\n"
" .m_name =
\"
spam
\"
,\n"
" ...\n"
"};\n"
"\n"
"PyMODINIT_FUNC\n"
"PyInit_spam(void)\n"
"{\n"
" return PyModuleDef_Init(&spam_module);\n"
"}"
#:
../../c-api/extension-modules.rst:140
msgid
""
"It is possible to export multiple modules from a single shared library by"
" defining multiple initialization functions. However, importing them "
"requires using symbolic links or a custom importer, because by default "
"only the function corresponding to the filename is found. See the "
"`Multiple modules in one library <https://peps.python.org/pep-0489"
"/#multiple-modules-in-one-library>`__ section in :pep:`489` for details."
msgstr
""
"여러 초기화 함수를 정의하여 단일 공유 라이브러리에서 여러 모듈을 익스포트할 수 있습니다. 그러나 임포트하려면 심볼릭 링크나 커스텀"
" 임포터를 사용해야 합니다. 기본적으로는 파일 이름에 해당하는 함수만 찾기 때문입니다. 자세한 내용은 :pep:`489` 의 `단일"
" 라이브러리 안의 다중 모듈 <https://peps.python.org/pep-0489/#multiple-modules-in-"
"one-library>`__ 섹션을 참조하십시오."
#:
../../c-api/extension-modules.rst:147
msgid
""
"The initialization function is typically the only non-
\\
``static`` item "
"defined in the module's C source."
msgstr
"초기화 함수는 일반적으로 모듈의 C 소스에서 ``static``
\\
이 아닌 유일한 항목입니다."
#:
../../c-api/extension-modules.rst:154
msgid
"Multi-phase initialization"
msgstr
"다단계 초기화"
#:
../../c-api/extension-modules.rst:156
msgid
""
"Normally, the :ref:`initialization function <extension-export-hook>` "
"(``PyInit_modulename``) returns a :c:type:`PyModuleDef` instance with "
"non-``NULL`` :c:member:`~PyModuleDef.m_slots`. Before it is returned, the"
" ``PyModuleDef`` instance must be initialized using the following "
"function:"
msgstr
""
"일반적으로 :ref:`초기화 함수 <extension-export-hook>` (``PyInit_modulename``)는 "
"``NULL``
\\
이 아닌 :c:member:`~PyModuleDef.m_slots` 를 가진 "
":c:type:`PyModuleDef` 인스턴스를 반환합니다. 반환되기 전에 ``PyModuleDef`` 인스턴스는 다음 함수를 "
"사용하여 초기화되어야 합니다:"
#:
../../c-api/extension-modules.rst:165
msgid
""
"Ensure a module definition is a properly initialized Python object that "
"correctly reports its type and a reference count."
msgstr
"모듈 정의기 형과 참조 횟수를 정확하게 보고하는 제대로 초기화된 파이썬 객체임을 보장해야 합니다."
#:
../../c-api/extension-modules.rst:168
msgid
"Return *def* cast to ``PyObject*``, or ``NULL`` if an error occurred."
msgstr
"에러가 발생하면 ``NULL`` 을, 그렇지 않으면 ``PyObject*`` 로 캐스팅된 *def*
\\
를 반환합니다."
#:
../../c-api/extension-modules.rst:170
msgid
""
"Calling this function is required for :ref:`multi-phase-initialization`. "
"It should not be used in other contexts."
msgstr
""
"이 함수 호출은 :ref:`multi-phase-initialization` 에 필요합니다. 다른 컨텍스트에서는 사용하지 않아야 "
"합니다."
#:
../../c-api/extension-modules.rst:173
msgid
""
"Note that Python assumes that ``PyModuleDef`` structures are statically "
"allocated. This function may return either a new reference or a borrowed "
"one; this reference must not be released."
msgstr
""
"파이썬은 ``PyModuleDef`` 구조체가 정적으로 할당된다고 가정합니다. 이 함수는 새 참조 또는 빌린 참조를 반환할 수 "
"있으며, 이 참조는 해제해서는 안 됩니다."
#:
../../c-api/extension-modules.rst:184
msgid
"Legacy single-phase initialization"
msgstr
"레거시 단일 단계 초기화"
#:
../../c-api/extension-modules.rst:187
msgid
""
"Single-phase initialization is a legacy mechanism to initialize extension"
" modules, with known drawbacks and design flaws. Extension module authors"
" are encouraged to use multi-phase initialization instead."
msgstr
""
"단일 단계 초기화는 확장 모듈을 초기화하는 레거시 메커니즘으로, 알려진 단점과 설계상 결함이 있습니다. 확장 모듈 작성자는 대신 "
"다단계 초기화를 사용하도록 권장됩니다."
#:
../../c-api/extension-modules.rst:191
msgid
""
"In single-phase initialization, the :ref:`initialization function "
"<extension-export-hook>` (``PyInit_modulename``) should create, populate "
"and return a module object. This is typically done using "
":c:func:`PyModule_Create` and functions like "
":c:func:`PyModule_AddObjectRef`."
msgstr
""
"단일 단계 초기화에서 :ref:`초기화 함수 <extension-export-hook>`
\\
는 "
"(``PyInit_modulename``) 모듈 객체를 생성하고, 채워서 반환해야 합니다. 이는 보통 "
":c:func:`PyModule_Create` 와 :c:func:`PyModule_AddObjectRef` 같은 함수를 사용하여 "
"수행됩니다."
#:
../../c-api/extension-modules.rst:197
msgid
""
"Single-phase initialization differs from the :ref:`default <multi-phase-"
"initialization>` in the following ways:"
msgstr
"단일 단계 초기화는 다음과 같은 점에서 :ref:`기본 단계 <multi-phase-initialization>`
\\
와 다릅니다:"
#:
../../c-api/extension-modules.rst:200
msgid
"Single-phase modules are, or rather *contain*, “singletons”."
msgstr
"단일 단계 모듈은
\"
싱글톤
\"
이거나 오히려
\"
싱글톤
\"
을 *포함* 합니다."
#:
../../c-api/extension-modules.rst:202
msgid
""
"When the module is first initialized, Python saves the contents of the "
"module's ``__dict__`` (that is, typically, the module's functions and "
"types)."
msgstr
"모듈이 처음 초기화될 때, 파이썬은 모듈의 ``__dict__`` 내용(즉, 일반적으로 모듈의 함수와 형)을 저장합니다."
#:
../../c-api/extension-modules.rst:206
msgid
""
"For subsequent imports, Python does not call the initialization function "
"again. Instead, it creates a new module object with a new ``__dict__``, "
"and copies the saved contents to it. For example, given a single-phase "
"module ``_testsinglephase`` [#testsinglephase]_ that defines a function "
"``sum`` and an exception class ``error``:"
msgstr
""
"이후 임포트에서는 파이썬이 초기화 함수를 다시 호출하지 않습니다. 대신 새 ``__dict__`` 를 가진 새 모듈 객체를 생성하고"
" 저장된 내용을 복사합니다. 예를 들어, 함수 ``sum`` 과 예외 클래스 ``error`` 를 정의하는 단일 단계 모듈 "
"``_testsinglephase`` [#testsinglephase]_ 가 있다고 가정하면:"
#:
../../c-api/extension-modules.rst:214
msgid
""
">>> import sys\n"
">>> import _testsinglephase as one\n"
">>> del sys.modules['_testsinglephase']\n"
">>> import _testsinglephase as two\n"
">>> one is two\n"
"False\n"
">>> one.__dict__ is two.__dict__\n"
"False\n"
">>> one.sum is two.sum\n"
"True\n"
">>> one.error is two.error\n"
"True"
msgstr
""
">>> import sys\n"
">>> import _testsinglephase as one\n"
">>> del sys.modules['_testsinglephase']\n"
">>> import _testsinglephase as two\n"
">>> one is two\n"
"False\n"
">>> one.__dict__ is two.__dict__\n"
"False\n"
">>> one.sum is two.sum\n"
"True\n"
">>> one.error is two.error\n"
"True"
#:
../../c-api/extension-modules.rst:229
msgid
"The exact behavior should be considered a CPython implementation detail."
msgstr
"정확한 동작은 CPython 구현 세부 사항으로 간주해야 합니다."
#:
../../c-api/extension-modules.rst:231
msgid
""
"To work around the fact that ``PyInit_modulename`` does not take a *spec*"
" argument, some state of the import machinery is saved and applied to the"
" first suitable module created during the ``PyInit_modulename`` call. "
"Specifically, when a sub-module is imported, this mechanism prepends the "
"parent package name to the name of the module."
msgstr
""
"``PyInit_modulename``
\\
이 *spec* 인자를 받지 않는다는 사실을 우회하기 위해, 임포트 장치의 일부 상태가 "
"저장되어 ``PyInit_modulename`` 호출 중에 생성되는 첫 번째 적합한 모듈에 적용됩니다. 구체적으로, 서브 모듈이 "
"임포트될 때 이 메커니즘은 부모 패키지 이름을 모듈 이름 앞에 붙입니다."
#:
../../c-api/extension-modules.rst:237
msgid
""
"A single-phase ``PyInit_modulename`` function should create “its” module "
"object as soon as possible, before any other module objects can be "
"created."
msgstr
""
"단일 단계 ``PyInit_modulename`` 함수는 다른 모듈 객체가 생성되기 전에 가능한 한 빨리
\"
자신의
\"
모듈 객체를"
" 생성해야 합니다."
#:
../../c-api/extension-modules.rst:240
msgid
"Non-ASCII module names (``PyInitU_modulename``) are not supported."
msgstr
"ASCII가 아닌 모듈 이름(``PyInitU_modulename``)은 지원되지 않습니다."
#:
../../c-api/extension-modules.rst:242
msgid
""
"Single-phase modules support module lookup functions like "
":c:func:`PyState_FindModule`."
msgstr
"단일 단계 모듈은 :c:func:`PyState_FindModule` 같은 모듈 조회 함수를 지원합니다."
#:
../../c-api/extension-modules.rst:245
msgid
""
"``_testsinglephase`` is an internal module used in CPython's self-test "
"suite; your installation may or may not include it."
msgstr
""
"``_testsinglephase`` 는 CPython의 자체 테스트 스위트에서 사용되는 내부 모듈로, 설치 환경에 따라 포함될 "
"수도 있고 포함되지 않을 수도 있습니다."
Back
|
FazBrowse Home
|
New Git URL