| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The source text changed slightly, so the existing translation (msgstr) may need updating. - is the old source, + the new.
- Wrapper descriptors expose special methods implemented by type slots. This is the same kind of descriptor that CPython creates for slot-based special methods s…
+ Wrapper descriptors are used internally to expose special methods such as ``__repr__`` or ``__add__``, which are implemented by type slots. The type is exposed…
msgstr: توصیفگرهای پوششی، متدهای ویژهای را که توسط جایگاههای نوع پیادهسازی شدهاند، در دسترس قرار میدهند. این همان نوع توصیفگری است که سیپایتون برای متدهای ویژه…
- Numerical values to compare to :c:macro:`Py_HASH_ALGORITHM` to determine which algorithm is used for hashing. The hash algorithm can be configured via the conf…
+ Numerical values to compare to :c:macro:`Py_HASH_ALGORITHM` to determine which algorithm is used for hashing. The built-in hash algorithm can be configured via…
msgstr: مقادیر عددی برای مقایسه با :c:macro:`Py_HASH_ALGORITHM` بهمنظور تعیین اینکه کدام الگوریتم برای هشکردن استفاده میشود. الگوریتم هش را میتوان از طریق گزینهی …
- Add :c:macro:`!Py_HASH_FNV` and :c:macro:`!Py_HASH_SIPHASH24`.
+ Add :c:macro:`!Py_HASH_FNV`, :c:macro:`!Py_HASH_SIPHASH24`, and :c:macro:`!Py_HASH_EXTERNAL`.
msgstr: افزودن :c:macro:`!Py_HASH_FNV` و :c:macro:`!Py_HASH_SIPHASH24`.
- This is the structure type definition for frozen module descriptors, as generated by the :program:`freeze` utility (see :file:`Tools/freeze/` in the Python sou…
+ This is the structure type definition for frozen module descriptors, as generated by the :program:`freeze` utility (see :file:`Tools/freeze/` in the Python sou…
msgstr: این تعریف نوع ساختار برای توصیفگرهای ماژول فریزشده است، همانطور که توسط ابزار :program:`freeze` تولید میشود (به :file:`Tools/freeze/` در توزیع سورس پایتون م…
- struct _frozen {\n const char *name;\n const unsigned char *code;\n int size;\n bool is_package;\n};
+ struct _frozen {\n const char *name; /* ASCII encoded string */\n const unsigned char *code;\n int size;\n int is_package;\n};\n
msgstr: struct _frozen {\n const char *name;\n const unsigned char *code;\n int size;\n bool is_package;\n};
- :monitoring-event:`BRANCH_RIGHT`
+ :monitoring-event:`BRANCH_LEFT` and :monitoring-event:`BRANCH_RIGHT`
msgstr: :monitoring-event:`BRANCH_RIGHT`
- typedef struct {\n uint16_t sl_id;\n uint16_t sl_flags;\n uint32_t _reserved; // must be 0\n union {\n void *sl_ptr;\n void (*sl_fun…
+ typedef struct {\n uint16_t sl_id;\n uint16_t sl_flags;\n union {\n uint32_t sl_reserved; // must be 0\n };\n union {\n void *sl_…
msgstr: typedef struct {\n uint16_t sl_id;\n uint16_t sl_flags;\n uint32_t _reserved; // must be 0\n union {\n void *sl_ptr;\n void (*sl_fun…
- Can be set to point to a function with the prototype ``char *func(FILE *stdin, FILE *stdout, char *prompt)``, overriding the default function used to read a si…
+ Can be set to point to a function with the prototype ``char *func(FILE *stdin, FILE *stdout, const char *prompt)``, overriding the default function used to rea…
msgstr: میتواند برای اشاره به تابعی با پیشنمونهی ``char *func(FILE *stdin, FILE *stdout, char *prompt)`` تنظیم شود که تابع پیشفرضِ استفادهشده برای خواندن یک سطر و…
- The result must be a string allocated by :c:func:`PyMem_RawMalloc` or :c:func:`PyMem_RawRealloc`, or ``NULL`` if an error occurred.
+ A non-``NULL`` result must be a string allocated by :c:func:`PyMem_RawMalloc` or :c:func:`PyMem_RawRealloc`.
msgstr: نتیجه باید رشتهای باشد که توسط :c:func:`PyMem_RawMalloc` یا :c:func:`PyMem_RawRealloc` تخصیص دادهشده باشد، یا ``NULL`` در صورت وقوع خطا.
- typedef struct PyMemberDef {\n const char *name;\n int type;\n int offset;\n int flags;\n const char *doc;\n} PyMemberDe…
+ typedef struct PyMemberDef {\n const char *name;\n int type;\n Py_ssize_t offset;\n int flags;\n const char *doc;\n} PyMemberDe…
msgstr: typedef struct PyMemberDef {\n const char *name;\n int type;\n int offset;\n int flags;\n const char *doc;\n} PyMemberDe…
- >>> bar.values = (c_byte * 4)()\nTraceback (most recent call last):\n File "<stdin>", line 1, in <module>\nTypeError: incompatible types, c_byte_Array_4 insta…
+ >>> printf(b"%s %d %f\n", b"X", 2)\nTraceback (most recent call last):\n File "<stdin>", line 1, in <module>\nTypeError: this function takes at least 4 argume…
msgstr: >>> bar.values = (c_byte * 4)()\nTraceback (most recent call last):\n File "<stdin>", line 1, in <module>\nTypeError: incompatible types, c_byte_Array_4 insta…
- On non-Windows systems, *name* can be ``None``. In this case, :c:func:`!dlopen` is called with ``NULL``, which opens the main program as a "library". (Some sy…
+ On non-Windows systems, *name* can be ``None``. In this case, :c:func:`!dlopen` is called with ``NULL``, which opens the main program as a "library". (Some sy…
msgstr: در سیستمهای غیرویندوزی، *name* میتواند ``None`` باشد. در این حالت، :c:func:`!dlopen` با ``NULL`` فراخوانی میشود، که برنامهی اصلی را بهعنوان یک «کتابخانه» …
- Assign a tuple of ctypes types to specify the argument types that the function accepts. Functions using the ``stdcall`` calling convention can only be called …
+ Assign a tuple of ctypes types to specify the argument types that the function accepts. :exc:`TypeError` is raised if the function is called with fewer argumen…
msgstr: برای مشخص کردن انواع آرگومانهایی که تابع میپذیرد، یک تاپل از انواع ctypes را اختصاص دهید. توابعی که از قرارداد فراخوانی ``stdcall`` استفاده میکنند، فقط میت…
- Memory-mapped file objects behave like both :class:`bytearray` and like :term:`file objects <file object>`. You can use mmap objects in most places where :cla…
+ Memory-mapped file objects behave like both :class:`bytearray` and like :term:`file objects <file object>`. You can use mmap objects in most places where :cla…
msgstr: اشیای پرونده نگاشتشده به حافظه، هم مانند :class:`bytearray` و هم مانند :term:`اشیای پرونده <file object>` رفتار میکنند. شما میتوانید از اشیای mmap در بیشتر …
- *prot*, if specified, gives the desired memory protection; the two most useful values are :const:`PROT_READ` and :const:`PROT_WRITE`, to specify that the pages…
+ *prot*, if specified, gives the desired memory protection; the two most useful values are :const:`PROT_READ` and :const:`PROT_WRITE`, to specify that the pages…
msgstr: *prot*، در صورت مشخص شدن، محافظت دلخواه از حافظه را تعیین میکند؛ دو مقدار از مفیدترین مقادیر عبارتند از :const:`PROT_READ` و :const:`PROT_WRITE`، برای مشخص کر…
- MS_* Constants
+ ACCESS_* constants
msgstr: ثابتهای MS_*
- MAP_* Constants
+ PROT_* constants
msgstr: ثابتهای MAP_*
- MADV_* Constants
+ MADV_* constants
msgstr: ثابتهای MADV_*
- MAP_* Constants
+ MAP_* constants
msgstr: ثابتهای MAP_*
- MS_* Constants
+ MS_* constants
msgstr: ثابتهای MS_*
- To analyze binary profiles, use the :ref:`replay-command` to convert them to other formats like flame graphs or pstats output.
+ To analyze binary profiles, use the :ref:`replay command <replay-command>` to convert them to other formats like flame graphs or pstats output.
msgstr: برای تحلیل پروفایلهای دودویی، از :ref:`replay-command` استفاده کنید تا آنها را به قالبهای دیگری مانند نمودارهای شعله یا خروجی pstats تبدیل کنید.
- Skip tests if the :mod:`multiprocessing.synchronize` module is missing, if there is no available semaphore implementation, or if creating a lock raises an :exc…
+ Skip tests if the :mod:`!multiprocessing.synchronize` module is missing, if there is no available semaphore implementation, or if creating a lock raises an :ex…
msgstr: در صورتی که ماژول :mod:`multiprocessing.synchronize` موجود نبود، هیچ پیادهسازی سمافور در دسترس نبود، یا ایجاد یک قفل باعث پرتاب :exc:`OSError` شد، از آزمونها…
- Setting :envvar:`PYTHONHOME` is one way to get most of the testsuite to run in that situation. :envvar:`PYTHONPATH` or :envvar:`PYTHONUSERSITE` are other comm…
+ Setting :envvar:`PYTHONHOME` is one way to get most of the testsuite to run in that situation. :envvar:`PYTHONPATH` or :envvar:`PYTHONNOUSERSITE` are other co…
msgstr: تنظیم :envvar:`PYTHONHOME` یکی از راهها برای اجرای بیشتر مجموعهآزمون در آن شرایط است. :envvar:`PYTHONPATH` یا :envvar:`PYTHONUSERSITE` متغیرهای محیطی رایج دی…
- This function imports and returns a fresh copy of the named Python module by removing the named module from ``sys.modules`` before doing the import. Note that …
+ This function imports and returns a fresh copy of the named Python module by removing the named module from ``sys.modules`` before doing the import. Note that …
msgstr: این تابع با حذف ماژول نامبردهشده از ``sys.modules`` پیش از انجام ایمپورت، یک نسخهی تازه از ماژول پایتون نامبردهشده را ایمپورت میکند و برمیگرداند. توجه د…
- with check_warnings(quiet=True) as w:\n warnings.warn("foo")\n assert str(w.args[0]) == "foo"\n warnings.warn("bar")\n assert str(w.args[0]) == "ba…
+ with check_warnings(quiet=True) as w:\n warnings.warn("foo")\n assert str(w.message) == "foo"\n warnings.warn("bar")\n assert str(w.message) == "ba…
msgstr: with check_warnings(quiet=True) as w:\n warnings.warn("foo")\n assert str(w.args[0]) == "foo"\n warnings.warn("bar")\n assert str(w.args[0]) == "ba…
- Define the ``PYLONG_BITS_IN_DIGIT`` to ``15`` or ``30``.
+ Define :c:macro:`PYLONG_BITS_IN_DIGIT` to ``15`` or ``30``.
msgstr: مقدار ``PYLONG_BITS_IN_DIGIT`` را برابر ``15`` یا ``30`` تعریف کنید.
- Don't define the ``WITH_DOC_STRINGS`` macro.
+ Don't define the :c:macro:`WITH_DOC_STRINGS` macro.
msgstr: ماکروی ``WITH_DOC_STRINGS`` را تعریف نکنید.
- :gh:`145197`: Fix JIT trace crash when recording function from cleared generator frame.
+ :gh:`159739`: Fix a crash when constructing an error for invalid generic alias arguments.
msgstr: :gh:`145197`: رفع فروپاشی رد کامپایلر درجا (JIT) هنگام ثبت تابع از قاب تولیدگر پاکشده.
- :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 t…
+ :gh:`154318`: Fix a crash when hashing a deeply nested :class:`tuple` or :class:`frozendict`. A :exc:`RecursionError` is now raised instead of overflowing the …
msgstr: :gh:`156091`: رفع خرابی هنگام کامپایل درکهای فهرست، مجموعه یا دیکشنری تو در تو و عمیق. اگر میزان تو در تو بودن از حد بلوک ایستای کامپایلر فراتر رود، اکنون یک…
- :gh:`127057`: Fix :class:`asyncio.ProactorEventLoop` UDP transports so that a :exc:`ConnectionResetError` raised by ``WSARecvFrom`` no longer stops the read lo…
+ :gh:`156784`: :class:`asyncio.ProactorEventLoop` no longer silently ignores :exc:`ConnectionResetError` on UDP sockets, matching :class:`asyncio.SelectorEventL…
msgstr: :gh:`127057`: اصلاح انتقالهای UDP مربوط به :class:`asyncio.ProactorEventLoop` بهطوریکه خطای :exc:`ConnectionResetError` ایجادشده توسط ``WSARecvFrom`` دیگر ح…
- :gh:`155843`: :mod:`hmac`: ensure that HMAC objects are properly initialized to prevent rare crashes on allocation failures. Patch by Bénédikt Tran.
+ :gh:`155833`: Ensure that MD5 and SHA* objects are properly GC-untracked before freeing their internal HACL* state. Patch by Bénédikt Tran.
msgstr: :gh:`155843`: :mod:`hmac`: اطمینان حاصل کنید که اشیاء HMAC به درستی مقداردهی اولیه میشوند تا از فروپاشیهای نادر در زمان شکستهای تخصیص حافظه جلوگیری شود. وصل…
- Python 3.5.1 final
+ Python 3.15.1 final
msgstr: پایتون ۳.۵.۱ نهایی
- *Release date: 2026-10-02*
+ *Release date: 2026-10-21*
msgstr: *تاریخ انتشار: ۲۰۲۶-۱۰-۰۲*
Brand-new source strings with no close match to an existing translation.
Apply the macro *V* to each suffix of :c:type:`PyCodeEvent` constants. Currently expands to ``V(CREATE) V(DESTROY)``. The macro *V* must accept one event name …
Bit masks
The following constants are bit masks used by the character classification macros above:
Values used internally by the ``Py_IS*`` classification macros above. Exposed for backwards compatibility only.
The type object for wrapper descriptor objects created by :c:func:`PyDescr_NewWrapper` and :c:func:`PyWrapper_New`.
Create a new wrapper descriptor of type :c:var:`PyWrapperDescr_Type`.
This function is meant for internal use only; it and related API (``struct wrapperbase`` and the ``PyWrapperFlag_KEYWORDS`` flag) are exposed publicly for back…
See :c:func:`PyCMethod_New` for wrapping a C function.
Return a :term:`borrowed reference` to the type that the descriptor *descr* belongs to. This is accessible as :attr:`~object.__objclass__` in Python.
*descr* must be a descriptor object created by one of the ``PyDescr_New*`` functions (an instance of :c:var:`PyMethodDescr_Type`, :c:var:`PyClassMethodDescr_Ty…
Return the name of the descriptor *descr* as a :term:`borrowed reference` to a :class:`str` object. This is available as :attr:`~definition.__name__` in Python.
*descr* must be a descriptor object created by one of the ``PyDescr_New*`` functions. If not, the behavior is undefined.
Apply the macro *V* to each suffix of :c:type:`PyDict_WatchEvent` constants. Currently expands to ``V(ADDED) V(MODIFIED) V(DELETED) V(CLONED) V(CLEARED) V(DEAL…
Equivalent to :c:expr:`PyErr_WarnEx(category, message, 1)`.
The string literal ``"b"``, used to open files in binary mode. Exposed for backwards compatibility only.
Apply the macro *V* to each suffix of :c:type:`PyFunction_WatchEvent` constants. Currently expands to ``V(CREATE) V(DESTROY) V(MODIFY_CODE) V(MODIFY_DEFAULTS) …
:c:macro:`!Py_HASH_EXTERNAL` has value ``0`` and indicates a hash implementation supplied by the application embedding Python; see :c:var:`PyHash_Func`.
When Python is built with :c:macro:`Py_HASH_ALGORITHM` set to :c:macro:`Py_HASH_EXTERNAL`, the application embedding Python must define this variable to supply…
Use one of the built-in hash algorithms instead.
A constant of type :c:type:`Py_ssize_t` with value ``-1``, representing an invalid size.
The maximum value of the Windows ``DWORD`` type. Expands to ``0xffffffff`` on all platforms.
Build configuration
The number of bits in each digit of CPython's native representation of integers. The value can currently be either ``30`` (the default) or ``15``, selected wit…
To access the native representation of integers, use :c:func:`PyLong_GetNativeLayout` and its :c:member:`~PyLongLayout.bits_per_digit` member instead.
Use :c:macro:`PY_MONITORING_EVENT_BRANCH_LEFT` and :c:macro:`PY_MONITORING_EVENT_BRANCH_RIGHT` instead.
Performance statistics
Largest micro-operation identifier for which CPython allocates performance statistics counters. Available only in builds configured with :option:`--enable-pyst…
This constant is intended for internal use only and is not useful to extension modules.
Return a :term:`borrowed reference` to the defining class of *func* if its :c:member:`~PyMethodDef.ml_flags` includes :c:macro:`METH_METHOD`. Otherwise, return…
*func* must be a C function object and must not be ``NULL``. This function does not perform error or type checking.
A member flag that has no effect, retained solely for backwards compatibility. This is only available with ``#include "structmember.h"``.
Omit this flag instead.
A :term:`soft deprecated` alias to :c:expr:`long long`, the integer type used for the timeout argument of :c:func:`PyThread_acquire_lock_timed`.
The maximum timeout, in microseconds, supported by :c:func:`PyThread_acquire_lock_timed`.
This differs from :data:`_thread.TIMEOUT_MAX`, which is expressed in seconds.
The function is called without an :term:`attached thread state`.
If this pointer is ``NULL``, :c:func:`PyOS_Readline` sets it to the default implementation, :c:func:`PyOS_Readline`, before reading input.
The returned string must be null-terminated and include the trailing newline, if one was read. Return an empty string if the end of the file is reached before …
Display *prompt*, if it is not ``NULL``, and read a line from *sys_stdin*. If both streams are terminals and the call is made from the :ref:`main interpreter <…
The returned string follows the contract of :c:var:`PyOS_ReadlineFunctionPointer`, but the caller must free it with :c:func:`PyMem_Free`. Return ``NULL`` on fa…
Return a pointer to an internal linked list of weak references to *object*. *object* must support weak references and must not be ``NULL``.
This function is intended for internal use only. Do not access or modify the weak reference list through the returned pointer.
:mod:`!ctypes` cannot determine a function's calling convention or signature. Consult the function's C header file or documentation to choose the correct calli…
Setting :attr:`~_CFuncPtr.argtypes` also causes :mod:`!ctypes` to raise :exc:`TypeError` if too few arguments are passed::
Functions using the ``stdcall`` calling convention require exactly as many arguments as there are items in :attr:`~_CFuncPtr.argtypes`. Functions using the ``c…
These constants specify the access mode for a memory mapping. :const:`ACCESS_READ` provides read-only access, :const:`ACCESS_WRITE` provides write-through acce…
Page size constants
:const:`PAGESIZE` is the system memory page size in bytes. :const:`ALLOCATIONGRANULARITY` is the minimum alignment in bytes required for the *offset* argument …
Memory protection flags accepted by the *prot* argument of :class:`mmap`. :const:`PROT_READ` allows pages to be read, :const:`PROT_WRITE` allows pages to be wr…
Return ``True`` if Python was built with :ref:`pymalloc <pymalloc>` enabled and is not a :term:`free-threaded build`.
On entry to the context manager, a :class:`WarningsRecorder` instance is returned. The recorded warnings are available via its :attr:`~WarningsRecorder.warning…
Class used to record warnings for unit tests. Wraps the warnings list returned by :func:`warnings.catch_warnings` when recording is enabled. :func:`check_warni…
As a convenience, the attributes of the object representing the most recent warning can also be accessed directly through the recorder object. If no warning ha…
A list of warnings recorded since the recorder was created or last reset.
Discard previously recorded warnings from the recorder's view. The underlying warnings list is not modified.
Added optional item *format* to the *tuple*.
Define this macro to include static documentation strings in the build. It is defined by default, unless :option:`--without-doc-strings` is used.
:gh:`159739`: Fix reference leaks when free-threaded garbage collection aborts early because of an allocation error.
:gh:`159739`: Fix a reference leak in binary, ternary, and comparison operations on weak reference proxies when another operand is a dead proxy.
:gh:`159739`: Allow the garbage collector to break reference cycles involving property accessors or names.
:gh:`159739`: Fix a crash in :func:`warnings.warn` when ``skip_file_prefixes`` is an empty tuple subclass. Propagate allocation errors when creating the fallba…
:gh:`100609`: ``str()`` of a :class:`zipfile.Path` whose underlying zipfile has no filename, such as one constructed from an :class:`io.BytesIO`, now renders t…
:gh:`159690`: Fix :class:`logging.handlers.TimedRotatingFileHandler` permanently stopping rollover after a rollover failed or its backup file already existed, …
:gh:`159739`: Fix a double free if remote unwinder initialization runs out of memory.
:gh:`159739`: Fix off-by-one output buffer checks in the fallback implementation of ``getnameinfo()``.
:gh:`159739`: Fix reference cycles involving the types of grapheme iterators and segments created by :func:`unicodedata.iter_graphemes`.
:gh:`159714`: Fix :class:`zoneinfo.ZoneInfo` interpreting the Julian day rule ``J59`` as February 29 in leap years instead of February 28.
:gh:`155428`: Ensure that :func:`hmac.digest` and :meth:`hmac.HMAC.digest` output identical values when using a digest's block size smaller than 16. Patch by B…
:gh:`160004`: Fix the paths in the :pep:`739` ``build-details.json`` file generated by :file:`Tools/build/generate-build-details.py` with both ``--relative-pat…
:gh:`159998`: Fix ``libpython.dynamic`` in the :pep:`739` ``build-details.json`` file for macOS and iOS framework builds. It now points at the framework's libr…
:gh:`144942`: Fix the macOS shared library and framework builds not linking the libraries required by built-in modules, such as the HACL* objects needed by ``_…
:gh:`155813`: On macOS, :option:`LIBFFI_CFLAGS` and :option:`LIBFFI_LIBS` are no longer ignored when the SDK provides ``libffi``, so :mod:`ctypes` can again be…
:gh:`152490`: Fix :exc:`TypeError` when formatting a :exc:`SyntaxError` raised with :data:`NotImplemented` as its argument, which caused unexpected REPL exit a…
Triggered by sync with 3.15 (commit 077cd53).
| Back | FazBrowse Home | New Git URL |
Activity