@@ -15,7 +15,7 @@ msgid ""
1515msgstr ""
1616"Project-Id-Version : Python 3.12\n "
1717"Report-Msgid-Bugs-To : \n "
18- "POT-Creation-Date : 2023-09-29 14:12 +0000\n "
18+ "POT-Creation-Date : 2023-10-20 14:13 +0000\n "
1919"PO-Revision-Date : 2021-06-28 00:49+0000\n "
2020"Last-Translator : shirou - しろう <shirou.faw@gmail.com>, 2023\n "
2121"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -701,19 +701,19 @@ msgid ""
701701"following fields:"
702702msgstr ""
703703
704- #: ../../c-api/memory.rst:411 ../../c-api/memory.rst:657
704+ #: ../../c-api/memory.rst:411 ../../c-api/memory.rst:658
705705msgid "Field"
706706msgstr "フィールド"
707707
708- #: ../../c-api/memory.rst:411 ../../c-api/memory.rst:657
708+ #: ../../c-api/memory.rst:411 ../../c-api/memory.rst:658
709709msgid "Meaning"
710710msgstr "意味"
711711
712- #: ../../c-api/memory.rst:413 ../../c-api/memory.rst:659
712+ #: ../../c-api/memory.rst:413 ../../c-api/memory.rst:660
713713msgid "``void *ctx``"
714714msgstr "``void *ctx``"
715715
716- #: ../../c-api/memory.rst:413 ../../c-api/memory.rst:659
716+ #: ../../c-api/memory.rst:413 ../../c-api/memory.rst:660
717717msgid "user context passed as first argument"
718718msgstr "第一引数として渡されるユーザコンテキスト"
719719
@@ -1087,114 +1087,109 @@ msgstr "pymalloc アロケータ"
10871087msgid ""
10881088"Python has a *pymalloc* allocator optimized for small objects (smaller or "
10891089"equal to 512 bytes) with a short lifetime. It uses memory mappings called "
1090- "\" arenas\" with a fixed size of 256 KiB. It falls back to :c:func: "
1091- "`PyMem_RawMalloc` and :c:func:`PyMem_RawRealloc` for allocations larger than "
1092- "512 bytes."
1090+ "\" arenas\" with a fixed size of either 256 KiB on 32-bit platforms or 1 MiB "
1091+ "on 64-bit platforms. It falls back to :c:func:`PyMem_RawMalloc` and :c:func: "
1092+ "`PyMem_RawRealloc` for allocations larger than 512 bytes."
10931093msgstr ""
1094- "Python には、寿命の短いの小さな(512バイト以下の)オブジェクトに最適化された "
1095- "*pymalloc* アロケータがあります。 *pymalloc* は、256 KiBの固定サイズの \" ア"
1096- "リーナ\" と呼びれるメモリマッピングを使います。512バイトよりも大きな割り当て"
1097- "では、 :c:func:`PyMem_RawMalloc` と :c:func:`PyMem_RawRealloc` にフォールバッ"
1098- "クします。"
10991094
1100- #: ../../c-api/memory.rst:632
1095+ #: ../../c-api/memory.rst:633
11011096msgid ""
11021097"*pymalloc* is the :ref:`default allocator <default-memory-allocators>` of "
11031098"the :c:macro:`PYMEM_DOMAIN_MEM` (ex: :c:func:`PyMem_Malloc`) and :c:macro:"
11041099"`PYMEM_DOMAIN_OBJ` (ex: :c:func:`PyObject_Malloc`) domains."
11051100msgstr ""
11061101
1107- #: ../../c-api/memory.rst:636
1102+ #: ../../c-api/memory.rst:637
11081103msgid "The arena allocator uses the following functions:"
11091104msgstr "アリーナアロケータは、次の関数を使います:"
11101105
1111- #: ../../c-api/memory.rst:638
1106+ #: ../../c-api/memory.rst:639
11121107msgid ":c:func:`!VirtualAlloc` and :c:func:`!VirtualFree` on Windows,"
11131108msgstr ""
11141109
1115- #: ../../c-api/memory.rst:639
1110+ #: ../../c-api/memory.rst:640
11161111msgid ":c:func:`!mmap` and :c:func:`!munmap` if available,"
11171112msgstr ""
11181113
1119- #: ../../c-api/memory.rst:640
1114+ #: ../../c-api/memory.rst:641
11201115msgid ":c:func:`malloc` and :c:func:`free` otherwise."
11211116msgstr "それ以外の場合は :c:func:`malloc` と :c:func:`free`。"
11221117
1123- #: ../../c-api/memory.rst:642
1118+ #: ../../c-api/memory.rst:643
11241119msgid ""
11251120"This allocator is disabled if Python is configured with the :option:`--"
11261121"without-pymalloc` option. It can also be disabled at runtime using the :"
11271122"envvar:`PYTHONMALLOC` environment variable (ex: ``PYTHONMALLOC=malloc``)."
11281123msgstr ""
11291124
1130- #: ../../c-api/memory.rst:647
1125+ #: ../../c-api/memory.rst:648
11311126msgid "Customize pymalloc Arena Allocator"
11321127msgstr "pymalloc アリーナアロケータのカスタマイズ"
11331128
1134- #: ../../c-api/memory.rst:653
1129+ #: ../../c-api/memory.rst:654
11351130msgid ""
11361131"Structure used to describe an arena allocator. The structure has three "
11371132"fields:"
11381133msgstr ""
11391134"アリーナアロケータを記述するための構造体です。3つのフィールドを持ちます:"
11401135
1141- #: ../../c-api/memory.rst:661
1136+ #: ../../c-api/memory.rst:662
11421137msgid "``void* alloc(void *ctx, size_t size)``"
11431138msgstr "``void* alloc(void *ctx, size_t size)``"
11441139
1145- #: ../../c-api/memory.rst:661
1140+ #: ../../c-api/memory.rst:662
11461141msgid "allocate an arena of size bytes"
11471142msgstr "size バイトのアリーナを割り当てます"
11481143
1149- #: ../../c-api/memory.rst:663
1144+ #: ../../c-api/memory.rst:664
11501145msgid "``void free(void *ctx, void *ptr, size_t size)``"
11511146msgstr ""
11521147
1153- #: ../../c-api/memory.rst:663
1148+ #: ../../c-api/memory.rst:664
11541149msgid "free an arena"
11551150msgstr "アリーナを解放します"
11561151
1157- #: ../../c-api/memory.rst:668
1152+ #: ../../c-api/memory.rst:669
11581153msgid "Get the arena allocator."
11591154msgstr "アリーナアロケータを取得します。"
11601155
1161- #: ../../c-api/memory.rst:672
1156+ #: ../../c-api/memory.rst:673
11621157msgid "Set the arena allocator."
11631158msgstr "アリーナアロケータを設定します。"
11641159
1165- #: ../../c-api/memory.rst:676
1160+ #: ../../c-api/memory.rst:677
11661161msgid "tracemalloc C API"
11671162msgstr "tracemalloc C API"
11681163
1169- #: ../../c-api/memory.rst:682
1164+ #: ../../c-api/memory.rst:683
11701165msgid "Track an allocated memory block in the :mod:`tracemalloc` module."
11711166msgstr ""
11721167
1173- #: ../../c-api/memory.rst:684
1168+ #: ../../c-api/memory.rst:685
11741169msgid ""
11751170"Return ``0`` on success, return ``-1`` on error (failed to allocate memory "
11761171"to store the trace). Return ``-2`` if tracemalloc is disabled."
11771172msgstr ""
11781173
1179- #: ../../c-api/memory.rst:687
1174+ #: ../../c-api/memory.rst:688
11801175msgid "If memory block is already tracked, update the existing trace."
11811176msgstr ""
11821177
1183- #: ../../c-api/memory.rst:691
1178+ #: ../../c-api/memory.rst:692
11841179msgid ""
11851180"Untrack an allocated memory block in the :mod:`tracemalloc` module. Do "
11861181"nothing if the block was not tracked."
11871182msgstr ""
11881183
1189- #: ../../c-api/memory.rst:694
1184+ #: ../../c-api/memory.rst:695
11901185msgid "Return ``-2`` if tracemalloc is disabled, otherwise return ``0``."
11911186msgstr ""
11921187
1193- #: ../../c-api/memory.rst:700
1188+ #: ../../c-api/memory.rst:701
11941189msgid "Examples"
11951190msgstr "使用例"
11961191
1197- #: ../../c-api/memory.rst:702
1192+ #: ../../c-api/memory.rst:703
11981193msgid ""
11991194"Here is the example from section :ref:`memoryoverview`, rewritten so that "
12001195"the I/O buffer is allocated from the Python heap by using the first function "
@@ -1203,11 +1198,11 @@ msgstr ""
12031198"最初に述べた関数セットを使って、 :ref:`memoryoverview` 節の例を Python ヒープ"
12041199"に I/O バッファをメモリ確保するように書き換えたものを以下に示します::"
12051200
1206- #: ../../c-api/memory.rst:715
1201+ #: ../../c-api/memory.rst:716
12071202msgid "The same code using the type-oriented function set::"
12081203msgstr "同じコードを型対象の関数セットで書いたものを以下に示します::"
12091204
1210- #: ../../c-api/memory.rst:727
1205+ #: ../../c-api/memory.rst:728
12111206msgid ""
12121207"Note that in the two examples above, the buffer is always manipulated via "
12131208"functions belonging to the same set. Indeed, it is required to use the same "
@@ -1223,14 +1218,14 @@ msgstr ""
12231218"操作する別のメモリ操作関数を混用しているので *致命的 (Fatal)* とラベルづけを"
12241219"しています。 ::"
12251220
1226- #: ../../c-api/memory.rst:742
1221+ #: ../../c-api/memory.rst:743
12271222msgid ""
12281223"In addition to the functions aimed at handling raw memory blocks from the "
12291224"Python heap, objects in Python are allocated and released with :c:macro:"
12301225"`PyObject_New`, :c:macro:`PyObject_NewVar` and :c:func:`PyObject_Del`."
12311226msgstr ""
12321227
1233- #: ../../c-api/memory.rst:746
1228+ #: ../../c-api/memory.rst:747
12341229msgid ""
12351230"These will be explained in the next chapter on defining and implementing new "
12361231"object types in C."
0 commit comments