Skip to content

Commit db8ab2d

Browse files
authored
Merge branch 'main' into tempfile-docs
2 parents 87120b9 + 910a92b commit db8ab2d

2,996 files changed

Lines changed: 359940 additions & 185738 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.

‎.azure-pipelines/windows-layout-steps.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ steps:
1212
displayName: Show layout info (${{ parameters.kind }})
1313

1414
- ${{ if eq(parameters.fulltest, 'true') }}:
15-
- script: .\python.exe -m test -q -uall -u-cpu -rwW --slowest --timeout=1200 -j0 --junit-xml="$(Build.BinariesDirectory)\test-results-${{ parameters.kind }}.xml" --tempdir "$(Build.BinariesDirectory)\tmp-${{ parameters.kind }}-$(arch)" -i test_launcher
15+
- script: .\python.exe -m test -q -uall -u-cpu -rwW --slowest --timeout=1200 -j0 --junit-xml="$(Build.BinariesDirectory)\test-results-${{ parameters.kind }}.xml" --tempdir "$(Build.BinariesDirectory)\tmp-${{ parameters.kind }}-$(arch)"
1616
workingDirectory: $(Build.BinariesDirectory)\layout-${{ parameters.kind }}-$(arch)
1717
displayName: ${{ parameters.kind }} Tests
1818
env:

‎.editorconfig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
root = true
22

3-
[*.{py,c,cpp,h,js,rst,md,yml,yaml,gram}]
3+
[*.{py,c,cpp,h,js,rst,md,yml,yaml,toml,gram}]
44
trim_trailing_whitespace = true
55
insert_final_newline = true
66
indent_style = space
77

8-
[*.{py,c,cpp,h,gram}]
8+
[*.{py,c,cpp,h,toml,gram}]
99
indent_size = 4
1010

1111
[*.rst]

‎.gitattributes‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*.zip binary
2020

2121
# Specific binary files
22-
PC/classicAppCompat.* binary
22+
# -- None right now --
2323

2424
# Text files that should not be subject to eol conversion
2525
[attr]noeol -text
@@ -34,6 +34,9 @@ Lib/test/xmltestdata/* noeol
3434
Lib/venv/scripts/common/activate text eol=lf
3535
Lib/venv/scripts/posix/* text eol=lf
3636

37+
# Prevent GitHub's web conflict editor from converting LF to CRLF
38+
*.rst text eol=lf
39+
3740
# CRLF files
3841
[attr]dos text eol=crlf
3942

@@ -77,11 +80,12 @@ Include/internal/pycore_ast_state.h generated
7780
Include/internal/pycore_opcode.h generated
7881
Include/internal/pycore_opcode_metadata.h generated
7982
Include/internal/pycore_*_generated.h generated
83+
Include/internal/pycore_token.h generated
8084
Include/internal/pycore_uop_ids.h generated
8185
Include/internal/pycore_uop_metadata.h generated
8286
Include/opcode.h generated
8387
Include/opcode_ids.h generated
84-
Include/token.h generated
88+
Include/slots_generated.h generated
8589
Lib/_opcode_metadata.py generated
8690
Lib/idlelib/help.html generated
8791
Lib/keyword.py generated
@@ -96,9 +100,9 @@ Lib/token.py generated
96100
Misc/sbom.spdx.json generated
97101
Modules/_testinternalcapi/test_cases.c.h generated
98102
Modules/_testinternalcapi/test_targets.h generated
99-
Objects/typeslots.inc generated
100103
PC/python3dll.c generated
101104
Parser/parser.c generated
105+
Parser/parser_invalid.c generated
102106
Parser/token.c generated
103107
Programs/test_frozenmain.h generated
104108
Python/Python-ast.c generated
@@ -107,6 +111,7 @@ Python/generated_cases.c.h generated
107111
Python/optimizer_cases.c.h generated
108112
Python/opcode_targets.h generated
109113
Python/record_functions.c.h generated
114+
Python/slots_generated.c generated
110115
Python/stdlib_module_names.h generated
111116
Tools/peg_generator/pegen/grammar_parser.py generated
112117
aclocal.m4 generated

‎.github/CODEOWNERS‎

Lines changed: 75 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -63,29 +63,29 @@
6363
.azure-pipelines/ @AA-Turner
6464

6565
# GitHub & related scripts
66-
.github/ @ezio-melotti @hugovk @AA-Turner @webknjaz
67-
Tools/build/compute-changes.py @AA-Turner @hugovk @webknjaz
68-
Lib/test/test_tools/test_compute_changes.py @AA-Turner @hugovk @webknjaz
66+
.github/ @ezio-melotti @hugovk @AA-Turner @webknjaz @itamaro @JacobCoffee @StanFromIreland
67+
Tools/build/compute-changes.py @AA-Turner @hugovk @webknjaz @StanFromIreland
68+
Lib/test/test_tools/test_compute_changes.py @AA-Turner @hugovk @webknjaz @StanFromIreland
6969
Tools/build/verify_ensurepip_wheels.py @AA-Turner @pfmoore @pradyunsg
7070

7171
# Pre-commit
72-
.pre-commit-config.yaml @hugovk
73-
.ruff.toml @hugovk @AlexWaygood @AA-Turner
72+
.pre-commit-config.yaml @hugovk @JacobCoffee @StanFromIreland
73+
.ruff.toml @hugovk @AlexWaygood @AA-Turner @JacobCoffee @StanFromIreland
7474

7575
# Patchcheck
76-
Tools/patchcheck/ @AA-Turner
76+
Tools/patchcheck/ @AA-Turner @itamaro
7777

7878

7979
# ----------------------------------------------------------------------------
8080
# Build System
8181
# ----------------------------------------------------------------------------
8282

8383
# Autotools
84-
configure* @erlend-aasland @corona10 @AA-Turner @emmatyping
85-
Makefile.pre.in @erlend-aasland @AA-Turner @emmatyping
86-
Modules/makesetup @erlend-aasland @AA-Turner @emmatyping
87-
Modules/Setup* @erlend-aasland @AA-Turner @emmatyping
88-
Tools/build/regen-configure.sh @AA-Turner
84+
configure* @erlend-aasland @corona10 @AA-Turner @emmatyping @itamaro
85+
Makefile.pre.in @erlend-aasland @AA-Turner @emmatyping @itamaro
86+
Modules/makesetup @erlend-aasland @AA-Turner @emmatyping @itamaro
87+
Modules/Setup* @erlend-aasland @AA-Turner @emmatyping @itamaro
88+
Tools/build/regen-configure.sh @AA-Turner @itamaro
8989

9090
# generate-build-details
9191
Tools/build/generate-build-details.py @FFY00
@@ -156,28 +156,28 @@ Misc/libabigail.abignore @encukou
156156
# ----------------------------------------------------------------------------
157157

158158
# Android
159-
Android/ @mhsmith @freakboy3742
159+
Platforms/Android/ @mhsmith @freakboy3742
160160
Doc/using/android.rst @mhsmith @freakboy3742
161161
Lib/_android_support.py @mhsmith @freakboy3742
162162
Lib/test/test_android.py @mhsmith @freakboy3742
163163

164164
# iOS
165165
Doc/using/ios.rst @freakboy3742
166166
Lib/_ios_support.py @freakboy3742
167-
Apple/ @freakboy3742
168-
iOS/ @freakboy3742
167+
Platforms/Apple/ @freakboy3742
169168

170169
# macOS
171170
Mac/ @python/macos-team
172171
Lib/_osx_support.py @python/macos-team
173172
Lib/test/test__osx_support.py @python/macos-team
174173

175-
# WebAssembly
176-
Tools/wasm/README.md @brettcannon @freakboy3742 @emmatyping
177-
178174
# WebAssembly (Emscripten)
179-
Tools/wasm/config.site-wasm32-emscripten @freakboy3742 @emmatyping
180-
Tools/wasm/emscripten @freakboy3742 @emmatyping
175+
Platforms/emscripten @freakboy3742 @emmatyping @hoodmane
176+
Tools/wasm/emscripten @freakboy3742 @emmatyping @hoodmane
177+
Python/wasm_trampoline.c @hoodmane
178+
Python/emscripten_signal.c @hoodmane
179+
Python/emscripten_syscalls.c @hoodmane
180+
.github/workflows/reusable-emscripten.yml @hoodmane
181181

182182
# WebAssembly (WASI)
183183
Platforms/WASI @brettcannon @emmatyping @savannahostrowski
@@ -189,12 +189,8 @@ Tools/wasm/wasi @brettcannon @emmatyping @savannahostrowski
189189
PC/ @python/windows-team
190190
PCbuild/ @python/windows-team
191191

192-
# Windows installer packages
193-
Tools/msi/ @python/windows-team
194-
Tools/nuget/ @python/windows-team
195-
196-
# Windows Launcher
197-
PC/launcher.c @python/windows-team @vsajip
192+
# Windows Venv launcher/redirector
193+
PC/venvlauncher.c @python/windows-team @vsajip
198194

199195

200196
# ----------------------------------------------------------------------------
@@ -231,7 +227,7 @@ Tools/cases_generator/ @markshannon
231227
Python/assemble.c @markshannon @iritkatriel
232228
Python/codegen.c @markshannon @iritkatriel
233229
Python/compile.c @markshannon @iritkatriel
234-
Python/flowgraph.c @markshannon @iritkatriel
230+
Python/flowgraph.c @markshannon @iritkatriel @eclips4
235231
Python/instruction_sequence.c @iritkatriel
236232
Python/symtable.c @JelleZijlstra @carljm
237233

@@ -291,25 +287,26 @@ Programs/_bootstrap_python.c @ericsnowcurrently @FFY00
291287
Programs/python.c @ericsnowcurrently @FFY00
292288

293289
# JIT
294-
.github/workflows/jit.yml @savannahostrowski
295-
Include/internal/pycore_jit.h @brandtbucher @savannahostrowski @diegorusso
296-
Python/jit.c @brandtbucher @savannahostrowski @diegorusso
297-
Tools/jit/ @brandtbucher @savannahostrowski @diegorusso
298-
InternalDocs/jit.md @brandtbucher @savannahostrowski @diegorusso @AA-Turner
290+
Include/internal/pycore_jit.h @brandtbucher @diegorusso
291+
Python/jit.c @brandtbucher @diegorusso
292+
Tools/jit/ @brandtbucher @diegorusso
293+
InternalDocs/jit.md @brandtbucher @diegorusso @AA-Turner
299294

300295
# Lazy imports (PEP 810)
301-
Objects/lazyimportobject.c @yhg1s @DinoV @pablogsal
302-
Include/internal/pycore_lazyimportobject.h @yhg1s @DinoV @pablogsal
303-
Lib/test/test_lazy_import @yhg1s @DinoV @pablogsal
296+
.github/workflows/reusable-test-lazy-imports-all.yml @yhg1s @DinoV @pablogsal
297+
Objects/lazyimportobject.c @yhg1s @DinoV @pablogsal
298+
Include/internal/pycore_lazyimportobject.h @yhg1s @DinoV @pablogsal
299+
Lib/test/test_lazy_import @yhg1s @DinoV @pablogsal
304300

305301
# Micro-op / μop / Tier 2 Optimiser
306302
Python/optimizer.c @markshannon @Fidget-Spinner
307-
Python/optimizer_analysis.c @markshannon @tomasr8 @Fidget-Spinner @savannahostrowski
308-
Python/optimizer_bytecodes.c @markshannon @tomasr8 @Fidget-Spinner @savannahostrowski
309-
Python/optimizer_symbols.c @markshannon @tomasr8 @Fidget-Spinner @savannahostrowski
303+
Python/optimizer_analysis.c @markshannon @tomasr8 @Fidget-Spinner
304+
Python/optimizer_bytecodes.c @markshannon @tomasr8 @Fidget-Spinner
305+
Python/optimizer_symbols.c @markshannon @tomasr8 @Fidget-Spinner
310306

311307
# Parser, Lexer, and Grammar
312308
Grammar/python.gram @pablogsal @lysnikolaou
309+
Grammar/invalid.gram @pablogsal @lysnikolaou
313310
Lib/test/test_peg_generator/ @pablogsal @lysnikolaou
314311
Lib/test/test_tokenize.py @pablogsal @lysnikolaou
315312
Lib/tokenize.py @pablogsal @lysnikolaou
@@ -340,7 +337,6 @@ Modules/_remote_debugging/ @pablogsal
340337

341338
# Sub-Interpreters
342339
**/*crossinterp* @ericsnowcurrently
343-
**/*interpreteridobject.* @ericsnowcurrently
344340
Doc/library/concurrent.interpreters.rst @ericsnowcurrently
345341
Lib/concurrent/futures/interpreter.py @ericsnowcurrently
346342
Lib/concurrent/interpreters/ @ericsnowcurrently
@@ -440,6 +436,7 @@ Lib/test/test_*time.py @pganssle @StanFromIreland
440436
Modules/*zoneinfo* @pganssle @StanFromIreland
441437
Modules/*time* @pganssle @StanFromIreland
442438
Python/pytime.c @pganssle @StanFromIreland
439+
Python/_strptime.c @pganssle @StanFromIreland
443440

444441
# Dbm
445442
Doc/library/dbm.rst @corona10 @erlend-aasland @serhiy-storchaka
@@ -501,6 +498,11 @@ Lib/_markupbase.py @ezio-melotti
501498
Lib/test/test_html*.py @ezio-melotti
502499
Tools/build/parse_html5_entities.py @ezio-melotti
503500

501+
# HTTP
502+
Doc/library/http* @orsenthil
503+
Lib/http/ @orsenthil
504+
Lib/test/test_http*.py @orsenthil
505+
504506
# IDLE
505507
Doc/library/idle.rst @terryjreedy
506508
Lib/idlelib/ @terryjreedy
@@ -517,6 +519,13 @@ Doc/library/importlib.resources.rst @jaraco @warsaw @FFY00
517519
Lib/importlib/resources/ @jaraco @warsaw @FFY00
518520
Lib/test/test_importlib/resources/ @jaraco @warsaw @FFY00
519521

522+
# IO
523+
Doc/library/io.rst @cmaloney
524+
Lib/_pyio.py @cmaloney
525+
Lib/io.py @cmaloney
526+
Lib/test/test_io/ @cmaloney
527+
Modules/_io/ @cmaloney
528+
520529
# Itertools
521530
Doc/library/itertools.rst @rhettinger
522531
Lib/test/test_itertools.py @rhettinger
@@ -574,9 +583,9 @@ Lib/shutil.py @giampaolo
574583
Lib/test/test_shutil.py @giampaolo
575584

576585
# Site
577-
Lib/site.py @FFY00
578-
Lib/test/test_site.py @FFY00
579-
Doc/library/site.rst @FFY00
586+
Lib/site.py @FFY00 @warsaw
587+
Lib/test/test_site.py @FFY00 @warsaw
588+
Doc/library/site.rst @FFY00 @warsaw
580589

581590
# string.templatelib
582591
Doc/library/string.templatelib.rst @lysnikolaou @AA-Turner
@@ -587,10 +596,10 @@ Lib/test/test_string/test_templatelib.py @lysnikolaou @AA-Turner
587596
**/*sysconfig* @FFY00
588597

589598
# SQLite 3
590-
Doc/library/sqlite3.rst @berkerpeksag @erlend-aasland
591-
Lib/sqlite3/ @berkerpeksag @erlend-aasland
592-
Lib/test/test_sqlite3/ @berkerpeksag @erlend-aasland
593-
Modules/_sqlite/ @berkerpeksag @erlend-aasland
599+
Doc/library/sqlite3.rst @erlend-aasland
600+
Lib/sqlite3/ @erlend-aasland
601+
Lib/test/test_sqlite3/ @erlend-aasland
602+
Modules/_sqlite/ @erlend-aasland
594603

595604
# Subprocess
596605
Lib/subprocess.py @gpshead
@@ -607,6 +616,12 @@ Doc/library/tomllib.rst @encukou @hauntsaninja
607616
Lib/test/test_tomllib/ @encukou @hauntsaninja
608617
Lib/tomllib/ @encukou @hauntsaninja
609618

619+
# Turtle
620+
Doc/library/turtle.rst @StanFromIreland
621+
Doc/library/turtle-star.png @StanFromIreland
622+
Lib/test/test_turtle.py @StanFromIreland
623+
Lib/turtle.py @StanFromIreland
624+
610625
# Typing
611626
Doc/library/typing.rst @JelleZijlstra @AlexWaygood
612627
Lib/test/test_typing.py @JelleZijlstra @AlexWaygood
@@ -624,14 +639,22 @@ Lib/unittest/mock.py @cjw296
624639
Lib/test/test_unittest/testmock/ @cjw296
625640

626641
# Urllib
627-
**/*robotparser* @berkerpeksag
642+
Doc/library/urllib* @orsenthil
643+
Lib/urllib/ @orsenthil
644+
Lib/test/test_urllib*.py @orsenthil
628645

629646
# Venv
630647
**/*venv* @vsajip @FFY00
631648

632649
# Weakref
633650
**/*weakref* @kumaraditya303
634651

652+
# Zlib
653+
Doc/library/zlib.rst @StanFromIreland
654+
Lib/compression/zlib.py @StanFromIreland
655+
Lib/test/test_zlib.py @StanFromIreland
656+
Modules/zlibmodule.c @StanFromIreland
657+
635658
# Zipfile.Path
636659
Lib/test/test_zipfile/_path/ @jaraco
637660
Lib/zipfile/_path/ @jaraco
@@ -654,3 +677,9 @@ Modules/**/clinic/
654677
Objects/**/clinic/
655678
PC/**/clinic/
656679
Python/**/clinic/
680+
681+
# Exclude Lazy Imports=all CI carve out file
682+
Lib/test/lazy_imports_all_exclude.txt
683+
684+
# Exclude HTML IDs list
685+
Doc/tools/removed-ids.txt

‎.github/ISSUE_TEMPLATE/bug.yml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ body:
1616
Make sure to also search the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-desc) to check that the bug has not already been reported.
1717
- type: textarea
1818
attributes:
19-
label: "Bug description:"
19+
label: "Bug report"
2020
description: >
2121
Give a clear and concise description of what happened.
2222
Include a [minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) if possible.
@@ -34,13 +34,12 @@ body:
3434
label: "CPython versions tested on:"
3535
multiple: true
3636
options:
37-
- "3.9"
38-
- "3.10"
3937
- "3.11"
4038
- "3.12"
4139
- "3.13"
4240
- "3.14"
4341
- "3.15"
42+
- "3.16"
4443
- "CPython main branch"
4544
validations:
4645
required: true

‎.github/ISSUE_TEMPLATE/crash.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ body:
1010
The CPython interpreter is written in a different programming language, C. A "CPython crash" is when Python itself fails, leading to a traceback in the C stack.
1111
- type: textarea
1212
attributes:
13-
label: What happened?
13+
label: Crash report
1414
description: >
15+
Give a clear and concise description of what happened.
1516
Include a [minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) if possible.
1617
[Copy and paste code where possible rather than using screenshots](https://meta.stackoverflow.com/a/285557/13990016),
1718
and put any code blocks inside triple backticks.
@@ -27,13 +28,12 @@ body:
2728
label: "CPython versions tested on:"
2829
multiple: true
2930
options:
30-
- "3.9"
31-
- "3.10"
3231
- "3.11"
3332
- "3.12"
3433
- "3.13"
3534
- "3.14"
3635
- "3.15"
36+
- "3.16"
3737
- "CPython main branch"
3838
validations:
3939
required: true

‎.github/ISSUE_TEMPLATE/documentation.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@ body:
77
value: |
88
> [!NOTE]
99
> Trivial changes (for example typos) don’t require an issue before opening a PR.
10+
- type: input
11+
id: url
12+
attributes:
13+
label: "Documentation URL"
14+
description: "A link to the relevant documentation page, if applicable."
15+
placeholder: "https://docs.python.org/3/..."
1016
- type: textarea
1117
id: description
1218
attributes:
1319
label: "Documentation"
14-
description: "A clear and concise description of the issue. Include a link to the page."
20+
description: "A clear and concise description of the issue."
1521
validations:
1622
required: true

0 commit comments

Comments
 (0)