Skip to content

Commit 080dbfc

Browse files
authored
Merge branch 'main' into csv-sniffer-counter-set
2 parents 07a336b + eee6589 commit 080dbfc

File tree

98 files changed

+3979
-1456
lines changed

Some content is hidden

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

98 files changed

+3979
-1456
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"image": "ghcr.io/python/devcontainer:2025.05.29.15334414373",
2+
"image": "ghcr.io/python/devcontainer:latest",
33
"onCreateCommand": [
44
// Install common tooling.
55
"dnf",

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ jobs:
270270
fail-fast: false
271271
matrix:
272272
os: [ubuntu-24.04]
273-
openssl_ver: [3.0.16, 3.1.8, 3.2.4, 3.3.3, 3.4.1]
273+
openssl_ver: [3.0.17, 3.2.5, 3.3.4, 3.4.2, 3.5.2]
274274
# See Tools/ssl/make_ssl_data.py for notes on adding a new version
275275
env:
276276
OPENSSL_VER: ${{ matrix.openssl_ver }}

.github/workflows/mypy.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,17 @@ on:
1313
- "Lib/test/libregrtest/**"
1414
- "Lib/tomllib/**"
1515
- "Misc/mypy/**"
16-
- "Tools/build/mypy.ini"
1716
- "Tools/build/check_extension_modules.py"
17+
- "Tools/build/check_warnings.py"
1818
- "Tools/build/compute-changes.py"
1919
- "Tools/build/deepfreeze.py"
20+
- "Tools/build/generate-build-details.py"
2021
- "Tools/build/generate_sbom.py"
2122
- "Tools/build/generate_stdlib_module_names.py"
22-
- "Tools/build/generate-build-details.py"
23-
- "Tools/build/verify_ensurepip_wheels.py"
24-
- "Tools/build/update_file.py"
23+
- "Tools/build/mypy.ini"
2524
- "Tools/build/umarshal.py"
25+
- "Tools/build/update_file.py"
26+
- "Tools/build/verify_ensurepip_wheels.py"
2627
- "Tools/cases_generator/**"
2728
- "Tools/clinic/**"
2829
- "Tools/jit/**"

Doc/bugs.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ tracker <https://github.com/python/python-docs-theme>`_.
3737
`Helping with Documentation <https://devguide.python.org/docquality/#helping-with-documentation>`_
3838
Comprehensive guide for individuals that are interested in contributing to Python documentation.
3939

40-
`Documentation Translations <https://devguide.python.org/documentation/translating/>`_
41-
A list of GitHub pages for documentation translation and their primary contacts.
40+
`Documentation Translations <https://devguide.python.org/documentation/translations/translating/#translation-coordinators>`_
41+
A list of GitHub pages for documentation translation and their coordination teams.
4242

4343

4444
.. _using-the-tracker:

Doc/library/cmdlinelibs.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _cmdlinelibs:
22

33
********************************
4-
Command Line Interface Libraries
4+
Command-line interface libraries
55
********************************
66

77
The modules described in this chapter assist with implementing
@@ -19,3 +19,4 @@ Here's an overview:
1919
curses.rst
2020
curses.ascii.rst
2121
curses.panel.rst
22+
cmd.rst

Doc/library/concurrent.futures.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ Executor Objects
101101
executor has started running will be completed prior to this method
102102
returning. The remaining futures are cancelled.
103103

104-
You can avoid having to call this method explicitly if you use the
105-
:keyword:`with` statement, which will shutdown the :class:`Executor`
106-
(waiting as if :meth:`Executor.shutdown` were called with *wait* set to
107-
``True``)::
104+
You can avoid having to call this method explicitly if you use the executor
105+
as a :term:`context manager` via the :keyword:`with` statement, which
106+
will shutdown the :class:`Executor` (waiting as if :meth:`Executor.shutdown`
107+
were called with *wait* set to ``True``)::
108108

109109
import shutil
110110
with ThreadPoolExecutor(max_workers=4) as e:

Doc/library/constants.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,17 @@ should not be used in programs.
9797
exit(code=None)
9898

9999
Objects that when printed, print a message like "Use quit() or Ctrl-D
100-
(i.e. EOF) to exit", and when called, raise :exc:`SystemExit` with the
100+
(i.e. EOF) to exit", and when accessed directly in the interactive
101+
interpreter or called as functions, raise :exc:`SystemExit` with the
101102
specified exit code.
102103

103104
.. data:: help
104105
:noindex:
105106

106107
Object that when printed, prints the message "Type help() for interactive
107-
help, or help(object) for help about object.", and when called,
108-
acts as described :func:`elsewhere <help>`.
108+
help, or help(object) for help about object.", and when accessed directly
109+
in the interactive interpreter, invokes the built-in help system
110+
(see :func:`help`).
109111

110112
.. data:: copyright
111113
credits

Doc/library/frameworks.rst

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
1+
:orphan:
2+
13
.. _frameworks:
24

35
******************
4-
Program Frameworks
6+
Program frameworks
57
******************
68

7-
The modules described in this chapter are frameworks that will largely dictate
8-
the structure of your program. Currently the modules described here are all
9-
oriented toward writing command-line interfaces.
10-
11-
The full list of modules described in this chapter is:
12-
13-
14-
.. toctree::
9+
This chapter is no longer maintained, and the modules it contained have been moved to their respective topical documentation.
1510

16-
turtle.rst
17-
cmd.rst
18-
shlex.rst
11+
* :mod:`cmd` — :doc:`Command Line Interface Libraries <./cmdlinelibs>`
12+
* :mod:`shlex` — :doc:`Unix Specific Services <./unix>`
13+
* :mod:`turtle` — :doc:`Graphical User Interfaces with Tk <./tk>`

Doc/library/functions.rst

Lines changed: 12 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,38 +1422,10 @@ are always available. They are listed here in alphabetical order.
14221422

14231423
*errors* is an optional string that specifies how encoding and decoding
14241424
errors are to be handled—this cannot be used in binary mode.
1425-
A variety of standard error handlers are available
1426-
(listed under :ref:`error-handlers`), though any
1427-
error handling name that has been registered with
1425+
A variety of standard error handlers are available,
1426+
though any error handling name that has been registered with
14281427
:func:`codecs.register_error` is also valid. The standard names
1429-
include:
1430-
1431-
* ``'strict'`` to raise a :exc:`ValueError` exception if there is
1432-
an encoding error. The default value of ``None`` has the same
1433-
effect.
1434-
1435-
* ``'ignore'`` ignores errors. Note that ignoring encoding errors
1436-
can lead to data loss.
1437-
1438-
* ``'replace'`` causes a replacement marker (such as ``'?'``) to be inserted
1439-
where there is malformed data.
1440-
1441-
* ``'surrogateescape'`` will represent any incorrect bytes as low
1442-
surrogate code units ranging from U+DC80 to U+DCFF.
1443-
These surrogate code units will then be turned back into
1444-
the same bytes when the ``surrogateescape`` error handler is used
1445-
when writing data. This is useful for processing files in an
1446-
unknown encoding.
1447-
1448-
* ``'xmlcharrefreplace'`` is only supported when writing to a file.
1449-
Characters not supported by the encoding are replaced with the
1450-
appropriate XML character reference :samp:`&#{nnn};`.
1451-
1452-
* ``'backslashreplace'`` replaces malformed data by Python's backslashed
1453-
escape sequences.
1454-
1455-
* ``'namereplace'`` (also only supported when writing)
1456-
replaces unsupported characters with ``\N{...}`` escape sequences.
1428+
can be found in :ref:`error-handlers`.
14571429

14581430
.. index::
14591431
single: universal newlines; open() built-in function
@@ -1562,13 +1534,19 @@ are always available. They are listed here in alphabetical order.
15621534
.. versionchanged:: 3.11
15631535
The ``'U'`` mode has been removed.
15641536

1565-
.. function:: ord(c)
1537+
.. function:: ord(character, /)
15661538

1567-
Given a string representing one Unicode character, return an integer
1568-
representing the Unicode code point of that character. For example,
1539+
Return the ordinal value of a character.
1540+
1541+
If the argument is a one-character string, return the Unicode code point
1542+
of that character. For example,
15691543
``ord('a')`` returns the integer ``97`` and ``ord('€')`` (Euro sign)
15701544
returns ``8364``. This is the inverse of :func:`chr`.
15711545

1546+
If the argument is a :class:`bytes` or :class:`bytearray` object of
1547+
length 1, return its single byte value.
1548+
For example, ``ord(b'a')`` returns the integer ``97``.
1549+
15721550

15731551
.. function:: pow(base, exp, mod=None)
15741552

Doc/library/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ the `Python Package Index <https://pypi.org>`_.
6363
internet.rst
6464
mm.rst
6565
i18n.rst
66-
frameworks.rst
6766
tk.rst
6867
development.rst
6968
debug.rst

0 commit comments

Comments
 (0)