@@ -12,7 +12,7 @@ msgstr ""
1212"Project-Id-Version : Python 3.14\n "
1313"Report-Msgid-Bugs-To : \n "
1414"POT-Creation-Date : 2026-07-25 12:59+0330\n "
15- "PO-Revision-Date : 2026-07-31 13:23 +0330\n "
15+ "PO-Revision-Date : 2026-08-01 16:31 +0330\n "
1616"Last-Translator : Alireza Shabani (Revisto) <theRevisto@gmail.com>, 2025\n "
1717"Language-Team : Persian (https://app.transifex.com/python-doc/teams/5390/ "
1818"fa/)\n "
@@ -25,17 +25,17 @@ msgstr ""
2525
2626#: ../../tutorial/stdlib.rst:5
2727msgid "Brief tour of the standard library"
28- msgstr ""
28+ msgstr "نگاهی کوتاه به کتابخانهٔ استاندارد "
2929
3030#: ../../tutorial/stdlib.rst:11
3131msgid "Operating system interface"
32- msgstr ""
32+ msgstr "رابط سیستمعامل "
3333
3434#: ../../tutorial/stdlib.rst:13
3535msgid ""
3636"The :mod:`os` module provides dozens of functions for interacting with the "
3737"operating system::"
38- msgstr ""
38+ msgstr "ماژول :mod:`os` دهها تابع برای تعامل با سیستمعامل فراهم میکند:: "
3939
4040#: ../../tutorial/stdlib.rst:16
4141msgid ""
@@ -59,12 +59,17 @@ msgid ""
5959"This will keep :func:`os.open` from shadowing the built-in :func:`open` "
6060"function which operates much differently."
6161msgstr ""
62+ "حتماً از سبک ``import os`` بهجای ``from os import *`` استفاده کنید. این کار "
63+ "باعث میشود :func:`os.open` روی تابع داخلی :func:`open` که عملکرد کاملاً "
64+ "متفاوتی دارد، سایه نیندازد."
6265
6366#: ../../tutorial/stdlib.rst:29
6467msgid ""
6568"The built-in :func:`dir` and :func:`help` functions are useful as "
6669"interactive aids for working with large modules like :mod:`os`::"
6770msgstr ""
71+ "توابع داخلی :func:`dir` و :func:`help` بهعنوان ابزارهای تعاملی برای کار با "
72+ "ماژولهای بزرگی مانند :mod:`os` مفید هستند::"
6873
6974#: ../../tutorial/stdlib.rst:32
7075msgid ""
@@ -85,6 +90,8 @@ msgid ""
8590"For daily file and directory management tasks, the :mod:`shutil` module "
8691"provides a higher level interface that is easier to use::"
8792msgstr ""
93+ "برای کارهای روزمرهٔ مدیریت فایلها و پوشهها، ماژول :mod:`shutil` یک رابط سطح "
94+ "بالاتر ارائه میدهد که استفاده از آن سادهتر است::"
8895
8996#: ../../tutorial/stdlib.rst:41
9097msgid ""
@@ -102,13 +109,15 @@ msgstr ""
102109
103110#: ../../tutorial/stdlib.rst:51
104111msgid "File wildcards"
105- msgstr ""
112+ msgstr "الگوهای عام فایل "
106113
107114#: ../../tutorial/stdlib.rst:53
108115msgid ""
109116"The :mod:`glob` module provides a function for making file lists from "
110117"directory wildcard searches::"
111118msgstr ""
119+ "ماژول :mod:`glob` تابعی برای ساخت فهرستی از فایلها با استفاده از جستجوهای "
120+ "الگوی عام در پوشهها فراهم میکند::"
112121
113122#: ../../tutorial/stdlib.rst:56
114123msgid ""
@@ -122,14 +131,17 @@ msgstr ""
122131
123132#: ../../tutorial/stdlib.rst:64
124133msgid "Command-line arguments"
125- msgstr ""
134+ msgstr "آرگومانهای خط فرمان "
126135
127136#: ../../tutorial/stdlib.rst:66
128137msgid ""
129138"Common utility scripts often need to process command line arguments. These "
130139"arguments are stored in the :mod:`sys` module's *argv* attribute as a list. "
131140"For instance, let's take the following :file:`demo.py` file::"
132141msgstr ""
142+ "اسکریپتهای کاربردی معمولاً نیاز دارند آرگومانهای خط فرمان را پردازش کنند. این "
143+ "آرگومانها در ویژگی *argv* ماژول :mod:`sys` بهصورت یک فهرست ذخیره میشوند. "
144+ "برای مثال، فایل :file:`demo.py` زیر را در نظر بگیرید::"
133145
134146#: ../../tutorial/stdlib.rst:70
135147msgid ""
@@ -146,6 +158,7 @@ msgid ""
146158"Here is the output from running ``python demo.py one two three`` at the "
147159"command line::"
148160msgstr ""
161+ "خروجی اجرای ``python demo.py one two three`` در خط فرمان به شکل زیر است::"
149162
150163#: ../../tutorial/stdlib.rst:77
151164msgid "['demo.py', 'one', 'two', 'three']"
@@ -157,6 +170,9 @@ msgid ""
157170"process command line arguments. The following script extracts one or more "
158171"filenames and an optional number of lines to be displayed::"
159172msgstr ""
173+ "ماژول :mod:`argparse` سازوکار پیشرفتهتری برای پردازش آرگومانهای خط فرمان "
174+ "فراهم میکند. اسکریپت زیر یک یا چند نام فایل و همچنین تعداد اختیاری خطوطی که "
175+ "باید نمایش داده شوند را استخراج میکند::"
160176
161177#: ../../tutorial/stdlib.rst:83
162178msgid ""
@@ -186,17 +202,23 @@ msgid ""
186202"beta.txt``, the script sets ``args.lines`` to ``5`` and ``args.filenames`` "
187203"to ``['alpha.txt', 'beta.txt']``."
188204msgstr ""
205+ "هنگامی که این اسکریپت با دستور ``python top.py --lines=5 alpha.txt "
206+ "beta.txt`` در خط فرمان اجرا شود، اسکریپت مقدار ``args.lines`` را برابر ``5`` "
207+ "و مقدار ``args.filenames`` را برابر ``['alpha.txt', 'beta.txt']`` قرار میدهد."
189208
190209#: ../../tutorial/stdlib.rst:101
191210msgid "Error output redirection and program termination"
192- msgstr ""
211+ msgstr "تغییر مسیر خروجی خطا و پایان دادن به برنامه "
193212
194213#: ../../tutorial/stdlib.rst:103
195214msgid ""
196215"The :mod:`sys` module also has attributes for *stdin*, *stdout*, and "
197216"*stderr*. The latter is useful for emitting warnings and error messages to "
198217"make them visible even when *stdout* has been redirected::"
199218msgstr ""
219+ "ماژول :mod:`sys` همچنین ویژگیهایی برای *stdin*، *stdout* و *stderr* دارد. "
220+ "مورد آخر برای ارسال هشدارها و پیامهای خطا مفید است، زیرا حتی زمانی که "
221+ "*stdout* تغییر مسیر داده شده باشد، این پیامها همچنان قابل مشاهده خواهند بود::"
200222
201223#: ../../tutorial/stdlib.rst:107
202224msgid ""
@@ -209,17 +231,21 @@ msgstr ""
209231#: ../../tutorial/stdlib.rst:110
210232msgid "The most direct way to terminate a script is to use ``sys.exit()``."
211233msgstr ""
234+ "مستقیمترین راه برای پایان دادن به یک اسکریپت استفاده از ``sys.exit()`` است."
212235
213236#: ../../tutorial/stdlib.rst:116
214237msgid "String pattern matching"
215- msgstr ""
238+ msgstr "تطبیق الگوهای رشتهای "
216239
217240#: ../../tutorial/stdlib.rst:118
218241msgid ""
219242"The :mod:`re` module provides regular expression tools for advanced string "
220243"processing. For complex matching and manipulation, regular expressions offer "
221244"succinct, optimized solutions::"
222245msgstr ""
246+ "ماژول :mod:`re` ابزارهای عبارت باقاعده را برای پردازش پیشرفتهٔ رشتهها فراهم "
247+ "میکند. برای تطبیق و تغییرات پیچیده، عبارتهای باقاعده راهحلهایی کوتاه و بهینه "
248+ "ارائه میدهند::"
223249
224250#: ../../tutorial/stdlib.rst:122
225251msgid ""
@@ -240,6 +266,8 @@ msgid ""
240266"When only simple capabilities are needed, string methods are preferred "
241267"because they are easier to read and debug::"
242268msgstr ""
269+ "وقتی فقط به قابلیتهای ساده نیاز است، استفاده از متدهای رشتهای ترجیح داده "
270+ "میشود، زیرا خواندن و اشکالزدایی آنها آسانتر است::"
243271
244272#: ../../tutorial/stdlib.rst:131
245273msgid ""
@@ -251,13 +279,15 @@ msgstr ""
251279
252280#: ../../tutorial/stdlib.rst:138
253281msgid "Mathematics"
254- msgstr ""
282+ msgstr "ریاضیات "
255283
256284#: ../../tutorial/stdlib.rst:140
257285msgid ""
258286"The :mod:`math` module gives access to the underlying C library functions "
259287"for floating-point math::"
260288msgstr ""
289+ "ماژول :mod:`math` دسترسی به توابع کتابخانهٔ C زیرین برای محاسبات ممیز شناور "
290+ "را فراهم میکند::"
261291
262292#: ../../tutorial/stdlib.rst:143
263293msgid ""
@@ -275,7 +305,7 @@ msgstr ""
275305
276306#: ../../tutorial/stdlib.rst:149
277307msgid "The :mod:`random` module provides tools for making random selections::"
278- msgstr ""
308+ msgstr "ماژول :mod:`random` ابزارهایی برای انتخابهای تصادفی فراهم میکند:: "
279309
280310#: ../../tutorial/stdlib.rst:151
281311msgid ""
@@ -304,6 +334,8 @@ msgid ""
304334"The :mod:`statistics` module calculates basic statistical properties (the "
305335"mean, median, variance, etc.) of numeric data::"
306336msgstr ""
337+ "ماژول :mod:`statistics` ویژگیهای آماری پایه (مانند میانگین، میانه، واریانس و "
338+ "غیره) دادههای عددی را محاسبه میکند::"
307339
308340#: ../../tutorial/stdlib.rst:164
309341msgid ""
@@ -330,6 +362,7 @@ msgid ""
330362"The SciPy project <https://scipy.org> has many other modules for numerical "
331363"computations."
332364msgstr ""
365+ "پروژهٔ SciPy <https://scipy.org> ماژولهای بسیار دیگری برای محاسبات عددی دارد."
333366
334367#: ../../tutorial/stdlib.rst:179
335368msgid "Internet access"
@@ -341,6 +374,9 @@ msgid ""
341374"internet protocols. Two of the simplest are :mod:`urllib.request` for "
342375"retrieving data from URLs and :mod:`smtplib` for sending mail::"
343376msgstr ""
377+ "تعدادی ماژول برای دسترسی به اینترنت و پردازش پروتکلهای اینترنتی وجود دارد. "
378+ "دو مورد از سادهترین آنها :mod:`urllib.request` برای دریافت داده از URLها "
379+ "و :mod:`smtplib` برای ارسال ایمیل هستند::"
344380
345381#: ../../tutorial/stdlib.rst:185
346382msgid ""
@@ -385,10 +421,11 @@ msgstr ""
385421#: ../../tutorial/stdlib.rst:204
386422msgid "(Note that the second example needs a mailserver running on localhost.)"
387423msgstr ""
424+ "(توجه کنید که مثال دوم به یک سرور ایمیل در حال اجرا روی localhost نیاز دارد.)"
388425
389426#: ../../tutorial/stdlib.rst:210
390427msgid "Dates and times"
391- msgstr ""
428+ msgstr "تاریخها و زمانها "
392429
393430#: ../../tutorial/stdlib.rst:212
394431msgid ""
@@ -398,6 +435,11 @@ msgid ""
398435"for output formatting and manipulation. The module also supports objects "
399436"that are timezone aware. ::"
400437msgstr ""
438+ "ماژول :mod:`datetime` کلاسهایی برای کار با تاریخها و زمانها به روشهای ساده و "
439+ "پیچیده فراهم میکند. با اینکه محاسبات مربوط به تاریخ و زمان پشتیبانی میشوند، "
440+ "تمرکز اصلی پیادهسازی بر استخراج کارآمد اعضا برای قالببندی خروجی و تغییرات "
441+ "است. این ماژول همچنین از اشیایی که نسبت به منطقهٔ زمانی آگاه هستند پشتیبانی "
442+ "میکند.::"
401443
402444#: ../../tutorial/stdlib.rst:218
403445msgid ""
@@ -431,7 +473,7 @@ msgstr ""
431473
432474#: ../../tutorial/stdlib.rst:236
433475msgid "Data compression"
434- msgstr ""
476+ msgstr "فشردهسازی دادهها "
435477
436478#: ../../tutorial/stdlib.rst:238
437479msgid ""
@@ -440,6 +482,9 @@ msgid ""
440482"including: :mod:`zlib`, :mod:`gzip`, :mod:`bz2`, :mod:`lzma`, :mod:`zipfile` "
441483"and :mod:`tarfile`. ::"
442484msgstr ""
485+ "قالبهای رایج بایگانی و فشردهسازی داده مستقیماً توسط ماژولهایی "
486+ "مانند :mod:`zlib`، :mod:`gzip`، :mod:`bz2`، :mod:`lzma`، :mod:`zipfile` "
487+ "و :mod:`tarfile` پشتیبانی میشوند. ::"
443488
444489#: ../../tutorial/stdlib.rst:242
445490msgid ""
@@ -469,14 +514,17 @@ msgstr ""
469514
470515#: ../../tutorial/stdlib.rst:258
471516msgid "Performance measurement"
472- msgstr ""
517+ msgstr "اندازهگیری کارایی "
473518
474519#: ../../tutorial/stdlib.rst:260
475520msgid ""
476521"Some Python users develop a deep interest in knowing the relative "
477522"performance of different approaches to the same problem. Python provides a "
478523"measurement tool that answers those questions immediately."
479524msgstr ""
525+ "برخی کاربران پایتون علاقهٔ زیادی دارند که کارایی نسبی روشهای مختلف برای حل یک "
526+ "مسئلهٔ یکسان را بدانند. پایتون ابزاری برای اندازهگیری فراهم میکند که بلافاصله "
527+ "به این پرسشها پاسخ میدهد."
480528
481529#: ../../tutorial/stdlib.rst:264
482530msgid ""
@@ -485,6 +533,9 @@ msgid ""
485533"The :mod:`timeit` module quickly demonstrates a modest performance "
486534"advantage::"
487535msgstr ""
536+ "برای مثال، ممکن است وسوسه شوید که بهجای روش سنتی جابهجایی آرگومانها، از "
537+ "قابلیت بستهبندی و بازکردن تاپلها استفاده کنید. ماژول :mod:`timeit` بهسرعت یک "
538+ "برتری کوچک در کارایی را نشان میدهد::"
488539
489540#: ../../tutorial/stdlib.rst:268
490541msgid ""
@@ -506,17 +557,23 @@ msgid ""
506557"and :mod:`pstats` modules provide tools for identifying time critical "
507558"sections in larger blocks of code."
508559msgstr ""
560+ "برخلاف دقت بسیار بالای :mod:`timeit` در اندازهگیریهای کوچک، "
561+ "ماژولهای :mod:`profile` و :mod:`pstats` ابزارهایی برای شناسایی بخشهای حساس "
562+ "از نظر زمانی در قطعهکدهای بزرگتر فراهم میکنند."
509563
510564#: ../../tutorial/stdlib.rst:282
511565msgid "Quality control"
512- msgstr ""
566+ msgstr "کنترل کیفیت "
513567
514568#: ../../tutorial/stdlib.rst:284
515569msgid ""
516570"One approach for developing high quality software is to write tests for each "
517571"function as it is developed and to run those tests frequently during the "
518572"development process."
519573msgstr ""
574+ "یکی از روشها برای توسعهٔ نرمافزار با کیفیت بالا این است که برای هر تابع، "
575+ "همزمان با توسعهٔ آن، آزمونهایی نوشته شود و این آزمونها در طول فرایند توسعه "
576+ "بهطور مکرر اجرا شوند."
520577
521578#: ../../tutorial/stdlib.rst:288
522579msgid ""
@@ -527,6 +584,12 @@ msgid ""
527584"example and it allows the doctest module to make sure the code remains true "
528585"to the documentation::"
529586msgstr ""
587+ "ماژول :mod:`doctest` ابزاری برای پیمایش یک ماژول و اعتبارسنجی آزمونهایی که "
588+ "در رشتههای مستندات (docstring) برنامه قرار داده شدهاند فراهم میکند. ساخت "
589+ "آزمونها به سادگیِ کپیکردن یک فراخوانی معمولی به همراه نتیجهٔ آن در docstring "
590+ "است. این کار مستندات را بهتر میکند، زیرا نمونهای برای کاربر فراهم میکند و "
591+ "همچنین به ماژول doctest اجازه میدهد اطمینان حاصل کند که کد همچنان مطابق با "
592+ "مستندات عمل میکند::"
530593
531594#: ../../tutorial/stdlib.rst:295
532595msgid ""
@@ -558,6 +621,8 @@ msgid ""
558621"module, but it allows a more comprehensive set of tests to be maintained in "
559622"a separate file::"
560623msgstr ""
624+ "ماژول :mod:`unittest` به اندازهٔ :mod:`doctest` ساده و بدون زحمت نیست، اما "
625+ "اجازه میدهد مجموعهای جامعتر از آزمونها در یک فایل جداگانه نگهداری شود::"
561626
562627#: ../../tutorial/stdlib.rst:310
563628msgid ""
@@ -591,14 +656,17 @@ msgstr ""
591656
592657#: ../../tutorial/stdlib.rst:328
593658msgid "Batteries included"
594- msgstr ""
659+ msgstr "همهچیز آماده درون جعبه "
595660
596661#: ../../tutorial/stdlib.rst:330
597662msgid ""
598663"Python has a \" batteries included\" philosophy. This is best seen through "
599664"the sophisticated and robust capabilities of its larger packages. For "
600665"example:"
601666msgstr ""
667+ "پایتون از فلسفهٔ «همهچیز آماده درون جعبه» (batteries included) پیروی میکند. "
668+ "این موضوع را میتوان به بهترین شکل در قابلیتهای پیشرفته و قدرتمند بستههای "
669+ "بزرگتر آن مشاهده کرد. برای مثال:"
602670
603671#: ../../tutorial/stdlib.rst:333
604672msgid ""
0 commit comments