Repository navigation
Backlog
Labels
Description
Summary
- 🔍 6 newly fuzzy strings in 3 files
- ✏️ 31 new untranslated strings in 5 files
🔍 Newly fuzzy strings
The source text changed slightly, so the existing translation (msgstr) may need updating. - is the old source, + the new.
c-api/stable.po (1 new fuzzy)
- For simplicity, this document talks about *extensions*, but Stable ABI works the same way for all uses of the API – for example, embedding Python.
+ For simplicity, this document talks about *extensions*, but Stable ABI works the same way for all uses of the API – for example, embedding Python. When embeddi…
msgstr: برای سادگی، این سند دربارهی *توسعهها* صحبت میکند، اما ABI پایدار برای همهی استفادههای API – برای مثال، تعبیهی پایتون – به همین شکل کار میکند.
library/statistics.po (1 new fuzzy)
- >>> from statistics import median\n>>> from math import isnan\n>>> from itertools import filterfalse\n\n>>> data = [20.7, float('NaN'),19.2, 18.3, float('NaN')…
+ >>> from statistics import median\n>>> from math import isnan\n>>> from itertools import filterfalse\n\n>>> data = [20.7, float('NaN'),19.2, 18.3, float('NaN')…
msgstr: >>> from statistics import median\n>>> from math import isnan\n>>> from itertools import filterfalse\n\n>>> data = [20.7, float('NaN'),19.2, 18.3, float('NaN')…
library/xmlrpc.client.po (4 new fuzzy)
- A :class:`ServerProxy` instance is an object that manages communication with a remote XML-RPC server. The required first argument is a URI (Uniform Resource I…
+ A :class:`ServerProxy` instance is an object that manages communication with a remote XML-RPC server. The required first argument is a URI (Uniform Resource I…
msgstr: نمونهای از :class:`ServerProxy` شیءای است که ارتباط با یک سرور XML-RPC دوردست را مدیریت میکند. اولین آرگومان ضروری یک URI (Uniform Resource Indicator) است و …
- :class:`Server` is retained as an alias for :class:`ServerProxy` for backwards compatibility. New code should use :class:`ServerProxy`.
+ :class:`!Server` is retained as an alias for :class:`ServerProxy` for backwards compatibility. New code should use :class:`ServerProxy`.
msgstr: :class:`Server` برای سازگاری با نسخههای قبلی، بهعنوان نام مستعاری برای :class:`ServerProxy` نگه داشته شده است. کدهای جدید باید از :class:`ServerProxy` استفاد…
- Servers that support the XML introspection API support some common methods grouped under the reserved :attr:`~ServerProxy.system` attribute:
+ Servers that support the XML introspection API support some common methods grouped under the reserved :attr:`!system` attribute:
msgstr: سرورهایی که از API دروننگری XML پشتیبانی میکنند، از برخی متدهای رایج پشتیبانی میکنند که زیر ویژگی محفوظ :attr:`~ServerProxy.system` گروهبندی شدهاند:
- ProtocolError Objects
+ Error objects
msgstr: اشیای ProtocolError
✏️ New untranslated strings
Brand-new source strings with no close match to an existing translation.
extending/embedding.po (23 new untranslated)
Linking for one or several Python versions on Linux
The flags obtained from ``pythonX.Y-config --ldflags --embed`` link the application against one minor version of Python. If that Python was built as a shared l…
Using the :ref:`Limited API <limited-c-api>` does not change this. Defining :c:macro:`Py_LIMITED_API` restricts your source code to API that is compatible acro…
A binary that needs to run with several minor Python versions must use only the Limited API and must *also* avoid the versioned dependency.
Host applications that use the :ref:`Limited API <limited-c-api>` must be aware of the following limitations:
It can only initialize Python with :c:func:`Py_Initialize` or :c:func:`Py_InitializeEx`, which set Python up much like the :program:`python` command does. They…
The Python that gets loaded is only known at run-time. Checking that it is suitable is up to the application. An incompatible Python, such as a too-old or too-…
The Stable ABI keeps functions available in later versions, but it does not guarantee identical behavior. The default configuration and the way :data:`sys.path…
A Python built with :option:`--enable-shared` and without :option:`--with-pydebug` installs :file:`libpython3.so` next to the versioned library. When the dynam…
This only works at run time. When linking an executable, the linker does not use the dependencies of a library to resolve symbols, and :file:`libpython3.so` de…
For example, with Python 3.12 as the oldest supported version::
#define Py_LIMITED_API 0x030c0000 /* Limited API 3.12 */\n#include <Python.h>\n#include <dlfcn.h>\n#include <stdio.h>\n\n/* The API this application uses, dec…
Compile the program with Python's headers, but without the output of ``--ldflags``:
$ gcc $(/opt/bin/python3.12-config --includes) -o myapp myapp.c\n$ ./myapp /usr/local/lib/libpython3.so\nLoaded Python 3.14.10 (main, Nov 5 2026, 09:47:10) [G…
No Python library is passed to the linker, so the executable does not depend on one. You can check this with ``readelf``:
$ readelf -d myapp | grep NEEDED\n 0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
For the same reason, Python functions can only be called through such pointers. This includes the functions that macros in :file:`Python.h` expand to: for exam…
The path passed to ``dlopen()`` selects the code that runs in your process. It should come from a trusted source and name a file that only trusted users can re…
Use an absolute path. The dynamic loader looks for a name without a slash in its usual search path, such as :envvar:`!LD_LIBRARY_PATH` and the system library d…
``RTLD_GLOBAL`` is required. Extension modules are generally not linked against a Python library, so Python can only import them if its symbols are visible glo…
Unsupported workaround: renaming the dependency after linking
Some applications are instead linked against a versioned library as described :ref:`above <compiling>`, and the dependency recorded in the executable is then r…
Renaming the dependency this way is unsupported. Nothing checks that such an executable only uses the Stable ABI, and it can contain copies of Python data, suc…
library/xmlrpc.client.po (2 new untranslated)
Base class of the :exc:`Fault`, :exc:`ProtocolError` and :exc:`ResponseError` exceptions.
Raised when an XML-RPC response is malformed and cannot be unmarshalled, for example when it contains an unsupported type tag.
reference/expressions.po (2 new untranslated)
Conditional expressions group from right to left, so ``a if b else c if d else e`` means ``a if b else (c if d else e)``::
>>> n = 2\n>>> print('positive' if n > 0\n... else 'negative' if n < 0\n... else 'zero')\npositive
whatsnew/3.15.po (2 new untranslated)
Notable changes in 3.15.3
:c:func:`Py_INCREF`, :c:func:`Py_XINCREF`, :c:func:`Py_DECREF` and :c:func:`Py_XDECREF` are now implemented as function calls on all limited C API versions. P…
whatsnew/changelog.po (2 new untranslated)
:gh:`162525`: Fix the C :mod:`json` encoder writing the :meth:`~object.__str__` result of :class:`str` subclasses used as *separators*, which produced invalid …
:gh:`158401`: :c:func:`Py_INCREF`, :c:func:`Py_XINCREF`, :c:func:`Py_DECREF` and :c:func:`Py_XDECREF` are now implemented as function calls on all limited C AP…
Triggered by sync with 3.15 (commit 54f0c0e).
Activity