You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5929adc
Browse filesBrowse the repository at this point in the historyBrowse files
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"ماژول اصلی را در یک رانتایم سیپایتون کاملاً پیکربندیشده اجرا میکند."
"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."
"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`` برمیگرداند. برای مثال::"
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/``\"."
@@ -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`` برگردانده میشود."
0 commit comments