@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.15\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2026-10-15 17:56 +0000\n "
14+ "POT-Creation-Date : 2026-10-21 18:18 +0000\n "
1515"PO-Revision-Date : 2025-09-16 00:00+0000\n "
1616"Last-Translator : python-doc bot, 2025\n "
1717"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -347,26 +347,20 @@ msgstr ""
347347"エンコードされた文字列の代わりに、 Unicode オブジェクトを使用する点が異なりま"
348348"す。"
349349
350- #: ../../c-api/import.rst:257
351350msgid ""
352351"This is the structure type definition for frozen module descriptors, as "
353352"generated by the :program:`freeze` utility (see :file:`Tools/freeze/` in the "
354353"Python source distribution). Its definition, found in :file:`Include/import."
355- "h`, is:: "
354+ "h`, is:"
356355msgstr ""
357- ":program:`freeze` ユーティリティが生成するようなフリーズ化モジュールデスクリ"
358- "プタの構造体型定義です。 (Python ソース配布物の :file:`Tools/freeze/` を参照"
359- "してください) この構造体の定義は :file:`Include/import.h` にあり、以下のよう"
360- "になっています::"
361356
362- #: ../../c-api/import.rst:262
363357msgid ""
364358"struct _frozen {\n"
365- " const char *name;\n"
359+ " const char *name; /* ASCII encoded string */ \n"
366360" const unsigned char *code;\n"
367361" int size;\n"
368- " bool is_package;\n"
369- "};"
362+ " int is_package;\n"
363+ "};\n "
370364msgstr ""
371365
372366#: ../../c-api/import.rst:269
@@ -528,10 +522,9 @@ msgstr ""
528522msgid "*spec* must be a :class:`~importlib.machinery.ModuleSpec` object."
529523msgstr ""
530524
531- #: ../../c-api/import.rst:411
532525msgid ""
533- "*initfunc* must be an :ref:`initialization function <extension-export- "
534- "hook>`, the same as for :c:func:`PyImport_AppendInittab`."
526+ "*initfunc* must be an :ref:`initialization function <extension-pyinit>`, the "
527+ "same as for :c:func:`PyImport_AppendInittab`."
535528msgstr ""
536529
537530#: ../../c-api/import.rst:414
@@ -542,15 +535,40 @@ msgid ""
542535"exec_module` method.)"
543536msgstr ""
544537
545- #: ../../c-api/import.rst:420
538+ #: ../../c-api/import.rst:424
539+ msgid "On error, return NULL with an exception set."
540+ msgstr ""
541+
546542msgid ""
547- "If the spec's name is dotted and *initfunc* creates the module using only "
548- "the last component of the name, the module's :attr:`~module.__name__` is set "
549- "to the full name from the spec."
543+ "For modules using :ref:`legacy single-phase initialization <single-phase-"
544+ "initialization>`, most of the import process is done in this function, "
545+ "rather than in extra steps that importers typically take after :py:meth:"
546+ "`~importlib.abc.Loader.create_module`. Specifically:"
550547msgstr ""
551548
552- #: ../../c-api/import.rst:424
553- msgid "On error, return NULL with an exception set."
549+ msgid ""
550+ "The module is added to :data:`sys.modules` under the *spec*'s :py:attr:"
551+ "`~importlib.machinery.ModuleSpec.name` as part of initialization."
552+ msgstr ""
553+
554+ msgid ""
555+ "If a single-phase module was previously imported under the same :py:attr:"
556+ "`~importlib.machinery.ModuleSpec.name` by this function or as a built-in "
557+ "module (for example, one registered with :c:func:`PyImport_AppendInittab`), "
558+ "Python may reuse the previous module's contents instead of calling "
559+ "*initfunc* again."
560+ msgstr ""
561+
562+ msgid ""
563+ "The module will be fully initialized by *initfunc*. Calling :c:func:"
564+ "`PyModule_Exec` on it will have no effect, though it is still recommended, "
565+ "in case the module later switches to :ref:`multi-phase initialization <multi-"
566+ "phase-initialization>`."
567+ msgstr ""
568+
569+ msgid ""
570+ "Also, if the *spec*'s :py:attr:`!name` contains dots, this name is used for "
571+ "prepending a parent package to the new module's :attr:`~module.__name__`."
554572msgstr ""
555573
556574#: ../../c-api/import.rst:11
0 commit comments