| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent dba84ec commit ccc5437
22 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,7 +12,7 @@ msgid "" | |||
| 12 | 12 | msgstr "" | |
| 13 | 13 | "Project-Id-Version: Python 3.15\n" | |
| 14 | 14 | "Report-Msgid-Bugs-To: \n" | |
| 15 | - "POT-Creation-Date: 2026-10-03 17:41+0000\n" | ||
| 15 | + "POT-Creation-Date: 2026-10-21 18:18+0000\n" | ||
| 16 | 16 | "PO-Revision-Date: 2025-09-16 00:00+0000\n" | |
| 17 | 17 | "Last-Translator: python-doc bot, 2026\n" | |
| 18 | 18 | "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" | |
@@ -457,21 +457,40 @@ msgid "" | |||
| 457 | 457 | "initialization>` in the following ways:" | |
| 458 | 458 | msgstr "" | |
| 459 | 459 | ||
| 460 | - #: ../../c-api/extension-modules.rst:316 | ||
| 461 | - msgid "Single-phase modules are, or rather *contain*, “singletons”." | ||
| 460 | + msgid "" | ||
| 461 | + "Single-phase modules with :c:member:`PyModuleDef.m_size` set to -1 are, or " | ||
| 462 | + "rather *contain*, “singletons”." | ||
| 462 | 463 | msgstr "" | |
| 463 | 464 | ||
| 464 | - #: ../../c-api/extension-modules.rst:318 | ||
| 465 | 465 | msgid "" | |
| 466 | - "When the module is first initialized, Python saves the contents of the " | ||
| 466 | + "When such a module is first initialized, Python saves the contents of the " | ||
| 467 | 467 | "module's ``__dict__`` (that is, typically, the module's functions and types)." | |
| 468 | 468 | msgstr "" | |
| 469 | 469 | ||
| 470 | - #: ../../c-api/extension-modules.rst:322 | ||
| 471 | 470 | msgid "" | |
| 472 | 471 | "For subsequent imports, Python does not call the initialization function " | |
| 473 | 472 | "again. Instead, it creates a new module object with a new ``__dict__``, and " | |
| 474 | - "copies the saved contents to it. For example, given a single-phase module " | ||
| 473 | + "copies the saved contents to it. Modules are matched to the saved contents " | ||
| 474 | + "by a (*module_name*, *file_name*) tuple where:" | ||
| 475 | + msgstr "" | ||
| 476 | + | ||
| 477 | + msgid "" | ||
| 478 | + "*module_name* is the module's full dotted name, taken from :py:attr:" | ||
| 479 | + "`ModuleSpec.name <importlib.machinery.ModuleSpec.name>` (or the equivalent " | ||
| 480 | + "argument of the importing function). Note that names that the initialization " | ||
| 481 | + "function uses to create the module (for example, :c:member:`PyModuleDef." | ||
| 482 | + "m_name`) are not taken into account." | ||
| 483 | + msgstr "" | ||
| 484 | + | ||
| 485 | + msgid "" | ||
| 486 | + "*file_name* is the extension's file name. It is unset for modules not loaded " | ||
| 487 | + "from a file, such as built-ins and modules added with :c:func:" | ||
| 488 | + "`PyImport_CreateModuleFromInitfunc` or :c:func:`PyImport_AppendInittab`." | ||
| 489 | + msgstr "" | ||
| 490 | + | ||
| 491 | + msgid "" | ||
| 492 | + "As part of the first initialization, Python also adds the module to :data:" | ||
| 493 | + "`sys.modules` under its name. For example, given a single-phase module " | ||
| 475 | 494 | "``_testsinglephase`` [#testsinglephase]_ that defines a function ``sum`` and " | |
| 476 | 495 | "an exception class ``error``:" | |
| 477 | 496 | msgstr "" | |
@@ -497,6 +516,23 @@ msgid "" | |||
| 497 | 516 | "The exact behavior should be considered a CPython implementation detail." | |
| 498 | 517 | msgstr "" | |
| 499 | 518 | ||
| 519 | + msgid "" | ||
| 520 | + "For single-phase modules with non-negative :c:member:`PyModuleDef.m_size`, " | ||
| 521 | + "Python may cache a pointer to the initialization function under the " | ||
| 522 | + "(*module_name*, *file_name*) key as for ``m_size == -1``." | ||
| 523 | + msgstr "" | ||
| 524 | + | ||
| 525 | + msgid "" | ||
| 526 | + "Subsequent imports that specify a different initialization function (for " | ||
| 527 | + "example, using :c:func:`PyImport_CreateModuleFromInitfunc`) may call either " | ||
| 528 | + "the cached function or the provided \"new\" one." | ||
| 529 | + msgstr "" | ||
| 530 | + | ||
| 531 | + msgid "" | ||
| 532 | + "The exact behavior should again be considered a CPython implementation " | ||
| 533 | + "detail." | ||
| 534 | + msgstr "" | ||
| 535 | + | ||
| 500 | 536 | #: ../../c-api/extension-modules.rst:347 | |
| 501 | 537 | msgid "" | |
| 502 | 538 | "To work around the fact that ``PyInit_modulename`` does not take a *spec* " | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ msgid "" | |||
| 11 | 11 | msgstr "" | |
| 12 | 12 | "Project-Id-Version: Python 3.15\n" | |
| 13 | 13 | "Report-Msgid-Bugs-To: \n" | |
| 14 | - "POT-Creation-Date: 2026-10-01 19:07+0000\n" | ||
| 14 | + "POT-Creation-Date: 2026-10-21 18:18+0000\n" | ||
| 15 | 15 | "PO-Revision-Date: 2025-09-16 00:00+0000\n" | |
| 16 | 16 | "Last-Translator: python-doc bot, 2025\n" | |
| 17 | 17 | "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" | |
@@ -114,6 +114,31 @@ msgstr "" | |||
| 114 | 114 | "ます。 *n* が ``0`` より小さければ、長さに関わらず 1 行だけを 読み出します" | |
| 115 | 115 | "が、すぐにファイルの終端に到達した場合には :exc:`EOFError` を送出します。" | |
| 116 | 116 | ||
| 117 | + msgid "" | ||
| 118 | + "Read a line from the C stream *stream* into the buffer *buf*, like the C " | ||
| 119 | + "standard library function :c:func:`!fgets`, but treating all of ``\\n``, " | ||
| 120 | + "``\\r`` and ``\\r\\n`` as line endings (see :term:`universal newlines`). Any " | ||
| 121 | + "``\\r`` or ``\\r\\n`` read from the stream is stored in *buf* as a single " | ||
| 122 | + "``\\n``." | ||
| 123 | + msgstr "" | ||
| 124 | + | ||
| 125 | + msgid "" | ||
| 126 | + "At most ``n - 1`` characters are stored in *buf*; reading stops after a " | ||
| 127 | + "newline has been stored or when the end of the file is reached. The result " | ||
| 128 | + "is always null-terminated. *stream* should be opened in binary mode, so that " | ||
| 129 | + "the C library does not perform its own newline translation." | ||
| 130 | + msgstr "" | ||
| 131 | + | ||
| 132 | + msgid "" | ||
| 133 | + "Return *buf* on success. Return ``NULL`` if no characters could be read, " | ||
| 134 | + "because *stream* is at end of file, a read error occurred, or *n* is less " | ||
| 135 | + "than 2. Like :c:func:`!fgets`, this function does not distinguish between " | ||
| 136 | + "end of file and a read error, and it does not set an exception." | ||
| 137 | + msgstr "" | ||
| 138 | + | ||
| 139 | + msgid "*fobj* exists only for backward compatibility and must be ``NULL``." | ||
| 140 | + msgstr "" | ||
| 141 | + | ||
| 117 | 142 | #: ../../c-api/file.rst:65 | |
| 118 | 143 | msgid "" | |
| 119 | 144 | "Overrides the normal behavior of :func:`io.open_code` to pass its parameter " | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ msgid "" | |||
| 11 | 11 | msgstr "" | |
| 12 | 12 | "Project-Id-Version: Python 3.15\n" | |
| 13 | 13 | "Report-Msgid-Bugs-To: \n" | |
| 14 | - "POT-Creation-Date: 2026-09-29 18:58+0000\n" | ||
| 14 | + "POT-Creation-Date: 2026-10-21 18:18+0000\n" | ||
| 15 | 15 | "PO-Revision-Date: 2025-09-16 00:00+0000\n" | |
| 16 | 16 | "Last-Translator: python-doc bot, 2025\n" | |
| 17 | 17 | "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" | |
@@ -270,14 +270,13 @@ msgstr "" | |||
| 270 | 270 | msgid "Pack functions" | |
| 271 | 271 | msgstr "" | |
| 272 | 272 | ||
| 273 | - #: ../../c-api/float.rst:214 | ||
| 274 | 273 | msgid "" | |
| 275 | 274 | "The pack routines write 2, 4 or 8 bytes, starting at *p*. *le* is an :c:expr:" | |
| 276 | 275 | "`int` argument, non-zero if you want the bytes string in little-endian " | |
| 277 | 276 | "format (exponent last, at ``p+1``, ``p+3``, or ``p+6`` and ``p+7``), zero if " | |
| 278 | - "you want big-endian format (exponent first, at *p*). Use the :c:macro:`!" | ||
| 279 | - "PY_LITTLE_ENDIAN` constant to select the native endian: it is equal to ``0`` " | ||
| 280 | - "on big endian processor, or ``1`` on little endian processor." | ||
| 277 | + "you want big-endian format (exponent first, at *p*). Use the :c:macro:" | ||
| 278 | + "`PY_LITTLE_ENDIAN` constant to select the native endian: it is equal to " | ||
| 279 | + "``0`` on big endian processor, or ``1`` on little endian processor." | ||
| 281 | 280 | msgstr "" | |
| 282 | 281 | ||
| 283 | 282 | #: ../../c-api/float.rst:221 | |
@@ -302,12 +301,11 @@ msgstr "" | |||
| 302 | 301 | msgid "Unpack functions" | |
| 303 | 302 | msgstr "" | |
| 304 | 303 | ||
| 305 | - #: ../../c-api/float.rst:240 | ||
| 306 | 304 | msgid "" | |
| 307 | 305 | "The unpack routines read 2, 4 or 8 bytes, starting at *p*. *le* is an :c:" | |
| 308 | 306 | "expr:`int` argument, non-zero if the bytes string is in little-endian format " | |
| 309 | 307 | "(exponent last, at ``p+1``, ``p+3`` or ``p+6`` and ``p+7``), zero if big-" | |
| 310 | - "endian (exponent first, at *p*). Use the :c:macro:`!PY_LITTLE_ENDIAN` " | ||
| 308 | + "endian (exponent first, at *p*). Use the :c:macro:`PY_LITTLE_ENDIAN` " | ||
| 311 | 309 | "constant to select the native endian: it is equal to ``0`` on big endian " | |
| 312 | 310 | "processor, or ``1`` on little endian processor." | |
| 313 | 311 | msgstr "" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ msgid "" | |||
| 11 | 11 | msgstr "" | |
| 12 | 12 | "Project-Id-Version: Python 3.15\n" | |
| 13 | 13 | "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" | ||
| 15 | 15 | "PO-Revision-Date: 2025-09-16 00:00+0000\n" | |
| 16 | 16 | "Last-Translator: python-doc bot, 2025\n" | |
| 17 | 17 | "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" | |
@@ -347,26 +347,20 @@ msgstr "" | |||
| 347 | 347 | "エンコードされた文字列の代わりに、 Unicode オブジェクトを使用する点が異なりま" | |
| 348 | 348 | "す。" | |
| 349 | 349 | ||
| 350 | - #: ../../c-api/import.rst:257 | ||
| 351 | 350 | msgid "" | |
| 352 | 351 | "This is the structure type definition for frozen module descriptors, as " | |
| 353 | 352 | "generated by the :program:`freeze` utility (see :file:`Tools/freeze/` in the " | |
| 354 | 353 | "Python source distribution). Its definition, found in :file:`Include/import." | |
| 355 | - "h`, is::" | ||
| 354 | + "h`, is:" | ||
| 356 | 355 | msgstr "" | |
| 357 | - ":program:`freeze` ユーティリティが生成するようなフリーズ化モジュールデスクリ" | ||
| 358 | - "プタの構造体型定義です。 (Python ソース配布物の :file:`Tools/freeze/` を参照" | ||
| 359 | - "してください) この構造体の定義は :file:`Include/import.h` にあり、以下のよう" | ||
| 360 | - "になっています::" | ||
| 361 | 356 | ||
| 362 | - #: ../../c-api/import.rst:262 | ||
| 363 | 357 | msgid "" | |
| 364 | 358 | "struct _frozen {\n" | |
| 365 | - " const char *name;\n" | ||
| 359 | + " const char *name; /* ASCII encoded string */\n" | ||
| 366 | 360 | " const unsigned char *code;\n" | |
| 367 | 361 | " int size;\n" | |
| 368 | - " bool is_package;\n" | ||
| 369 | - "};" | ||
| 362 | + " int is_package;\n" | ||
| 363 | + "};\n" | ||
| 370 | 364 | msgstr "" | |
| 371 | 365 | ||
| 372 | 366 | #: ../../c-api/import.rst:269 | |
@@ -528,10 +522,9 @@ msgstr "" | |||
| 528 | 522 | msgid "*spec* must be a :class:`~importlib.machinery.ModuleSpec` object." | |
| 529 | 523 | msgstr "" | |
| 530 | 524 | ||
| 531 | - #: ../../c-api/import.rst:411 | ||
| 532 | 525 | msgid "" | |
| 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`." | ||
| 535 | 528 | msgstr "" | |
| 536 | 529 | ||
| 537 | 530 | #: ../../c-api/import.rst:414 | |
@@ -542,15 +535,40 @@ msgid "" | |||
| 542 | 535 | "exec_module` method.)" | |
| 543 | 536 | msgstr "" | |
| 544 | 537 | ||
| 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 | + | ||
| 546 | 542 | msgid "" | |
| 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:" | ||
| 550 | 547 | msgstr "" | |
| 551 | 548 | ||
| 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__`." | ||
| 554 | 572 | msgstr "" | |
| 555 | 573 | ||
| 556 | 574 | #: ../../c-api/import.rst:11 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ msgid "" | |||
| 13 | 13 | msgstr "" | |
| 14 | 14 | "Project-Id-Version: Python 3.15\n" | |
| 15 | 15 | "Report-Msgid-Bugs-To: \n" | |
| 16 | - "POT-Creation-Date: 2026-09-29 18:58+0000\n" | ||
| 16 | + "POT-Creation-Date: 2026-10-21 18:18+0000\n" | ||
| 17 | 17 | "PO-Revision-Date: 2025-09-16 00:00+0000\n" | |
| 18 | 18 | "Last-Translator: Cheesecake, 2025\n" | |
| 19 | 19 | "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" | |
@@ -2212,6 +2212,11 @@ msgstr "" | |||
| 2212 | 2212 | msgid "See also the :c:member:`~PyConfig.filesystem_errors` member." | |
| 2213 | 2213 | msgstr "" | |
| 2214 | 2214 | ||
| 2215 | + msgid "" | ||
| 2216 | + "See also :c:func:`PyUnicode_EncodeFSDefault` and :ref:`related functions " | ||
| 2217 | + "<capi-filesystem-encoding>` for encoding paths at runtime." | ||
| 2218 | + msgstr "" | ||
| 2219 | + | ||
| 2215 | 2220 | #: ../../c-api/init_config.rst:1435 | |
| 2216 | 2221 | msgid "" | |
| 2217 | 2222 | ":term:`Filesystem error handler <filesystem encoding and error handler>`: :" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,15 +6,16 @@ | |||
| 6 | 6 | # Translators: | |
| 7 | 7 | # b785ccb154ea7c5e4722f287fb17d327_f3b4082, 2026 | |
| 8 | 8 | # python-doc bot, 2026 | |
| 9 | + # Rafael Fontenelle <rffontenelle@gmail.com>, 2026 | ||
| 9 | 10 | # | |
| 10 | 11 | #, fuzzy | |
| 11 | 12 | msgid "" | |
| 12 | 13 | msgstr "" | |
| 13 | 14 | "Project-Id-Version: Python 3.15\n" | |
| 14 | 15 | "Report-Msgid-Bugs-To: \n" | |
| 15 | - "POT-Creation-Date: 2026-10-01 19:07+0000\n" | ||
| 16 | + "POT-Creation-Date: 2026-10-21 18:18+0000\n" | ||
| 16 | 17 | "PO-Revision-Date: 2026-02-25 14:46+0000\n" | |
| 17 | - "Last-Translator: python-doc bot, 2026\n" | ||
| 18 | + "Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2026\n" | ||
| 18 | 19 | "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" | |
| 19 | 20 | "ja/)\n" | |
| 20 | 21 | "MIME-Version: 1.0\n" | |
@@ -821,6 +822,48 @@ msgid "" | |||
| 821 | 822 | "first initialized)." | |
| 822 | 823 | msgstr "" | |
| 823 | 824 | ||
| 825 | + msgid "" | ||
| 826 | + "The main program for a \"frozen\" Python program (an executable that embeds " | ||
| 827 | + "the interpreter together with the bytecode of the program's modules, as " | ||
| 828 | + "produced by the :program:`freeze` utility; see :source:`Tools/freeze`)." | ||
| 829 | + msgstr "" | ||
| 830 | + | ||
| 831 | + msgid "" | ||
| 832 | + "This function initializes the interpreter, imports the frozen module named " | ||
| 833 | + "``__main__``, and finalizes the interpreter. The frozen modules must have " | ||
| 834 | + "been registered in :c:var:`PyImport_FrozenModules` before calling this " | ||
| 835 | + "function; it is a fatal error if ``__main__`` is not among them." | ||
| 836 | + msgstr "" | ||
| 837 | + | ||
| 838 | + msgid "" | ||
| 839 | + "*argc* and *argv* are byte strings like the arguments of a C program's " | ||
| 840 | + "``main`` function, and are passed to the interpreter with :c:func:" | ||
| 841 | + "`PyConfig_SetBytesArgv`. Unlike :c:func:`Py_Main`, the arguments are not " | ||
| 842 | + "parsed as Python command line options (:c:member:`PyConfig.parse_argv` is " | ||
| 843 | + "``0``), so all of them are made available to the program in :data:`sys." | ||
| 844 | + "argv`. Apart from that, the interpreter uses the :ref:`Python Configuration " | ||
| 845 | + "<init-python-config>`, so environment variables such as :envvar:`PYTHONPATH` " | ||
| 846 | + "are honored. Warnings about the path configuration (:c:member:`PyConfig." | ||
| 847 | + "pathconfig_warnings`) are suppressed. If :envvar:`PYTHONINSPECT` is set and " | ||
| 848 | + "standard input is a terminal, an interactive prompt is run after " | ||
| 849 | + "``__main__`` has finished, as with the :option:`-i` option." | ||
| 850 | + msgstr "" | ||
| 851 | + | ||
| 852 | + msgid "" | ||
| 853 | + "Return ``0`` if ``__main__`` ran without an unhandled exception, ``1`` " | ||
| 854 | + "otherwise, and ``120`` if finalizing the interpreter failed (see :c:func:" | ||
| 855 | + "`Py_FinalizeEx`). An unhandled :exc:`SystemExit` terminates the process. If " | ||
| 856 | + "the interpreter cannot be initialized, the process exits via :c:func:" | ||
| 857 | + "`Py_ExitStatusException`." | ||
| 858 | + msgstr "" | ||
| 859 | + | ||
| 860 | + msgid "" | ||
| 861 | + "On Windows, this function is not exported by the Python DLL. The :program:" | ||
| 862 | + "`freeze` utility compiles :file:`Python/frozenmain.c` into the frozen " | ||
| 863 | + "program instead, together with the Windows-specific hooks that the function " | ||
| 864 | + "requires." | ||
| 865 | + msgstr "" | ||
| 866 | + | ||
| 824 | 867 | #: ../../c-api/interp-lifecycle.rst:541 | |
| 825 | 868 | msgid "Executes the main module in a fully configured CPython runtime." | |
| 826 | 869 | msgstr "" | |
@@ -1409,6 +1452,9 @@ msgstr "パス" | |||
| 1409 | 1452 | msgid "Py_FinalizeEx (C function)" | |
| 1410 | 1453 | msgstr "" | |
| 1411 | 1454 | ||
| 1455 | + msgid "freeze utility" | ||
| 1456 | + msgstr "凍結ユーティリティ" | ||
| 1457 | + | ||
| 1412 | 1458 | #: ../../c-api/interp-lifecycle.rst:785 | |
| 1413 | 1459 | msgid "Py_Initialize()" | |
| 1414 | 1460 | msgstr "Py_Initialize()" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments