Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 33 additions & 32 deletions c-api/stable.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-09-15 09:12+0000\n"
"POT-Creation-Date: 2026-11-30 03:06+0000\n"
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
"Language-Team: German (https://app.transifex.com/python-doc/teams/5390/de/)\n"
"Language: de\n"
Expand Down Expand Up @@ -99,59 +99,60 @@ msgstr ""
msgid ""
"For simplicity, this document talks about *extensions*, but the Limited API "
"and Stable ABI work the same way for all uses of the API – for example, "
"embedding Python."
"embedding Python. When embedding Python on Linux, see :ref:`embedding-python-"
"versions` for how to link the application and for limitations."
msgstr ""

#: ../../c-api/stable.rst:66
#: ../../c-api/stable.rst:68
msgid "Limited C API"
msgstr ""

#: ../../c-api/stable.rst:68
#: ../../c-api/stable.rst:70
msgid ""
"Python 3.2 introduced the *Limited API*, a subset of Python's C API. "
"Extensions that only use the Limited API can be compiled once and be loaded "
"on multiple versions of Python. Contents of the Limited API are :ref:`listed "
"below <limited-api-list>`."
msgstr ""

#: ../../c-api/stable.rst:75
#: ../../c-api/stable.rst:77
msgid ""
"Define this macro before including ``Python.h`` to opt in to only use the "
"Limited API, and to select the Limited API version."
msgstr ""

#: ../../c-api/stable.rst:78
#: ../../c-api/stable.rst:80
msgid ""
"Define ``Py_LIMITED_API`` to the value of :c:macro:`PY_VERSION_HEX` "
"corresponding to the lowest Python version your extension supports. The "
"extension will be ABI-compatible with all Python 3 releases from the "
"specified one onward, and can use Limited API introduced up to that version."
msgstr ""

#: ../../c-api/stable.rst:84
#: ../../c-api/stable.rst:86
msgid ""
"Rather than using the ``PY_VERSION_HEX`` macro directly, hardcode a minimum "
"minor version (e.g. ``0x030A0000`` for Python 3.10) for stability when "
"compiling with future Python versions."
msgstr ""

#: ../../c-api/stable.rst:88
#: ../../c-api/stable.rst:90
msgid ""
"You can also define ``Py_LIMITED_API`` to ``3``. This works the same as "
"``0x03020000`` (Python 3.2, the version that introduced Limited API)."
msgstr ""

#: ../../c-api/stable.rst:95
#: ../../c-api/stable.rst:97
msgid "Stable ABI"
msgstr ""

#: ../../c-api/stable.rst:97
#: ../../c-api/stable.rst:99
msgid ""
"To enable this, Python provides a *Stable ABI*: a set of symbols that will "
"remain ABI-compatible across Python 3.x versions."
msgstr ""

#: ../../c-api/stable.rst:102
#: ../../c-api/stable.rst:104
msgid ""
"The Stable ABI prevents ABI issues, like linker errors due to missing "
"symbols or data corruption due to changes in structure layouts or function "
Expand All @@ -160,21 +161,21 @@ msgid ""
"details."
msgstr ""

#: ../../c-api/stable.rst:108
#: ../../c-api/stable.rst:110
msgid ""
"The Stable ABI contains symbols exposed in the :ref:`Limited API <limited-c-"
"api>`, but also other ones – for example, functions necessary to support "
"older versions of the Limited API."
msgstr ""

#: ../../c-api/stable.rst:112
#: ../../c-api/stable.rst:114
msgid ""
"On Windows, extensions that use the Stable ABI should be linked against "
"``python3.dll`` rather than a version-specific library such as "
"``python39.dll``."
msgstr ""

#: ../../c-api/stable.rst:116
#: ../../c-api/stable.rst:118
msgid ""
"On some platforms, Python will look for and load shared library files named "
"with the ``abi3`` tag (e.g. ``mymodule.abi3.so``). It does not check if such "
Expand All @@ -183,39 +184,39 @@ msgid ""
"not installed for lower versions of Python."
msgstr ""

#: ../../c-api/stable.rst:123
#: ../../c-api/stable.rst:125
msgid ""
"All functions in the Stable ABI are present as functions in Python's shared "
"library, not solely as macros. This makes them usable from languages that "
"don't use the C preprocessor."
msgstr ""

#: ../../c-api/stable.rst:129
#: ../../c-api/stable.rst:131
msgid "Limited API Scope and Performance"
msgstr ""

#: ../../c-api/stable.rst:131
#: ../../c-api/stable.rst:133
msgid ""
"The goal for the Limited API is to allow everything that is possible with "
"the full C API, but possibly with a performance penalty."
msgstr ""

#: ../../c-api/stable.rst:134
#: ../../c-api/stable.rst:136
msgid ""
"For example, while :c:func:`PyList_GetItem` is available, its “unsafe” macro "
"variant :c:func:`PyList_GET_ITEM` is not. The macro can be faster because it "
"can rely on version-specific implementation details of the list object."
msgstr ""

#: ../../c-api/stable.rst:139
#: ../../c-api/stable.rst:141
msgid ""
"Without ``Py_LIMITED_API`` defined, some C API functions are inlined or "
"replaced by macros. Defining ``Py_LIMITED_API`` disables this inlining, "
"allowing stability as Python's data structures are improved, but possibly "
"reducing performance."
msgstr ""

#: ../../c-api/stable.rst:144
#: ../../c-api/stable.rst:146
msgid ""
"By leaving out the ``Py_LIMITED_API`` definition, it is possible to compile "
"a Limited API extension with a version-specific ABI. This can improve "
Expand All @@ -225,11 +226,11 @@ msgid ""
"of an upcoming Python version."
msgstr ""

#: ../../c-api/stable.rst:153
#: ../../c-api/stable.rst:157
msgid "Limited API Caveats"
msgstr ""

#: ../../c-api/stable.rst:155
#: ../../c-api/stable.rst:159
msgid ""
"Note that compiling with ``Py_LIMITED_API`` is *not* a complete guarantee "
"that code conforms to the :ref:`Limited API <limited-c-api>` or "
Expand All @@ -238,7 +239,7 @@ msgid ""
"semantics."
msgstr ""

#: ../../c-api/stable.rst:160
#: ../../c-api/stable.rst:164
msgid ""
"One issue that ``Py_LIMITED_API`` does not guard against is calling a "
"function with arguments that are invalid in a lower Python version. For "
Expand All @@ -248,27 +249,27 @@ msgid ""
"crash. A similar argument works for fields of structs."
msgstr ""

#: ../../c-api/stable.rst:167
#: ../../c-api/stable.rst:171
msgid ""
"Another issue is that some struct fields are currently not hidden when "
"``Py_LIMITED_API`` is defined, even though they're part of the Limited API."
msgstr ""

#: ../../c-api/stable.rst:170
#: ../../c-api/stable.rst:174
msgid ""
"For these reasons, we recommend testing an extension with *all* minor Python "
"versions it supports, and preferably to build with the *lowest* such version."
msgstr ""

#: ../../c-api/stable.rst:173
#: ../../c-api/stable.rst:177
msgid ""
"We also recommend reviewing documentation of all used API to check if it is "
"explicitly part of the Limited API. Even with ``Py_LIMITED_API`` defined, a "
"few private declarations are exposed for technical reasons (or even "
"unintentionally, as bugs)."
msgstr ""

#: ../../c-api/stable.rst:178
#: ../../c-api/stable.rst:182
msgid ""
"Also note that the Limited API is not necessarily stable: compiling with "
"``Py_LIMITED_API`` with Python 3.8 means that the extension will run with "
Expand All @@ -277,31 +278,31 @@ msgid ""
"that the Stable ABI stays stable."
msgstr ""

#: ../../c-api/stable.rst:188
#: ../../c-api/stable.rst:192
msgid "Platform Considerations"
msgstr ""

#: ../../c-api/stable.rst:190
#: ../../c-api/stable.rst:194
msgid ""
"ABI stability depends not only on Python, but also on the compiler used, "
"lower-level libraries and compiler options. For the purposes of "
"the :ref:`Stable ABI <stable-abi>`, these details define a “platform”. They "
"usually depend on the OS type and processor architecture"
msgstr ""

#: ../../c-api/stable.rst:195
#: ../../c-api/stable.rst:199
msgid ""
"It is the responsibility of each particular distributor of Python to ensure "
"that all Python versions on a particular platform are built in a way that "
"does not break the Stable ABI. This is the case with Windows and macOS "
"releases from ``python.org`` and many third-party distributors."
msgstr ""

#: ../../c-api/stable.rst:205
#: ../../c-api/stable.rst:209
msgid "Contents of Limited API"
msgstr ""

#: ../../c-api/stable.rst:208
#: ../../c-api/stable.rst:212
msgid ""
"Currently, the :ref:`Limited API <limited-c-api>` includes the following "
"items:"
Expand Down
Loading