Skip to content

Commit b5dcf3a

Browse files
authored
Merge branch '3.14' into backport-fb2f0bb-3.14
2 parents b4c75c0 + e13e7cd commit b5dcf3a

85 files changed

Lines changed: 1289 additions & 226 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-docs.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ jobs:
8686
--fail-if-regression \
8787
--fail-if-improved \
8888
--fail-if-new-news-nit
89+
- name: 'Build list of changes'
90+
run: |
91+
make -C Doc/ PYTHON=../python changes
8992
9093
# Run "doctest" on HEAD as new syntax doesn't exist in the latest stable release
9194
doctest:
File renamed without changes.
File renamed without changes.
File renamed without changes.

‎Doc/builtins/index.rst‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
.. _builtins-index:
2+
3+
##############################
4+
Python built-ins reference
5+
##############################
6+
7+
Python comes with a number of built-in functions and classes.
8+
9+
The built-in classes include data types that would normally be considered part
10+
of the "core" of a language, such as numbers and lists. For these types, the
11+
Python language core defines the form of literals and places some constraints
12+
on their semantics, but does not fully define the semantics.
13+
14+
The built-ins also include functions and exceptions --- objects that can
15+
be used by all Python code without the need of an :keyword:`import` statement.
16+
Some of these are defined by the core language, but many are not essential for
17+
the core semantics and are only described here.
18+
19+
.. seealso::
20+
21+
In addition to the built-ins, Python provides an extensive importable
22+
standard library, see :ref:`library-index`.
23+
24+
.. We don't use :numbered: option for the TOC below as it enforces
25+
numbered sections for the entire builtin docs. If desired,
26+
:numbered: can be enabled on a per-page basis.
27+
.. toctree::
28+
:maxdepth: 2
29+
30+
stdtypes.rst
31+
constants.rst
32+
functions.rst
33+
exceptions.rst
34+
threadsafety.rst
35+
time-complexity.rst
File renamed without changes.
File renamed without changes.
File renamed without changes.

‎Doc/conf.py‎

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
'sphinx_linklint.ext',
4444
'notfound.extension',
4545
'sphinxext.opengraph',
46+
'sphinxext.rediraffe',
4647
'sphinxcontrib.rsvgconverter',
4748
)
4849
for optional_ext in _OPTIONAL_EXTENSIONS:
@@ -364,7 +365,13 @@
364365
# Grouping the document tree into LaTeX files. List of tuples
365366
# (source start file, target name, title, author, document class [howto/manual]).
366367
latex_documents = [
367-
('c-api/index', 'c-api.tex', 'The Python/C API', _doc_authors, 'manual'),
368+
(
369+
'c-api/index',
370+
'c-api.tex',
371+
'The Python/C API',
372+
_doc_authors,
373+
'manual',
374+
),
368375
(
369376
'extending/index',
370377
'extending.tex',
@@ -379,6 +386,13 @@
379386
_doc_authors,
380387
'manual',
381388
),
389+
(
390+
'builtins/index',
391+
'builtins.tex',
392+
'Python Built-ins Reference',
393+
_doc_authors,
394+
'manual',
395+
),
382396
(
383397
'library/index',
384398
'library.tex',
@@ -606,3 +620,16 @@
606620
'<meta property="og:image:width" content="200">',
607621
'<meta property="og:image:height" content="200">',
608622
)
623+
624+
# Options for sphinxext-rediraffe
625+
# -------------------------------
626+
627+
rediraffe_redirects = {
628+
# Splitting builtins from library
629+
"library/functions.rst": "builtins/functions.rst",
630+
"library/stdtypes.rst": "builtins/stdtypes.rst",
631+
"library/constants.rst": "builtins/constants.rst",
632+
"library/exceptions.rst": "builtins/exceptions.rst",
633+
"library/threadsafety.rst": "builtins/threadsafety.rst",
634+
"library/time-complexity.rst": "builtins/time-complexity.rst",
635+
}

‎Doc/contents.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
tutorial/index.rst
99
using/index.rst
1010
reference/index.rst
11+
builtins/index.rst
1112
library/index.rst
1213
extending/index.rst
1314
c-api/index.rst

0 commit comments

Comments
 (0)