Skip to content

Commit 3fa0326

Browse files
authored
Merge branch 'main' into optimize-off
2 parents fb29089 + 8ab7ad6 commit 3fa0326

File tree

247 files changed

+22836
-31676
lines changed

Some content is hidden

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

247 files changed

+22836
-31676
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,6 @@ jobs:
518518
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe
519519
with:
520520
allowed-failures: >-
521-
build_macos,
522521
build_macos_free_threaded,
523522
build_ubuntu_free_threaded,
524523
build_ubuntu_ssltests,

Doc/bugs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ though it may take a while to be processed.
3838
`Helping with Documentation <https://devguide.python.org/docquality/#helping-with-documentation>`_
3939
Comprehensive guide for individuals that are interested in contributing to Python documentation.
4040

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

4444

Doc/c-api/unicode.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -992,19 +992,11 @@ These are the UTF-8 codec APIs:
992992
993993
As :c:func:`PyUnicode_AsUTF8AndSize`, but does not store the size.
994994
995-
Raise an exception if the *unicode* string contains embedded null
996-
characters. To accept embedded null characters and truncate on purpose
997-
at the first null byte, ``PyUnicode_AsUTF8AndSize(unicode, NULL)`` can be
998-
used instead.
999-
1000995
.. versionadded:: 3.3
1001996
1002997
.. versionchanged:: 3.7
1003998
The return type is now ``const char *`` rather of ``char *``.
1004999
1005-
.. versionchanged:: 3.13
1006-
Raise an exception if the string contains embedded null characters.
1007-
10081000
10091001
UTF-32 Codecs
10101002
"""""""""""""

Doc/data/stable_abi.dat

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Doc/glossary.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,11 @@ Glossary
11381138
an :term:`expression` or one of several constructs with a keyword, such
11391139
as :keyword:`if`, :keyword:`while` or :keyword:`for`.
11401140

1141+
static type checker
1142+
An external tool that reads Python code and analyzes it, looking for
1143+
issues such as incorrect types. See also :term:`type hints <type hint>`
1144+
and the :mod:`typing` module.
1145+
11411146
strong reference
11421147
In Python's C API, a strong reference is a reference to an object
11431148
which is owned by the code holding the reference. The strong
@@ -1214,8 +1219,8 @@ Glossary
12141219
attribute, or a function parameter or return value.
12151220

12161221
Type hints are optional and are not enforced by Python but
1217-
they are useful to static type analysis tools, and aid IDEs with code
1218-
completion and refactoring.
1222+
they are useful to :term:`static type checkers <static type checker>`.
1223+
They can also aid IDEs with code completion and refactoring.
12191224

12201225
Type hints of global variables, class attributes, and functions,
12211226
but not local variables, can be accessed using

Doc/howto/descriptor.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,10 @@ it can be updated:
943943
>>> Movie('Star Wars').director
944944
'J.J. Abrams'
945945

946+
.. testcleanup::
947+
948+
conn.close()
949+
946950

947951
Pure Python Equivalents
948952
^^^^^^^^^^^^^^^^^^^^^^^

Doc/howto/pyporting.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ are:
3939
#. Once your dependencies are no longer blocking you, use continuous integration
4040
to make sure you stay compatible with Python 2 and 3 (tox_ can help test
4141
against multiple versions of Python; ``python -m pip install tox``)
42-
#. Consider using optional static type checking to make sure your type usage
42+
#. Consider using optional :term:`static type checking <static type checker>`
43+
to make sure your type usage
4344
works in both Python 2 and 3 (e.g. use mypy_ to check your typing under both
4445
Python 2 and Python 3; ``python -m pip install mypy``).
4546

@@ -395,7 +396,7 @@ comparisons occur, making the mistake much easier to track down.
395396
Consider using optional static type checking
396397
--------------------------------------------
397398

398-
Another way to help port your code is to use a static type checker like
399+
Another way to help port your code is to use a :term:`static type checker` like
399400
mypy_ or pytype_ on your code. These tools can be used to analyze your code as
400401
if it's being run under Python 2, then you can run the tool a second time as if
401402
your code is running under Python 3. By running a static type checker twice like

Doc/library/datetime.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ on efficient attribute extraction for output formatting and manipulation.
3838
Third-party library with expanded time zone and parsing support.
3939

4040
Package `DateType <https://pypi.org/project/datetype/>`_
41-
Third-party library that introduces distinct static types to e.g. allow static type checkers
41+
Third-party library that introduces distinct static types to e.g. allow
42+
:term:`static type checkers <static type checker>`
4243
to differentiate between naive and aware datetimes.
4344

4445
.. _datetime-naive-aware:

Doc/library/ipaddress.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,13 @@ write code that handles both IP versions correctly. Address objects are
219219
``True`` if the address is reserved for link-local usage. See
220220
:RFC:`3927`.
221221

222+
.. attribute:: ipv6_mapped
223+
224+
:class:`IPv4Address` object representing the IPv4-mapped IPv6 address. See :RFC:`4291`.
225+
226+
.. versionadded:: 3.13
227+
228+
222229
.. _iana-ipv4-special-registry: https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml
223230
.. _iana-ipv6-special-registry: https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml
224231

Doc/library/pdb.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ can be overridden by the local file.
580580

581581
Create an alias called *name* that executes *command*. The *command* must
582582
*not* be enclosed in quotes. Replaceable parameters can be indicated by
583-
``%1``, ``%2``, and so on, while ``%*`` is replaced by all the parameters.
583+
``%1``, ``%2``, ... and ``%9``, while ``%*`` is replaced by all the parameters.
584584
If *command* is omitted, the current alias for *name* is shown. If no
585585
arguments are given, all aliases are listed.
586586

0 commit comments

Comments
 (0)