efimov-mikhail
1f9025a4e7
gh-124889: Remove redundant artificial rules in PEG parser ( #124893 )
...
Cache in C PEG-generator reworked:
we save artificial rules in cache by Node string representation as a key instead of Node object itself.
As a result total count of artificial rules in parsers.c is lowered from 283 to 170.
More natural number ordering is used for the names of artificial rules.
Auxiliary method CCallMakerVisitor._generate_artificial_rule_call is added.
Its purpose is abstracting work with artificial rules cache.
Explicit using of "is_repeat1" kwarg is added to visit_Repeat0 and visit_Repeat1 methods.
Its slightly improve code readabitily.
2024-10-03 13:58:56 +01:00
Diego Russo
b85923a0fe
GH-119726: Deduplicate AArch64 trampolines within a trace (GH-123872)
2024-10-02 12:07:20 -07:00
Savannah Ostrowski
6737333ac5
GH-124820: Move `-mno-outline-atomics` flag to aarch64 Linux JIT builds only ( #124821 )
2024-10-02 11:40:59 +02:00
Wulian
da1e5526ae
gh-124487: Updated installer messages and internal docs regarding minimum Windows version (GH-124822)
2024-10-01 15:44:18 +01:00
Steve Dower
fac5e7aa17
gh-124487: Require at least Windows 10 SDK and update install check (GH-124672)
2024-09-30 18:50:46 +01:00
Bénédikt Tran
4d8e7c40a0
gh-123961: Add a global state to _curses ( #124729 )
2024-09-29 15:17:20 +00:00
Bénédikt Tran
c00964ecd5
gh-124665: Add `_PyCodec_UnregisterError` and `_codecs._unregister_error` ( #124677 )
2024-09-29 02:25:23 +02:00
Jelle Zijlstra
25189188bf
generate_global_objects.py: Fix name of macro in error message ( #124464 )
...
_PyID does not exist but _Py_ID does.
2024-09-26 21:37:21 -07:00
Savannah Ostrowski
65f1237098
GH-123516: Improve JIT memory consumption by invalidating cold executors (GH-124443)
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-09-27 00:35:42 +00:00
Brett Cannon
66cc6d4c50
Remove some unused files related to WASM/WASI (GH-124635)
2024-09-26 21:23:41 +00:00
Irit Katriel
78aeb38f7d
gh-124285: Fix bug where bool() is called multiple times for the same part of a boolean expression ( #124394 )
2024-09-25 15:51:25 +01:00
Savannah Ostrowski
b6471f4a39
GH-124408: Temporarily skip test_strftime_y2k for emulated Linux JIT CI (GH-124466)
2024-09-24 18:09:50 -07:00
Sam Gross
f4997bb3ac
gh-123923: Defer refcounting for `f_funcobj` in `_PyInterpreterFrame` ( #124026 )
...
Use a `_PyStackRef` and defer the reference to `f_funcobj` when
possible. This avoids some reference count contention in the common case
of executing the same code object from multiple threads concurrently in
the free-threaded build.
2024-09-24 20:08:18 +00:00
Jason Fried
d87482bc4e
gh-119333: Add C api to have contextvar enter/exit callbacks ( #119335 )
...
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2024-09-23 20:40:17 -07:00
Hugo van Kemenade
e256a7590a
Lint and format Tools/build/check-warnings.py ( #124382 )
2024-09-24 02:47:05 +03:00
Wulian
27a62e7371
gh-124102: Update internal PCbuild docs to accurately list build dependencies (GH-124103)
2024-09-23 23:09:22 +00:00
Mark Shannon
c87b0e4a46
GH-124284: Add stats for refcount operations on immortal objects (GH-124288)
2024-09-23 19:10:55 +01:00
Steve Dower
df7228ce14
gh-124254: Detect freethreaded MSI component when doing an upgrade on Windows (GH-124279)
2024-09-23 16:27:46 +01:00
Petr Viktorin
aee219f455
gh-123880: Allow recursive import of single-phase-init modules (GH-123950)
...
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Brett Cannon <brett@python.org>
2024-09-20 10:27:34 +02:00
Nate Ohlson
81480e6edb
gh-124190: Ignore files directories check warning tooling ( #124193 )
...
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2024-09-18 10:49:43 +03:00
Nate Ohlson
29a1a6e3ed
gh-124191: Disable -Wconversion in enable safety (gh-124192)
2024-09-18 12:55:09 +09:00
Victor Stinner
3aff1d0260
gh-124064: Fix -Wconversion warnings in Parser/pegen.c ( #124181 )
2024-09-17 15:58:43 +00:00
Victor Stinner
ec08aa1fe4
gh-124064: Fix -Wconversion warnings in pycore_{long,object}.h ( #124177 )
...
Change also the fix for pycore_gc.h and pycore_stackref.h:
declare constants as uintptr_t, rather than casting constants.
2024-09-17 15:35:40 +00:00
Victor Stinner
98f93a32f3
gh-124064: Fix -Wconversion warnings in pycore_{gc,list,stackref}.h ( #124174 )
2024-09-17 14:43:39 +00:00
Petr Viktorin
4d09719341
Tools/build/stable_abi.py: Improve ergonomics (GH-105355)
...
* Tools/build/stable_abi.py: Improve ergonomics
- Make the manifest file argument optional
- Output resolved paths with --list (getting rid of `../../`)
- Mention --all or --generate-all if no actions are specified
* Don't hardcode Misc/stable_abi.toml in Makefile, rely on the default
2024-09-17 14:32:04 +02:00
Nate Ohlson
44052b5f18
gh-124064: Make warning emitting compiler options opt-in ( #124070 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2024-09-16 20:22:30 +03:00
Hugo van Kemenade
ea77973718
Revert "gh-112301: Enable warning emitting options and ignore warnings in CI ( #123020 )" ( #124065 )
2024-09-13 22:47:12 +03:00
Benjamin Peterson
bb904e063d
closes gh-124016: update Unicode to 16.0.0 ( #124017 )
2024-09-13 07:47:04 -07:00
Nate Ohlson
cfe6074d1f
gh-112301: Enable warning emitting options and ignore warnings in CI ( #123020 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2024-09-13 13:40:04 +00:00
Bénédikt Tran
acb3f875fb
gh-123961: Add `curses` prefix to global variables in `_cursesmodule.c` ( #124047 )
...
Use the `const char*` type instead of a `const *` for the encoding name.
2024-09-13 12:43:06 +00:00
Bénédikt Tran
403f3ddedc
gh-123961: Remove global variable `ModDict` in `_cursesmodule.c` ( #123962 )
2024-09-13 10:33:13 +00:00
Sam Gross
b2afe2aae4
gh-123923: Defer refcounting for `f_executable` in `_PyInterpreterFrame` ( #123924 )
...
Use a `_PyStackRef` and defer the reference to `f_executable` when
possible. This avoids some reference count contention in the common case
of executing the same code object from multiple threads concurrently in
the free-threaded build.
2024-09-12 12:37:06 -04:00
Mark Shannon
4ed7d1d6ac
GH-123996: Explicitly mark 'self_or_null' as an array of size 1 to ensure that it is kept in memory for calls (GH-124003)
2024-09-12 15:32:45 +01:00
adang1345
00ffdf2736
gh-123915: Ensure that Windows AMD64 and ARM64 release builds use different directories (GH-123918)
2024-09-10 19:52:49 +00:00
Victor Stinner
fb1b51a58d
gh-123892: Add "_wmi" to sys.stdlib_module_names ( #123893 )
2024-09-10 09:54:17 +00:00
Irit Katriel
1a9d8917a3
gh-121404: split compile.c into compile.c and codegen.c ( #123651 )
2024-09-09 18:21:51 +01:00
algonell
9017b95ff2
Fix typos ( #123775 )
2024-09-09 14:58:26 +02:00
Nadeshiko Manju
8a46a2ec50
gh-117657: Fix file descriptor race in test_socket.py ( #123697 )
2024-09-06 15:00:28 -04:00
Zachary Ware
d83e30cadd
gh-123700: Update OpenSSL versions in multissltests and CI ( #123701 )
...
Remove EOL 1.1.1w from CI and move it to the 'old' set in multissltests,
add latest 3.3.2 to both CI and multissltests.
2024-09-04 14:29:41 -05:00
Zachary Ware
56b00f4705
gh-123418: Update CI to use fresh OpenSSL releases (GH-123675)
...
Also adds openssl/openssl GitHub URL template for newer OpenSSL downloads
2024-09-04 13:16:53 -05:00
Victor Stinner
33b790978d
gh-107954, PEP 741: Add PyConfig_Get()/Set() functions ( #123472 )
...
Add PyConfig_Get(), PyConfig_GetInt(), PyConfig_Set() and
PyConfig_Names() functions to get and set the current runtime Python
configuration.
Add visibility and "sys spec" to config and preconfig specifications.
_PyConfig_AsDict() now converts PyConfig.xoptions as a dictionary.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-09-02 23:25:08 +02:00
Seth Michael Larson
db42934270
gh-123458: Skip SBOM generation if no git repository is detected ( #123507 )
2024-09-02 22:35:30 +03:00
dependabot[bot]
88210c295d
build(deps): bump hypothesis from 6.108.10 to 6.111.2 in /Tools ( #123567 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-02 08:04:50 +03:00
dependabot[bot]
64af2b29d2
Bump types-setuptools from 71.1.0.20240726 to 74.0.0.20240831 in /Tools ( #123565 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-01 10:38:58 +00:00
dependabot[bot]
d9439a205a
Bump mypy from 1.11.1 to 1.11.2 in /Tools ( #123566 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-01 10:10:10 +00:00
dependabot[bot]
bb6fe14921
Bump types-psutil from 6.0.0.20240621 to 6.0.0.20240901 in /Tools ( #123564 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-01 11:09:51 +01:00
Mark Shannon
a4fd7aa4a6
GH-115776: Allow any fixed sized object to have inline values (GH-123192)
2024-08-21 15:52:04 +01:00
Mark Shannon
bb1d30336e
GH-118093: Make `CALL_ALLOC_AND_ENTER_INIT` suitable for tier 2. (GH-123140)
...
* Convert CALL_ALLOC_AND_ENTER_INIT to micro-ops such that tier 2 supports it
* Allow inexact arguments for CALL_ALLOC_AND_ENTER_INIT.
2024-08-20 16:52:58 +01:00
Brett Cannon
b15b81ed4f
GH-121634: have `wasi.py` accept the host target triple as an argument (GH-123030)
2024-08-15 10:30:08 -07:00
Nate Ohlson
1cf624be6d
gh-112301: Add warning count to warning check tooling ( #122711 )
...
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-08-15 00:03:53 +03:00