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 d7188df
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -479,7 +479,9 @@ msgstr "*source* را به یک شیء کد یا AST کامپایل میکن
479
479
msgid"The *filename* argument should give the file from which the code was read; pass some recognizable value if it wasn't read from a file (``'<string>'`` is commonly used)."
480
480
msgstr"آرگومان *filename* باید نام پروندهای را مشخص کند که کد از آن خوانده شده است؛ اگر کد از پرونده خوانده نشده، مقدار قابل تشخیصی را ارسال کنید (معمولاً از ``'<string>'`` استفاده میشود)."
481
481
482
-
msgid"The *mode* argument specifies what kind of code must be compiled; it can be ``'exec'`` if *source* consists of a sequence of statements, ``'eval'`` if it consists of a single expression, or ``'single'`` if it consists of a single interactive statement (in the latter case, expression statements that evaluate to something other than ``None`` will be printed)."
482
+
#,fuzzy
483
+
#| msgid "The *mode* argument specifies what kind of code must be compiled; it can be ``'exec'`` if *source* consists of a sequence of statements, ``'eval'`` if it consists of a single expression, or ``'single'`` if it consists of a single interactive statement (in the latter case, expression statements that evaluate to something other than ``None`` will be printed)."
484
+
msgid"The *mode* argument specifies what kind of code must be compiled; it can be ``'exec'`` if *source* consists of a sequence of statements, ``'eval'`` if it consists of a single expression, or ``'single'`` if it consists of a single interactive statement (in the latter case, expression statements that evaluate to something other than ``None`` will be printed). It can also be ``'func_type'`` if *source* consists of a function type signature, for example ``(int) -> str``; see :func:`ast.parse` for more information. This mode requires passing :data:`ast.PyCF_ONLY_AST` in *flags*."
483
485
msgstr"آرگومان *mode* مشخص میکند که چه نوع کدی باید کامپایل شود؛ اگر *source* شامل دنبالهای از دستورها باشد، میتواند ``'exec'`` باشد؛ اگر شامل تنها یک عبارت باشد، ``'eval'``؛ و اگر شامل تنها یک دستور تعاملی باشد، ``'single'`` (در حالت آخر، اگر عبارت مقداری غیر از ``None`` تولید کند، آن مقدار چاپ خواهد شد)."
484
486
485
487
msgid"The optional arguments *flags* and *dont_inherit* control which :ref:`compiler options <ast-compiler-flags>` should be activated and which :ref:`future features <future>` should be allowed. If neither is present (or both are zero) the code is compiled with the same flags that affect the code that is calling :func:`compile`. If the *flags* argument is given and *dont_inherit* is not (or is zero) then the compiler options and the future statements specified by the *flags* argument are used in addition to those that would be used anyway. If *dont_inherit* is a non-zero integer then the *flags* argument is it -- the flags (future features and compiler options) in the surrounding code are ignored."
@@ -518,6 +520,9 @@ msgstr "پیش از این، هنگام برخورد با بایتهای ته
518
520
msgid"``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` can now be passed in flags to enable support for top-level ``await``, ``async for``, and ``async with``."
519
521
msgstr"اکنون میتوان ``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` را در پرچمها ارسال کرد تا از ``await``، ``async for`` و ``async with`` در سطح بالای کد (top-level) پشتیبانی شود."
520
522
523
+
msgid"Added support for ``mode='func_type'``."
524
+
msgstr""
525
+
521
526
msgid":exc:`SyntaxError` is raised instead of :exc:`ValueError` when null bytes are encountered in *source*."
522
527
msgstr"هنگامی که بایتهای تهی در *source* یافت شوند، :exc:`SyntaxError` بهجای :exc:`ValueError` پرتاب میشود."
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -77,11 +77,15 @@ msgstr "به ``PyUnstable_Code_NewWithPosOnlyArgs`` تغییر نام یافت.
77
77
msgid"Return a new empty code object with the specified filename, function name, and first line number. The resulting code object will raise an ``Exception`` if executed."
78
78
msgstr"یک شیء کد خالی جدید با نام پرونده، نام تابع و شماره سطر اول مشخصشده برمیگرداند. شیء کد حاصل در صورت اجرا یک ``Exception`` پرتاب میکند."
79
79
80
-
msgid"Return the line number of the instruction that occurs on or before ``byte_offset`` and ends after it. If you just need the line number of a frame, use :c:func:`PyFrame_GetLineNumber` instead."
80
+
#,fuzzy
81
+
#| msgid "Return the line number of the instruction that occurs on or before ``byte_offset`` and ends after it. If you just need the line number of a frame, use :c:func:`PyFrame_GetLineNumber` instead."
82
+
msgid"Return the line number of the instruction that occurs on or before ``byte_offset`` and ends after it. This may be ``O(N)`` in the number of instructions in the code object, so it is not performant for iterating over all the line numbers in a code object."
81
83
msgstr"شماره سطر دستوری را برمیگرداند که در ``byte_offset`` یا پیش از آن قرار دارد و پس از آن پایان مییابد. اگر فقط به شماره سطر یک فریم نیاز دارید، بهجای آن از :c:func:`PyFrame_GetLineNumber` استفاده کنید."
82
84
83
-
msgid"For efficiently iterating over the line numbers in a code object, use :pep:`the API described in PEP 626 <0626#out-of-process-debuggers-and-profilers>`."
84
-
msgstr"برای پیمایش کارآمد شماره سطرهای یک شیء کد، از :pep:`API توصیفشده در PEP 626 <0626#out-of-process-debuggers-and-profilers>` استفاده کنید."
85
+
#,fuzzy
86
+
#| msgid "Return the line number of the instruction that occurs on or before ``byte_offset`` and ends after it. If you just need the line number of a frame, use :c:func:`PyFrame_GetLineNumber` instead."
87
+
msgid"If you just need the line number of a frame, use :c:func:`PyFrame_GetLineNumber` instead."
88
+
msgstr"شماره سطر دستوری را برمیگرداند که در ``byte_offset`` یا پیش از آن قرار دارد و پس از آن پایان مییابد. اگر فقط به شماره سطر یک فریم نیاز دارید، بهجای آن از :c:func:`PyFrame_GetLineNumber` استفاده کنید."
85
89
86
90
msgid"Sets the passed ``int`` pointers to the source code line and column numbers for the instruction at ``byte_offset``. Sets the value to ``0`` when information is not available for any particular element."
87
91
msgstr"اشارهگرهای ``int`` ارسالشده را برابر شماره سطر و ستون کد منبع برای دستورالعمل در ``byte_offset`` قرار میدهد. وقتی اطلاعات برای هیچ عنصر خاصی در دسترس نباشد، مقدار را ``0`` قرار میدهد."
@@ -271,3 +275,6 @@ msgstr "شیء کد"
271
275
272
276
msgid"PyCode_New (C function)"
273
277
msgstr"PyCode_New (تابع C)"
278
+
279
+
#~ msgid "For efficiently iterating over the line numbers in a code object, use :pep:`the API described in PEP 626 <0626#out-of-process-debuggers-and-profilers>`."
280
+
#~ msgstr "برای پیمایش کارآمد شماره سطرهای یک شیء کد، از :pep:`API توصیفشده در PEP 626 <0626#out-of-process-debuggers-and-profilers>` استفاده کنید."
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -619,15 +619,24 @@ msgstr "برای کامل بودن، همه متغیرها اینجا آمد
619
619
msgid"Exception types"
620
620
msgstr"نوعهای استثنا"
621
621
622
+
msgid"These pointers are part of the :ref:`Stable ABI <stable>` since the version in the *S.ABI* column (or since 3.2 when *S.ABI* is empty). Exceptions marked N/A are *not* part of the Stable ABI."
msgid"These are built-in iteration types that are included in Python's C API, but provide no additional functions. They are here for completeness."
61
61
msgstr"اینها نوعهای پیمایش توکار هستند که در API زبان C پایتون گنجانده شدهاند، اما هیچ تابع اضافهای ارائه نمیدهند. آنها برای کامل بودن اینجا قرار دارند."
62
62
63
+
msgid"These pointers are part of the :ref:`Stable ABI <stable>`."
msgid"The :class:`Cmd` class provides a simple framework for writing line-oriented command interpreters. These are often useful for test harnesses, administrative tools, and prototypes that will later be wrapped in a more sophisticated interface."
32
32
msgstr"کلاس :class:`Cmd` یک چارچوب ساده برای نوشتن مفسرهای فرمان خطمحور فراهم میکند. این مفسرها اغلب برای مهارهای آزمون، ابزارهای مدیریتی و پیشنمونههایی مفید هستند که بعداً در یک رابط پیشرفتهتر قرار خواهند گرفت."
33
33
34
+
msgid"A command interpreter built with :class:`Cmd` typically presents the user with an interactive prompt, reads input one line at a time, and dispatches each command to a method named ``do_`` followed by the command name. For example, the ``help`` command is handled by the :meth:`~Cmd.do_help` method. Apart from the built-in ``help`` command, most of the interpreter's behavior is defined by the ``do_*`` methods you add in your own subclass."
35
+
msgstr""
36
+
34
37
msgid"A :class:`Cmd` instance or subclass instance is a line-oriented interpreter framework. There is no good reason to instantiate :class:`Cmd` itself; rather, it's useful as a superclass of an interpreter class you define yourself in order to inherit :class:`Cmd`'s methods and encapsulate action methods."
35
38
msgstr"یک نمونه از :class:`Cmd` یا نمونهای از یک زیرکلاس، یک چارچوب مفسر خطمحور است. دلیل موجهی برای نمونهسازی خود :class:`Cmd` وجود ندارد؛ در عوض، این کلاس بهعنوان ابرکلاسِ کلاس مفسری که خودتان تعریف میکنید مفید است، تا متدهای :class:`Cmd` را به ارث ببرید و متدهای عملیاتی را کپسوله کنید."
@@ -196,6 +198,12 @@ msgstr "پیش از آنکه مفسر بتواند خارج شود، همه نخ
196
198
msgid"*initializer* is an optional callable that is called at the start of each worker thread; *initargs* is a tuple of arguments passed to the initializer. Should *initializer* raise an exception, all currently pending jobs will raise a :exc:`~concurrent.futures.thread.BrokenThreadPool`, as well as any attempt to submit more jobs to the pool."
197
199
msgstr"*initializer* یک شیء فراخوانیپذیر اختیاری است که در آغاز هر نخکارگر فراخوانی میشود؛ *initargs* تاپلی از آرگومانها است که به initializer ارسال میشوند. در صورتی که *initializer* استثنایی پرتاب کند، همه کارهایی که در حال حاضر در انتظار هستند، و همچنین هر تلاشی برای ارسال کارهای بیشتر به استخر، یک :exc:`~concurrent.futures.thread.BrokenThreadPool` پرتاب خواهند کرد."
198
200
201
+
msgid"*ctxkwargs* is a mapping of additional keyword arguments passed to :meth:`prepare_context`, allowing customization of the worker execution context."
202
+
msgstr""
203
+
204
+
msgid"Setting up the necessary context for creating worker instances in a pool-based executor (for example, in a concurrent environment like threads or interpreters)."
205
+
msgstr""
206
+
199
207
msgid"If *max_workers* is ``None`` or not given, it will default to the number of processors on the machine, multiplied by ``5``, assuming that :class:`ThreadPoolExecutor` is often used to overlap I/O instead of CPU work and the number of workers should be higher than the number of workers for :class:`ProcessPoolExecutor`."
200
208
msgstr"اگر *max_workers* ``None`` باشد یا ارائه نشود، بهطور پیشفرض برابر با تعداد پردازندههای ماشین ضرب در ``5`` خواهد بود، با این فرض که :class:`ThreadPoolExecutor` اغلب برای همپوشانی ورودی/خروجی بهجای کار پردازنده استفاده میشود و تعداد کارگرها باید بیشتر از تعداد کارگرهای :class:`ProcessPoolExecutor` باشد."
201
209
@@ -214,6 +222,9 @@ msgstr "ThreadPoolExecutor اکنون پیش از راهاندازی *max_wor
214
222
msgid"Default value of *max_workers* is changed to ``min(32, (os.process_cpu_count() or 1) + 4)``."
215
223
msgstr"مقدار پیشفرض *max_workers* به ``min(32, (os.process_cpu_count() or 1) + 4)`` تغییر کرده است."
216
224
225
+
msgid"Added *ctxkwargs* to pass additional arguments to :meth:`prepare_context` class method."
0 commit comments