Skip to content

Commit 8033153

Browse files
authored
Merge branch 'main' into traceback-show_lines
2 parents 29821b1 + 1a0edb1 commit 8033153

File tree

2,673 files changed

+293286
-99333
lines changed

Some content is hidden

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

2,673 files changed

+293286
-99333
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"image": "ghcr.io/python/wasicontainer:latest",
3+
"onCreateCommand": [
4+
// Install common tooling.
5+
"dnf",
6+
"install",
7+
"-y",
8+
// For umask fix below.
9+
"/usr/bin/setfacl"
10+
],
11+
"updateContentCommand": {
12+
// Using the shell for `nproc` usage.
13+
"python": "python3 Tools/wasm/wasi build --quiet -- --with-pydebug -C"
14+
},
15+
"postCreateCommand": {
16+
// https://github.com/orgs/community/discussions/26026
17+
"umask fix: workspace": ["sudo", "setfacl", "-bnR", "."],
18+
"umask fix: /tmp": ["sudo", "setfacl", "-bnR", "/tmp"]
19+
},
20+
"customizations": {
21+
"vscode": {
22+
"extensions": [
23+
// Highlighting for Parser/Python.asdl.
24+
"brettcannon.zephyr-asdl",
25+
// Highlighting for configure.ac.
26+
"maelvalais.autoconf",
27+
// C auto-complete.
28+
"ms-vscode.cpptools",
29+
// Python auto-complete.
30+
"ms-python.python"
31+
],
32+
"settings": {
33+
"C_Cpp.default.compilerPath": "/usr/bin/clang",
34+
"C_Cpp.default.cStandard": "c11",
35+
"C_Cpp.default.defines": [
36+
"CONFIG_64",
37+
"Py_BUILD_CORE"
38+
],
39+
"C_Cpp.default.includePath": [
40+
"${workspaceFolder}/*",
41+
"${workspaceFolder}/Include/**"
42+
],
43+
// https://github.com/microsoft/vscode-cpptools/issues/10732
44+
"C_Cpp.errorSquiggles": "disabled",
45+
"editor.insertSpaces": true,
46+
"editor.rulers": [
47+
80
48+
],
49+
"editor.tabSize": 4,
50+
"editor.trimAutoWhitespace": true,
51+
"files.associations": {
52+
"*.h": "c"
53+
},
54+
"files.encoding": "utf8",
55+
"files.eol": "\n",
56+
"files.insertFinalNewline": true,
57+
"files.trimTrailingWhitespace": true,
58+
"python.analysis.diagnosticSeverityOverrides": {
59+
// Complains about shadowing the stdlib w/ the stdlib.
60+
"reportShadowedImports": "none",
61+
// Doesn't like _frozen_importlib.
62+
"reportMissingImports": "none"
63+
},
64+
"python.analysis.extraPaths": [
65+
"Lib"
66+
],
67+
"[restructuredtext]": {
68+
"editor.tabSize": 3
69+
}
70+
}
71+
}
72+
}
73+
}

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ PCbuild/readme.txt dos
6868
**/clinic/*.cpp.h generated
6969
**/clinic/*.h.h generated
7070
*_db.h generated
71+
Doc/_static/tachyon-example-*.html generated
7172
Doc/c-api/lifecycle.dot.svg generated
7273
Doc/data/stable_abi.dat generated
7374
Doc/library/token-list.inc generated
@@ -82,13 +83,19 @@ Include/opcode.h generated
8283
Include/opcode_ids.h generated
8384
Include/token.h generated
8485
Lib/_opcode_metadata.py generated
86+
Lib/idlelib/help.html generated
8587
Lib/keyword.py generated
88+
Lib/pydoc_data/topics.py generated
89+
Lib/pydoc_data/module_docs.py generated
8690
Lib/test/certdata/*.pem generated
8791
Lib/test/certdata/*.0 generated
8892
Lib/test/levenshtein_examples.json generated
8993
Lib/test/test_stable_abi_ctypes.py generated
94+
Lib/test/test_zoneinfo/data/*.json generated
9095
Lib/token.py generated
9196
Misc/sbom.spdx.json generated
97+
Modules/_testinternalcapi/test_cases.c.h generated
98+
Modules/_testinternalcapi/test_targets.h generated
9299
Objects/typeslots.inc generated
93100
PC/python3dll.c generated
94101
Parser/parser.c generated
@@ -99,8 +106,10 @@ Python/executor_cases.c.h generated
99106
Python/generated_cases.c.h generated
100107
Python/optimizer_cases.c.h generated
101108
Python/opcode_targets.h generated
109+
Python/record_functions.c.h generated
102110
Python/stdlib_module_names.h generated
103111
Tools/peg_generator/pegen/grammar_parser.py generated
104112
aclocal.m4 generated
105113
configure generated
106114
*.min.js generated
115+
package-lock.json generated

.github/CODEOWNERS

Lines changed: 88 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@
6363
.azure-pipelines/ @AA-Turner
6464

6565
# GitHub & related scripts
66-
.github/ @ezio-melotti @hugovk @AA-Turner
67-
Tools/build/compute-changes.py @AA-Turner
68-
Tools/build/verify_ensurepip_wheels.py @AA-Turner @pfmoore @pradyunsg
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
69+
Tools/build/verify_ensurepip_wheels.py @AA-Turner @pfmoore @pradyunsg
6970

7071
# Pre-commit
7172
.pre-commit-config.yaml @hugovk
@@ -86,6 +87,10 @@ Modules/makesetup @erlend-aasland @AA-Turner @emmatyping
8687
Modules/Setup* @erlend-aasland @AA-Turner @emmatyping
8788
Tools/build/regen-configure.sh @AA-Turner
8889

90+
# generate-build-details
91+
Tools/build/generate-build-details.py @FFY00
92+
Lib/test/test_build_details.py @FFY00
93+
8994

9095
# ----------------------------------------------------------------------------
9196
# Documentation
@@ -95,17 +100,18 @@ Tools/build/regen-configure.sh @AA-Turner
95100
InternalDocs/ @AA-Turner
96101

97102
# Tools, Configuration, etc
98-
Doc/Makefile @AA-Turner @hugovk
99-
Doc/_static/ @AA-Turner @hugovk
100-
Doc/conf.py @AA-Turner @hugovk
101-
Doc/make.bat @AA-Turner @hugovk
102-
Doc/requirements.txt @AA-Turner @hugovk
103-
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
104109

105110
# PR Previews
106111
.readthedocs.yml @AA-Turner
107112

108113
# Sections
114+
Doc/c-api/ @ZeroIntensity
109115
Doc/reference/ @willingc @AA-Turner
110116
Doc/whatsnew/ @AA-Turner
111117

@@ -122,8 +128,13 @@ Doc/howto/clinic.rst @erlend-aasland @AA-Turner
122128
# C Analyser
123129
Tools/c-analyzer/ @ericsnowcurrently
124130

131+
# C API Documentation Checks
132+
Tools/check-c-api-docs/ @ZeroIntensity
133+
125134
# Fuzzing
126-
Modules/_xxtestfuzz/ @ammaraskar
135+
Modules/_xxtestfuzz/ @python/fuzzers
136+
Lib/test/test_xxtestfuzz.py @python/fuzzers
137+
.github/workflows/reusable-cifuzz.yml @python/fuzzers
127138

128139
# Limited C API & Stable ABI
129140
Doc/c-api/stable.rst @encukou
@@ -136,6 +147,9 @@ Misc/externals.spdx.json @sethmlarson
136147
Misc/sbom.spdx.json @sethmlarson
137148
Tools/build/generate_sbom.py @sethmlarson
138149

150+
# ABI check
151+
Misc/libabigail.abignore @encukou
152+
139153

140154
# ----------------------------------------------------------------------------
141155
# Platform Support
@@ -166,9 +180,10 @@ Tools/wasm/config.site-wasm32-emscripten @freakboy3742 @emmatyping
166180
Tools/wasm/emscripten @freakboy3742 @emmatyping
167181

168182
# WebAssembly (WASI)
169-
Tools/wasm/wasi-env @brettcannon @emmatyping
170-
Tools/wasm/wasi.py @brettcannon @emmatyping
171-
Tools/wasm/wasi @brettcannon @emmatyping
183+
Platforms/WASI @brettcannon @emmatyping @savannahostrowski
184+
Tools/wasm/wasi-env @brettcannon @emmatyping @savannahostrowski
185+
Tools/wasm/wasi.py @brettcannon @emmatyping @savannahostrowski
186+
Tools/wasm/wasi @brettcannon @emmatyping @savannahostrowski
172187

173188
# Windows
174189
PC/ @python/windows-team
@@ -241,51 +256,57 @@ Lib/test/test_getpath.py @FFY00
241256
Modules/getpath* @FFY00
242257

243258
# Hashing / ``hash()`` and related
244-
Include/cpython/pyhash.h @gpshead @picnixz @tiran
245-
Include/internal/pycore_pyhash.h @gpshead @picnixz @tiran
246-
Include/pyhash.h @gpshead @picnixz @tiran
247-
Python/pyhash.c @gpshead @picnixz @tiran
259+
Include/cpython/pyhash.h @gpshead @picnixz
260+
Include/internal/pycore_pyhash.h @gpshead @picnixz
261+
Include/pyhash.h @gpshead @picnixz
262+
Python/pyhash.c @gpshead @picnixz
248263

249264
# The import system (including importlib)
250-
**/*import* @brettcannon @ericsnowcurrently @ncoghlan @warsaw
251-
Python/import.c @brettcannon @ericsnowcurrently @ncoghlan @warsaw @kumaraditya303
265+
**/*import* @brettcannon @ericsnowcurrently @ncoghlan @warsaw @FFY00
266+
Python/import.c @brettcannon @ericsnowcurrently @ncoghlan @warsaw @FFY00 @kumaraditya303
252267
**/*freeze* @ericsnowcurrently
253268
**/*frozen* @ericsnowcurrently
254269
**/*modsupport* @ericsnowcurrently
255-
**/*modulefinder* @ericsnowcurrently
270+
**/*modulefinder* @ericsnowcurrently @FFY00
256271
**/*moduleobject* @ericsnowcurrently
257272
**/*multiphase* @ericsnowcurrently
258-
**/*pkgutil* @ericsnowcurrently
273+
**/*pkgutil* @ericsnowcurrently @FFY00
259274
**/*pythonrun* @ericsnowcurrently
260-
**/*runpy* @ericsnowcurrently
275+
**/*runpy* @ericsnowcurrently @FFY00
261276
**/*singlephase* @ericsnowcurrently
262277
Doc/c-api/module.rst @ericsnowcurrently
263278
Lib/test/test_module/ @ericsnowcurrently
264-
Python/dynload_*.c @ericsnowcurrently
279+
Python/dynload_*.c @ericsnowcurrently @FFY00
265280

266281
# Initialisation
267-
**/*initconfig* @ericsnowcurrently
268-
**/*pathconfig* @ericsnowcurrently
269-
**/*preconfig* @ericsnowcurrently
282+
**/*initconfig* @ericsnowcurrently @FFY00
283+
**/*pathconfig* @ericsnowcurrently @FFY00
284+
**/*preconfig* @ericsnowcurrently @FFY00
270285
Doc/library/sys_path_init.rst @FFY00
271286
Doc/c-api/init_config.rst @FFY00
272287

273288
# Interpreter main program
274-
Modules/main.c @ericsnowcurrently
275-
Programs/_bootstrap_python.c @ericsnowcurrently
276-
Programs/python.c @ericsnowcurrently
289+
Modules/main.c @ericsnowcurrently @FFY00
290+
Programs/_bootstrap_python.c @ericsnowcurrently @FFY00
291+
Programs/python.c @ericsnowcurrently @FFY00
277292

278293
# JIT
294+
.github/workflows/jit.yml @savannahostrowski
279295
Include/internal/pycore_jit.h @brandtbucher @savannahostrowski @diegorusso
280296
Python/jit.c @brandtbucher @savannahostrowski @diegorusso
281297
Tools/jit/ @brandtbucher @savannahostrowski @diegorusso
282298
InternalDocs/jit.md @brandtbucher @savannahostrowski @diegorusso @AA-Turner
283299

300+
# 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
304+
284305
# Micro-op / μop / Tier 2 Optimiser
285-
Python/optimizer.c @markshannon
286-
Python/optimizer_analysis.c @markshannon @tomasr8 @Fidget-Spinner
287-
Python/optimizer_bytecodes.c @markshannon @tomasr8 @Fidget-Spinner
288-
Python/optimizer_symbols.c @markshannon @tomasr8
306+
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
289310

290311
# Parser, Lexer, and Grammar
291312
Grammar/python.gram @pablogsal @lysnikolaou
@@ -297,8 +318,8 @@ Tools/peg_generator/ @pablogsal @lysnikolaou
297318

298319
# Runtime state/lifecycle
299320
**/*gil* @ericsnowcurrently
300-
**/*pylifecycle* @ericsnowcurrently @ZeroIntensity
301-
**/*pystate* @ericsnowcurrently @ZeroIntensity
321+
**/*pylifecycle* @ericsnowcurrently @ZeroIntensity @FFY00
322+
**/*pystate* @ericsnowcurrently @ZeroIntensity @FFY00
302323
Include/internal/pycore_*_init.h @ericsnowcurrently
303324
Include/internal/pycore_*_state.h @ericsnowcurrently
304325
Include/internal/pycore_atexit.h @ericsnowcurrently
@@ -315,7 +336,7 @@ Tools/build/generate_global_objects.py @ericsnowcurrently
315336
# Remote Debugging
316337
Python/remote_debug.h @pablogsal
317338
Python/remote_debugging.c @pablogsal
318-
Modules/_remote_debugging_module.c @pablogsal @ambv @1st1
339+
Modules/_remote_debugging/ @pablogsal
319340

320341
# Sub-Interpreters
321342
**/*crossinterp* @ericsnowcurrently
@@ -371,14 +392,14 @@ Lib/calendar.py @AA-Turner
371392
Lib/test/test_calendar.py @AA-Turner
372393

373394
# Cryptographic Primitives and Applications
374-
**/*hashlib* @gpshead @picnixz @tiran
375-
**/*hashopenssl* @gpshead @picnixz @tiran
395+
**/*hashlib* @gpshead @picnixz
396+
**/*hashopenssl* @gpshead @picnixz
376397
**/*hmac* @gpshead @picnixz
377398
**/*ssl* @gpshead @picnixz
378399
Modules/_hacl/ @gpshead @picnixz
379-
Modules/*blake* @gpshead @picnixz @tiran
380-
Modules/*md5* @gpshead @picnixz @tiran
381-
Modules/*sha* @gpshead @picnixz @tiran
400+
Modules/*blake* @gpshead @picnixz
401+
Modules/*md5* @gpshead @picnixz
402+
Modules/*sha* @gpshead @picnixz
382403

383404
# Codecs
384405
Modules/cjkcodecs/ @corona10
@@ -406,18 +427,19 @@ Lib/dataclasses.py @ericvsmith
406427
Lib/test/test_dataclasses/ @ericvsmith
407428

408429
# Dates and times
409-
Doc/**/*time.rst @pganssle @abalkin
410-
Doc/library/zoneinfo.rst @pganssle
411-
Include/datetime.h @pganssle @abalkin
412-
Include/internal/pycore_time.h @pganssle @abalkin
413-
Lib/test/test_zoneinfo/ @pganssle
414-
Lib/zoneinfo/ @pganssle
415-
Lib/*time.py @pganssle @abalkin
416-
Lib/test/datetimetester.py @pganssle @abalkin
417-
Lib/test/test_*time.py @pganssle @abalkin
418-
Modules/*zoneinfo* @pganssle
419-
Modules/*time* @pganssle @abalkin
420-
Python/pytime.c @pganssle @abalkin
430+
Doc/**/*time.rst @pganssle @StanFromIreland
431+
Doc/library/datetime-* @pganssle @StanFromIreland
432+
Doc/library/zoneinfo.rst @pganssle @StanFromIreland
433+
Include/datetime.h @pganssle @StanFromIreland
434+
Include/internal/pycore_time.h @pganssle @StanFromIreland
435+
Lib/test/test_zoneinfo/ @pganssle @StanFromIreland
436+
Lib/zoneinfo/ @pganssle @StanFromIreland
437+
Lib/*time.py @pganssle @StanFromIreland
438+
Lib/test/datetimetester.py @pganssle @StanFromIreland
439+
Lib/test/test_*time.py @pganssle @StanFromIreland
440+
Modules/*zoneinfo* @pganssle @StanFromIreland
441+
Modules/*time* @pganssle @StanFromIreland
442+
Python/pytime.c @pganssle @StanFromIreland
421443

422444
# Dbm
423445
Doc/library/dbm.rst @corona10 @erlend-aasland @serhiy-storchaka
@@ -456,8 +478,9 @@ Lib/test/test_functools.py @rhettinger
456478
Modules/_functoolsmodule.c @rhettinger
457479

458480
# Garbage collector
459-
Modules/gcmodule.c @pablogsal
460-
Doc/library/gc.rst @pablogsal
481+
Modules/gcmodule.c @pablogsal
482+
Doc/library/gc.rst @pablogsal
483+
InternalDocs/garbage_collector.md @pablogsal
461484

462485
# Gettext
463486
Doc/library/gettext.rst @tomasr8
@@ -484,13 +507,13 @@ Lib/idlelib/ @terryjreedy
484507
Lib/turtledemo/ @terryjreedy
485508

486509
# importlib.metadata
487-
Doc/library/importlib.metadata.rst @jaraco @warsaw
488-
Lib/importlib/metadata/ @jaraco @warsaw
489-
Lib/test/test_importlib/metadata/ @jaraco @warsaw
510+
Doc/library/importlib.metadata.rst @jaraco @warsaw @FFY00
511+
Lib/importlib/metadata/ @jaraco @warsaw @FFY00
512+
Lib/test/test_importlib/metadata/ @jaraco @warsaw @FFY00
490513

491514
# importlib.resources
492-
Doc/library/importlib.resources.abc.rst @jaraco @warsaw
493-
Doc/library/importlib.resources.rst @jaraco @warsaw
515+
Doc/library/importlib.resources.abc.rst @jaraco @warsaw @FFY00
516+
Doc/library/importlib.resources.rst @jaraco @warsaw @FFY00
494517
Lib/importlib/resources/ @jaraco @warsaw @FFY00
495518
Lib/test/test_importlib/resources/ @jaraco @warsaw @FFY00
496519

@@ -530,6 +553,11 @@ Lib/pydoc.py @AA-Turner
530553
Lib/pydoc_data/ @AA-Turner
531554
Lib/test/test_pydoc/ @AA-Turner
532555

556+
# Profiling (Sampling)
557+
Doc/library/profiling*.rst @pablogsal
558+
Lib/profiling/ @pablogsal
559+
Lib/test/test_profiling/ @pablogsal
560+
533561
# PyREPL
534562
Lib/_pyrepl/ @pablogsal @lysnikolaou @ambv
535563
Lib/test/test_pyrepl/ @pablogsal @lysnikolaou @ambv

0 commit comments

Comments
 (0)