-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathqueue.po
More file actions
255 lines (197 loc) · 28 KB
/
Copy pathqueue.po
File metadata and controls
255 lines (197 loc) · 28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Revisto <theRevisto@gmail.com>, 2025
# Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-09-16 12:56+0000\n"
"PO-Revision-Date: 2026-09-15 13:08+0330\n"
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
"Language: fa\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 3.6\n"
msgid ":mod:`!queue` --- A synchronized queue class"
msgstr ":mod:`!queue` --- کلاس صف همگامشده"
msgid "**Source code:** :source:`Lib/queue.py`"
msgstr "**کد منبع:** :source:`Lib/queue.py`"
msgid "The :mod:`!queue` module implements multi-producer, multi-consumer queues. It is especially useful in threaded programming when information must be exchanged safely between multiple threads. The :class:`Queue` class in this module implements all the required locking semantics."
msgstr "ماژول :mod:`!queue` صفهایی با چند تولیدکننده و چند مصرفکننده را پیادهسازی میکند. این ماژول بهویژه در برنامهنویسی نخی، زمانی که اطلاعات باید بهصورت ایمن بین چند نخ مبادله شود، مفید است. کلاس :class:`Queue` در این ماژول، تمام معناهای قفلسازی مورد نیاز را پیادهسازی میکند."
msgid "The module implements three types of queue, which differ only in the order in which the entries are retrieved. In a :abbr:`FIFO (first-in, first-out)` queue, the first tasks added are the first retrieved. In a :abbr:`LIFO (last-in, first-out)` queue, the most recently added entry is the first retrieved (operating like a stack). With a priority queue, the entries are kept sorted (using the :mod:`heapq` module) and the lowest valued entry is retrieved first."
msgstr "این ماژول سه نوع صف را پیادهسازی میکند که تنها در ترتیب بازیابی ورودیها تفاوت دارند. در صف :abbr:`FIFO (first-in, first-out)`، نخستین وظایف افزودهشده، نخستین وظایف بازیابیشده هستند. در صف :abbr:`LIFO (last-in, first-out)`، آخرین ورودی افزودهشده، نخستین ورودی بازیابیشده است (مانند یک هیپ عمل میکند). در صف اولویت، ورودیها مرتب نگه داشته میشوند (با استفاده از ماژول :mod:`heapq`) و ورودی با کمترین مقدار، ابتدا بازیابی میشود."
msgid "Internally, those three types of queues use locks to temporarily block competing threads; however, they are not designed to handle reentrancy within a thread."
msgstr "در داخل، آن سه نوع صف از قفلها استفاده میکنند تا نخهای رقیب را بهطور موقت مسدود کنند؛ با این حال، آنها برای مدیریت بازورودپذیری (reentrancy) درون یک نخ طراحی نشدهاند."
msgid "In addition, the module implements a \"simple\" :abbr:`FIFO (first-in, first-out)` queue type, :class:`SimpleQueue`, whose specific implementation provides additional guarantees in exchange for the smaller functionality."
msgstr "علاوه بر این، این ماژول یک نوع صف «ساده» از نوع :abbr:`FIFO (first-in, first-out)`، :class:`SimpleQueue`، را پیادهسازی میکند که پیادهسازی خاص آن، تضمینهای بیشتری را در ازای قابلیت کمتر ارائه میدهد."
msgid "The :mod:`!queue` module defines the following classes and exceptions:"
msgstr "ماژول :mod:`!queue` کلاسها و استثناهای زیر را تعریف میکند:"
msgid "Constructor for a :abbr:`FIFO (first-in, first-out)` queue. *maxsize* is an integer that sets the upperbound limit on the number of items that can be placed in the queue. Insertion will block once this size has been reached, until queue items are consumed. If *maxsize* is less than or equal to zero, the queue size is infinite."
msgstr "سازندهی یک صف :abbr:`FIFO (first-in, first-out)`. *maxsize* یک عدد صحیح است که حد بالای تعداد آیتمهایی را که میتوان در صف قرار داد، تعیین میکند. پس از رسیدن به این اندازه، درج مسدود میشود تا زمانی که آیتمهای صف مصرف شوند. اگر *maxsize* کوچکتر یا مساوی صفر باشد، اندازه صف بینهایت است."
msgid "Constructor for a :abbr:`LIFO (last-in, first-out)` queue. *maxsize* is an integer that sets the upperbound limit on the number of items that can be placed in the queue. Insertion will block once this size has been reached, until queue items are consumed. If *maxsize* is less than or equal to zero, the queue size is infinite."
msgstr "سازندهای برای صف :abbr:`LIFO (آخرین ورودی، اولین خروجی) <LIFO (last-in, first-out)>`. *maxsize* یک عدد صحیح است که حد بالای تعداد آیتمهایی را که میتوان در صف قرار داد، تعیین میکند. پس از رسیدن به این اندازه، درج تا زمانی که آیتمهای صف مصرف شوند، مسدود خواهد شد. اگر *maxsize* کمتر یا مساوی صفر باشد، اندازه صف بینهایت است."
msgid "Constructor for a priority queue. *maxsize* is an integer that sets the upperbound limit on the number of items that can be placed in the queue. Insertion will block once this size has been reached, until queue items are consumed. If *maxsize* is less than or equal to zero, the queue size is infinite."
msgstr "سازنده برای یک صف اولویتدار. *maxsize* یک عدد صحیح است که حد بالایی تعداد آیتمهایی را که میتوان در صف قرار داد تعیین میکند. پس از رسیدن به این اندازه، درج تا زمانی که آیتمهای صف مصرف شوند مسدود میشود. اگر *maxsize* کمتر یا مساوی صفر باشد، اندازه صف بینهایت است."
msgid "The lowest valued entries are retrieved first (the lowest valued entry is the one that would be returned by ``min(entries)``). A typical pattern for entries is a tuple in the form: ``(priority_number, data)``."
msgstr "ابتدا آیتمهایی با کمترین مقدار بازیابی میشوند (آیتم با کمترین مقدار، آیتمی است که ``min(entries)`` آن را بازمیگرداند). یک الگوی رایج برای آیتمها، تاپلبه شکل ``(priority_number, data)`` است."
msgid "If the *data* elements are not comparable, the data can be wrapped in a class that ignores the data item and only compares the priority number::"
msgstr "اگر عناصر *data* قابل مقایسه نباشند، میتوان داده را در کلاسی پوششی قرار داد که آیتم داده را نادیده میگیرد و تنها عدد اولویت را مقایسه میکند::"
msgid ""
"from dataclasses import dataclass, field\n"
"from typing import Any\n"
"\n"
"@dataclass(order=True)\n"
"class PrioritizedItem:\n"
" priority: int\n"
" item: Any=field(compare=False)"
msgstr ""
"from dataclasses import dataclass, field\n"
"from typing import Any\n"
"\n"
"@dataclass(order=True)\n"
"class PrioritizedItem:\n"
" priority: int\n"
" item: Any=field(compare=False)"
msgid "Constructor for an unbounded :abbr:`FIFO (first-in, first-out)` queue. Simple queues lack advanced functionality such as task tracking."
msgstr "سازنده برای یک صف نامحدود :abbr:`FIFO (first-in, first-out)`. صفهای ساده فاقد قابلیتهای پیشرفتهای مانند پیگیری وظایف هستند."
msgid "Simple queues are :ref:`generic <generics>` over the type of their items."
msgstr "صفهای ساده نسبت به نوع آیتمهای خود :ref:`generic <generics>` هستند."
msgid "Exception raised when non-blocking :meth:`~Queue.get` (or :meth:`~Queue.get_nowait`) is called on a :class:`Queue` object which is empty."
msgstr "استثنایی که هنگام فراخوانی :meth:`~Queue.get` بهصورت غیرمسدودکننده (یا :meth:`~Queue.get_nowait`) روی یک شیء :class:`Queue` که خالی است، پرتاب میشود."
msgid "Exception raised when non-blocking :meth:`~Queue.put` (or :meth:`~Queue.put_nowait`) is called on a :class:`Queue` object which is full."
msgstr "استثنایی که هنگام فراخوانی :meth:`~Queue.put` (یا :meth:`~Queue.put_nowait`) بهصورت غیرمسدودکننده بر روی یک شیء :class:`Queue` که پر است، پرتاب میشود."
msgid "Exception raised when :meth:`~Queue.put` or :meth:`~Queue.get` is called on a :class:`Queue` object which has been shut down."
msgstr "استثنایی که هنگام فراخوانی :meth:`~Queue.put` یا :meth:`~Queue.get` روی یک شیء :class:`Queue` که خاموش شده است، پرتاب میشود."
msgid "Queue Objects"
msgstr "اشیاء صف"
msgid "Queue objects (:class:`Queue`, :class:`LifoQueue`, or :class:`PriorityQueue`) provide the public methods described below."
msgstr "اشیای صف (:class:`Queue`، :class:`LifoQueue` یا :class:`PriorityQueue`) متدهای عمومی توصیفشده در زیر را ارائه میدهند."
msgid "Return the approximate size of the queue. Note, qsize() > 0 doesn't guarantee that a subsequent get() will not block, nor will qsize() < maxsize guarantee that put() will not block."
msgstr "اندازهی تقریبی صف را برمیگرداند. توجه داشته باشید که qsize() > 0 تضمین نمیکند که get() بعدی مسدود نخواهد شد، و qsize() < maxsize نیز تضمین نمیکند که put() مسدود نخواهد شد."
msgid "Return ``True`` if the queue is empty, ``False`` otherwise. If empty() returns ``True`` it doesn't guarantee that a subsequent call to put() will not block. Similarly, if empty() returns ``False`` it doesn't guarantee that a subsequent call to get() will not block."
msgstr "اگر صف خالی باشد، ``True`` و در غیر این صورت ``False`` برمیگرداند. اگر empty() مقدار ``True`` برگرداند، تضمین نمیکند که فراخوانی بعدی put() مسدود نخواهد شد. بهطور مشابه، اگر empty() مقدار ``False`` برگرداند، تضمین نمیکند که فراخوانی بعدی get() مسدود نخواهد شد."
msgid "Return ``True`` if the queue is full, ``False`` otherwise. If full() returns ``True`` it doesn't guarantee that a subsequent call to get() will not block. Similarly, if full() returns ``False`` it doesn't guarantee that a subsequent call to put() will not block."
msgstr "اگر صف پر باشد، ``True`` و در غیر این صورت ``False`` برمیگرداند. اگر full() مقدار ``True`` را برگرداند، تضمین نمیکند که فراخوانی بعدی get() مسدود نخواهد شد. بهطور مشابه، اگر full() مقدار ``False`` را برگرداند، تضمین نمیکند که فراخوانی بعدی put() مسدود نخواهد شد."
msgid "Put *item* into the queue. If optional args *block* is true and *timeout* is ``None`` (the default), block if necessary until a free slot is available. If *timeout* is a positive number, it blocks at most *timeout* seconds and raises the :exc:`Full` exception if no free slot was available within that time. Otherwise (*block* is false), put an item on the queue if a free slot is immediately available, else raise the :exc:`Full` exception (*timeout* is ignored in that case)."
msgstr "*item* را در صف قرار میدهد. اگر آرگومان اختیاری *block* درست باشد و *timeout* برابر ``None`` باشد (پیشفرض)، در صورت لزوم تا زمانی که یک جایگاه آزاد در دسترس قرار گیرد، مسدود میشود. اگر *timeout* یک عدد مثبت باشد، حداکثر *timeout* ثانیه مسدود میشود و اگر در آن مدت جایگاه آزادی در دسترس قرار نگرفت، استثنای :exc:`Full` را پرتاب میکند. در غیر این صورت (*block* نادرست است)، اگر یک جایگاه آزاد بلافاصله در دسترس باشد، یک آیتم را در صف قرار میدهد، وگرنه استثنای :exc:`Full` را پرتاب میکند (در این حالت *timeout* نادیده گرفته میشود)."
msgid "Raises :exc:`ShutDown` if the queue has been shut down."
msgstr "اگر صف خاموششده باشد، :exc:`ShutDown` را پرتاب میکند."
msgid "Equivalent to ``put(item, block=False)``."
msgstr "معادل با ``put(item, block=False)``."
msgid "Remove and return an item from the queue. If optional args *block* is true and *timeout* is ``None`` (the default), block if necessary until an item is available. If *timeout* is a positive number, it blocks at most *timeout* seconds and raises the :exc:`Empty` exception if no item was available within that time. Otherwise (*block* is false), return an item if one is immediately available, else raise the :exc:`Empty` exception (*timeout* is ignored in that case)."
msgstr "یک آیتم را از صف حذف و برمیگرداند. اگر آرگومانهای اختیاری به این صورت باشند که *block* درست باشد و *timeout* برابر ``None`` باشد (پیشفرض)، در صورت لزوم تا زمانی که یک آیتم در دسترس باشد مسدود میشود. اگر *timeout* یک عدد مثبت باشد، حداکثر به مدت *timeout* ثانیه مسدود میشود و اگر هیچ آیتمی در آن مدت در دسترس نباشد، استثنای :exc:`Empty` را پرتاب میکند. در غیر این صورت (یعنی وقتی *block* نادرست باشد)، اگر یک آیتم بلافاصله در دسترس باشد آن را برمیگرداند، وگرنه استثنای :exc:`Empty` را پرتاب میکند (در این حالت *timeout* نادیده گرفته میشود)."
msgid "Prior to 3.0 on POSIX systems, and for all versions on Windows, if *block* is true and *timeout* is ``None``, this operation goes into an uninterruptible wait on an underlying lock. This means that no exceptions can occur, and in particular a SIGINT will not trigger a :exc:`KeyboardInterrupt`."
msgstr "پیش از 3.0 در سیستمهای POSIX، و برای تمام نسخهها در ویندوز، اگر *block* درست باشد و *timeout* برابر ``None`` باشد، این عملیات وارد یک انتظار غیرقابلوقفه برای یک قفل زیربنایی میشود. این بدان معناست که هیچ استثنایی نمیتواند رخ دهد، و بهویژه، یک SIGINT موجب :exc:`KeyboardInterrupt` نخواهد شد."
msgid "Raises :exc:`ShutDown` if the queue has been shut down and is empty, or if the queue has been shut down immediately."
msgstr "اگر صف خاموش شده باشد و خالی باشد، یا اگر صف بهصورت فوری خاموش شده باشد، :exc:`ShutDown` را پرتاب میکند."
msgid "Equivalent to ``get(False)``."
msgstr "معادل ``get(False)``."
msgid "Two methods are offered to support tracking whether enqueued tasks have been fully processed by daemon consumer threads."
msgstr "دو متد برای پشتیبانی از پیگیری این موضوع ارائه شده است که آیا وظایف در صف قرار گرفته بهطور کامل توسط نخهای مصرفکنندهی دِیمِن (daemon) پردازش شدهاند یا خیر."
msgid "Indicate that a formerly enqueued task is complete. Used by queue consumer threads. For each :meth:`get` used to fetch a task, a subsequent call to :meth:`task_done` tells the queue that the processing on the task is complete."
msgstr "نشان میدهد که وظیفهای که پیشتر در صف قرار گرفته، کامل شده است. توسط نخهای مصرفکنندهی صف استفاده میشود. به ازای هر :meth:`get` که برای دریافت یک وظیفه استفاده میشود، فراخوانی متعاقب :meth:`task_done` به صف اطلاع میدهد که پردازش روی آن وظیفه کامل شده است."
msgid "If a :meth:`join` is currently blocking, it will resume when all items have been processed (meaning that a :meth:`task_done` call was received for every item that had been :meth:`put` into the queue)."
msgstr "اگر یک :meth:`join` در حال حاضر مسدود شده باشد، هنگامی که همهی آیتمها پردازش شده باشند، ادامه مییابد (به این معنا که یک فراخوانی :meth:`task_done` برای هر آیتمی که با :meth:`put` در صف قرار داده شده بود، دریافت شده باشد)."
msgid "Raises a :exc:`ValueError` if called more times than there were items placed in the queue."
msgstr "اگر بیش از تعداد آیتمهای قرار دادهشده در صف فراخوانی شود، یک :exc:`ValueError` پرتاب میکند."
msgid "Blocks until all items in the queue have been gotten and processed."
msgstr "مسدود میشود تا همهی آیتمهای موجود در صف دریافت و پردازش شده باشند."
msgid "The count of unfinished tasks goes up whenever an item is added to the queue. The count goes down whenever a consumer thread calls :meth:`task_done` to indicate that the item was retrieved and all work on it is complete. When the count of unfinished tasks drops to zero, :meth:`join` unblocks."
msgstr "تعداد وظایف ناتمام هر بار که یک آیتم به صف اضافه شود، افزایش مییابد. این تعداد هر بار که یک نخ مصرفکننده :meth:`task_done` را فراخوانی میکند، کاهش مییابد تا نشان دهد آن آیتم دریافت شده و تمام کار روی آن کامل شده است. هنگامی که تعداد وظایف ناتمام به صفر برسد، :meth:`join` از حالت مسدود خارج میشود."
msgid "Waiting for task completion"
msgstr "انتظار برای تکمیل وظیفه"
msgid "Example of how to wait for enqueued tasks to be completed::"
msgstr "مثالی از نحوهی انتظار برای تکمیل شدن وظایف در صف::"
msgid ""
"import threading\n"
"import queue\n"
"\n"
"q = queue.Queue()\n"
"\n"
"def worker():\n"
" while True:\n"
" item = q.get()\n"
" print(f'Working on {item}')\n"
" print(f'Finished {item}')\n"
" q.task_done()\n"
"\n"
"# Turn-on the worker thread.\n"
"threading.Thread(target=worker, daemon=True).start()\n"
"\n"
"# Send thirty task requests to the worker.\n"
"for item in range(30):\n"
" q.put(item)\n"
"\n"
"# Block until all tasks are done.\n"
"q.join()\n"
"print('All work completed')"
msgstr ""
"import threading\n"
"import queue\n"
"\n"
"q = queue.Queue()\n"
"\n"
"def worker():\n"
" while True:\n"
" item = q.get()\n"
" print(f'Working on {item}')\n"
" print(f'Finished {item}')\n"
" q.task_done()\n"
"\n"
"# Turn-on the worker thread.\n"
"threading.Thread(target=worker, daemon=True).start()\n"
"\n"
"# Send thirty task requests to the worker.\n"
"for item in range(30):\n"
" q.put(item)\n"
"\n"
"# Block until all tasks are done.\n"
"q.join()\n"
"print('All work completed')"
msgid "Terminating queues"
msgstr "پایان دادن به صفها"
msgid "When no longer needed, :class:`Queue` objects can be wound down until empty or terminated immediately with a hard shutdown."
msgstr "هنگامی که دیگر نیازی به آنها نیست، اشیاء :class:`Queue` میتوانند تا خالی شدن بهتدریج متوقف شوند یا بیدرنگ با یک خاموشی سخت (hard shutdown) خاتمه یابند."
msgid "Put a :class:`Queue` instance into a shutdown mode."
msgstr "یک نمونه :class:`Queue` را در حالت خاموشی قرار دهید."
msgid "The queue can no longer grow. Future calls to :meth:`~Queue.put` raise :exc:`ShutDown`. Currently blocked callers of :meth:`~Queue.put` will be unblocked and will raise :exc:`ShutDown` in the formerly blocked thread."
msgstr "صف دیگر نمیتواند رشد کند. فراخوانیهای آینده به :meth:`~Queue.put`، :exc:`ShutDown` را پرتاب خواهند کرد. فراخوانیکنندگان مسدودشدهی کنونی :meth:`~Queue.put` از انسداد خارج خواهند شد و :exc:`ShutDown` را در نخ پیشتر مسدودشده پرتاب خواهند کرد."
msgid "If *immediate* is false (the default), the queue can be wound down normally with :meth:`~Queue.get` calls to extract tasks that have already been loaded."
msgstr "اگر *immediate* نادرست باشد (پیشفرض)، میتوان صف را بهصورت عادی با فراخوانیهای :meth:`~Queue.get` برای استخراج وظایفی که از قبل بارگذاری شدهاند، تخلیه کرد."
msgid "And if :meth:`~Queue.task_done` is called for each remaining task, a pending :meth:`~Queue.join` will be unblocked normally."
msgstr "و اگر :meth:`~Queue.task_done` برای هر وظیفهی باقیمانده فراخوانی شود، یک :meth:`~Queue.join` در انتظار بهطور عادی رفع انسداد خواهد شد."
msgid "Once the queue is empty, future calls to :meth:`~Queue.get` will raise :exc:`ShutDown`."
msgstr "همین که صف خالی شد، فراخوانیهای بعدی به :meth:`~Queue.get`، :exc:`ShutDown` را پرتاب خواهند کرد."
msgid "If *immediate* is true, the queue is terminated immediately. The queue is drained to be completely empty and the count of unfinished tasks is reduced by the number of tasks drained. If unfinished tasks is zero, callers of :meth:`~Queue.join` are unblocked. Also, blocked callers of :meth:`~Queue.get` are unblocked and will raise :exc:`ShutDown` because the queue is empty."
msgstr "اگر *immediate* مقدار true داشته باشد، صف بلافاصله خاتمه داده میشود. صف تخلیه میشود تا کاملاً خالی شود و تعداد وظایف تمامنشده به اندازه تعداد وظایف تخلیهشده کاهش مییابد. اگر تعداد وظایف تمامنشده صفر باشد، فراخوانندگان :meth:`~Queue.join` از حالت مسدود خارج میشوند. همچنین، فراخوانندگان مسدودشدهی :meth:`~Queue.get` از حالت مسدود خارج میشوند و :exc:`ShutDown` را پرتاب خواهند کرد، زیرا صف خالی است."
msgid "Use caution when using :meth:`~Queue.join` with *immediate* set to true. This unblocks the join even when no work has been done on the tasks, violating the usual invariant for joining a queue."
msgstr "هنگام استفاده از :meth:`~Queue.join` در صورتی که *immediate* روی true تنظیمشده باشد، احتیاط کنید. این کار حتی زمانی که هیچ کاری روی وظایف انجامنشده باشد، join را از حالت مسدود خارج میکند و ناوردایی معمول برای پیوستن به یک صف را نقض میکند."
msgid "SimpleQueue Objects"
msgstr "اشیای SimpleQueue"
msgid ":class:`SimpleQueue` objects provide the public methods described below."
msgstr "اشیای :class:`SimpleQueue` متدهای عمومی توصیفشده در زیر را ارائه میدهند."
msgid "Return the approximate size of the queue. Note, qsize() > 0 doesn't guarantee that a subsequent get() will not block."
msgstr "اندازهی تقریبی صف را برمیگرداند. توجه داشته باشید که qsize() > 0 تضمین نمیکند که get() بعدی مسدود نخواهد شد."
msgid "Return ``True`` if the queue is empty, ``False`` otherwise. If empty() returns ``False`` it doesn't guarantee that a subsequent call to get() will not block."
msgstr "اگر صف خالی باشد، ``True`` و در غیر این صورت ``False`` را برمیگرداند. اگر empty() مقدار ``False`` را برگرداند، تضمینی وجود ندارد که فراخوانی بعدی به get() مسدود نشود."
msgid "Put *item* into the queue. The method never blocks and always succeeds (except for potential low-level errors such as failure to allocate memory). The optional args *block* and *timeout* are ignored and only provided for compatibility with :meth:`Queue.put`."
msgstr "*item* را در صف قرار میدهد. این متد هرگز مسدود نمیشود و همیشه با موفقیت انجام میشود (بهجز خطاهای احتمالی سطح پایین مانند ناتوانی در تخصیص حافظه). آرگومانهای اختیاری *block* و *timeout* نادیده گرفته میشوند و تنها برای سازگاری با :meth:`Queue.put` ارائه شدهاند."
msgid "This method has a C implementation which is reentrant. That is, a ``put()`` or ``get()`` call can be interrupted by another ``put()`` call in the same thread without deadlocking or corrupting internal state inside the queue. This makes it appropriate for use in destructors such as ``__del__`` methods or :mod:`weakref` callbacks."
msgstr "این متد یک پیادهسازی C دارد که بازورودپذیر (reentrant) دارد. یعنی یک فراخوانی ``put()`` یا ``get()`` میتواند توسط یک فراخوانی ``put()`` دیگر در همان نخ، بدون ایجاد بنبست (deadlock) یا خراب کردن وضعیت داخلی صف، قطع شود. این موضوع آن را برای استفاده در تخریبکنندهها (destructors)، مانند متدهای ``__del__`` یا کالبکهای :mod:`weakref` مناسب میسازد."
msgid "Equivalent to ``put(item, block=False)``, provided for compatibility with :meth:`Queue.put_nowait`."
msgstr "معادل ``put(item, block=False)`` است و برای سازگاری با :meth:`Queue.put_nowait` ارائه شده است."
msgid "Class :class:`multiprocessing.Queue`"
msgstr "کلاس :class:`multiprocessing.Queue`"
msgid "A queue class for use in a multi-processing (rather than multi-threading) context."
msgstr "یک کلاس صف برای استفاده در زمینهی چندفرایندی (multi-processing) بهجای چندنخی (multi-threading)."
msgid ":class:`collections.deque` is an alternative implementation of unbounded queues with fast atomic :meth:`~collections.deque.append` and :meth:`~collections.deque.popleft` operations that do not require locking and also support indexing."
msgstr ":class:`collections.deque` یک پیادهسازی جایگزین از صفهای نامحدود است که عملیات اتمی سریع :meth:`~collections.deque.append` و :meth:`~collections.deque.popleft` را بدون نیاز به قفلگذاری فراهم میکند و از اندیسدهی نیز پشتیبانی میکند."