| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b9fab75 commit 5929adc
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ msgid "" | |||
| 11 | 11 | msgstr "" | |
| 12 | 12 | "Project-Id-Version: Python 3.14\n" | |
| 13 | 13 | "Report-Msgid-Bugs-To: \n" | |
| 14 | - "POT-Creation-Date: 2026-10-01 14:41+0330\n" | ||
| 14 | + "POT-Creation-Date: 2026-10-21 04:17+0000\n" | ||
| 15 | 15 | "PO-Revision-Date: 2026-10-06 20:24+0330\n" | |
| 16 | 16 | "Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n" | |
| 17 | 17 | "Language-Team: none\n" | |
@@ -407,6 +407,21 @@ msgstr "" | |||
| 407 | 407 | msgid "In normal usage, an embedding application will call this function *instead* of calling :c:func:`Py_Initialize`, :c:func:`Py_InitializeEx` or :c:func:`Py_InitializeFromConfig` directly, and all settings will be applied as described elsewhere in this documentation. If this function is instead called *after* a preceding runtime initialization API call, then exactly which environmental and command line configuration settings will be updated is version dependent (as it depends on which settings correctly support being modified after they have already been set once when the runtime was first initialized)." | |
| 408 | 408 | msgstr "در استفادهی معمول، یک برنامه تعبیهکننده این تابع را *بهجای* فراخوانی مستقیم :c:func:`Py_Initialize`، :c:func:`Py_InitializeEx` یا :c:func:`Py_InitializeFromConfig` فراخوانی میکند و تمام تنظیمات همانگونه که در جای دیگر این مستندات توضیح داده شده است، اعمال خواهند شد. اگر این تابع در عوض *پس از* یک فراخوانی قبلی از API مقداردهی اولیهی رانتایم فراخوانی شود، دقیقاً اینکه کدام تنظیمات پیکربندی محیطی و خط فرمان بهروزرسانی خواهند شد، وابسته به نسخه است (زیرا به این بستگی دارد که کدام تنظیمات بهدرستی از این پشتیبانی میکنند که پس از آنکه یکبار در نخستین مقداردهی اولیهی رانتایم تنظیم شدهاند، تغییر کنند)." | |
| 409 | 409 | ||
| 410 | + msgid "The main program for a \"frozen\" Python program (an executable that embeds the interpreter together with the bytecode of the program's modules, as produced by the :program:`freeze` utility; see :source:`Tools/freeze`)." | ||
| 411 | + msgstr "" | ||
| 412 | + | ||
| 413 | + msgid "This function initializes the interpreter, imports the frozen module named ``__main__``, and finalizes the interpreter. The frozen modules must have been registered in :c:var:`PyImport_FrozenModules` before calling this function; it is a fatal error if ``__main__`` is not among them." | ||
| 414 | + msgstr "" | ||
| 415 | + | ||
| 416 | + msgid "*argc* and *argv* are byte strings like the arguments of a C program's ``main`` function, and are passed to the interpreter with :c:func:`PyConfig_SetBytesArgv`. Unlike :c:func:`Py_Main`, the arguments are not parsed as Python command line options (:c:member:`PyConfig.parse_argv` is ``0``), so all of them are made available to the program in :data:`sys.argv`. Apart from that, the interpreter uses the :ref:`Python Configuration <init-python-config>`, so environment variables such as :envvar:`PYTHONPATH` are honored. Warnings about the path configuration (:c:member:`PyConfig.pathconfig_warnings`) are suppressed. If :envvar:`PYTHONINSPECT` is set and standard input is a terminal, an interactive prompt is run after ``__main__`` has finished, as with the :option:`-i` option." | ||
| 417 | + msgstr "" | ||
| 418 | + | ||
| 419 | + msgid "Return ``0`` if ``__main__`` ran without an unhandled exception, ``1`` otherwise, and ``120`` if finalizing the interpreter failed (see :c:func:`Py_FinalizeEx`). An unhandled :exc:`SystemExit` terminates the process. If the interpreter cannot be initialized, the process exits via :c:func:`Py_ExitStatusException`." | ||
| 420 | + msgstr "" | ||
| 421 | + | ||
| 422 | + msgid "On Windows, this function is not exported by the Python DLL. The :program:`freeze` utility compiles :file:`Python/frozenmain.c` into the frozen program instead, together with the Windows-specific hooks that the function requires." | ||
| 423 | + msgstr "" | ||
| 424 | + | ||
| 410 | 425 | msgid "Executes the main module in a fully configured CPython runtime." | |
| 411 | 426 | msgstr "ماژول اصلی را در یک رانتایم سیپایتون کاملاً پیکربندیشده اجرا میکند." | |
| 412 | 427 | ||
@@ -695,6 +710,9 @@ msgstr "مسیر" | |||
| 695 | 710 | msgid "Py_FinalizeEx (C function)" | |
| 696 | 711 | msgstr "Py_FinalizeEx (تابع C)" | |
| 697 | 712 | ||
| 713 | + msgid "freeze utility" | ||
| 714 | + msgstr "" | ||
| 715 | + | ||
| 698 | 716 | msgid "Py_Initialize()" | |
| 699 | 717 | msgstr "Py_Initialize()" | |
| 700 | 718 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ msgid "" | |||
| 15 | 15 | msgstr "" | |
| 16 | 16 | "Project-Id-Version: Python 3.14\n" | |
| 17 | 17 | "Report-Msgid-Bugs-To: \n" | |
| 18 | - "POT-Creation-Date: 2026-10-01 14:41+0330\n" | ||
| 18 | + "POT-Creation-Date: 2026-10-21 04:17+0000\n" | ||
| 19 | 19 | "PO-Revision-Date: 2026-09-13 14:43+0330\n" | |
| 20 | 20 | "Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n" | |
| 21 | 21 | "Language-Team: Persian (https://github.com/python/python-docs-fa/)\n" | |
@@ -3223,6 +3223,9 @@ msgstr "رشتههای قالب بدون جداکننده ممکن است د | |||
| 3223 | 3223 | msgid "When used to parse partial dates lacking a year, :meth:`.datetime.strptime` and :meth:`.date.strptime` will raise when encountering February 29 because the default year of 1900 is *not* a leap year. Always add a default leap year to partial date strings before parsing." | |
| 3224 | 3224 | msgstr "هنگامی که برای تجزیهی تاریخهای ناقص فاقد سال استفاده شوند، :meth:`.datetime.strptime` و :meth:`.date.strptime` در صورت مواجهه با ۲۹ فوریه استثنا پرتاب میکنند، زیرا سال پیشفرض ۱۹۰۰ یک سال کبیسه *نیست*. همیشه پیش از تجزیه، یک سال کبیسهی پیشفرض به رشتههای تاریخ ناقص اضافه کنید." | |
| 3225 | 3225 | ||
| 3226 | + msgid "If a :meth:`~.datetime.strptime` format string contains more than one directive for the same field, for example both ``%Y`` and ``%y``, every directive must still match the input, but only the value of the last one is used. For example, parsing ``200099`` with ``%Y%y`` gives the year 1999. Repeating the same directive, like ``%Y%Y``, raises an error." | ||
| 3227 | + msgstr "" | ||
| 3228 | + | ||
| 3226 | 3229 | msgid "" | |
| 3227 | 3230 | ">>> import datetime as dt\n" | |
| 3228 | 3231 | ">>> value = \"2/29\"\n" | |
| 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-21 04:17+0000\n" | ||
| 17 | 17 | "PO-Revision-Date: 2026-09-13 17:37+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" | |
@@ -425,6 +425,21 @@ msgstr "(توجه کنید که چگونه درایو و ریشهی محلی | |||
| 425 | 425 | msgid "Methods and properties" | |
| 426 | 426 | msgstr "متدها و ویژگیها" | |
| 427 | 427 | ||
| 428 | + msgid "The :attr:`~PurePath.parent`, :attr:`~PurePath.name`, :attr:`~PurePath.stem`, and :attr:`~PurePath.suffix` properties describe different parts of a path. For example, given::" | ||
| 429 | + msgstr "" | ||
| 430 | + | ||
| 431 | + msgid ">>> p = PurePosixPath('/srv/holy/grail.tar.gz')" | ||
| 432 | + msgstr "" | ||
| 433 | + | ||
| 434 | + msgid "" | ||
| 435 | + "For p = PurePosixPath('/srv/holy/grail.tar.gz'), p.parent is\n" | ||
| 436 | + "PurePosixPath('/srv/holy'), p.name is 'grail.tar.gz',\n" | ||
| 437 | + "p.stem is 'grail.tar', and p.suffix is '.gz'." | ||
| 438 | + msgstr "" | ||
| 439 | + | ||
| 440 | + msgid "The stem excludes only the final suffix: in this example, it includes ``.tar``." | ||
| 441 | + msgstr "" | ||
| 442 | + | ||
| 428 | 443 | msgid "Pure paths provide the following methods and properties:" | |
| 429 | 444 | msgstr "مسیرهای خالص، متدها و ویژگیهای زیر را ارائه میدهند:" | |
| 430 | 445 | ||
@@ -767,14 +782,24 @@ msgstr "" | |||
| 767 | 782 | msgid "Match this path against the provided glob-style pattern. Return ``True`` if matching is successful, ``False`` otherwise. For example::" | |
| 768 | 783 | msgstr "این مسیر را با الگوی بهسبک glob ارائهشده تطبیق میدهد. اگر تطبیق موفقیتآمیز باشد، ``True`` و در غیر این صورت ``False`` برمیگرداند. برای مثال::" | |
| 769 | 784 | ||
| 785 | + #, fuzzy | ||
| 786 | + #| msgid "" | ||
| 787 | + #| ">>> PurePath('a/b.py').full_match('a/*.py')\n" | ||
| 788 | + #| "True\n" | ||
| 789 | + #| ">>> PurePath('a/b.py').full_match('*.py')\n" | ||
| 790 | + #| "False\n" | ||
| 791 | + #| ">>> PurePath('/a/b/c.py').full_match('/a/**')\n" | ||
| 792 | + #| "True\n" | ||
| 793 | + #| ">>> PurePath('/a/b/c.py').full_match('**/*.py')\n" | ||
| 794 | + #| "True" | ||
| 770 | 795 | msgid "" | |
| 771 | 796 | ">>> PurePath('a/b.py').full_match('a/*.py')\n" | |
| 772 | 797 | "True\n" | |
| 773 | 798 | ">>> PurePath('a/b.py').full_match('*.py')\n" | |
| 774 | 799 | "False\n" | |
| 775 | - ">>> PurePath('/a/b/c.py').full_match('/a/**')\n" | ||
| 776 | - "True\n" | ||
| 777 | 800 | ">>> PurePath('/a/b/c.py').full_match('**/*.py')\n" | |
| 801 | + "True\n" | ||
| 802 | + ">>> PurePath('/a/b/c.py').full_match('/a/**')\n" | ||
| 778 | 803 | "True" | |
| 779 | 804 | msgstr "" | |
| 780 | 805 | ">>> PurePath('a/b.py').full_match('a/*.py')\n" | |
@@ -786,6 +811,26 @@ msgstr "" | |||
| 786 | 811 | ">>> PurePath('/a/b/c.py').full_match('**/*.py')\n" | |
| 787 | 812 | "True" | |
| 788 | 813 | ||
| 814 | + msgid "Patterns ending in \"``/**``\", as in the example above, may surprise when passed to ``full_match``. Even though \"``**``\" can match 0 segments, \"``.../**``\" requires a separator to match. Hence \"``/a/**``\" does not match path \"``/a``\". Since :class:`PurePath` drops trailing slashes, this pattern also does not match \"``/a/``\"." | ||
| 815 | + msgstr "" | ||
| 816 | + | ||
| 817 | + #, fuzzy | ||
| 818 | + #| msgid "" | ||
| 819 | + #| ">>> PurePosixPath('b.py').full_match('*.PY')\n" | ||
| 820 | + #| "False\n" | ||
| 821 | + #| ">>> PureWindowsPath('b.py').full_match('*.PY')\n" | ||
| 822 | + #| "True" | ||
| 823 | + msgid "" | ||
| 824 | + ">>> PurePath('/a').full_match('/a/**')\n" | ||
| 825 | + "False\n" | ||
| 826 | + ">>> PurePath('/a/').full_match('/a/**')\n" | ||
| 827 | + "False" | ||
| 828 | + msgstr "" | ||
| 829 | + ">>> PurePosixPath('b.py').full_match('*.PY')\n" | ||
| 830 | + "False\n" | ||
| 831 | + ">>> PureWindowsPath('b.py').full_match('*.PY')\n" | ||
| 832 | + "True" | ||
| 833 | + | ||
| 789 | 834 | msgid ":ref:`pathlib-pattern-language` documentation." | |
| 790 | 835 | msgstr "مستندات :ref:`pathlib-pattern-language`." | |
| 791 | 836 | ||
@@ -1879,8 +1924,8 @@ msgstr "وایلدکارد زیر در الگوهای :meth:`~PurePath.full_matc | |||
| 1879 | 1924 | msgid "``**`` (entire segment)" | |
| 1880 | 1925 | msgstr "``**`` (کل بخش)" | |
| 1881 | 1926 | ||
| 1882 | - msgid "Matches any number of file or directory segments, including zero." | ||
| 1883 | - msgstr "با هر تعداد بخش پرونده یا پوشه، از جمله صفر، مطابقت دارد." | ||
| 1927 | + msgid "Matches any number of file or directory segments, including zero. Note that in :meth:`~PurePath.full_match`, \"``a/**``\" does not match \"``a``\", whereas :meth:`~Path.glob` yields \"``a``\" for that pattern." | ||
| 1928 | + msgstr "" | ||
| 1884 | 1929 | ||
| 1885 | 1930 | msgid "``*`` (entire segment)" | |
| 1886 | 1931 | msgstr "``*`` (کل بخش)" | |
@@ -2260,6 +2305,9 @@ msgstr "مسیر" | |||
| 2260 | 2305 | msgid "operations" | |
| 2261 | 2306 | msgstr "عملیات" | |
| 2262 | 2307 | ||
| 2308 | + #~ msgid "Matches any number of file or directory segments, including zero." | ||
| 2309 | + #~ msgstr "با هر تعداد بخش پرونده یا پوشه، از جمله صفر، مطابقت دارد." | ||
| 2310 | + | ||
| 2263 | 2311 | #~ msgid "With :class:`PureWindowsPath`, return ``True`` if the path is considered reserved under Windows, ``False`` otherwise. With :class:`PurePosixPath`, ``False`` is always returned." | |
| 2264 | 2312 | #~ msgstr "در :class:`PureWindowsPath`، اگر مسیر در ویندوز رزروشده محسوب شود، ``True`` و در غیر این صورت ``False`` برمیگرداند. در :class:`PurePosixPath`، همیشه ``False`` برگردانده میشود." | |
| 2265 | 2313 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments