|
5 | 5 | # |
6 | 6 | # Translators: |
7 | 7 | # Blessing Oluronbi, 2026 |
| 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-21 15:47+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: Blessing Oluronbi, 2026\n" |
| 17 | +"Last-Translator: python-doc bot, 2026\n" |
17 | 18 | "Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" |
18 | 19 | "MIME-Version: 1.0\n" |
19 | 20 | "Content-Type: text/plain; charset=UTF-8\n" |
@@ -202,15 +203,45 @@ msgstr "" |
202 | 203 | "zdefiniowanym w kodzie źródłowym moduł C." |
203 | 204 |
|
204 | 205 | msgid "" |
205 | | -"The hook should be kept short -- ideally, one line as above. If you do need " |
206 | | -"to use Python C API in this function, it is recommended to call " |
207 | | -"``PyABIInfo_Check(&abi_info, \"modulename\")`` first to raise an exception, " |
208 | | -"rather than crash, in common cases of ABI mismatch." |
| 206 | +"The hook should be kept short. If it does more than ``return`` a static " |
| 207 | +"array, several caveats apply:" |
| 208 | +msgstr "" |
| 209 | + |
| 210 | +msgid "" |
| 211 | +"If you need to use any Python C API, it is recommended to call :c:func:" |
| 212 | +"`PyABIInfo_Check` first to raise an exception, rather than crash, in common " |
| 213 | +"cases of ABI mismatch." |
| 214 | +msgstr "" |
| 215 | + |
| 216 | +msgid "" |
| 217 | +"Code in the export hook must never rely on the :term:`GIL`: :term:`free-" |
| 218 | +"threaded builds <free-threaded build>` of Python can only check the :c:macro:" |
| 219 | +"`Py_mod_gil` slot (or the lack of it) after the hook returns," |
| 220 | +msgstr "" |
| 221 | + |
| 222 | +msgid "" |
| 223 | +"Similarly, the hook may be called in any subinterpreter, since the :c:macro:" |
| 224 | +"`Py_mod_multiple_interpreters` slot (or lack of it) is only checked after " |
| 225 | +"the hook returns." |
| 226 | +msgstr "" |
| 227 | + |
| 228 | +msgid "For example::" |
| 229 | +msgstr "Dla przykładu::" |
| 230 | + |
| 231 | +msgid "" |
| 232 | +"PyMODEXPORT_FUNC\n" |
| 233 | +"PyModExport_modulename(void)\n" |
| 234 | +"{\n" |
| 235 | +" if (PyABIInfo_Check(&abi_info, \"modulename\") < 0) {\n" |
| 236 | +" /* ABI mismatch. It's not safe to examine the raised exception. */\n" |
| 237 | +" return NULL;\n" |
| 238 | +" }\n" |
| 239 | +"\n" |
| 240 | +" /* use Python API (as little as possible); don't rely on GIL */\n" |
| 241 | +"\n" |
| 242 | +" return modulename_slots;\n" |
| 243 | +"}" |
209 | 244 | msgstr "" |
210 | | -"Hak powinien być krótki – najlepiej jeden wiersz, jak powyżej. Jeśli jednak " |
211 | | -"musisz użyć API Python C API w tej funkcja, zaleca się najpierw wywołać ją, " |
212 | | -"aby zgłosić rzucić wyjątek, zamiast spowodować awarię, w typowych " |
213 | | -"przypadkach niezgodności ABI." |
214 | 245 |
|
215 | 246 | msgid "" |
216 | 247 | "It is possible to export multiple modules from a single shared library by " |
|
0 commit comments