|
7 | 7 | msgstr "" |
8 | 8 | "Project-Id-Version: Python 3.15\n" |
9 | 9 | "Report-Msgid-Bugs-To: \n" |
10 | | -"POT-Creation-Date: 2026-10-01 14:41+0330\n" |
| 10 | +"POT-Creation-Date: 2026-10-07 04:46+0000\n" |
11 | 11 | "PO-Revision-Date: 2026-10-01 14:41+0330\n" |
12 | 12 | "Last-Translator: Automatically generated\n" |
13 | 13 | "Language-Team: none\n" |
@@ -223,7 +223,9 @@ msgstr "این راهنما از شما میخواهد مجموعهای ا |
223 | 223 | msgid "Module export hook" |
224 | 224 | msgstr "قلاب اکسپورت ماژول" |
225 | 225 |
|
226 | | -msgid "Unless you've done this step already, your extension module defines a :ref:`module initialization function <extension-pyinit>` named :samp:`PyInit_{<module_name>}`. You will need to port it to a :ref:`module export hook <extension-export-hook>`, :samp:`PyModExport_{<module name>}`, a feature added in CPython 3.15 in :pep:`793`." |
| 226 | +#, fuzzy |
| 227 | +#| msgid "Unless you've done this step already, your extension module defines a :ref:`module initialization function <extension-pyinit>` named :samp:`PyInit_{<module_name>}`. You will need to port it to a :ref:`module export hook <extension-export-hook>`, :samp:`PyModExport_{<module name>}`, a feature added in CPython 3.15 in :pep:`793`." |
| 228 | +msgid "Unless you've done this step already, your extension module defines a :ref:`module initialization function <extension-pyinit>` named :samp:`PyInit_{<modname>}` (where ``modname`` is the name of your module). You will need to port it to a :ref:`module export hook <extension-export-hook>`, :samp:`PyModExport_{<modname>}`, a feature added in CPython 3.15 in :pep:`793`." |
227 | 229 | msgstr "مگر اینکه قبلاً این مرحله را انجام داده باشید، ماژول توسعهای شما یک :ref:`تابع مقداردهی اولیهی ماژول <extension-pyinit>` به نام :samp:`PyInit_{<module_name>}` را تعریف میکند. لازم است آن را به یک :ref:`قلاب اکسپورت ماژول <extension-export-hook>`، یعنی :samp:`PyModExport_{<module name>}` منتقل کنید که این ویژگی در سیپایتون ۳.۱۵ در :pep:`793` اضافه شده است." |
228 | 230 |
|
229 | 231 | msgid "Your existing init function should look like this (with your own names for ``<modname>`` and ``<moddef>``):" |
@@ -328,6 +330,23 @@ msgstr "برای جزئیات این API، مستندات :c:type:`PySlot` و :c |
328 | 330 | msgid "As in the example, your ``PyModExport_`` function should *only* return a pointer to static data. If you cannot avoid additional code, refer to the :ref:`caveats in PyModExport documentation <pymodexport-api-caveats>`." |
329 | 331 | msgstr "همانند نمونه، تابع ``PyModExport_`` شما *فقط* باید یک اشارهگر به دادهی ایستا برگرداند. اگر نمیتوانید از کد اضافی جلوگیری کنید، به :ref:`موارد احتیاطی در مستندات PyModExport <pymodexport-api-caveats>` مراجعه کنید." |
330 | 332 |
|
| 333 | +msgid "When building for Windows using the Setuptools_ build tool, removing the :samp:`PyInit_{<modname>}` function may result in the linker error :samp:`LINK : error LNK2001: unresolved external symbol PyInit_{<modname>}`. This is caused by Setuptools passing an ``/EXPORT`` linker flag, which is redundant since Python 3.15 (see :gh:`141671`). A workaround is to add a dummy :samp:`PyInit_{<modname>}` function to your code. Python 3.15+ will never call this function if :samp:`PyModExport_{<modname>}` is present, so it can always fail:" |
| 334 | +msgstr "" |
| 335 | + |
| 336 | +msgid "" |
| 337 | +"// Workaround for https://github.com/pypa/distutils/issues/387\n" |
| 338 | +"PyMODINIT_FUNC\n" |
| 339 | +"PyInit_<modname>(void)\n" |
| 340 | +"{\n" |
| 341 | +" PyErr_SetString(PyExc_SystemError,\n" |
| 342 | +" \"PyInit_* called for module with PyModExport_*\");\n" |
| 343 | +" return NULL;\n" |
| 344 | +"}" |
| 345 | +msgstr "" |
| 346 | + |
| 347 | +msgid "(This issue is present in Setuptools 84.0.0; it might be fixed in newer versions.)" |
| 348 | +msgstr "" |
| 349 | + |
331 | 350 | msgid "Existing slots" |
332 | 351 | msgstr "جایگاههای موجود" |
333 | 352 |
|
|
0 commit comments