Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into cpython-tsan-suppre…
Browse files Browse the repository at this point in the history
…ssions
  • Loading branch information
swtaarrs committed May 8, 2024
2 parents 74d09a7 + 7b0c247 commit 6b11c50
Show file tree
Hide file tree
Showing 207 changed files with 2,871 additions and 1,225 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,11 @@ on:
push:
branches:
- 'main'
- '3.12'
- '3.11'
- '3.10'
- '3.9'
- '3.8'
- '3.*'
pull_request:
branches:
- 'main'
- '3.12'
- '3.11'
- '3.10'
- '3.9'
- '3.8'
- '3.*'

permissions:
contents: read
Expand Down Expand Up @@ -208,7 +200,7 @@ jobs:
with:
config_hash: ${{ needs.check_source.outputs.config_hash }}
# macos-14 is M1, macos-13 is Intel
os-matrix: '["macos-14-xlarge", "macos-13-large"]'
os-matrix: '["macos-14", "macos-13"]'

build_macos_free_threading:
name: 'macOS (free-threading)'
Expand All @@ -219,7 +211,7 @@ jobs:
config_hash: ${{ needs.check_source.outputs.config_hash }}
free-threading: true
# macos-14-large is Intel with 12 cores (most parallelism)
os-matrix: '["macos-14-large"]'
os-matrix: '["macos-14"]'

build_ubuntu:
name: 'Ubuntu'
Expand Down
2 changes: 1 addition & 1 deletion Doc/howto/urllib2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -594,5 +594,5 @@ This document was reviewed and revised by John Lee.
scripts with a localhost server, I have to prevent urllib from using
the proxy.
.. [#] urllib opener for SSL proxy (CONNECT method): `ASPN Cookbook Recipe
<https://code.activestate.com/recipes/456195/>`_.
<https://code.activestate.com/recipes/456195-urrlib2-opener-for-ssl-proxy-connect-method/>`_.
2 changes: 1 addition & 1 deletion Doc/library/collections.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ The class can be used to simulate nested scopes and is useful in templating.
:attr:`~collections.ChainMap.parents` property.

* The `Nested Contexts recipe
<https://code.activestate.com/recipes/577434/>`_ has options to control
<https://code.activestate.com/recipes/577434-nested-contexts-a-chain-of-mapping-objects/>`_ has options to control
whether writes and other mutations apply only to the first mapping or to
any mapping in the chain.

Expand Down
3 changes: 3 additions & 0 deletions Doc/library/constants.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ A small number of constants live in the built-in namespace. They are:
it currently evaluates as true, it will emit a :exc:`DeprecationWarning`.
It will raise a :exc:`TypeError` in a future version of Python.

.. versionchanged:: 3.14
Evaluating :data:`!NotImplemented` in a boolean context now raises a :exc:`TypeError`.


.. index:: single: ...; ellipsis literal
.. data:: Ellipsis
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/difflib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ If you want to know how to change the first sequence into the second, use
work.

* `Simple version control recipe
<https://code.activestate.com/recipes/576729/>`_ for a small application
<https://code.activestate.com/recipes/576729-simple-version-control/>`_ for a small application
built with :class:`SequenceMatcher`.


Expand Down
2 changes: 1 addition & 1 deletion Doc/library/email.message.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The :class:`EmailMessage` dictionary-like interface is indexed by the header
names, which must be ASCII values. The values of the dictionary are strings
with some extra methods. Headers are stored and returned in case-preserving
form, but field names are matched case-insensitively. The keys are ordered,
but unlike a real dict, there can be duplicates. Addtional methods are
but unlike a real dict, there can be duplicates. Additional methods are
provided for working with headers that have duplicate keys.

The *payload* is either a string or bytes object, in the case of simple message
Expand Down
8 changes: 7 additions & 1 deletion Doc/library/enum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -861,9 +861,15 @@ Supported ``_sunder_`` names
For :class:`Flag` classes the next value chosen will be the next highest
power-of-two.

- While ``_sunder_`` names are generally reserved for the further development
of the :class:`Enum` class and can not be used, some are explicitly allowed:

- ``_repr_*`` (e.g. ``_repr_html_``), as used in `IPython's rich display`_

.. versionadded:: 3.6 ``_missing_``, ``_order_``, ``_generate_next_value_``
.. versionadded:: 3.7 ``_ignore_``
.. versionadded:: 3.13 ``_add_alias_``, ``_add_value_alias_``
.. versionadded:: 3.13 ``_add_alias_``, ``_add_value_alias_``, ``_repr_*``
.. _`IPython's rich display`: https://ipython.readthedocs.io/en/stable/config/integrating.html#rich-display

---------------

Expand Down
2 changes: 1 addition & 1 deletion Doc/library/idle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ Several non-character keys move the cursor and possibly
delete characters. Deletion does not puts text on the clipboard,
but IDLE has an undo list. Wherever this doc discusses keys,
'C' refers to the :kbd:`Control` key on Windows and
Unix and the :kbd:`Command` key on macOS. (And all such dicussions
Unix and the :kbd:`Command` key on macOS. (And all such discussions
assume that the keys have not been re-bound to something else.)

* Arrow keys move the cursor one character or line.
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/math.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Number-theoretic and representation functions

For further discussion and two alternative approaches, see the `ASPN cookbook
recipes for accurate floating point summation
<https://code.activestate.com/recipes/393090/>`_\.
<https://code.activestate.com/recipes/393090-binary-floating-point-summation-accurate-to-full-p/>`_\.


.. function:: gcd(*integers)
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/pyexpat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ XMLParser Objects
by default until a sufficient amount of input is reached.
Due to this delay, registered handlers may — depending of the sizing of
input chunks pushed to Expat — no longer be called right after pushing new
input to the parser. Where immediate feedback and taking over responsiblity
input to the parser. Where immediate feedback and taking over responsibility
of protecting against denial of service from large tokens are both wanted,
calling ``SetReparseDeferralEnabled(False)`` disables reparse deferral
for the current Expat parser instance, temporarily or altogether.
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/random.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ from sources provided by the operating system.


`Complementary-Multiply-with-Carry recipe
<https://code.activestate.com/recipes/576707/>`_ for a compatible alternative
<https://code.activestate.com/recipes/576707-long-period-random-number-generator/>`_ for a compatible alternative
random number generator with a long period and comparatively simple update
operations.

Expand Down
2 changes: 1 addition & 1 deletion Doc/library/shelve.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Two additional methods are supported:

.. seealso::

`Persistent dictionary recipe <https://code.activestate.com/recipes/576642/>`_
`Persistent dictionary recipe <https://code.activestate.com/recipes/576642-persistent-dict-with-multiple-standard-file-format/>`_
with widely supported storage formats and having the speed of native
dictionaries.

Expand Down
2 changes: 1 addition & 1 deletion Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,7 @@ objects that compare equal might have different :attr:`~range.start`,

.. seealso::

* The `linspace recipe <https://code.activestate.com/recipes/579000/>`_
* The `linspace recipe <https://code.activestate.com/recipes/579000-equally-spaced-numbers-linspace/>`_
shows how to implement a lazy version of range suitable for floating
point applications.

Expand Down
2 changes: 1 addition & 1 deletion Doc/library/sys.monitoring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ events, use the expression ``PY_RETURN | PY_START``.

.. monitoring-event:: NO_EVENTS

An alias for ``0`` so users can do explict comparisions like::
An alias for ``0`` so users can do explicit comparisons like::

if get_events(DEBUGGER_ID) == NO_EVENTS:
...
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ always available.
additional garbage collector overhead if the object is managed by the garbage
collector.

See `recursive sizeof recipe <https://code.activestate.com/recipes/577504/>`_
See `recursive sizeof recipe <https://code.activestate.com/recipes/577504-compute-memory-footprint-of-an-object-and-its-cont/>`_
for an example of using :func:`getsizeof` recursively to find the size of
containers and all their contents.

Expand Down
3 changes: 3 additions & 0 deletions Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ for more details.
it currently evaluates as true, it will emit a :exc:`DeprecationWarning`.
It will raise a :exc:`TypeError` in a future version of Python.

.. versionchanged:: 3.14
Evaluating :data:`NotImplemented` in a boolean context now raises a :exc:`TypeError`.


Ellipsis
--------
Expand Down
6 changes: 3 additions & 3 deletions Doc/requirements-oldest-sphinx.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ python-docs-theme>=2022.1
# Sphinx 6.2.1 comes from ``needs_sphinx = '6.2.1'`` in ``Doc/conf.py``.

alabaster==0.7.16
Babel==2.14.0
Babel==2.15.0
certifi==2024.2.2
charset-normalizer==3.3.2
docutils==0.19
idna==3.7
imagesize==1.4.1
Jinja2==3.1.3
Jinja2==3.1.4
MarkupSafe==2.1.5
packaging==24.0
Pygments==2.17.2
Pygments==2.18.0
requests==2.31.0
snowballstemmer==2.2.0
Sphinx==6.2.1
Expand Down
2 changes: 1 addition & 1 deletion Doc/tools/extensions/pyspecific.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
ISSUE_URI = 'https://bugs.python.org/issue?@action=redirect&bpo=%s'
GH_ISSUE_URI = 'https://github.com/python/cpython/issues/%s'
# Used in conf.py and updated here by python/release-tools/run_release.py
SOURCE_URI = 'https://github.com/python/cpython/tree/main/%s'
SOURCE_URI = 'https://github.com/python/cpython/tree/3.13/%s'

# monkey-patch reST parser to disable alphabetic and roman enumerated lists
from docutils.parsers.rst.states import Body
Expand Down
6 changes: 3 additions & 3 deletions Doc/tutorial/interpreter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Unix shell's search path makes it possible to start it by typing the command:

.. code-block:: text
python3.13
python3.14
to the shell. [#]_ Since the choice of the directory where the interpreter lives
is an installation option, other places are possible; check with your local
Expand Down Expand Up @@ -97,8 +97,8 @@ before printing the first prompt:

.. code-block:: shell-session
$ python3.13
Python 3.13 (default, April 4 2023, 09:25:04)
$ python3.14
Python 3.14 (default, April 4 2024, 09:25:04)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
Expand Down
2 changes: 1 addition & 1 deletion Doc/tutorial/stdlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ operating system::

>>> import os
>>> os.getcwd() # Return the current working directory
'C:\\Python313'
'C:\\Python314'
>>> os.chdir('/server/accesslogs') # Change current working directory
>>> os.system('mkdir today') # Run the command mkdir in the system shell
0
Expand Down
2 changes: 1 addition & 1 deletion Doc/tutorial/stdlib2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ applications include caching objects that are expensive to create::
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
d['primary'] # entry was automatically removed
File "C:/python313/lib/weakref.py", line 46, in __getitem__
File "C:/python314/lib/weakref.py", line 46, in __getitem__
o = self.data[key]()
KeyError: 'primary'

Expand Down
Loading

0 comments on commit 6b11c50

Please sign in to comment.