@@ -15,7 +15,7 @@ msgid ""
15
15
msgstr ""
16
16
"Project-Id-Version : Python 3.12\n "
17
17
"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 "
19
19
"PO-Revision-Date : 2021-06-28 00:49+0000\n "
20
20
"
Last-Translator :
shirou - しろう <[email protected] >, 2023\n "
21
21
"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -701,19 +701,19 @@ msgid ""
701
701
"following fields:"
702
702
msgstr ""
703
703
704
- #: ../../c-api/memory.rst:411 ../../c-api/memory.rst:657
704
+ #: ../../c-api/memory.rst:411 ../../c-api/memory.rst:658
705
705
msgid "Field"
706
706
msgstr "フィールド"
707
707
708
- #: ../../c-api/memory.rst:411 ../../c-api/memory.rst:657
708
+ #: ../../c-api/memory.rst:411 ../../c-api/memory.rst:658
709
709
msgid "Meaning"
710
710
msgstr "意味"
711
711
712
- #: ../../c-api/memory.rst:413 ../../c-api/memory.rst:659
712
+ #: ../../c-api/memory.rst:413 ../../c-api/memory.rst:660
713
713
msgid "``void *ctx``"
714
714
msgstr "``void *ctx``"
715
715
716
- #: ../../c-api/memory.rst:413 ../../c-api/memory.rst:659
716
+ #: ../../c-api/memory.rst:413 ../../c-api/memory.rst:660
717
717
msgid "user context passed as first argument"
718
718
msgstr "第一引数として渡されるユーザコンテキスト"
719
719
@@ -1087,114 +1087,109 @@ msgstr "pymalloc アロケータ"
1087
1087
msgid ""
1088
1088
"Python has a *pymalloc* allocator optimized for small objects (smaller or "
1089
1089
"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."
1093
1093
msgstr ""
1094
- "Python には、寿命の短いの小さな(512バイト以下の)オブジェクトに最適化された "
1095
- "*pymalloc* アロケータがあります。 *pymalloc* は、256 KiBの固定サイズの \" ア"
1096
- "リーナ\" と呼びれるメモリマッピングを使います。512バイトよりも大きな割り当て"
1097
- "では、 :c:func:`PyMem_RawMalloc` と :c:func:`PyMem_RawRealloc` にフォールバッ"
1098
- "クします。"
1099
1094
1100
- #: ../../c-api/memory.rst:632
1095
+ #: ../../c-api/memory.rst:633
1101
1096
msgid ""
1102
1097
"*pymalloc* is the :ref:`default allocator <default-memory-allocators>` of "
1103
1098
"the :c:macro:`PYMEM_DOMAIN_MEM` (ex: :c:func:`PyMem_Malloc`) and :c:macro:"
1104
1099
"`PYMEM_DOMAIN_OBJ` (ex: :c:func:`PyObject_Malloc`) domains."
1105
1100
msgstr ""
1106
1101
1107
- #: ../../c-api/memory.rst:636
1102
+ #: ../../c-api/memory.rst:637
1108
1103
msgid "The arena allocator uses the following functions:"
1109
1104
msgstr "アリーナアロケータは、次の関数を使います:"
1110
1105
1111
- #: ../../c-api/memory.rst:638
1106
+ #: ../../c-api/memory.rst:639
1112
1107
msgid ":c:func:`!VirtualAlloc` and :c:func:`!VirtualFree` on Windows,"
1113
1108
msgstr ""
1114
1109
1115
- #: ../../c-api/memory.rst:639
1110
+ #: ../../c-api/memory.rst:640
1116
1111
msgid ":c:func:`!mmap` and :c:func:`!munmap` if available,"
1117
1112
msgstr ""
1118
1113
1119
- #: ../../c-api/memory.rst:640
1114
+ #: ../../c-api/memory.rst:641
1120
1115
msgid ":c:func:`malloc` and :c:func:`free` otherwise."
1121
1116
msgstr "それ以外の場合は :c:func:`malloc` と :c:func:`free`。"
1122
1117
1123
- #: ../../c-api/memory.rst:642
1118
+ #: ../../c-api/memory.rst:643
1124
1119
msgid ""
1125
1120
"This allocator is disabled if Python is configured with the :option:`--"
1126
1121
"without-pymalloc` option. It can also be disabled at runtime using the :"
1127
1122
"envvar:`PYTHONMALLOC` environment variable (ex: ``PYTHONMALLOC=malloc``)."
1128
1123
msgstr ""
1129
1124
1130
- #: ../../c-api/memory.rst:647
1125
+ #: ../../c-api/memory.rst:648
1131
1126
msgid "Customize pymalloc Arena Allocator"
1132
1127
msgstr "pymalloc アリーナアロケータのカスタマイズ"
1133
1128
1134
- #: ../../c-api/memory.rst:653
1129
+ #: ../../c-api/memory.rst:654
1135
1130
msgid ""
1136
1131
"Structure used to describe an arena allocator. The structure has three "
1137
1132
"fields:"
1138
1133
msgstr ""
1139
1134
"アリーナアロケータを記述するための構造体です。3つのフィールドを持ちます:"
1140
1135
1141
- #: ../../c-api/memory.rst:661
1136
+ #: ../../c-api/memory.rst:662
1142
1137
msgid "``void* alloc(void *ctx, size_t size)``"
1143
1138
msgstr "``void* alloc(void *ctx, size_t size)``"
1144
1139
1145
- #: ../../c-api/memory.rst:661
1140
+ #: ../../c-api/memory.rst:662
1146
1141
msgid "allocate an arena of size bytes"
1147
1142
msgstr "size バイトのアリーナを割り当てます"
1148
1143
1149
- #: ../../c-api/memory.rst:663
1144
+ #: ../../c-api/memory.rst:664
1150
1145
msgid "``void free(void *ctx, void *ptr, size_t size)``"
1151
1146
msgstr ""
1152
1147
1153
- #: ../../c-api/memory.rst:663
1148
+ #: ../../c-api/memory.rst:664
1154
1149
msgid "free an arena"
1155
1150
msgstr "アリーナを解放します"
1156
1151
1157
- #: ../../c-api/memory.rst:668
1152
+ #: ../../c-api/memory.rst:669
1158
1153
msgid "Get the arena allocator."
1159
1154
msgstr "アリーナアロケータを取得します。"
1160
1155
1161
- #: ../../c-api/memory.rst:672
1156
+ #: ../../c-api/memory.rst:673
1162
1157
msgid "Set the arena allocator."
1163
1158
msgstr "アリーナアロケータを設定します。"
1164
1159
1165
- #: ../../c-api/memory.rst:676
1160
+ #: ../../c-api/memory.rst:677
1166
1161
msgid "tracemalloc C API"
1167
1162
msgstr "tracemalloc C API"
1168
1163
1169
- #: ../../c-api/memory.rst:682
1164
+ #: ../../c-api/memory.rst:683
1170
1165
msgid "Track an allocated memory block in the :mod:`tracemalloc` module."
1171
1166
msgstr ""
1172
1167
1173
- #: ../../c-api/memory.rst:684
1168
+ #: ../../c-api/memory.rst:685
1174
1169
msgid ""
1175
1170
"Return ``0`` on success, return ``-1`` on error (failed to allocate memory "
1176
1171
"to store the trace). Return ``-2`` if tracemalloc is disabled."
1177
1172
msgstr ""
1178
1173
1179
- #: ../../c-api/memory.rst:687
1174
+ #: ../../c-api/memory.rst:688
1180
1175
msgid "If memory block is already tracked, update the existing trace."
1181
1176
msgstr ""
1182
1177
1183
- #: ../../c-api/memory.rst:691
1178
+ #: ../../c-api/memory.rst:692
1184
1179
msgid ""
1185
1180
"Untrack an allocated memory block in the :mod:`tracemalloc` module. Do "
1186
1181
"nothing if the block was not tracked."
1187
1182
msgstr ""
1188
1183
1189
- #: ../../c-api/memory.rst:694
1184
+ #: ../../c-api/memory.rst:695
1190
1185
msgid "Return ``-2`` if tracemalloc is disabled, otherwise return ``0``."
1191
1186
msgstr ""
1192
1187
1193
- #: ../../c-api/memory.rst:700
1188
+ #: ../../c-api/memory.rst:701
1194
1189
msgid "Examples"
1195
1190
msgstr "使用例"
1196
1191
1197
- #: ../../c-api/memory.rst:702
1192
+ #: ../../c-api/memory.rst:703
1198
1193
msgid ""
1199
1194
"Here is the example from section :ref:`memoryoverview`, rewritten so that "
1200
1195
"the I/O buffer is allocated from the Python heap by using the first function "
@@ -1203,11 +1198,11 @@ msgstr ""
1203
1198
"最初に述べた関数セットを使って、 :ref:`memoryoverview` 節の例を Python ヒープ"
1204
1199
"に I/O バッファをメモリ確保するように書き換えたものを以下に示します::"
1205
1200
1206
- #: ../../c-api/memory.rst:715
1201
+ #: ../../c-api/memory.rst:716
1207
1202
msgid "The same code using the type-oriented function set::"
1208
1203
msgstr "同じコードを型対象の関数セットで書いたものを以下に示します::"
1209
1204
1210
- #: ../../c-api/memory.rst:727
1205
+ #: ../../c-api/memory.rst:728
1211
1206
msgid ""
1212
1207
"Note that in the two examples above, the buffer is always manipulated via "
1213
1208
"functions belonging to the same set. Indeed, it is required to use the same "
@@ -1223,14 +1218,14 @@ msgstr ""
1223
1218
"操作する別のメモリ操作関数を混用しているので *致命的 (Fatal)* とラベルづけを"
1224
1219
"しています。 ::"
1225
1220
1226
- #: ../../c-api/memory.rst:742
1221
+ #: ../../c-api/memory.rst:743
1227
1222
msgid ""
1228
1223
"In addition to the functions aimed at handling raw memory blocks from the "
1229
1224
"Python heap, objects in Python are allocated and released with :c:macro:"
1230
1225
"`PyObject_New`, :c:macro:`PyObject_NewVar` and :c:func:`PyObject_Del`."
1231
1226
msgstr ""
1232
1227
1233
- #: ../../c-api/memory.rst:746
1228
+ #: ../../c-api/memory.rst:747
1234
1229
msgid ""
1235
1230
"These will be explained in the next chapter on defining and implementing new "
1236
1231
"object types in C."
0 commit comments