| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 573da00 commit fb52c19
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ msgid "" | |||
| 13 | 13 | msgstr "" | |
| 14 | 14 | "Project-Id-Version: Python 3.14\n" | |
| 15 | 15 | "Report-Msgid-Bugs-To: \n" | |
| 16 | - "POT-Creation-Date: 2026-10-01 14:41+0330\n" | ||
| 16 | + "POT-Creation-Date: 2026-10-07 04:46+0000\n" | ||
| 17 | 17 | "PO-Revision-Date: 2026-09-15 13:22+0330\n" | |
| 18 | 18 | "Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n" | |
| 19 | 19 | "Language-Team: Persian (https://github.com/python/python-docs-fa/)\n" | |
@@ -552,6 +552,9 @@ msgstr "نقطهای را نشانگذاری میکند که در آن | |||
| 552 | 552 | msgid "The function then checks if the stack limit is reached. If this is the case, a :exc:`RecursionError` is set and a nonzero value is returned. Otherwise, zero is returned." | |
| 553 | 553 | msgstr "سپس تابع بررسی میکند که آیا به حد پشته رسیده است یا خیر. اگر چنین باشد، یک :exc:`RecursionError` تنظیم میشود و مقدار غیرصفر بازگردانده میشود. در غیر این صورت، صفر بازگردانده میشود." | |
| 554 | 554 | ||
| 555 | + msgid "The check is based on the remaining C stack space of the current thread, not on a count of calls, so it is unaffected by :c:func:`Py_SetRecursionLimit` and :func:`sys.setrecursionlimit`." | ||
| 556 | + msgstr "" | ||
| 557 | + | ||
| 555 | 558 | msgid "*where* should be a UTF-8 encoded string such as ``\" in instance check\"`` to be concatenated to the :exc:`RecursionError` message caused by the recursion depth limit." | |
| 556 | 559 | msgstr "*where* باید یک رشتهی کدگذاریشده با UTF-8 مانند ``\" in instance check\"`` باشد تا به پیام :exc:`RecursionError` که ناشی از محدودیت عمق بازگشت است، الحاق شود." | |
| 557 | 560 | ||
@@ -561,6 +564,9 @@ msgstr "تابع :c:func:`PyUnstable_ThreadState_SetStackProtection`." | |||
| 561 | 564 | msgid "This function is now also available in the :ref:`limited API <limited-c-api>`." | |
| 562 | 565 | msgstr "این تابع اکنون در :ref:`API محدود <limited-c-api>` نیز در دسترس است." | |
| 563 | 566 | ||
| 567 | + msgid "The check is based on the remaining C stack space. Previously, a separate counter of C-level calls was used." | ||
| 568 | + msgstr "" | ||
| 569 | + | ||
| 564 | 570 | msgid "Ends a :c:func:`Py_EnterRecursiveCall`. Must be called once for each *successful* invocation of :c:func:`Py_EnterRecursiveCall`." | |
| 565 | 571 | msgstr "یک :c:func:`Py_EnterRecursiveCall` را پایان میدهد. باید یکبار برای هر فراخوانی *موفق* :c:func:`Py_EnterRecursiveCall` فراخوانی شود." | |
| 566 | 572 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ msgid "" | |||
| 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 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ msgid "" | |||
| 13 | 13 | msgstr "" | |
| 14 | 14 | "Project-Id-Version: Python 3.14\n" | |
| 15 | 15 | "Report-Msgid-Bugs-To: \n" | |
| 16 | - "POT-Creation-Date: 2026-09-21 11:59+0000\n" | ||
| 16 | + "POT-Creation-Date: 2026-10-07 04:46+0000\n" | ||
| 17 | 17 | "PO-Revision-Date: 2026-09-14 15:36+0330\n" | |
| 18 | 18 | "Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n" | |
| 19 | 19 | "Language-Team: Persian (https://github.com/python/python-docs-fa/)\n" | |
@@ -141,6 +141,12 @@ msgstr "پوشه را میتوان با فراخوانی متد :meth:`!clean | |||
| 141 | 141 | msgid "The *delete* parameter can be used to disable cleanup of the directory tree upon exiting the context. While it may seem unusual for a context manager to disable the action taken when exiting the context, it can be useful during debugging or when you need your cleanup behavior to be conditional based on other logic." | |
| 142 | 142 | msgstr "میتوان از پارامتر *delete* برای غیرفعال کردن پاکسازی درخت پوشهها هنگام خروج از زمینه استفاده کرد. اگرچه ممکن است غیرعادی به نظر برسد که یک مدیر زمینه عملیات انجامشده هنگام خروج از زمینه را غیرفعال کند، اما این کار میتواند در حین اشکالزدایی یا زمانی که نیاز دارید رفتار پاکسازی شما بر اساس منطق دیگری مشروط باشد، مفید باشد." | |
| 143 | 143 | ||
| 144 | + msgid "Cleanup is not robust against the tree being modified while it is removed. Files outside of the tree may have their permissions and file flags reset." | ||
| 145 | + msgstr "" | ||
| 146 | + | ||
| 147 | + msgid "On systems where :data:`shutil.rmtree.avoids_symlink_attacks` is false, manipulating symbolic links during cleanup may cause files outside of the tree to be removed." | ||
| 148 | + msgstr "" | ||
| 149 | + | ||
| 144 | 150 | msgid "Raises an :ref:`auditing event <auditing>` ``tempfile.mkdtemp`` with argument ``fullpath``." | |
| 145 | 151 | msgstr "یک :ref:`رویداد حسابرسی <auditing>` ``tempfile.mkdtemp`` را با آرگومان ``fullpath`` پرتاب میکند." | |
| 146 | 152 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,7 @@ msgid "" | |||
| 14 | 14 | msgstr "" | |
| 15 | 15 | "Project-Id-Version: Python 3.14\n" | |
| 16 | 16 | "Report-Msgid-Bugs-To: \n" | |
| 17 | - "POT-Creation-Date: 2026-10-04 17:29+0330\n" | ||
| 17 | + "POT-Creation-Date: 2026-10-07 04:46+0000\n" | ||
| 18 | 18 | "PO-Revision-Date: 2026-08-28 10:54+0330\n" | |
| 19 | 19 | "Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n" | |
| 20 | 20 | "Language-Team: Persian (https://github.com/python/python-docs-fa/fa/)\n" | |
@@ -378,7 +378,6 @@ msgstr "" | |||
| 378 | 378 | "این سند مربوط به نسخهای قدیمی از پایتون است که دیگر پشتیبانی نمیشود.\n" | |
| 379 | 379 | " شما باید نسخهی خود را ارتقا دهید و مطالب مربوط به" | |
| 380 | 380 | ||
| 381 | - | ||
| 382 | 381 | msgid "Python documentation for the current stable release" | |
| 383 | 382 | msgstr "مستندات پایتون برای نسخهی پایدار فعلی" | |
| 384 | 383 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ msgid "" | |||
| 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-06 19:50+0330\n" | |
| 12 | 12 | "Last-Translator: Automatically generated\n" | |
| 13 | 13 | "Language-Team: none\n" | |
@@ -143,14 +143,23 @@ msgstr "پایتون اکنون راهحل تمیزتری را از طریق | |||
| 143 | 143 | msgid "The ``lazy`` keyword works with both ``import`` and ``from ... import`` statements. When you write ``lazy import heavy_module``, Python does not immediately load the module. Instead, it creates a lightweight proxy object. The actual module loading happens transparently when you first access the name:" | |
| 144 | 144 | msgstr "کلیدواژه ``lazy`` با دستورهای ``import`` و ``from ... import`` کار میکند. وقتی مینویسید ``lazy import heavy_module``، پایتون بلافاصله ماژول را بارگذاری نمیکند. در عوض، یک شیء پراکسی سبکوزن ایجاد میکند. بارگذاری واقعی ماژول به صورت شفاف هنگام دسترسی اولیهی شما به نام اتفاق میافتد:" | |
| 145 | 145 | ||
| 146 | + #, fuzzy | ||
| 147 | + #| msgid "" | ||
| 148 | + #| "lazy import json\n" | ||
| 149 | + #| "lazy from pathlib import Path\n" | ||
| 150 | + #| "\n" | ||
| 151 | + #| "print(\"Starting up...\") # json and pathlib not loaded yet\n" | ||
| 152 | + #| "\n" | ||
| 153 | + #| "data = json.loads('{\"key\": \"value\"}') # json loads here\n" | ||
| 154 | + #| "p = Path(\".\") # pathlib loads here" | ||
| 146 | 155 | msgid "" | |
| 147 | 156 | "lazy import json\n" | |
| 148 | 157 | "lazy from pathlib import Path\n" | |
| 149 | 158 | "\n" | |
| 150 | - "print(\"Starting up...\") # json and pathlib not loaded yet\n" | ||
| 159 | + "print(\"Starting up...\") # json and pathlib are not fully imported yet\n" | ||
| 151 | 160 | "\n" | |
| 152 | - "data = json.loads('{\"key\": \"value\"}') # json loads here\n" | ||
| 153 | - "p = Path(\".\") # pathlib loads here" | ||
| 161 | + "data = json.loads('{\"key\": \"value\"}') # json gets fully imported here\n" | ||
| 162 | + "p = Path(\".\") # pathlib gets fully imported here" | ||
| 154 | 163 | msgstr "" | |
| 155 | 164 | "lazy import json\n" | |
| 156 | 165 | "lazy from pathlib import Path\n" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments