Skip to content

Commit 90475c0

Browse files
authored
Merge branch 'main' into eager-loop
2 parents b400086 + eeafc73 commit 90475c0

163 files changed

Lines changed: 3769 additions & 1174 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/reusable-macos.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
--enable-slower-safety \
5252
--enable-safety \
5353
${{ inputs.free-threading && '--disable-gil' || '' }} \
54+
--with-tail-call-interp \
5455
--prefix=/opt/python-dev \
5556
--with-openssl="$(brew --prefix openssl@3.5)"
5657
- name: Build CPython

‎.github/workflows/tail-call.yml‎

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,6 @@ env:
2323
LLVM_VERSION: 21
2424

2525
jobs:
26-
macos:
27-
name: aarch64-apple-darwin/clang
28-
runs-on: macos-26
29-
timeout-minutes: 60
30-
steps:
31-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
32-
with:
33-
persist-credentials: false
34-
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
35-
with:
36-
python-version: '3.11'
37-
- name: Install dependencies
38-
run: |
39-
brew update
40-
brew install llvm@${{ env.LLVM_VERSION }}
41-
- name: Build
42-
run: |
43-
export SDKROOT="$(xcrun --show-sdk-path)"
44-
export PATH="/opt/homebrew/opt/llvm@${{ env.LLVM_VERSION }}/bin:$PATH"
45-
CC=clang-${{ env.LLVM_VERSION }} ./configure --with-tail-call-interp
46-
make all --jobs 4
47-
- name: Test
48-
run: |
49-
./python.exe -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
50-
5126
linux:
5227
name: ${{ matrix.target }}
5328
runs-on: ${{ matrix.runner }}

‎Doc/c-api/init_config.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ UTF-8 encoded string. See :ref:`Configuration Options <pyinitconfig-opts>`.
167167
Get a string list configuration option as an array of
168168
null-terminated UTF-8 encoded strings.
169169
170-
* Set *\*length* and *\*value*, and return ``0`` on success.
170+
* Set *\*length* and *\*items*, and return ``0`` on success.
171171
* Set an error in *config* and return ``-1`` on error.
172172
173173
On success, the string list must be released with
@@ -1948,7 +1948,7 @@ PyConfig
19481948
If equals to zero, ignore the :ref:`environment variables
19491949
<using-on-envvars>`.
19501950
1951-
Set to ``0`` by the :option:`-E` environment variable.
1951+
Set to ``0`` by the :option:`-E` command-line option.
19521952
19531953
Default: ``1`` in Python config and ``0`` in isolated config.
19541954

‎Doc/c-api/interp-lifecycle.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,9 +575,9 @@ Process-wide parameters
575575
formed from the "official" name of the operating system, converted to lower
576576
case, followed by the major revision number; e.g., for Solaris 2.x, which is
577577
also known as SunOS 5.x, the value is ``'sunos5'``. On macOS, it is
578-
``'darwin'``. On Windows, it is ``'win'``. The returned string points into
579-
static storage; the caller should not modify its value. The value is available
580-
to Python code as ``sys.platform``.
578+
``'darwin'``. On Windows, it is ``'win32'``. The returned string points
579+
into static storage; the caller should not modify its value. The value is
580+
available to Python code as ``sys.platform``.
581581
582582
583583
.. c:function:: const char* Py_GetCopyright()

‎Doc/c-api/long.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
596596
Macro for converting a Python integer into a process identifier.
597597
598598
This can be defined as an alias to :c:func:`PyLong_AsLong`,
599-
:c:func:`PyLong_FromLongLong`, or :c:func:`PyLong_AsInt`, depending on the
599+
:c:func:`PyLong_AsLongLong`, or :c:func:`PyLong_AsInt`, depending on the
600600
size of the system's PID type.
601601
602602
.. versionadded:: 3.2

‎Doc/c-api/module.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ Creation and initialization slots
337337
338338
.. versionchanged:: 3.15
339339
340-
The *slots* argument may be a ``ModuleSpec``-like object, rather than
340+
The *spec* argument may be a ``ModuleSpec``-like object, rather than
341341
a true :py:class:`~importlib.machinery.ModuleSpec` instance.
342342
Note that previous versions of CPython did not enforce this.
343343

‎Doc/c-api/slots.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Convenience macros
197197
{NAME, PySlot_INTPTR, {0}, {(void*)(VALUE)}}
198198

199199
#define PySlot_PTR_STATIC(NAME, VALUE) \
200-
{NAME, PySlot_INTPTR|Py_SLOT_STATIC, {0}, {(void*)(VALUE)}}
200+
{NAME, PySlot_INTPTR|PySlot_STATIC, {0}, {(void*)(VALUE)}}
201201

202202
.. versionadded:: 3.15
203203

‎Doc/c-api/type.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ but need extra remarks for use as slots:
676676
677677
.. c:macro:: Py_tp_bases
678678
679-
:c:member:`Slot ID <PySlot.sl_id>` for type flags, used to set
679+
:c:member:`Slot ID <PySlot.sl_id>` for base types, used to set
680680
:c:member:`PyTypeObject.tp_bases`.
681681
682682
The slot can be set to a tuple of type objects which the newly created
@@ -814,7 +814,7 @@ They will continue to work, but new features will be added as slots for
814814
:c:macro:`Py_tp_metaclass` slot.
815815
816816
A non-``NULL`` *bases* argument corresponds to the :c:data:`Py_tp_bases`
817-
slot, and takes precedence over :c:data:`Py_tp_bases` and
817+
slot, and takes precedence over :c:data:`Py_tp_base` and
818818
:c:data:`Py_tp_bases` slots.
819819
820820
A non-``NULL`` *module* argument corresponds to the
@@ -985,7 +985,7 @@ They will continue to work, but new features will be added as slots for
985985
(PySlot){
986986
.sl_id=tpslot.slot,
987987
.sl_flags=PySlot_INTPTR | sub_static,
988-
.sl_ptr=tpslot.func
988+
.sl_ptr=tpslot.pfunc
989989
}
990990
991991
where ``sub_static`` is ``PySlot_STATIC`` if the slot requires

‎Doc/conf.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,11 @@
608608
r'https://unix.org/version2/whatsnew/lp64_wp.html',
609609
]
610610

611+
# Options to adjust search results sorting
612+
# ----------------------------------------
613+
614+
html_search_scorer = "tools/static/search_scorer.js"
615+
611616

612617
# Options for sphinx.ext.extlinks
613618
# -------------------------------

‎Doc/extending/newtypes.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ have an associated doc string simply by providing the text in the table. An
305305
application can use the introspection API to retrieve the descriptor from the
306306
class object, and get the doc string using its :attr:`~type.__doc__` attribute.
307307

308-
As with the :c:member:`~PyTypeObject.tp_methods` table, a sentinel entry with a :c:member:`~PyMethodDef.ml_name` value
309-
of ``NULL`` is required.
308+
As with the :c:member:`~PyTypeObject.tp_methods` table, a sentinel entry with a
309+
:c:member:`~PyMemberDef.name` value of ``NULL`` is required.
310310

311311
.. XXX Descriptors need to be explained in more detail somewhere, but not here.
312312

0 commit comments

Comments
 (0)