66# Translators:
77# Alireza Shabani (Revisto) <theRevisto@gmail.com>, 2025
88# Ariyan Bolandi, 2025
9+ # khosro azimi, 2025
910#
1011#, fuzzy
1112msgid ""
1213msgstr ""
1314"Project-Id-Version : Python 3.14\n "
1415"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2025-05-08 02:53-0300 \n "
16+ "POT-Creation-Date : 2025-05-16 14:19+0000 \n "
1617"PO-Revision-Date : 2021-06-28 01:50+0000\n "
17- "Last-Translator : Ariyan Bolandi , 2025\n "
18+ "Last-Translator : khosro azimi , 2025\n "
1819"Language-Team : Persian (https://app.transifex.com/python-doc/teams/5390/ "
1920"fa/)\n "
2021"MIME-Version : 1.0\n "
@@ -25,24 +26,30 @@ msgstr ""
2526
2627#: ../../tutorial/errors.rst:5
2728msgid "Errors and Exceptions"
28- msgstr ""
29+ msgstr "خطاها و استثناها "
2930
3031#: ../../tutorial/errors.rst:7
3132msgid ""
3233"Until now error messages haven't been more than mentioned, but if you have "
3334"tried out the examples you have probably seen some. There are (at least) "
3435"two distinguishable kinds of errors: *syntax errors* and *exceptions*."
3536msgstr ""
37+ "تا اینجا پیامهای خطا فقط به صورت کوتاه ذکر شدهاند، اما اگر مثالها را امتحان "
38+ "کرده باشید احتمالاً برخی از آنها را دیدهاید. حداقل دو نوع متمایز از خطا وجود "
39+ "دارد: *خطاهای دستوری* «syntax errors» و *استثناها* «exceptions»."
3640
3741#: ../../tutorial/errors.rst:15
3842msgid "Syntax Errors"
39- msgstr ""
43+ msgstr "خطاهای دستوری "
4044
4145#: ../../tutorial/errors.rst:17
4246msgid ""
4347"Syntax errors, also known as parsing errors, are perhaps the most common "
4448"kind of complaint you get while you are still learning Python::"
4549msgstr ""
50+ "خطاهای دستوری، که بهعنوان خطاهای تجزیهگر «parsing errors» نیز شناخته میشوند، "
51+ "شاید رایجترین نوع خطاهایی باشند که هنگام یادگیری پایتون با آنها مواجه "
52+ "میشوید::"
4653
4754#: ../../tutorial/errors.rst:20
4855msgid ""
@@ -52,6 +59,11 @@ msgid ""
5259" ^^^^^\n"
5360"SyntaxError: invalid syntax"
5461msgstr ""
62+ ">>> while True print('Hello world')\n"
63+ " File \" <stdin>\" , line 1\n"
64+ " while True print('Hello world')\n"
65+ " ^^^^^\n"
66+ "SyntaxError: invalid syntax"
5567
5668#: ../../tutorial/errors.rst:26
5769msgid ""
@@ -60,16 +72,23 @@ msgid ""
6072"place that needs to be fixed. In the example, the error is detected at the "
6173"function :func:`print`, since a colon (``':'``) is missing just before it."
6274msgstr ""
75+ "تجزیهگر «parser» خط مشکلدار را تکرار میکند و فلشهای کوچکی را نشان میدهد که "
76+ "به جایی اشاره دارند که خطا در آن شناسایی شده است.\n"
77+ "توجه داشته باشید که این همیشه همان جایی نیست که باید اصلاح شود.\n"
78+ "در این مثال، خطا در تابع :func:`print`شناسایی شده است، زیرا دو نقطه "
79+ "(``':'``) درست قبل از آن وجود ندارد."
6380
6481#: ../../tutorial/errors.rst:31
6582msgid ""
6683"The file name (``<stdin>`` in our example) and line number are printed so "
6784"you know where to look in case the input came from a file."
6885msgstr ""
86+ "نام فایل (در مثال ما ``<stdin>``) و شماره خط چاپ می شوند تا اگر ورودی از یک "
87+ "فایل آمده باشد، بدانید باید کجا را بررسی کنید."
6988
7089#: ../../tutorial/errors.rst:38
7190msgid "Exceptions"
72- msgstr ""
91+ msgstr "استثناء ها "
7392
7493#: ../../tutorial/errors.rst:40
7594msgid ""
@@ -80,6 +99,12 @@ msgid ""
8099"not handled by programs, however, and result in error messages as shown "
81100"here::"
82101msgstr ""
102+ "حتی اگر یک دستور یا عبارت از نظر دستوری «syntactically» درست باشد، ممکن است "
103+ "هنگام اجرای آن خطایی رخ دهد. خطاهایی که هنگام اجرا شناسایی میشوند «استثنا» "
104+ "«*exceptions*» نام دارند و الزاماً باعث توقف برنامه نمیشوند؛ بهزودی خواهید "
105+ "آموخت چگونه آنها را در برنامههای پایتون مدیریت کنید. با این حال، بیشتر "
106+ "استثناها در برنامهها مدیریت نمیشوند و به پیامهای خطا ختم میشوند، مانند چیزی "
107+ "که در اینجا نمایش داده شده است::"
83108
84109#: ../../tutorial/errors.rst:46
85110msgid ""
@@ -102,6 +127,24 @@ msgid ""
102127" ~~~~^~~\n"
103128"TypeError: can only concatenate str (not \" int\" ) to str"
104129msgstr ""
130+ ">>> 10 * (1/0)\n"
131+ "Traceback (most recent call last):\n"
132+ " File \" <stdin>\" , line 1, in <module>\n"
133+ " 10 * (1/0)\n"
134+ " ~^~\n"
135+ "ZeroDivisionError: division by zero\n"
136+ ">>> 4 + spam*3\n"
137+ "Traceback (most recent call last):\n"
138+ " File \" <stdin>\" , line 1, in <module>\n"
139+ " 4 + spam*3\n"
140+ " ^^^^\n"
141+ "NameError: name 'spam' is not defined\n"
142+ ">>> '2' + 2\n"
143+ "Traceback (most recent call last):\n"
144+ " File \" <stdin>\" , line 1, in <module>\n"
145+ " '2' + 2\n"
146+ " ~~~~^~~\n"
147+ "TypeError: can only concatenate str (not \" int\" ) to str"
105148
106149#: ../../tutorial/errors.rst:65
107150msgid ""
0 commit comments