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 3d9d960
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -225,7 +225,9 @@ msgstr "در ویندوز، این به شما کد خطای بومی ویندو
225
225
msgid"Under Windows, if the *winerror* constructor argument is an integer, the :attr:`.errno` attribute is determined from the Windows error code, and the *errno* argument is ignored. On other platforms, the *winerror* argument is ignored, and the :attr:`winerror` attribute does not exist."
226
226
msgstr"در ویندوز، اگر آرگومان سازندهی *winerror* یک عدد صحیح باشد، ویژگی :attr:`.errno` از کد خطای ویندوز تعیین میشود و آرگومان *errno* نادیده گرفته میشود. در سکوهای دیگر، آرگومان *winerror* نادیده گرفته میشود و ویژگی :attr:`winerror` وجود ندارد."
227
227
228
-
msgid"The corresponding error message, as provided by the operating system. It is formatted by the C functions :c:func:`!perror` under POSIX, and :c:func:`!FormatMessage` under Windows."
228
+
#,fuzzy
229
+
#| msgid "The corresponding error message, as provided by the operating system. It is formatted by the C functions :c:func:`!perror` under POSIX, and :c:func:`!FormatMessage` under Windows."
230
+
msgid"The corresponding error message, as provided by the operating system. Under POSIX, it is obtained using the C functions :c:func:`!strerror` or :c:func:`!strerror_r`; under Windows, :c:func:`!FormatMessage` is used."
229
231
msgstr"پیام خطای متناظر، همانطور که توسط سیستمعامل ارائه میشود. این پیام توسط توابع C :c:func:`!perror` در POSIX و :c:func:`!FormatMessage` در ویندوز قالببندی میشود."
230
232
231
233
msgid"For exceptions that involve a file system path (such as :func:`open` or :func:`os.unlink`), :attr:`filename` is the file name passed to the function. For functions that involve two file system paths (such as :func:`os.rename`), :attr:`filename2` corresponds to the second file name passed to the function."
@@ -327,9 +329,6 @@ msgstr "شماره سطری در پرونده که خطای رخداده در
327
329
msgid"The column in the end line where the error occurred finishes. This is 1-indexed: the first character in the line has an ``offset`` of 1."
328
330
msgstr"ستونی در خط پایانی که خطا در آن پایان مییابد. این مقدار ۱-اندیسدار است: نخستین نویسهی خط دارای ``offset`` برابر با ۱ است."
329
331
330
-
msgid"For errors in f-string fields, the message is prefixed by \"f-string: \" and the offsets are offsets in a text constructed from the replacement expression. For example, compiling f'Bad {a b} field' results in this args attribute: ('f-string: ...', ('', 1, 2, '(a b)\\n', 1, 5))."
331
-
msgstr"برای خطاهای فیلدهای افاسترینگ، پیام با پیشوند \"f-string: \" آغاز میشود و آفستها، آفستهایی در متنی هستند که از عبارت جایگزینی ساخته میشود. برای مثال، کامپایل کردن f'Bad {a b} field' منجر به این ویژگی args میشود: ('f-string: ...', ('', 1, 2, '(a b)\\n', 1, 5))."
332
-
333
332
msgid"Added the :attr:`end_lineno` and :attr:`end_offset` attributes."
334
333
msgstr"ویژگیهای :attr:`end_lineno` و :attr:`end_offset` افزوده شدند."
335
334
@@ -672,6 +671,77 @@ msgstr "سلسلهمراتب استثنا"
672
671
msgid"The class hierarchy for built-in exceptions is:"
673
672
msgstr"سلسلهمراتب کلاس برای استثناهای توکار به صورت زیر است:"
674
673
674
+
#,fuzzy
675
+
#| msgid ""
676
+
#| "BaseException\n"
677
+
#| " ├── BaseExceptionGroup\n"
678
+
#| " ├── GeneratorExit\n"
679
+
#| " ├── KeyboardInterrupt\n"
680
+
#| " ├── SystemExit\n"
681
+
#| " └── Exception\n"
682
+
#| " ├── ArithmeticError\n"
683
+
#| " │ ├── FloatingPointError\n"
684
+
#| " │ ├── OverflowError\n"
685
+
#| " │ └── ZeroDivisionError\n"
686
+
#| " ├── AssertionError\n"
687
+
#| " ├── AttributeError\n"
688
+
#| " ├── BufferError\n"
689
+
#| " ├── EOFError\n"
690
+
#| " ├── ExceptionGroup [BaseExceptionGroup]\n"
691
+
#| " ├── ImportError\n"
692
+
#| " │ └── ImportCycleError\n"
693
+
#| " │ └── ModuleNotFoundError\n"
694
+
#| " ├── LookupError\n"
695
+
#| " │ ├── IndexError\n"
696
+
#| " │ └── KeyError\n"
697
+
#| " ├── MemoryError\n"
698
+
#| " ├── NameError\n"
699
+
#| " │ └── UnboundLocalError\n"
700
+
#| " ├── OSError\n"
701
+
#| " │ ├── BlockingIOError\n"
702
+
#| " │ ├── ChildProcessError\n"
703
+
#| " │ ├── ConnectionError\n"
704
+
#| " │ │ ├── BrokenPipeError\n"
705
+
#| " │ │ ├── ConnectionAbortedError\n"
706
+
#| " │ │ ├── ConnectionRefusedError\n"
707
+
#| " │ │ └── ConnectionResetError\n"
708
+
#| " │ ├── FileExistsError\n"
709
+
#| " │ ├── FileNotFoundError\n"
710
+
#| " │ ├── InterruptedError\n"
711
+
#| " │ ├── IsADirectoryError\n"
712
+
#| " │ ├── NotADirectoryError\n"
713
+
#| " │ ├── PermissionError\n"
714
+
#| " │ ├── ProcessLookupError\n"
715
+
#| " │ └── TimeoutError\n"
716
+
#| " ├── ReferenceError\n"
717
+
#| " ├── RuntimeError\n"
718
+
#| " │ ├── NotImplementedError\n"
719
+
#| " │ ├── PythonFinalizationError\n"
720
+
#| " │ └── RecursionError\n"
721
+
#| " ├── StopAsyncIteration\n"
722
+
#| " ├── StopIteration\n"
723
+
#| " ├── SyntaxError\n"
724
+
#| " │ └── IndentationError\n"
725
+
#| " │ └── TabError\n"
726
+
#| " ├── SystemError\n"
727
+
#| " ├── TypeError\n"
728
+
#| " ├── ValueError\n"
729
+
#| " │ └── UnicodeError\n"
730
+
#| " │ ├── UnicodeDecodeError\n"
731
+
#| " │ ├── UnicodeEncodeError\n"
732
+
#| " │ └── UnicodeTranslateError\n"
733
+
#| " └── Warning\n"
734
+
#| " ├── BytesWarning\n"
735
+
#| " ├── DeprecationWarning\n"
736
+
#| " ├── EncodingWarning\n"
737
+
#| " ├── FutureWarning\n"
738
+
#| " ├── ImportWarning\n"
739
+
#| " ├── PendingDeprecationWarning\n"
740
+
#| " ├── ResourceWarning\n"
741
+
#| " ├── RuntimeWarning\n"
742
+
#| " ├── SyntaxWarning\n"
743
+
#| " ├── UnicodeWarning\n"
744
+
#| " └── UserWarning\n"
675
745
msgid""
676
746
"BaseException\n"
677
747
" ├── BaseExceptionGroup\n"
@@ -689,7 +759,7 @@ msgid ""
689
759
" ├── EOFError\n"
690
760
" ├── ExceptionGroup [BaseExceptionGroup]\n"
691
761
" ├── ImportError\n"
692
-
" │ └── ImportCycleError\n"
762
+
" │ ├── ImportCycleError\n"
693
763
" │ └── ModuleNotFoundError\n"
694
764
" ├── LookupError\n"
695
765
" │ ├── IndexError\n"
@@ -848,3 +918,6 @@ msgstr "ماژول"
848
918
849
919
msgid"errno"
850
920
msgstr"errno"
921
+
922
+
#~ msgid "For errors in f-string fields, the message is prefixed by \"f-string: \" and the offsets are offsets in a text constructed from the replacement expression. For example, compiling f'Bad {a b} field' results in this args attribute: ('f-string: ...', ('', 1, 2, '(a b)\\n', 1, 5))."
923
+
#~ msgstr "برای خطاهای فیلدهای افاسترینگ، پیام با پیشوند \"f-string: \" آغاز میشود و آفستها، آفستهایی در متنی هستند که از عبارت جایگزینی ساخته میشود. برای مثال، کامپایل کردن f'Bad {a b} field' منجر به این ویژگی args میشود: ('f-string: ...', ('', 1, 2, '(a b)\\n', 1, 5))."
@@ -724,7 +724,9 @@ msgstr "وقتی ``exec`` دو شیء جداگانه را بهعنوان *glo
724
724
msgid"If the *globals* dictionary does not contain a value for the key ``__builtins__``, a reference to the dictionary of the built-in module :mod:`builtins` is inserted under that key. Overriding ``__builtins__`` can be used to restrict or change the available names, but this is **not** a security mechanism: the executed code can still access all builtins."
725
725
msgstr"اگر دیکشنری *globals* مقداری برای کلید ``__builtins__`` نداشته باشد، ارجاعی به دیکشنری ماژول توکار :mod:`builtins` با همان کلید در آن درج میشود. بازنویسی ``__builtins__`` میتواند برای محدود کردن یا تغییر نامهای در دسترس استفاده شود، اما این **یک سازوکار امنیتی نیست**؛ زیرا کدی که اجرا میشود همچنان میتواند به تمام اشیای توکار دسترسی داشته باشد."
726
726
727
-
msgid"The *closure* argument specifies a closure--a tuple of cellvars. It's only valid when the *object* is a code object containing :term:`free (closure) variables <closure variable>`. The length of the tuple must exactly match the length of the code object's :attr:`~codeobject.co_freevars` attribute."
727
+
#,fuzzy
728
+
#| msgid "The *closure* argument specifies a closure--a tuple of cellvars. It's only valid when the *object* is a code object containing :term:`free (closure) variables <closure variable>`. The length of the tuple must exactly match the length of the code object's :attr:`~codeobject.co_freevars` attribute."
729
+
msgid"The *closure* argument specifies a closure--a tuple of cellvars. It's only valid when *source* is a code object containing :term:`free (closure) variables <closure variable>`. The length of the tuple must exactly match the length of the code object's :attr:`~codeobject.co_freevars` attribute."
728
730
msgstr"آرگومان *بستار* یک بستار را مشخص میکند؛ یعنی یک تاپل از cellvarها. این آرگومان تنها زمانی معتبر است که *object* یک شیء کد باشد که شامل :term:`متغیرهای آزاد (بستار) <closure variable>` باشد. طول این تاپل باید دقیقاً با طول ویژگی :attr:`~codeobject.co_freevars` شیء کد برابر باشد."
729
731
730
732
msgid"The built-in functions :func:`globals` and :func:`locals` return the current global and local namespace, respectively, which may be useful to pass around for use as the second and third argument to :func:`exec`."
msgid"If the second argument is omitted, the super object returned is unbound. If the second argument is an object, ``isinstance(obj, type)`` must be true. If the second argument is a type, ``issubclass(type2, type)`` must be true (this is useful for classmethods)."
1673
1675
msgstr"اگر آرگومان دوم حذف شود، شیء super بازگرداندهشده بدون اتصال (unbound) خواهد بود. اگر آرگومان دوم یک شیء باشد، باید ``isinstance(obj, type)`` برقرار باشد. اگر آرگومان دوم یک نوع باشد، باید ``issubclass(type2, type)`` برقرار باشد (این مورد برای متدهای کلاس مفید است)."
1674
1676
1675
-
msgid"When called directly within an ordinary method of a class, both arguments may be omitted (\"zero-argument :func:`!super`\"). In this case, *type* will be the enclosing class, and *obj* will be the first argument of the immediately enclosing function (typically ``self``). (This means that zero-argument :func:`!super` will not work as expected within nested functions, including generator expressions, which implicitly create nested functions.)"
1677
+
#,fuzzy
1678
+
#| msgid "When called directly within an ordinary method of a class, both arguments may be omitted (\"zero-argument :func:`!super`\"). In this case, *type* will be the enclosing class, and *obj* will be the first argument of the immediately enclosing function (typically ``self``). (This means that zero-argument :func:`!super` will not work as expected within nested functions, including generator expressions, which implicitly create nested functions.)"
1679
+
msgid"When called directly within an ordinary method of a class, both arguments may be omitted (\"zero-argument :func:`!super`\"). In this case, *type* will be the enclosing class, and *object_or_type* will be the first argument of the immediately enclosing function (typically ``self``). Zero-argument :func:`!super` will not work as expected within nested functions, including generator expressions, which implicitly create nested functions."
1676
1680
msgstr"هنگامی که این تابع مستقیماً درون یک متد معمولیِ یک کلاس فراخوانی شود، هر دو آرگومان را میتوان حذف کرد («:func:`!super` بدون آرگومان»). در این حالت، *type* همان کلاسِ محصورکننده خواهد بود و *obj* اولین آرگومانِ تابعِ بلافاصله محصورکننده (معمولاً ``self``) خواهد بود. (این بدان معناست که :func:`!super` بدون آرگومان در توابع تودرتو، از جمله عبارتهای تولیدگر که بهطور ضمنی توابع تودرتو ایجاد میکنند، مطابق انتظار عمل نخواهد کرد.)"
1677
1681
1678
1682
msgid"There are two typical use cases for *super*. In a class hierarchy with single inheritance, *super* can be used to refer to parent classes without naming them explicitly, thus making the code more maintainable. This use closely parallels the use of *super* in other programming languages."
msgid"The function imports the module *name*, potentially using the given *globals* and *locals* to determine how to interpret the name in a package context. The *fromlist* gives the names of objects or submodules that should be imported from the module given by *name*. The standard implementation does not use its *locals* argument at all and uses its *globals* only to determine the package context of the :keyword:`import` statement."
1865
1869
msgstr"این تابع ماژول *name* را ایمپورت میکند و در صورت نیاز از *globals* و *locals* دادهشده برای تعیین نحوهی تفسیر نام در زمینهی یک بسته استفاده میکند. آرگومان *fromlist* نام اشیا یا زیرماژولهایی را مشخص میکند که باید از ماژول مشخصشده توسط *name* وارد شوند. پیادهسازی استاندارد اصلاً از آرگومان *locals* استفاده نمیکند و از *globals* تنها برای تعیین زمینهی بسته در دستور :keyword:`import` بهره میبرد."
1866
1870
1867
-
msgid"*level* specifies whether to use absolute or relative imports. ``0`` (the default) means only perform absolute imports. Positive values for *level* indicate the number of parent directories to search relative to the directory of the module calling :func:`__import__` (see :pep:`328` for the details)."
1871
+
#,fuzzy
1872
+
#| msgid "*level* specifies whether to use absolute or relative imports. ``0`` (the default) means only perform absolute imports. Positive values for *level* indicate the number of parent directories to search relative to the directory of the module calling :func:`__import__` (see :pep:`328` for the details)."
1873
+
msgid"*level* specifies whether to use absolute or relative imports. ``0`` (the default) means only perform absolute imports. For relative imports, ``1`` refers to the current package, ``2`` to its parent package, and so on (see :pep:`328` for details)."
1868
1874
msgstr"*level* مشخص میکند که از ایمپورت مطلق استفاده شود یا نسبی. مقدار ``0`` (که مقدار پیشفرض است) به این معناست که فقط ایمپورت مطلق انجام شود. مقادیر مثبت برای *level* تعداد پوشههای والد را مشخص میکنند که باید نسبت به پوشهی ماژولی که :func:`__import__` را فراخوانی کرده است جستوجو شوند (برای جزئیات، :pep:`328` را ببینید)."
1869
1875
1870
1876
msgid"When the *name* variable is of the form ``package.module``, normally, the top-level package (the name up till the first dot) is returned, *not* the module named by *name*. However, when a non-empty *fromlist* argument is given, the module named by *name* is returned."
@@ -5009,7 +5009,9 @@ msgstr "دیکشنریها را میتوان به چند روش ایجاد
5009
5009
msgid"Use a comma-separated list of ``key: value`` pairs within braces: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098: 'jack', 4127: 'sjoerd'}``"
5010
5010
msgstr"از یک فهرست جداشده با کاما از جفتهای ``key: value`` درون آکولاد استفاده کنید: ``{'jack': 4098, 'sjoerd': 4127}`` یا ``{4098: 'jack', 4127: 'sjoerd'}``"
5011
5011
5012
-
msgid"Use a dict comprehension: ``{}``, ``{x: x ** 2 for x in range(10)}``"
5012
+
#,fuzzy
5013
+
#| msgid "Use a dict comprehension: ``{}``, ``{x: x ** 2 for x in range(10)}``"
5014
+
msgid"Use a dict comprehension: ``{x: x ** 2 for x in range(10)}``"
5013
5015
msgstr"از یک درک دیکشنری استفاده کنید: ``{}``، ``{x: x ** 2 for x in range(10)}``"
5014
5016
5015
5017
msgid"Use the type constructor: ``dict()``, ``dict([('foo', 100), ('bar', 200)])``, ``dict(foo=100, bar=200)``"
@@ -5190,7 +5192,9 @@ msgstr ":meth:`update` یا شیء دیگری با متد ``keys()`` را می
5190
5192
msgid"Return a new view of the dictionary's values. See the :ref:`documentation of view objects <dict-views>`."
5191
5193
msgstr"یک نمای جدید (view) از مقادیر دیکشنری برمیگرداند. به :ref:`مستندات اشیای view <dict-views>` مراجعه کنید."
5192
5194
5193
-
msgid"An equality comparison between one ``dict.values()`` view and another will always return ``False``. This also applies when comparing ``dict.values()`` to itself::"
5195
+
#,fuzzy
5196
+
#| msgid "An equality comparison between one ``dict.values()`` view and another will always return ``False``. This also applies when comparing ``dict.values()`` to itself::"
5197
+
msgid"An equality comparison between two distinct ``dict.values()`` views will always return ``False``, even for views of the same dictionary::"
5194
5198
msgstr"مقایسهی برابری میان یک نمای ``dict.values()`` و نمای دیگر، همیشه ``False`` را برمیگرداند. این موضوع هنگام مقایسهی ``dict.values()`` با خودش نیز صدق میکند::"
0 commit comments