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 1c67a79 + cb6f75a commit 81ffc50
Show file tree
Hide file tree
Showing 241 changed files with 571 additions and 543 deletions.
2 changes: 1 addition & 1 deletion Doc/c-api/object.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Object Protocol
Properly handle returning :c:data:`Py_NotImplemented` from within a C
function (that is, create a new :term:`strong reference`
to NotImplemented and return it).
to :const:`NotImplemented` and return it).
.. c:macro:: Py_PRINT_RAW
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/__future__.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`__future__` --- Future statement definitions
==================================================
:mod:`!__future__` --- Future statement definitions
===================================================

.. module:: __future__
:synopsis: Future statement definitions
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/__main__.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`__main__` --- Top-level code environment
==============================================
:mod:`!__main__` --- Top-level code environment
===============================================

.. module:: __main__
:synopsis: The environment where top-level code is run. Covers command-line
Expand Down
10 changes: 5 additions & 5 deletions Doc/library/_thread.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`_thread` --- Low-level threading API
==========================================
:mod:`!_thread` --- Low-level threading API
===========================================

.. module:: _thread
:synopsis: Low-level threading API.
Expand Down Expand Up @@ -169,14 +169,14 @@ Lock objects have the following methods:
time can acquire a lock --- that's their reason for existence).

If the *blocking* argument is present, the action depends on its
value: if it is False, the lock is only acquired if it can be acquired
immediately without waiting, while if it is True, the lock is acquired
value: if it is false, the lock is only acquired if it can be acquired
immediately without waiting, while if it is true, the lock is acquired
unconditionally as above.

If the floating-point *timeout* argument is present and positive, it
specifies the maximum wait time in seconds before returning. A negative
*timeout* argument specifies an unbounded wait. You cannot specify
a *timeout* if *blocking* is False.
a *timeout* if *blocking* is false.

The return value is ``True`` if the lock is acquired successfully,
``False`` if not.
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/abc.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`abc` --- Abstract Base Classes
====================================
:mod:`!abc` --- Abstract Base Classes
=====================================

.. module:: abc
:synopsis: Abstract base classes according to :pep:`3119`.
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/argparse.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`argparse` --- Parser for command-line options, arguments and sub-commands
===============================================================================
:mod:`!argparse` --- Parser for command-line options, arguments and sub-commands
================================================================================

.. module:: argparse
:synopsis: Command-line option and argument parsing library.
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/array.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`array` --- Efficient arrays of numeric values
===================================================
:mod:`!array` --- Efficient arrays of numeric values
====================================================

.. module:: array
:synopsis: Space efficient arrays of uniformly typed numeric values.
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/ast.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`ast` --- Abstract Syntax Trees
====================================
:mod:`!ast` --- Abstract Syntax Trees
=====================================

.. module:: ast
:synopsis: Abstract Syntax Tree classes and manipulation.
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/asyncio-eventloop.rst
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ Creating network servers
:class:`str`, :class:`bytes`, and :class:`~pathlib.Path` paths
are supported.

If *cleanup_socket* is True then the Unix socket will automatically
If *cleanup_socket* is true then the Unix socket will automatically
be removed from the filesystem when the server is closed, unless the
socket has been replaced after the server has been created.

Expand Down
2 changes: 1 addition & 1 deletion Doc/library/asyncio-task.rst
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ Running Tasks Concurrently
# [2, 6, 24]

.. note::
If *return_exceptions* is False, cancelling gather() after it
If *return_exceptions* is false, cancelling gather() after it
has been marked done won't cancel any submitted awaitables.
For instance, gather can be marked done after propagating an
exception to the caller, therefore, calling ``gather.cancel()``
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/asyncio.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`asyncio` --- Asynchronous I/O
===================================
:mod:`!asyncio` --- Asynchronous I/O
====================================

.. module:: asyncio
:synopsis: Asynchronous I/O.
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/atexit.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`atexit` --- Exit handlers
===============================
:mod:`!atexit` --- Exit handlers
================================

.. module:: atexit
:synopsis: Register and execute cleanup functions.
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/base64.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`base64` --- Base16, Base32, Base64, Base85 Data Encodings
===============================================================
:mod:`!base64` --- Base16, Base32, Base64, Base85 Data Encodings
================================================================

.. module:: base64
:synopsis: RFC 4648: Base16, Base32, Base64 Data Encodings;
Expand Down
26 changes: 13 additions & 13 deletions Doc/library/bdb.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`bdb` --- Debugger framework
=================================
:mod:`!bdb` --- Debugger framework
==================================

.. module:: bdb
:synopsis: Debugger framework.
Expand Down Expand Up @@ -86,7 +86,7 @@ The :mod:`bdb` module also defines two classes:

.. attribute:: temporary

True if a :class:`Breakpoint` at (file, line) is temporary.
``True`` if a :class:`Breakpoint` at (file, line) is temporary.

.. attribute:: cond

Expand All @@ -99,7 +99,7 @@ The :mod:`bdb` module also defines two classes:

.. attribute:: enabled

True if :class:`Breakpoint` is enabled.
``True`` if :class:`Breakpoint` is enabled.

.. attribute:: bpbynumber

Expand Down Expand Up @@ -215,22 +215,22 @@ The :mod:`bdb` module also defines two classes:

.. method:: is_skipped_line(module_name)

Return True if *module_name* matches any skip pattern.
Return ``True`` if *module_name* matches any skip pattern.

.. method:: stop_here(frame)

Return True if *frame* is below the starting frame in the stack.
Return ``True`` if *frame* is below the starting frame in the stack.

.. method:: break_here(frame)

Return True if there is an effective breakpoint for this line.
Return ``True`` if there is an effective breakpoint for this line.

Check whether a line or function breakpoint exists and is in effect. Delete temporary
breakpoints based on information from :func:`effective`.

.. method:: break_anywhere(frame)

Return True if any breakpoint exists for *frame*'s filename.
Return ``True`` if any breakpoint exists for *frame*'s filename.

Derived classes should override these methods to gain control over debugger
operation.
Expand Down Expand Up @@ -348,7 +348,7 @@ The :mod:`bdb` module also defines two classes:

.. method:: get_break(filename, lineno)

Return True if there is a breakpoint for *lineno* in *filename*.
Return ``True`` if there is a breakpoint for *lineno* in *filename*.

.. method:: get_breaks(filename, lineno)

Expand Down Expand Up @@ -412,7 +412,7 @@ Finally, the module defines the following functions:

.. function:: checkfuncname(b, frame)

Return True if we should break here, depending on the way the
Return ``True`` if we should break here, depending on the way the
:class:`Breakpoint` *b* was set.

If it was set via line number, it checks if
Expand All @@ -431,14 +431,14 @@ Finally, the module defines the following functions:
:attr:`bplist <bdb.Breakpoint.bplist>` for the
(:attr:`file <bdb.Breakpoint.file>`, :attr:`line <bdb.Breakpoint.line>`)
(which must exist) that is :attr:`enabled <bdb.Breakpoint.enabled>`, for
which :func:`checkfuncname` is True, and that has neither a False
which :func:`checkfuncname` is true, and that has neither a false
:attr:`condition <bdb.Breakpoint.cond>` nor positive
:attr:`ignore <bdb.Breakpoint.ignore>` count. The *flag*, meaning that a
temporary breakpoint should be deleted, is False only when the
temporary breakpoint should be deleted, is ``False`` only when the
:attr:`cond <bdb.Breakpoint.cond>` cannot be evaluated (in which case,
:attr:`ignore <bdb.Breakpoint.ignore>` count is ignored).

If no such entry exists, then (None, None) is returned.
If no such entry exists, then ``(None, None)`` is returned.


.. function:: set_trace()
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/binascii.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`binascii` --- Convert between binary and ASCII
====================================================
:mod:`!binascii` --- Convert between binary and ASCII
=====================================================

.. module:: binascii
:synopsis: Tools for converting between binary and various ASCII-encoded binary
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/bisect.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`bisect` --- Array bisection algorithm
===========================================
:mod:`!bisect` --- Array bisection algorithm
============================================

.. module:: bisect
:synopsis: Array bisection algorithms for binary searching.
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/builtins.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`builtins` --- Built-in objects
====================================
:mod:`!builtins` --- Built-in objects
=====================================

.. module:: builtins
:synopsis: The module that provides the built-in namespace.
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/bz2.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`bz2` --- Support for :program:`bzip2` compression
=======================================================
:mod:`!bz2` --- Support for :program:`bzip2` compression
========================================================

.. module:: bz2
:synopsis: Interfaces for bzip2 compression and decompression.
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/calendar.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`calendar` --- General calendar-related functions
======================================================
:mod:`!calendar` --- General calendar-related functions
=======================================================

.. module:: calendar
:synopsis: Functions for working with calendars, including some emulation
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/cmath.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`cmath` --- Mathematical functions for complex numbers
===========================================================
:mod:`!cmath` --- Mathematical functions for complex numbers
============================================================

.. module:: cmath
:synopsis: Mathematical functions for complex numbers.
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/cmd.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`cmd` --- Support for line-oriented command interpreters
=============================================================
:mod:`!cmd` --- Support for line-oriented command interpreters
==============================================================

.. module:: cmd
:synopsis: Build line-oriented command interpreters.
Expand Down
6 changes: 3 additions & 3 deletions Doc/library/code.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`code` --- Interpreter base classes
========================================
:mod:`!code` --- Interpreter base classes
=========================================

.. module:: code
:synopsis: Facilities to implement read-eval-print loops.
Expand Down Expand Up @@ -27,7 +27,7 @@ build applications which provide an interactive interpreter prompt.

Closely emulate the behavior of the interactive Python interpreter. This class
builds on :class:`InteractiveInterpreter` and adds prompting using the familiar
``sys.ps1`` and ``sys.ps2``, and input buffering. If *local_exit* is True,
``sys.ps1`` and ``sys.ps2``, and input buffering. If *local_exit* is true,
``exit()`` and ``quit()`` in the console will not raise :exc:`SystemExit`, but
instead return to the calling code.

Expand Down
4 changes: 2 additions & 2 deletions Doc/library/codecs.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`codecs` --- Codec registry and base classes
=================================================
:mod:`!codecs` --- Codec registry and base classes
==================================================

.. module:: codecs
:synopsis: Encode and decode data and streams.
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/codeop.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`codeop` --- Compile Python code
=====================================
:mod:`!codeop` --- Compile Python code
======================================

.. module:: codeop
:synopsis: Compile (possibly incomplete) Python code.
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/collections.abc.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`collections.abc` --- Abstract Base Classes for Containers
===============================================================
:mod:`!collections.abc` --- Abstract Base Classes for Containers
================================================================

.. module:: collections.abc
:synopsis: Abstract base classes for containers
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/collections.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`collections` --- Container datatypes
==========================================
:mod:`!collections` --- Container datatypes
===========================================

.. module:: collections
:synopsis: Container datatypes
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/colorsys.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`colorsys` --- Conversions between color systems
=====================================================
:mod:`!colorsys` --- Conversions between color systems
======================================================

.. module:: colorsys
:synopsis: Conversion functions between RGB and other color systems.
Expand Down
10 changes: 5 additions & 5 deletions Doc/library/compileall.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`compileall` --- Byte-compile Python libraries
===================================================
:mod:`!compileall` --- Byte-compile Python libraries
====================================================

.. module:: compileall
:synopsis: Tools for byte-compiling all Python source files in a directory tree.
Expand Down Expand Up @@ -226,7 +226,7 @@ Public functions
The *invalidation_mode* parameter was added.

.. versionchanged:: 3.7.2
The *invalidation_mode* parameter's default value is updated to None.
The *invalidation_mode* parameter's default value is updated to ``None``.

.. versionchanged:: 3.8
Setting *workers* to 0 now chooses the optimal number of cores.
Expand Down Expand Up @@ -289,7 +289,7 @@ Public functions
The *invalidation_mode* parameter was added.

.. versionchanged:: 3.7.2
The *invalidation_mode* parameter's default value is updated to None.
The *invalidation_mode* parameter's default value is updated to ``None``.

.. versionchanged:: 3.9
Added *stripdir*, *prependdir*, *limit_sl_dest* and *hardlink_dupes* arguments.
Expand Down Expand Up @@ -318,7 +318,7 @@ Public functions
The *invalidation_mode* parameter was added.

.. versionchanged:: 3.7.2
The *invalidation_mode* parameter's default value is updated to None.
The *invalidation_mode* parameter's default value is updated to ``None``.

To force a recompile of all the :file:`.py` files in the :file:`Lib/`
subdirectory and all its subdirectories::
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/concurrent.futures.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`concurrent.futures` --- Launching parallel tasks
======================================================
:mod:`!concurrent.futures` --- Launching parallel tasks
=======================================================

.. module:: concurrent.futures
:synopsis: Execute computations concurrently using threads or processes.
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/configparser.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`configparser` --- Configuration file parser
=================================================
:mod:`!configparser` --- Configuration file parser
==================================================

.. module:: configparser
:synopsis: Configuration file parser.
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/contextvars.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`contextvars` --- Context Variables
========================================
:mod:`!contextvars` --- Context Variables
=========================================

.. module:: contextvars
:synopsis: Context Variables
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/copy.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`copy` --- Shallow and deep copy operations
================================================
:mod:`!copy` --- Shallow and deep copy operations
=================================================

.. module:: copy
:synopsis: Shallow and deep copy operations.
Expand Down
Loading

0 comments on commit 81ffc50

Please sign in to comment.