|
5 | 5 | # |
6 | 6 | # Translators: |
7 | 7 | # Hengky Kurniawan, 2025 |
| 8 | +# python-doc bot, 2026 |
8 | 9 | # |
9 | 10 | #, fuzzy |
10 | 11 | msgid "" |
11 | 12 | msgstr "" |
12 | 13 | "Project-Id-Version: Python 3.15\n" |
13 | 14 | "Report-Msgid-Bugs-To: \n" |
14 | | -"POT-Creation-Date: 2026-06-23 16:23+0000\n" |
| 15 | +"POT-Creation-Date: 2026-06-25 16:18+0000\n" |
15 | 16 | "PO-Revision-Date: 2025-09-16 00:00+0000\n" |
16 | | -"Last-Translator: Hengky Kurniawan, 2025\n" |
| 17 | +"Last-Translator: python-doc bot, 2026\n" |
17 | 18 | "Language-Team: Indonesian (https://app.transifex.com/python-doc/teams/5390/" |
18 | 19 | "id/)\n" |
19 | 20 | "MIME-Version: 1.0\n" |
@@ -141,10 +142,44 @@ msgid "" |
141 | 142 | msgstr "" |
142 | 143 |
|
143 | 144 | msgid "" |
144 | | -"The hook should be kept short -- ideally, one line as above. If you do need " |
145 | | -"to use Python C API in this function, it is recommended to call " |
146 | | -"``PyABIInfo_Check(&abi_info, \"modulename\")`` first to raise an exception, " |
147 | | -"rather than crash, in common cases of ABI mismatch." |
| 145 | +"The hook should be kept short. If it does more than ``return`` a static " |
| 146 | +"array, several caveats apply:" |
| 147 | +msgstr "" |
| 148 | + |
| 149 | +msgid "" |
| 150 | +"If you need to use any Python C API, it is recommended to call :c:func:" |
| 151 | +"`PyABIInfo_Check` first to raise an exception, rather than crash, in common " |
| 152 | +"cases of ABI mismatch." |
| 153 | +msgstr "" |
| 154 | + |
| 155 | +msgid "" |
| 156 | +"Code in the export hook must never rely on the :term:`GIL`: :term:`free-" |
| 157 | +"threaded builds <free-threaded build>` of Python can only check the :c:macro:" |
| 158 | +"`Py_mod_gil` slot (or the lack of it) after the hook returns," |
| 159 | +msgstr "" |
| 160 | + |
| 161 | +msgid "" |
| 162 | +"Similarly, the hook may be called in any subinterpreter, since the :c:macro:" |
| 163 | +"`Py_mod_multiple_interpreters` slot (or lack of it) is only checked after " |
| 164 | +"the hook returns." |
| 165 | +msgstr "" |
| 166 | + |
| 167 | +msgid "For example::" |
| 168 | +msgstr "Sebagai contoh::" |
| 169 | + |
| 170 | +msgid "" |
| 171 | +"PyMODEXPORT_FUNC\n" |
| 172 | +"PyModExport_modulename(void)\n" |
| 173 | +"{\n" |
| 174 | +" if (PyABIInfo_Check(&abi_info, \"modulename\") < 0) {\n" |
| 175 | +" /* ABI mismatch. It's not safe to examine the raised exception. */\n" |
| 176 | +" return NULL;\n" |
| 177 | +" }\n" |
| 178 | +"\n" |
| 179 | +" /* use Python API (as little as possible); don't rely on GIL */\n" |
| 180 | +"\n" |
| 181 | +" return modulename_slots;\n" |
| 182 | +"}" |
148 | 183 | msgstr "" |
149 | 184 |
|
150 | 185 | msgid "" |
|
0 commit comments