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 828c46f
Browse filesBrowse the repository at this point in the historyBrowse files
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -268,7 +268,9 @@ msgstr "رابط برمکی (API) نوع :c:type:`PyBytesWriter` را میت
268
268
msgid"A bytes writer instance."
269
269
msgstr"یک نمونهی نویسندهی بایت (bytes writer)."
270
270
271
-
msgid"The API is **not thread safe**: a writer should only be used by a single thread at the same time."
271
+
#,fuzzy
272
+
#| msgid "The API is **not thread safe**: a writer should only be used by a single thread at the same time."
273
+
msgid"The API is **not thread safe**. To share a writer with multiple threads, a critical section or a lock is needed."
272
274
msgstr"این API **ایمن در برابر نخ (thread-safe) نیست**: یک نویسنده باید در هر لحظه تنها توسط یک نخ استفاده شود."
273
275
274
276
msgid"The instance must be destroyed by :c:func:`PyBytesWriter_Finish` on success, or :c:func:`PyBytesWriter_Discard` on error."
@@ -371,7 +373,9 @@ msgstr "بایتهای تازه تخصیصیافته مقداردهی او
371
373
msgid"Resize the writer by adding *grow* bytes to the current writer size. This function typically overallocates to achieve amortized performance when resizing multiple times."
372
374
msgstr"با اضافه کردن *grow* بایت به اندازهی فعلی نویسنده، اندازهی آن را تغییر دهید. این تابع معمولاً برای دستیابی به کارایی سرشکنشده هنگام تغییر اندازهی مکرر، حافظه را بیشتر تخصیص میدهد."
373
375
374
-
msgid"*size* can be negative to shrink the writer."
376
+
#,fuzzy
377
+
#| msgid "*size* can be negative to shrink the writer."
378
+
msgid"*grow* can be negative to shrink the writer."
375
379
msgstr"برای کوچک کردن نویسنده، *size* میتواند منفی باشد."
376
380
377
381
msgid"Similar to :c:func:`PyBytesWriter_Grow`, but update also the *buf* pointer."
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -37,6 +37,9 @@ msgstr "از زمان پیادهسازی :pep:`393` در پایتون 3.3،
37
37
msgid"UTF-8 representation is created on demand and cached in the Unicode object."
38
38
msgstr"بازنمایی UTF-8 بههنگام نیاز ایجاد میشود و در نهانگاه شیء یونیکد ذخیره میشود."
39
39
40
+
msgid"The internal buffer always includes an extra trailing null character for compatibility with null terminated C strings. This extra character is not counted in :c:func:`PyUnicode_GetLength` nor in the various *size* arguments of the functions below."
41
+
msgstr""
42
+
40
43
msgid"The :c:type:`Py_UNICODE` representation has been removed since Python 3.12 with deprecated APIs. See :pep:`623` for more information."
41
44
msgstr"نمایش :c:type:`Py_UNICODE` از پایتون 3.12 همراه با APIهای منسوخ حذف شده است. برای اطلاعات بیشتر به :pep:`623` مراجعه کنید."
42
45
@@ -103,9 +106,14 @@ msgstr "مقدار *kind* و اشارهگر *data* باید به ترتیب
103
106
msgid"The function performs no checks for any of its requirements, and is intended for usage in loops."
104
107
msgstr"این تابع هیچ بررسیای برای هیچیک از نیازمندیهای خود انجام نمیدهد و برای استفاده در حلقهها در نظر گرفته شده است."
105
108
106
-
msgid"Read a code point from a canonical representation *data* (as obtained with :c:func:`PyUnicode_DATA`). No checks or ready calls are performed."
109
+
#,fuzzy
110
+
#| msgid "Read a code point from a canonical representation *data* (as obtained with :c:func:`PyUnicode_DATA`). No checks or ready calls are performed."
111
+
msgid"Read a code point from a canonical representation *data* (as obtained with :c:func:`PyUnicode_DATA`). No checks are performed."
107
112
msgstr"یک نقطهکد را از نمایش کانونیکال *data* (که با :c:func:`PyUnicode_DATA` به دست آمده است) میخواند. هیچ بررسی یا فراخوانی ready انجام نمیشود."
108
113
114
+
msgid"Accept reading the trailing null character at index :c:func:`PyUnicode_GetLength`."
115
+
msgstr""
116
+
109
117
msgid"Read a character from a Unicode object *unicode*, which must be in the \"canonical\" representation. This is less efficient than :c:func:`PyUnicode_READ` if you do multiple consecutive reads."
110
118
msgstr"یک نویسه از شیء یونیکد *unicode* میخواند که باید در نمایش «کانونیکال» باشد. اگر چندین خواندن متوالی انجام میدهید، این کارایی کمتری نسبت به :c:func:`PyUnicode_READ` دارد."
111
119
@@ -253,6 +261,9 @@ msgstr "یک شیء یونیکد جدید با *kind* دادهشده ایجا
253
261
msgid"If necessary, the input *buffer* is copied and transformed into the canonical representation. For example, if the *buffer* is a UCS4 string (:c:macro:`PyUnicode_4BYTE_KIND`) and it consists only of codepoints in the UCS1 range, it will be transformed into UCS1 (:c:macro:`PyUnicode_1BYTE_KIND`)."
254
262
msgstr"در صورت نیاز، *بافر* ورودی کپی شده و به نمایش کانونیکال تبدیل میشود. برای مثال، اگر *بافر* یک رشتهی UCS4 باشد (:c:macro:`PyUnicode_4BYTE_KIND`) و تنها شامل نقطهکدهایی در محدودهی UCS1 باشد، به UCS1 تبدیل میشود (:c:macro:`PyUnicode_1BYTE_KIND`)."
255
263
264
+
msgid"All characters must be in range [U+0000; U+10ffff]. If *kind* is :c:macro:`PyUnicode_4BYTE_KIND` and the string contains invalid characters, the behavior is undefined."
265
+
msgstr""
266
+
256
267
msgid"Create a Unicode object from the char buffer *str*. The bytes will be interpreted as being UTF-8 encoded. The buffer is copied into the new object. The return value might be a shared object, i.e. modification of the data is not allowed."
257
268
msgstr"یک شیء یونیکد از بافر نویسه *str* ایجاد میکند. بایتها بهعنوان کدگذاریشده با UTF-8 تفسیر میشوند. بافر در شیء جدید کپی میشود. مقدار بازگشتی ممکن است یک شیء مشترک باشد، یعنی تغییر دادهها مجاز نیست."
258
269
@@ -580,6 +591,9 @@ msgstr "طول شیء یونیکد را بر حسب نقطهکد برمی
580
591
msgid"On error, set an exception and return ``-1``."
581
592
msgstr"در صورت خطا، یک استثنا تنظیم شده و ``-1`` بازگردانده میشود."
582
593
594
+
msgid"The length does not count the trailing null character."
595
+
msgstr""
596
+
583
597
msgid"Copy characters from one Unicode object into another. This function performs character conversion when necessary and falls back to :c:func:`!memcpy` if possible. Returns ``-1`` and sets an exception on error, otherwise returns the number of copied characters."
584
598
msgstr"نویسهها را از یک شیء یونیکد به شیء یونیکد دیگر کپی میکند. این تابع در صورت نیاز تبدیل نویسهها را انجام میدهد و در صورت امکان به :c:func:`!memcpy` روی میآورد. در صورت خطا ``-1`` برمیگرداند و یک استثنا تنظیم میکند، در غیر این صورت تعداد نویسههای کپیشده را برمیگرداند."
585
599
@@ -619,6 +633,9 @@ msgstr "یک نویسه از یک رشته میخواند. این تابع ب
619
633
msgid"Return character on success, ``-1`` on error with an exception set."
620
634
msgstr"در صورت موفقیت نویسه و در صورت خطا ``-1`` را همراه با استثنای تنظیمشده برمیگرداند."
621
635
636
+
msgid"Do not accept reading the trailing null character at index :c:func:`PyUnicode_GetLength`."
637
+
msgstr""
638
+
622
639
msgid"Return a substring of *unicode*, from character index *start* (included) to character index *end* (excluded). Negative indices are not supported. On error, set an exception and return ``NULL``."
623
640
msgstr"زیررشتهای از *unicode* را برمیگرداند که از اندیس نویسهی *start* (شامل) تا اندیس نویسهی *end* (بدون) است. اندیسهای منفی پشتیبانی نمیشوند. در صورت خطا، یک استثنا تنظیم کرده و ``NULL`` را برمیگرداند."
msgid"Running tests using the command-line interface"
199
199
msgstr"اجرای آزمونها با استفاده از رابط خط فرمان"
200
200
201
-
msgid"The :mod:`!test` package can be run as a script to drive Python's regression test suite, thanks to the :option:`-m` option: :program:`python -m test`. Under the hood, it uses :mod:`!test.regrtest`; the call :program:`python -m test.regrtest` used in previous Python versions still works. Running the script by itself automatically starts running all regression tests in the :mod:`!test` package. It does this by finding all modules in the package whose name starts with ``test_``, importing them, and executing the function :func:`test_main` if present or loading the tests via unittest.TestLoader.loadTestsFromModule if ``test_main`` does not exist. The names of tests to execute may also be passed to the script. Specifying a single regression test (:program:`python -m test test_spam`) will minimize output and only print whether the test passed or failed."
201
+
#,fuzzy
202
+
#| msgid "The :mod:`!test` package can be run as a script to drive Python's regression test suite, thanks to the :option:`-m` option: :program:`python -m test`. Under the hood, it uses :mod:`!test.regrtest`; the call :program:`python -m test.regrtest` used in previous Python versions still works. Running the script by itself automatically starts running all regression tests in the :mod:`!test` package. It does this by finding all modules in the package whose name starts with ``test_``, importing them, and executing the function :func:`test_main` if present or loading the tests via unittest.TestLoader.loadTestsFromModule if ``test_main`` does not exist. The names of tests to execute may also be passed to the script. Specifying a single regression test (:program:`python -m test test_spam`) will minimize output and only print whether the test passed or failed."
203
+
msgid"The :mod:`!test` package can be run as a script to drive Python's regression test suite, thanks to the :option:`-m` option: :program:`python -m test`. Under the hood, it uses :mod:`!test.regrtest`; the call :program:`python -m test.regrtest` used in previous Python versions still works. Running the script by itself automatically starts running all regression tests in the :mod:`!test` package. It does this by finding modules and packages whose names start with ``test_``, importing each one, and loading its tests with :meth:`unittest.TestLoader.loadTestsFromModule`. See the :ref:`load_tests protocol <load_tests-protocol>` for how a module or package can customize what is loaded. Defining a module-level ``test_main()`` function is not supported and causes the test to fail. The names of tests to execute may also be passed to the script. Specifying a single regression test (:program:`python -m test test_spam`) will minimize output and only print whether the test passed or failed."
202
204
msgstr "بستهی :mod:`!test` را میتوان بهکمک گزینهی :option:`-m` بهصورت یک اسکریپت برای اجرای بدنهی آزمونهای رگرسیون پایتون اجرا کرد: :program:`python -m test`. در پشت صحنه، این بسته از :mod:`!test.regrtest` استفاده میکند؛ فراخوانی :program:`python -m test.regrtest` که در نسخههای پیشین پایتون استفاده میشد، همچنان کار میکند. اجرای اسکریپت بهتنهایی بهطور خودکار اجرای همهی آزمونهای رگرسیون موجود در بستهی :mod:`!test` را آغاز میکند. این کار با یافتن همهی ماژولهای موجود در بسته که نامشان با ``test_`` شروع میشود، ایمپورت کردن آنها، و اجرای تابع :func:`test_main` در صورت وجود، یا بارگذاری آزمونها از طریق unittest.TestLoader.loadTestsFromModule در صورت نبود ``test_main`` انجام میشود. نام آزمونهای مورد نظر برای اجرا نیز میتواند به اسکریپت داده شود. مشخص کردن یک آزمون رگرسیون بهصورت تکی (:program:`python -m test test_spam`) خروجی را به حداقل میرساند و فقط چاپ میکند که آزمون موفقیتآمیز بوده یا شکست خورده است."
203
205
204
206
msgid"Running :mod:`!test` directly allows what resources are available for tests to use to be set. You do this by using the ``-u`` command-line option. Specifying ``all`` as the value for the ``-u`` option enables all possible resources: :program:`python -m test -uall`. If all but one resource is desired (a more common case), a comma-separated list of resources that are not desired may be listed after ``all``. The command :program:`python -m test -uall,-audio,-largefile` will run :mod:`!test` with all resources except the ``audio`` and ``largefile`` resources. For a list of all resources and more command-line options, run :program:`python -m test -h`."
@@ -680,7 +682,9 @@ msgstr "آزمون خطاهای سینتکسی در *statement* با تلاش ب
680
682
msgid"Open *url*. If open fails, raises :exc:`TestFailed`."
681
683
msgstr"*url* را باز میکند. اگر باز کردن ناموفق باشد، :exc:`TestFailed` را پرتاب میکند."
682
684
683
-
msgid"Use this at the end of ``test_main`` whenever sub-processes are started. This will help ensure that no extra children (zombies) stick around to hog resources and create problems when looking for refleaks."
685
+
#,fuzzy
686
+
#| msgid "Use this at the end of ``test_main`` whenever sub-processes are started. This will help ensure that no extra children (zombies) stick around to hog resources and create problems when looking for refleaks."
687
+
msgid"Call this from :meth:`~unittest.TestCase.setUp`, :meth:`~unittest.TestCase.tearDown`, or ``tearDownModule()`` in tests that start subprocesses. This will help ensure that no extra children (zombies) stick around to hog resources and create problems when looking for refleaks."
684
688
msgstr"هر زمان که زیرفرایندها آغاز میشوند، از این در پایان ``test_main`` استفاده کنید. این کار کمک میکند تا اطمینان حاصل شود که هیچکدام از فرزندان اضافی (زامبیها) باقی نمیمانند که منابع را اشغال کنند و هنگام جستوجو برای نشتهای مرجع (refleaks) مشکل ایجاد کنند."
685
689
686
690
msgid"Get an attribute, raising :exc:`unittest.SkipTest` if :exc:`AttributeError` is raised."
0 commit comments