Skip to content

Commit 34d2c34

Browse files
committed
Merge remote-tracking branch 'upstream/main' into osc/145448-fix-repl-tab-cursor
# Conflicts: # Lib/_pyrepl/unix_console.py
2 parents 539707c + 1e406e6 commit 34d2c34

3,399 files changed

Lines changed: 382466 additions & 198179 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: 9 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,8 +111,10 @@ 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
113118
configure generated
114119
*.min.js generated
120+
package-lock.json generated

‎.github/CODEOWNERS‎

Lines changed: 73 additions & 63 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
@@ -100,12 +100,12 @@ Lib/test/test_build_details.py @FFY00
100100
InternalDocs/ @AA-Turner
101101

102102
# Tools, Configuration, etc
103-
Doc/Makefile @AA-Turner @hugovk
104-
Doc/_static/ @AA-Turner @hugovk
105-
Doc/conf.py @AA-Turner @hugovk
106-
Doc/make.bat @AA-Turner @hugovk
107-
Doc/requirements.txt @AA-Turner @hugovk
108-
Doc/tools/ @AA-Turner @hugovk
103+
Doc/Makefile @AA-Turner @hugovk @StanFromIreland
104+
Doc/_static/ @AA-Turner @hugovk @StanFromIreland
105+
Doc/conf.py @AA-Turner @hugovk @StanFromIreland
106+
Doc/make.bat @AA-Turner @hugovk @StanFromIreland
107+
Doc/requirements.txt @AA-Turner @hugovk @StanFromIreland
108+
Doc/tools/ @AA-Turner @hugovk @StanFromIreland
109109

110110
# PR Previews
111111
.readthedocs.yml @AA-Turner
@@ -132,7 +132,9 @@ Tools/c-analyzer/ @ericsnowcurrently
132132
Tools/check-c-api-docs/ @ZeroIntensity
133133

134134
# Fuzzing
135-
Modules/_xxtestfuzz/ @ammaraskar
135+
Modules/_xxtestfuzz/ @python/fuzzers
136+
Lib/test/test_xxtestfuzz.py @python/fuzzers
137+
.github/workflows/reusable-cifuzz.yml @python/fuzzers
136138

137139
# Limited C API & Stable ABI
138140
Doc/c-api/stable.rst @encukou
@@ -154,28 +156,24 @@ Misc/libabigail.abignore @encukou
154156
# ----------------------------------------------------------------------------
155157

156158
# Android
157-
Android/ @mhsmith @freakboy3742
159+
Platforms/Android/ @mhsmith @freakboy3742
158160
Doc/using/android.rst @mhsmith @freakboy3742
159161
Lib/_android_support.py @mhsmith @freakboy3742
160162
Lib/test/test_android.py @mhsmith @freakboy3742
161163

162164
# iOS
163165
Doc/using/ios.rst @freakboy3742
164166
Lib/_ios_support.py @freakboy3742
165-
Apple/ @freakboy3742
166-
iOS/ @freakboy3742
167+
Platforms/Apple/ @freakboy3742
167168

168169
# macOS
169170
Mac/ @python/macos-team
170171
Lib/_osx_support.py @python/macos-team
171172
Lib/test/test__osx_support.py @python/macos-team
172173

173-
# WebAssembly
174-
Tools/wasm/README.md @brettcannon @freakboy3742 @emmatyping
175-
176174
# WebAssembly (Emscripten)
177-
Tools/wasm/config.site-wasm32-emscripten @freakboy3742 @emmatyping
178-
Tools/wasm/emscripten @freakboy3742 @emmatyping
175+
Platforms/emscripten @freakboy3742 @emmatyping
176+
Tools/wasm/emscripten @freakboy3742 @emmatyping
179177

180178
# WebAssembly (WASI)
181179
Platforms/WASI @brettcannon @emmatyping @savannahostrowski
@@ -187,12 +185,8 @@ Tools/wasm/wasi @brettcannon @emmatyping @savannahostrowski
187185
PC/ @python/windows-team
188186
PCbuild/ @python/windows-team
189187

190-
# Windows installer packages
191-
Tools/msi/ @python/windows-team
192-
Tools/nuget/ @python/windows-team
193-
194-
# Windows Launcher
195-
PC/launcher.c @python/windows-team @vsajip
188+
# Windows Venv launcher/redirector
189+
PC/venvlauncher.c @python/windows-team @vsajip
196190

197191

198192
# ----------------------------------------------------------------------------
@@ -229,7 +223,7 @@ Tools/cases_generator/ @markshannon
229223
Python/assemble.c @markshannon @iritkatriel
230224
Python/codegen.c @markshannon @iritkatriel
231225
Python/compile.c @markshannon @iritkatriel
232-
Python/flowgraph.c @markshannon @iritkatriel
226+
Python/flowgraph.c @markshannon @iritkatriel @eclips4
233227
Python/instruction_sequence.c @iritkatriel
234228
Python/symtable.c @JelleZijlstra @carljm
235229

@@ -289,25 +283,26 @@ Programs/_bootstrap_python.c @ericsnowcurrently @FFY00
289283
Programs/python.c @ericsnowcurrently @FFY00
290284

291285
# JIT
292-
.github/workflows/jit.yml @savannahostrowski
293-
Include/internal/pycore_jit.h @brandtbucher @savannahostrowski @diegorusso
294-
Python/jit.c @brandtbucher @savannahostrowski @diegorusso
295-
Tools/jit/ @brandtbucher @savannahostrowski @diegorusso
296-
InternalDocs/jit.md @brandtbucher @savannahostrowski @diegorusso @AA-Turner
286+
Include/internal/pycore_jit.h @brandtbucher @diegorusso
287+
Python/jit.c @brandtbucher @diegorusso
288+
Tools/jit/ @brandtbucher @diegorusso
289+
InternalDocs/jit.md @brandtbucher @diegorusso @AA-Turner
297290

298291
# Lazy imports (PEP 810)
299-
Objects/lazyimportobject.c @yhg1s @DinoV @pablogsal
300-
Include/internal/pycore_lazyimportobject.h @yhg1s @DinoV @pablogsal
301-
Lib/test/test_lazy_import @yhg1s @DinoV @pablogsal
292+
.github/workflows/reusable-test-lazy-imports-all.yml @yhg1s @DinoV @pablogsal
293+
Objects/lazyimportobject.c @yhg1s @DinoV @pablogsal
294+
Include/internal/pycore_lazyimportobject.h @yhg1s @DinoV @pablogsal
295+
Lib/test/test_lazy_import @yhg1s @DinoV @pablogsal
302296

303297
# Micro-op / μop / Tier 2 Optimiser
304298
Python/optimizer.c @markshannon @Fidget-Spinner
305-
Python/optimizer_analysis.c @markshannon @tomasr8 @Fidget-Spinner @savannahostrowski
306-
Python/optimizer_bytecodes.c @markshannon @tomasr8 @Fidget-Spinner @savannahostrowski
307-
Python/optimizer_symbols.c @markshannon @tomasr8 @Fidget-Spinner @savannahostrowski
299+
Python/optimizer_analysis.c @markshannon @tomasr8 @Fidget-Spinner
300+
Python/optimizer_bytecodes.c @markshannon @tomasr8 @Fidget-Spinner
301+
Python/optimizer_symbols.c @markshannon @tomasr8 @Fidget-Spinner
308302

309303
# Parser, Lexer, and Grammar
310304
Grammar/python.gram @pablogsal @lysnikolaou
305+
Grammar/invalid.gram @pablogsal @lysnikolaou
311306
Lib/test/test_peg_generator/ @pablogsal @lysnikolaou
312307
Lib/test/test_tokenize.py @pablogsal @lysnikolaou
313308
Lib/tokenize.py @pablogsal @lysnikolaou
@@ -338,7 +333,6 @@ Modules/_remote_debugging/ @pablogsal
338333

339334
# Sub-Interpreters
340335
**/*crossinterp* @ericsnowcurrently
341-
**/*interpreteridobject.* @ericsnowcurrently
342336
Doc/library/concurrent.interpreters.rst @ericsnowcurrently
343337
Lib/concurrent/futures/interpreter.py @ericsnowcurrently
344338
Lib/concurrent/interpreters/ @ericsnowcurrently
@@ -425,19 +419,20 @@ Lib/dataclasses.py @ericvsmith
425419
Lib/test/test_dataclasses/ @ericvsmith
426420

427421
# Dates and times
428-
Doc/**/*time.rst @pganssle @abalkin @StanFromIreland
422+
Doc/**/*time.rst @pganssle @StanFromIreland
429423
Doc/library/datetime-* @pganssle @StanFromIreland
430424
Doc/library/zoneinfo.rst @pganssle @StanFromIreland
431-
Include/datetime.h @pganssle @abalkin @StanFromIreland
432-
Include/internal/pycore_time.h @pganssle @abalkin @StanFromIreland
425+
Include/datetime.h @pganssle @StanFromIreland
426+
Include/internal/pycore_time.h @pganssle @StanFromIreland
433427
Lib/test/test_zoneinfo/ @pganssle @StanFromIreland
434428
Lib/zoneinfo/ @pganssle @StanFromIreland
435-
Lib/*time.py @pganssle @abalkin @StanFromIreland
436-
Lib/test/datetimetester.py @pganssle @abalkin @StanFromIreland
437-
Lib/test/test_*time.py @pganssle @abalkin @StanFromIreland
429+
Lib/*time.py @pganssle @StanFromIreland
430+
Lib/test/datetimetester.py @pganssle @StanFromIreland
431+
Lib/test/test_*time.py @pganssle @StanFromIreland
438432
Modules/*zoneinfo* @pganssle @StanFromIreland
439-
Modules/*time* @pganssle @abalkin @StanFromIreland
440-
Python/pytime.c @pganssle @abalkin @StanFromIreland
433+
Modules/*time* @pganssle @StanFromIreland
434+
Python/pytime.c @pganssle @StanFromIreland
435+
Python/_strptime.c @pganssle @StanFromIreland
441436

442437
# Dbm
443438
Doc/library/dbm.rst @corona10 @erlend-aasland @serhiy-storchaka
@@ -572,9 +567,9 @@ Lib/shutil.py @giampaolo
572567
Lib/test/test_shutil.py @giampaolo
573568

574569
# Site
575-
Lib/site.py @FFY00
576-
Lib/test/test_site.py @FFY00
577-
Doc/library/site.rst @FFY00
570+
Lib/site.py @FFY00 @warsaw
571+
Lib/test/test_site.py @FFY00 @warsaw
572+
Doc/library/site.rst @FFY00 @warsaw
578573

579574
# string.templatelib
580575
Doc/library/string.templatelib.rst @lysnikolaou @AA-Turner
@@ -585,10 +580,10 @@ Lib/test/test_string/test_templatelib.py @lysnikolaou @AA-Turner
585580
**/*sysconfig* @FFY00
586581

587582
# SQLite 3
588-
Doc/library/sqlite3.rst @berkerpeksag @erlend-aasland
589-
Lib/sqlite3/ @berkerpeksag @erlend-aasland
590-
Lib/test/test_sqlite3/ @berkerpeksag @erlend-aasland
591-
Modules/_sqlite/ @berkerpeksag @erlend-aasland
583+
Doc/library/sqlite3.rst @erlend-aasland
584+
Lib/sqlite3/ @erlend-aasland
585+
Lib/test/test_sqlite3/ @erlend-aasland
586+
Modules/_sqlite/ @erlend-aasland
592587

593588
# Subprocess
594589
Lib/subprocess.py @gpshead
@@ -605,6 +600,12 @@ Doc/library/tomllib.rst @encukou @hauntsaninja
605600
Lib/test/test_tomllib/ @encukou @hauntsaninja
606601
Lib/tomllib/ @encukou @hauntsaninja
607602

603+
# Turtle
604+
Doc/library/turtle.rst @StanFromIreland
605+
Doc/library/turtle-star.png @StanFromIreland
606+
Lib/test/test_turtle.py @StanFromIreland
607+
Lib/turtle.py @StanFromIreland
608+
608609
# Typing
609610
Doc/library/typing.rst @JelleZijlstra @AlexWaygood
610611
Lib/test/test_typing.py @JelleZijlstra @AlexWaygood
@@ -621,15 +622,18 @@ Modules/_typesmodule.c @AA-Turner
621622
Lib/unittest/mock.py @cjw296
622623
Lib/test/test_unittest/testmock/ @cjw296
623624

624-
# Urllib
625-
**/*robotparser* @berkerpeksag
626-
627625
# Venv
628626
**/*venv* @vsajip @FFY00
629627

630628
# Weakref
631629
**/*weakref* @kumaraditya303
632630

631+
# Zlib
632+
Doc/library/zlib.rst @StanFromIreland
633+
Lib/compression/zlib.py @StanFromIreland
634+
Lib/test/test_zlib.py @StanFromIreland
635+
Modules/zlibmodule.c @StanFromIreland
636+
633637
# Zipfile.Path
634638
Lib/test/test_zipfile/_path/ @jaraco
635639
Lib/zipfile/_path/ @jaraco
@@ -652,3 +656,9 @@ Modules/**/clinic/
652656
Objects/**/clinic/
653657
PC/**/clinic/
654658
Python/**/clinic/
659+
660+
# Exclude Lazy Imports=all CI carve out file
661+
Lib/test/lazy_imports_all_exclude.txt
662+
663+
# Exclude HTML IDs list
664+
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

0 commit comments

Comments
 (0)