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 5308803
Browse filesBrowse the repository at this point in the historyBrowse files
msgid"A :ref:`code object <code-objects>` ``__code__`` containing the compiled code for the annotate function."
453
453
msgstr"یک :ref:`شیء کد <code-objects>` ``__code__`` که شامل کد کامپایلشده برای تابع annotate است."
454
454
455
-
msgid"Optional: A tuple of the function's positional defaults ``__kwdefaults__``, if the function represented by ``__code__`` uses any positional defaults."
455
+
#,fuzzy
456
+
#| msgid "Optional: A tuple of the function's positional defaults ``__kwdefaults__``, if the function represented by ``__code__`` uses any positional defaults."
457
+
msgid"Optional: A tuple of the function's positional defaults ``__defaults__``, if the function represented by ``__code__`` uses any positional defaults."
456
458
msgstr"اختیاری: یک تاپل از پیشفرضهای جایگاهی تابع ``__kwdefaults__``، اگر تابع نشاندادهشده توسط ``__code__`` از هرگونه پیشفرض جایگاهی استفاده کند."
457
459
458
-
msgid"Optional: A dict of the function's keyword defaults ``__defaults__``, if the function represented by ``__code__`` uses any keyword defaults."
460
+
#,fuzzy
461
+
#| msgid "Optional: A dict of the function's keyword defaults ``__defaults__``, if the function represented by ``__code__`` uses any keyword defaults."
462
+
msgid"Optional: A dict of the function's keyword defaults ``__kwdefaults__``, if the function represented by ``__code__`` uses any keyword defaults."
459
463
msgstr"اختیاری: یک دیکشنری از مقادیر پیشفرض کلیدواژهای تابع ``__defaults__``، اگر تابع نشاندادهشده با ``__code__`` از مقادیر پیشفرض کلیدواژهای استفاده کند."
460
464
461
465
msgid"Optional: All other :ref:`function attributes <inspect-types>`."
@@ -199,6 +199,9 @@ msgstr "یک مفسر پایتون جدید (بیکار) را راهاند
199
199
msgid"Initialize a new cross-interpreter queue and return a :class:`Queue` object for it."
200
200
msgstr"یک صف بینمفسری جدید را مقداردهی اولیه میکند و یک شیء :class:`Queue` برای آن برمیگرداند."
201
201
202
+
msgid"*maxsize* is an integer that sets the upperbound limit on the number of items that can be placed in the queue. Insertion will be blocked 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."
203
+
msgstr""
204
+
202
205
msgid"Interpreter objects"
203
206
msgstr"اشیای مفسر"
204
207
@@ -259,16 +262,45 @@ msgstr "این استثنا، که زیرکلاسی از :exc:`TypeError` است
259
262
msgid"Communicating Between Interpreters"
260
263
msgstr"ارتباط بین مفسرها"
261
264
262
-
msgid"A wrapper around a low-level, cross-interpreter queue, which implements the :class:`queue.Queue` interface. The underlying queue can only be created through :func:`create_queue`."
265
+
#,fuzzy
266
+
#| msgid "A wrapper around a low-level, cross-interpreter queue, which implements the :class:`queue.Queue` interface. The underlying queue can only be created through :func:`create_queue`."
267
+
msgid"A wrapper around a low-level, cross-interpreter queue, which implements all the methods of :class:`queue.Queue` except for :meth:`~queue.Queue.task_done`, :meth:`~queue.Queue.join` and :meth:`~queue.Queue.shutdown`. The underlying queue can only be created through :func:`create_queue`."
263
268
msgstr"پوششی برای یک صف بینمفسری سطح پایین، که رابط :class:`queue.Queue` را پیادهسازی میکند. صف زیرین فقط از طریق :func:`create_queue` قابل ایجاد است."
264
269
265
270
msgid"The queue's ID."
266
271
msgstr"شناسهی صف."
267
272
268
-
msgid"This exception, a subclass of :exc:`queue.Empty`, is raised from :meth:`!Queue.get` and :meth:`!Queue.get_nowait` when the queue is empty."
273
+
msgid"Return the number of items in the queue."
274
+
msgstr""
275
+
276
+
msgid"Return ``True`` if the queue is empty, ``False`` otherwise."
277
+
msgstr""
278
+
279
+
#,fuzzy
280
+
#| msgid "Return ``True`` if the interpreter is currently executing code in its :mod:`!__main__` module and ``False`` otherwise."
281
+
msgid"Return ``True`` if the queue is full, ``False`` otherwise."
282
+
msgstr"اگر مفسر هماکنون در حال اجرای کد در ماژول :mod:`!__main__` خود باشد، ``True`` و در غیر این صورت ``False`` برمیگرداند."
283
+
284
+
msgid"Put *obj* 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:`QueueFull` exception if no free slot was available within that time. Otherwise (*block* is false), put an object on the queue if a free slot is immediately available, else raise the :exc:`QueueFull` exception (*timeout* is ignored in that case)."
285
+
msgstr""
286
+
287
+
msgid"Equivalent to ``put(obj, block=False)``."
288
+
msgstr""
289
+
290
+
msgid"Remove and return an object from the queue. If optional args *block* is true and *timeout* is ``None`` (the default), block if necessary until an object is available. If *timeout* is a positive number, it blocks at most *timeout* seconds and raises the :exc:`QueueEmpty` exception if no object was available within that time. Otherwise (*block* is false), return an object if one is immediately available, else raise the :exc:`QueueEmpty` exception (*timeout* is ignored in that case)."
291
+
msgstr""
292
+
293
+
msgid"Equivalent to ``get(block=False)``."
294
+
msgstr""
295
+
296
+
#,fuzzy
297
+
#| msgid "This exception, a subclass of :exc:`queue.Empty`, is raised from :meth:`!Queue.get` and :meth:`!Queue.get_nowait` when the queue is empty."
298
+
msgid"This exception, a subclass of :exc:`queue.Empty`, is raised from :meth:`Queue.get` and :meth:`Queue.get_nowait` when the queue is empty."
269
299
msgstr"این استثنا، زیرکلاسی از :exc:`queue.Empty`، زمانی از :meth:`!Queue.get` و :meth:`!Queue.get_nowait` پرتاب میشود که صف خالی باشد."
270
300
271
-
msgid"This exception, a subclass of :exc:`queue.Full`, is raised from :meth:`!Queue.put` and :meth:`!Queue.put_nowait` when the queue is full."
301
+
#,fuzzy
302
+
#| msgid "This exception, a subclass of :exc:`queue.Full`, is raised from :meth:`!Queue.put` and :meth:`!Queue.put_nowait` when the queue is full."
303
+
msgid"This exception, a subclass of :exc:`queue.Full`, is raised from :meth:`Queue.put` and :meth:`Queue.put_nowait` when the queue is full."
272
304
msgstr"این استثنا، زیرکلاسی از :exc:`queue.Full`، هنگامی از :meth:`!Queue.put` و :meth:`!Queue.put_nowait` پرتاب میشود که صف پر باشد."
273
305
274
306
msgid"Basic usage"
@@ -343,3 +375,22 @@ msgstr ""
343
375
"\n"
344
376
"t = interp.call_in_thread(run)\n"
345
377
"t.join()"
378
+
379
+
#,fuzzy
380
+
#| msgid "Communicating Between Interpreters"
381
+
msgid"Communicating between interpreters with a queue::"
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -239,7 +239,9 @@ msgstr "میزبان و پورت را برای تونلزنی HTTP Connect ت
239
239
msgid"The *host* and *port* arguments specify the endpoint of the tunneled connection (i.e. the address included in the CONNECT request, *not* the address of the proxy server)."
240
240
msgstr"آرگومانهای *host* و *port* پایانهی اتصال تونلشده را مشخص میکنند (یعنی نشانی گنجاندهشده در درخواست CONNECT، *نه* نشانی سرور پراکسی)."
241
241
242
-
msgid"The *headers* argument should be a mapping of extra HTTP headers to send with the CONNECT request."
242
+
#,fuzzy
243
+
#| msgid "The *headers* argument should be a mapping of extra HTTP headers to send with the CONNECT request."
244
+
msgid"The *headers* argument should be a mapping of extra HTTP headers to send with the CONNECT request. Non-string header values are converted to strings via :func:`str`."
243
245
msgstr"آرگومان *headers* باید یک نگاشت از سرآیندهای HTTP اضافی برای ارسال بههمراه درخواست CONNECT باشد."
244
246
245
247
msgid"As HTTP/1.1 is used for HTTP CONNECT tunnelling request, `as per the RFC <https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.6>`_, a HTTP ``Host:`` header must be provided, matching the authority-form of the request target provided as the destination for the CONNECT request. If a HTTP ``Host:`` header is not provided via the headers argument, one is generated and transmitted automatically."
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -1559,6 +1559,9 @@ msgstr "*path* میتواند یک :term:`شیء شبهمسیر <path-like
1559
1559
msgid"Raises an :ref:`auditing event <auditing>` ``os.scandir`` with argument ``path``."
1560
1560
msgstr"یک :ref:`رویداد حسابرسی <auditing>` ``os.scandir`` را با آرگومان ``path`` پرتاب میکند."
1561
1561
1562
+
msgid"Sharing a :func:`scandir` iterator between threads will not corrupt the iterator, but it is subject to :term:`race conditions <race condition>`: which entries each thread receives is unspecified, and closing the iterator while another thread is iterating ends that iteration early."
1563
+
msgstr""
1564
+
1562
1565
msgid"The :func:`scandir` iterator supports the :term:`context manager` protocol and has the following method:"
1563
1566
msgstr"پیمایشگر :func:`scandir` از پروتکل :term:`context manager` پشتیبانی میکند و متد زیر را دارد:"
msgid ":gh:`159285`: Fix a crash in a debug build when copying an empty :class:`dict` fails with :exc:`MemoryError`. Patch by Christian Aurich Zanettini Martins."
41
+
msgstr ""
42
+
40
43
msgid ":gh:`158918`: Reduce C stack usage of ``_PyModule_IsPossiblyShadowing``, which could potentially cause stack overflows during module attribute access while deeply recursing in agressively optimized builds."
41
44
msgstr ""
42
45
@@ -74,6 +77,11 @@ msgstr ":gh:`91153`: فروپاشی ناشی از تغییر همزمان یک :
74
77
msgid ":gh:`157468`: Fix the JIT optimizer folding a builtin name to a constant taken from the interpreter's builtins dictionary even when the running function uses a different ``__builtins__`` mapping, such as one created with ``vars(builtins).copy()``. The optimizer now only folds when the function's builtins is the interpreter's, and the folded constant is guarded at runtime so that another function sharing the same code object but a different builtins mapping does not use it."
75
78
msgstr ""
76
79
80
+
#, fuzzy
81
+
#| msgid ":gh:`156939`: Fix :c:func:`PyBytesWriter_Format` error handling: restore the writer to its previous state on error. Patch by Victor Stinner."
82
+
msgid ":gh:`157242`: If :meth:`bytearray.resize` or :meth:`bytearray.take_bytes` fails, leave the :class:`bytearray` unchanged, instead of clearing it. Patch by Victor Stinner."
83
+
msgstr ":gh:`156939`: رفع نحوهی مدیریت خطای تابع :c:func:`PyBytesWriter_Format`: بازگرداندن نویسنده (writer) به وضعیت قبلی خود در صورت بروز خطا. وصله توسط Victor Stinner."
84
+
77
85
msgid ":gh:`156091`: Fix a crash when compiling deeply nested inlined list, set, or dict comprehensions. A :exc:`SyntaxError` is now raised when the nesting exceeds the compiler's static block limit."
78
86
msgstr ""
79
87
@@ -86,6 +94,9 @@ msgstr ":gh:`156371`: رفع رویدادهای گمشدهی ``PyRefTracer
86
94
msgid ":gh:`156204`: Fix a crash in :c:func:`PyErr_GivenExceptionMatches` when evaluating deeply nested exception tuples. The recursion is now bounded, and exceeding the limit is reported as an unraisable exception."
87
95
msgstr ""
88
96
97
+
msgid ":gh:`155823`: Fix a JIT bug where the side exit taken when a virtual iterator is exhausted left a stale value on the stack, so the tier one interpreter resumed with corrupted state and ``yield from`` raised :exc:`AttributeError` instead of finishing normally."
98
+
msgstr ""
99
+
89
100
msgid ":gh:`155504`: Fix a crash when thread state creation fails before the thread state is fully initialized."
90
101
msgstr ""
91
102
@@ -106,6 +117,12 @@ msgstr ":gh:`153570`: رفع یک خطای استفاده پس از آزادی (
106
117
msgid ":gh:`151895`: Fixed a crash in :func:`marshal.loads` when an allocation failed while loading a reference-tracked dictionary; it now raises :exc:`MemoryError`."
107
118
msgstr ""
108
119
120
+
msgid ":gh:`151518`: Fix a free-threaded stop-the-world fairness issue that could starve a thread reattaching after being suspended while detached."
121
+
msgstr ""
122
+
123
+
msgid ":gh:`149816`: Fix a Use-After-Free race condition in ``subtype_getweakref()`` during concurrent weakref creation and destruction in the free-threading build."
124
+
msgstr ""
125
+
109
126
#, fuzzy
110
127
#| msgid ":gh:`149816`: Fix a race condition in ``_PyBytes_FromList`` in free-threading mode."
111
128
msgid ":gh:`149816`: Fix race conditions in ``invoke_gc_callback`` iterating ``gc.callbacks`` in free-threading mode."
@@ -114,6 +131,12 @@ msgstr ":gh:`149816`: رفع یک مشکل شرایط رقابت (race condition
114
131
msgid "Library"
115
132
msgstr "کتابخانه"
116
133
134
+
msgid ":gh:`159225`: Prevent ``input`` calls in PyREPL from modifying readline history."
135
+
msgstr ""
136
+
137
+
msgid ":gh:`159044`: Restore the previous behaviour of :meth:`http.client.HTTPConnection.set_tunnel` where header values that are not strings (such as :const:`None`, :class:`int` or other objects) are converted with :class:`str` instead of raising :exc:`AttributeError` when the request is sent."
138
+
msgstr ""
139
+
117
140
msgid ":gh:`159184`: Fix :func:`marshal.dumps` raising :exc:`MemoryError` for a set or frozenset containing several complex NaNs, which also made it impossible to write a :file:`.pyc` file for source code containing such a constant."
118
141
msgstr ""
119
142
@@ -363,6 +386,9 @@ msgstr ""
363
386
msgid ":gh:`153539`: Fix a crash in the C implementation of :meth:`io.TextIOWrapper.tell` when the decoder's ``getstate`` method triggers a reentrant seek, or when another thread seeks the same stream concurrently. Patch by tonghuaroot."
364
387
msgstr ":gh:`153539`: رفع یک فروپاشی در پیادهسازی C متد :meth:`io.TextIOWrapper.tell` زمانی که متد ``getstate`` رمزگشا یک جستجوی بازورودپذیر (reentrant) را فعال میکند، یا وقتی رشتهی (thread) دیگری همزمان همان جریان را مکانیابی میکند. این وصله (patch) توسط tonghuaroot ارائه شده است."
365
388
389
+
msgid ":gh:`152754`: Fix a crash when the same :func:`os.scandir` iterator is used concurrently from multiple threads. It no longer releases the directory handle while another thread is reading from it. Sharing an iterator between threads remains subject to race conditions: which entries each thread receives is unspecified."
390
+
msgstr ""
391
+
366
392
msgid ":gh:`153364`: Make frame, coroutine and task-waiter walks iterative and bounded, avoiding potential hangs and stack overflows. Fix asyncio task inspection when awaited-by sets contain removed entries. Patch by Maurycy Pawłowski-Wieroński."
367
393
msgstr ""
368
394
@@ -377,6 +403,9 @@ msgstr ":gh:`152718`: رفع تخصیص حافظهی بیکران در خ
377
403
msgid ":gh:`151126`: Fix a crash caused by failing to set :exc:`MemoryError` on allocation failure when passing :class:`ctypes.Structure` or :class:`ctypes.Union` instances by value to ctypes foreign functions."
378
404
msgstr ":gh:`151126`: رفع فروپاشی ناشی از تنظیمنشدن :exc:`MemoryError` هنگام شکست در تخصیص حافظه، در زمان ارسال نمونههای :class:`ctypes.Structure` یا :class:`ctypes.Union` بهصورت مقدار (by value) به توابع خارجی ctypes."
379
405
406
+
msgid ":gh:`152692`: Fix :func:`annotationlib.type_repr` returning a string such as ``None.list.append`` for bound built-in methods, whose ``__module__`` is ``None``. It now returns the qualified name, as it already did for other builtins."
407
+
msgstr ""
408
+
380
409
msgid ":gh:`152204`: Fix the pure-Python implementations of :meth:`datetime.date.fromisoformat`, :meth:`datetime.time.fromisoformat` and :meth:`datetime.datetime.fromisoformat` silently accepting some malformed ISO 8601 strings, such as non-ASCII digits or a sign in a fixed-width field (for example ``'2020+12'`` or ``'20201212T0102٣٤'``). Each field is now required to be exactly *N* ASCII digits, matching the C implementation."
381
410
msgstr ""
382
411
@@ -564,6 +593,11 @@ msgstr "رابط C API"
564
593
msgid ":gh:`149044`: Fix the :c:macro:`PySlot_END` macro for C++: initialize all members to avoid compiler warnings. Patch by Victor Stinner."
565
594
msgstr ":gh:`149044`: رفع ماکروی :c:macro:`PySlot_END` برای C++: مقداردهی اولیهی همهی اعضا برای جلوگیری از هشدارهای کامپایلر. وصله توسط ویکتور استینر (Victor Stinner)."
566
595
596
+
#, fuzzy
597
+
#| msgid ":gh:`149044`: Fix the :c:macro:`PySlot_END` macro for C++: initialize all members to avoid compiler warnings. Patch by Victor Stinner."
598
+
msgid ":gh:`158810`: Fix :c:macro:`Py_ARRAY_LENGTH()` macro on C++: do not use ``__builtin_types_compatible_p()`` on C++. Patch by Victor Stinner."
599
+
msgstr ":gh:`149044`: رفع ماکروی :c:macro:`PySlot_END` برای C++: مقداردهی اولیهی همهی اعضا برای جلوگیری از هشدارهای کامپایلر. وصله توسط ویکتور استینر (Victor Stinner)."
600
+
567
601
msgid ":gh:`157649`: Fix :c:macro:`Py_CLEAR` and :c:macro:`Py_SETREF` macros on C++: implement them using ``auto`` instead of ``decltype()``. Using ``decltype()`` produced invalid code when clearing/setting an array item. Patch by Victor Stinner."
0 commit comments