Repository navigation
Expand file tree
/
Copy pathasyncio-tools.po
More file actions
227 lines (204 loc) · 15.3 KB
/
Copy pathasyncio-tools.po
File metadata and controls
227 lines (204 loc) · 15.3 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
# Persian translations for Python package.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# Automatically generated, 2026.
#
# Translators:
# Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026
# arman mohebali <armanmohebali@outlook.com>, 2026
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-10-01 14:41+0330\n"
"PO-Revision-Date: 2026-09-15 07:59+0330\n"
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
"Language-Team: none\n"
"Language: fa\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.6\n"
msgid "Command-line introspection tools"
msgstr "ابزارهای دروننگری خط فرمان"
msgid "**Source code:** :source:`Lib/asyncio/tools.py`"
msgstr "**کد منبع:** :source:`Lib/asyncio/tools.py`"
msgid "The :mod:`!asyncio` module can be invoked as a script via ``python -m asyncio`` to inspect the task graph of another running Python process without modifying it or restarting it. The :mod:`!asyncio.tools` submodule implements this interface."
msgstr "میتوان ماژول :mod:`!asyncio` را بهعنوان یک اسکریپت از طریق ``python -m asyncio`` فراخوانی کرد تا گراف وظایف (task graph) فرایند پایتون دیگری که در حال اجرا است، بدون تغییر آن یا راهاندازی مجدد آن بررسی شود. زیرماژول :mod:`!asyncio.tools` این رابط را پیادهسازی میکند."
msgid "The following commands inspect the process identified by ``PID``:"
msgstr "دستورات زیر فرایند شناساییشده با ``PID`` را بررسی میکنند:"
msgid ""
"$ python -m asyncio pstree [--retries N] PID\n"
"$ python -m asyncio ps [--retries N] PID"
msgstr ""
"$ python -m asyncio pstree [--retries N] PID\n"
"$ python -m asyncio ps [--retries N] PID"
msgid "The commands read the target process state without executing any code in it. They are only available on supported platforms and may require permission to inspect another process. See the :ref:`permission requirements <permission-requirements>` for details."
msgstr "این دستورات وضعیت فرایند هدف را بدون اجرای هیچ کدی در آن میخوانند. آنها فقط روی پلتفرمهای پشتیبانیشده در دسترس هستند و ممکن است برای بازرسی یک فرایند دیگر به مجوز نیاز داشته باشند. برای جزئیات، :ref:`الزامات مجوز <permission-requirements>` را ببینید."
msgid ":ref:`asyncio-graph`"
msgstr ":ref:`asyncio-graph`"
msgid "Programmatic APIs for inspecting the async call graph of a task or future in the current process."
msgstr "API های برنامهای برای بازرسی گراف فراخوانی ناهمگام یک وظیفه یا آیندهنما در فرایند جاری."
msgid "The command examples below use this program, which creates a task hierarchy suitable for inspection and prints its process ID:"
msgstr "مثالهای دستوری زیر از این برنامه استفاده میکنند، که یک سلسلهمراتب وظیفه مناسب برای بازرسی ایجاد میکند و شناسه فرآیند خود را چاپ میکند:"
msgid "example.py"
msgstr "example.py"
msgid ""
"import asyncio\n"
"import os\n"
"\n"
"async def play(track):\n"
" await asyncio.sleep(3600)\n"
" print(f\"🎵 Finished: {track}\")\n"
"\n"
"async def album(name, tracks):\n"
" async with asyncio.TaskGroup() as tg:\n"
" for track in tracks:\n"
" tg.create_task(play(track), name=track)\n"
"\n"
"async def main():\n"
" print(f\"PID: {os.getpid()}\")\n"
" async with asyncio.TaskGroup() as tg:\n"
" tg.create_task(\n"
" album(\"Sundowning\", [\"TNDNBTG\", \"Levitate\"]),\n"
" name=\"Sundowning\",\n"
" )\n"
" tg.create_task(\n"
" album(\"TMBTE\", [\"DYWTYLM\", \"Aqua Regia\"]),\n"
" name=\"TMBTE\",\n"
" )\n"
"\n"
"asyncio.run(main())"
msgstr ""
"import asyncio\n"
"import os\n"
"\n"
"async def play(track):\n"
" await asyncio.sleep(3600)\n"
" print(f\"🎵 Finished: {track}\")\n"
"\n"
"async def album(name, tracks):\n"
" async with asyncio.TaskGroup() as tg:\n"
" for track in tracks:\n"
" tg.create_task(play(track), name=track)\n"
"\n"
"async def main():\n"
" print(f\"PID: {os.getpid()}\")\n"
" async with asyncio.TaskGroup() as tg:\n"
" tg.create_task(\n"
" album(\"Sundowning\", [\"TNDNBTG\", \"Levitate\"]),\n"
" name=\"Sundowning\",\n"
" )\n"
" tg.create_task(\n"
" album(\"TMBTE\", [\"DYWTYLM\", \"Aqua Regia\"]),\n"
" name=\"TMBTE\",\n"
" )\n"
"\n"
"asyncio.run(main())"
msgid "Run the program in one terminal and leave it running:"
msgstr "برنامه را در یک پایانه اجرا کنید و بگذارید در حال اجرا بماند:"
msgid ""
"$ python example.py\n"
"PID: 12345"
msgstr ""
"$ python example.py\n"
"PID: 12345"
msgid "Then pass the printed process ID to the commands from another terminal. Thread IDs, task IDs, file paths, and line numbers vary between runs and source layouts."
msgstr "سپس از پایانهای دیگر، شناسهی فرایند چاپشده را به دستورات بدهید. شناسههای نخ، شناسههای وظیفه، مسیرهای پرونده و شمارههای خط در اجراها و چیدمانهای مختلف منبع متفاوت هستند."
msgid "Command-line options"
msgstr "گزینههای خط فرمان"
msgid "Display task and coroutine relationships as a tree. Each task is shown with its full coroutine stack, nested under the task (if any) that is awaiting it. This subcommand is useful for quickly identifying which branch of a task hierarchy is blocked and where in its coroutine stack execution has paused:"
msgstr "نمایش روابط وظیفه و همروال بهصورت یک درخت. هر وظیفه همراه با پشتهی کامل همروال خود نمایش داده میشود و بهصورت تودرتو زیر وظیفهای (در صورت وجود) که آن را await میکند، قرار میگیرد. این زیردستور برای شناسایی سریع اینکه کدام شاخه از سلسلهمراتب وظایف مسدود شده است و اجرا در کجای پشتهی همروال آن مکث کرده است، مفید است:"
msgid ""
"$ python -m asyncio pstree 12345\n"
"└── (T) Task-1\n"
" └── main example.py:12\n"
" └── TaskGroup.__aexit__ Lib/asyncio/taskgroups.py:75\n"
" └── TaskGroup._aexit Lib/asyncio/taskgroups.py:124\n"
" ├── (T) Sundowning\n"
" │ └── album example.py:7\n"
" │ └── TaskGroup.__aexit__ Lib/asyncio/taskgroups.py:75\n"
" │ └── TaskGroup._aexit Lib/asyncio/taskgroups.py:124\n"
" │ ├── (T) TNDNBTG\n"
" │ │ └── play example.py:4\n"
" │ │ └── sleep Lib/asyncio/tasks.py:702\n"
" │ └── (T) Levitate\n"
" │ └── play example.py:4\n"
" │ └── sleep Lib/asyncio/tasks.py:702\n"
" └── (T) TMBTE\n"
" └── album example.py:7\n"
" └── TaskGroup.__aexit__ Lib/asyncio/taskgroups.py:75\n"
" └── TaskGroup._aexit Lib/asyncio/taskgroups.py:124\n"
" ├── (T) DYWTYLM\n"
" │ └── play example.py:4\n"
" │ └── sleep Lib/asyncio/tasks.py:702\n"
" └── (T) Aqua Regia\n"
" └── play example.py:4\n"
" └── sleep Lib/asyncio/tasks.py:702"
msgstr ""
"$ python -m asyncio pstree 12345\n"
"└── (T) Task-1\n"
" └── main example.py:12\n"
" └── TaskGroup.__aexit__ Lib/asyncio/taskgroups.py:75\n"
" └── TaskGroup._aexit Lib/asyncio/taskgroups.py:124\n"
" ├── (T) Sundowning\n"
" │ └── album example.py:7\n"
" │ └── TaskGroup.__aexit__ Lib/asyncio/taskgroups.py:75\n"
" │ └── TaskGroup._aexit Lib/asyncio/taskgroups.py:124\n"
" │ ├── (T) TNDNBTG\n"
" │ │ └── play example.py:4\n"
" │ │ └── sleep Lib/asyncio/tasks.py:702\n"
" │ └── (T) Levitate\n"
" │ └── play example.py:4\n"
" │ └── sleep Lib/asyncio/tasks.py:702\n"
" └── (T) TMBTE\n"
" └── album example.py:7\n"
" └── TaskGroup.__aexit__ Lib/asyncio/taskgroups.py:75\n"
" └── TaskGroup._aexit Lib/asyncio/taskgroups.py:124\n"
" ├── (T) DYWTYLM\n"
" │ └── play example.py:4\n"
" │ └── sleep Lib/asyncio/tasks.py:702\n"
" └── (T) Aqua Regia\n"
" └── play example.py:4\n"
" └── sleep Lib/asyncio/tasks.py:702"
msgid "If the await graph contains a cycle, ``pstree`` reports an error instead of printing a tree. A cycle in the await graph is unusual and typically indicates a programming error:"
msgstr "اگر گراف await شامل یک دور باشد، ``pstree`` بهجای چاپ یک درخت، خطایی را گزارش میکند. وجود دور در گراف await غیرمعمول است و معمولاً نشاندهندهی یک خطای برنامهنویسی است:"
msgid ""
"$ python -m asyncio pstree 12345\n"
"ERROR: await-graph contains cycles - cannot print a tree!\n"
"\n"
"cycle: Task-2 → Task-3 → Task-2"
msgstr ""
"$ python -m asyncio pstree 12345\n"
"ERROR: await-graph contains cycles - cannot print a tree!\n"
"\n"
"cycle: Task-2 → Task-3 → Task-2"
msgid "Display a flat table of all pending tasks in the process *PID*. Each row shows the event-loop thread ID, task ID and name, coroutine stack, and the awaiting task's stack, name, and ID, if any."
msgstr "نمایش یک جدول تخت از تمام وظایف در انتظار در فرایند *PID*. هر ردیف شناسهی نخ حلقهی رویداد، شناسه و نام وظیفه، پشتهی همروال، و در صورت وجود، پشته، نام و شناسهی وظیفه منتظر را نشان میدهد."
msgid "This subcommand prints all tasks regardless of whether the await graph contains cycles:"
msgstr "این زیردستور همه وظایف را صرفنظر از اینکه گراف await حاوی چرخه باشد، چاپ میکند:"
msgid ""
"$ python -m asyncio ps 12345\n"
"tid task id task name coroutine stack awaiter chain awaiter name awaiter id\n"
"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n"
"18445801 0x10a456060 Task-1 TaskGroup._aexit -> TaskGroup.__aexit__ -> main 0x0\n"
"18445801 0x10a439f60 Sundowning TaskGroup._aexit -> TaskGroup.__aexit__ -> album TaskGroup._aexit -> TaskGroup.__aexit__ -> main Task-1 0x10a456060\n"
"18445801 0x10a439d70 TMBTE TaskGroup._aexit -> TaskGroup.__aexit__ -> album TaskGroup._aexit -> TaskGroup.__aexit__ -> main Task-1 0x10a456060\n"
"18445801 0x10a2a3a80 TNDNBTG sleep -> play TaskGroup._aexit -> TaskGroup.__aexit__ -> album Sundowning 0x10a439f60\n"
"18445801 0x10a2a38a0 Levitate sleep -> play TaskGroup._aexit -> TaskGroup.__aexit__ -> album Sundowning 0x10a439f60\n"
"18445801 0x10a2d7150 DYWTYLM sleep -> play TaskGroup._aexit -> TaskGroup.__aexit__ -> album TMBTE 0x10a439d70\n"
"18445801 0x10a6bdaa0 Aqua Regia sleep -> play TaskGroup._aexit -> TaskGroup.__aexit__ -> album TMBTE 0x10a439d70"
msgstr ""
"$ python -m asyncio ps 12345\n"
"tid task id task name coroutine stack awaiter chain awaiter name awaiter id\n"
"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n"
"18445801 0x10a456060 Task-1 TaskGroup._aexit -> TaskGroup.__aexit__ -> main 0x0\n"
"18445801 0x10a439f60 Sundowning TaskGroup._aexit -> TaskGroup.__aexit__ -> album TaskGroup._aexit -> TaskGroup.__aexit__ -> main Task-1 0x10a456060\n"
"18445801 0x10a439d70 TMBTE TaskGroup._aexit -> TaskGroup.__aexit__ -> album TaskGroup._aexit -> TaskGroup.__aexit__ -> main Task-1 0x10a456060\n"
"18445801 0x10a2a3a80 TNDNBTG sleep -> play TaskGroup._aexit -> TaskGroup.__aexit__ -> album Sundowning 0x10a439f60\n"
"18445801 0x10a2a38a0 Levitate sleep -> play TaskGroup._aexit -> TaskGroup.__aexit__ -> album Sundowning 0x10a439f60\n"
"18445801 0x10a2d7150 DYWTYLM sleep -> play TaskGroup._aexit -> TaskGroup.__aexit__ -> album TMBTE 0x10a439d70\n"
"18445801 0x10a6bdaa0 Aqua Regia sleep -> play TaskGroup._aexit -> TaskGroup.__aexit__ -> album TMBTE 0x10a439d70"
msgid "Retry failed attempts to inspect the target process up to *N* times. This can help when the target process changes while its state is being read."
msgstr "تلاشهای ناموفق برای بازرسی فرایند هدف را تا *N* بار دوباره امتحان کنید. این کار میتواند زمانی مفید باشد که فرایند هدف در حین خوانده شدن وضعیتش تغییر کند."