Christian Ullrich
802d405ff1
gh-126084: Fix venvwlauncher.exe to run pythonw.exe (GH-126088)
2024-10-29 19:52:52 +00:00
Carol Willing
9effa0ff06
Add lightweight comments to conf.py and update docs readme (GH-126100)
...
* Update contributing contact info in readme
* Add lightweight comments to improve docs workflow understanding
* Apply code review suggestions from @hugovk
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* Add code review suggestion from @AA-Turner
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Update Doc/conf.py
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Update Doc/conf.py
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Update Doc/conf.py
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
---------
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-10-29 17:45:03 +00:00
Tomas R.
aab58a93ef
gh-118423: Add `INSTRUCTION_SIZE` macro to code generator (GH-125467)
2024-10-29 17:25:05 +00:00
sobolevn
b2eaa75b17
gh-126105: Fix crash in `ast` module, when `._fields` is deleted ( #126115 )
...
Previously, if the `ast.AST._fields` attribute was deleted, attempts to create a new `as`t node would crash due to the assumption that `_fields` always had a non-NULL value. Now it has been fixed by adding an extra check to ensure that `_fields` does not have a NULL value (this can happen when you manually remove `_fields` attribute).
2024-10-29 17:42:48 +02:00
Sergey B Kirpichev
0bbbe15f56
gh-122767: document "new style" formatting for complexes (GH-122848)
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-10-29 14:36:18 +00:00
Mark Shannon
faa3272fb8
GH-125837: Split `LOAD_CONST` into three. (GH-125972)
...
* Add LOAD_CONST_IMMORTAL opcode
* Add LOAD_SMALL_INT opcode
* Remove RETURN_CONST opcode
2024-10-29 11:15:42 +00:00
Taneli Hukkinen
67f5c5bd6f
tomllib: Add a comment about implicit lru_cache bound (GH-126078)
2024-10-29 11:36:14 +01:00
sobolevn
a64a1c9206
gh-126106: Fix `NULL` possible derefrence in `Modules/_ssl.c` ( #126111 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-10-29 12:03:18 +03:00
Sergey B Kirpichev
9b14083497
Align functools.reduce() docstring with PEP-257 ( #126045 )
...
Yak-shave in preparation for Argument Clinic adaption in gh-125999.
2024-10-29 08:08:08 +00:00
sobolevn
aeafaf4cda
gh-126014: Ignore `__pycache__`-only folders in makefile tests ( #126066 )
...
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
2024-10-29 10:43:48 +03:00
Hood Chatham
dc2552d429
gh-124928: Emscripten node support: Clean up old node <= 16 flags ( #124929 )
...
Clean up configure flags for old node versions
These flags are only needed for node <= 16. Node 16 has been end of life since
October of 2023.
2024-10-29 06:28:54 +00:00
RUANG (James Roy)
85799f1ffd
gh-89762: Document strftime %G, %V, and %u format specifiers ( #124572 )
2024-10-28 21:53:18 +00:00
Sam Gross
00ea179879
gh-125985: Add free threading scaling micro benchmarks ( #125986 )
...
These consist of a number of short snippets that help identify scaling
bottlenecks in the free threaded interpreter.
The current bottlenecks are in calling functions in benchmarks that call
functions (due to `LOAD_ATTR` not yet using deferred reference counting)
and when accessing thread-local data.
2024-10-28 17:47:23 -04:00
Brandt Bucher
b5b06349eb
GH-125912: Teach the JIT's optimizer about _BINARY_OP_INPLACE_ADD_UNICODE (GH-125935)
2024-10-28 14:37:16 -07:00
Hugo van Kemenade
dcda92f8fc
Pre-commit: prevent spaces in news entry paths ( #126063 )
2024-10-28 23:04:10 +02:00
Hugo van Kemenade
e1190c0543
Lint GitHub Actions and Dependabot ( #126002 )
2024-10-28 18:59:35 +00:00
Łukasz Langa
ced2691de4
gh-126081: For PRs labeled with "type-feature", require a core review (GH-126082)
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-10-28 17:15:46 +00:00
Mark Shannon
25441592db
GH-125515: Reduce number of compiler warnings in generated code (GH-125697)
2024-10-28 10:30:31 +00:00
Bénédikt Tran
19e93e2e26
gh-126035: add missing whitespace to *Py_EnterRecursiveCall() messages ( #126036 )
2024-10-27 22:55:48 +01:00
Tomas R.
6870eb3f73
gh-124295: Skip translation tests when pygettext is missing (GH-126051)
2024-10-27 18:09:08 +00:00
Bénédikt Tran
ed5059eeb1
gh-125966: fix use-after-free on `fut->fut_callback0` due to an evil callback's `__eq__` in asyncio ( #125967 )
2024-10-27 22:40:10 +05:30
Tomas R.
0922a4ae0d
gh-124295: Add translation tests for argparse (GH-124803)
2024-10-27 18:52:31 +02:00
Bénédikt Tran
f819d4301d
gh-125984: fix use-after-free on `fut->fut_{callback,context}0` due to an evil `loop.__getattribute__` ( #126003 )
2024-10-27 20:34:43 +05:30
devdanzin
80eec52fc8
gh-126018: Avoid aborting due to unnecessary assert in `sys.audit` ( #126020 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-10-27 07:41:42 -07:00
Brian Schubert
dc76a4ad3c
gh-126012: Add `__class_getitem__` to `memoryview` ( #126013 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2024-10-27 13:36:03 +03:00
Zhikang Yan
dad3453129
gh-125633: Add function `ispackage` to stdlib `inspect` ( #125634 )
...
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2024-10-27 14:57:43 +10:00
Malcolm Smith
c51b56038b
Android: Update tests for newly-available functions affected by SELinux ( #126015 )
...
Skip tests on Android that involve use of SELinux-protected methods.
2024-10-27 10:35:53 +08:00
devdanzin
44becb8cba
gh-125666: Avoid PyREPL exiting when a null byte is in input ( #125732 )
2024-10-27 01:23:53 +00:00
Bogdan Romanyuk
51b012b2a8
gh-125593: Use colors to highlight error locations in tracebacks from exception group ( #125681 )
2024-10-27 01:57:10 +01:00
Bénédikt Tran
f6cc7c8bd0
gh-94512: Fix forced arg format in posixmodule.c clinic code ( #122516 )
2024-10-26 23:40:31 +02:00
Erlend E. Aasland
26d627779f
gh-89640: properly detect float word ordering on Linux ( #125571 )
...
autoconf-archive patch by Dan Amelang.
2024-10-26 15:46:46 +00:00
Bogdana Vereha
a78d5b3242
Fix a typo in ``Doc/tutorial/errors.rst`` exception output ( #126001 )
2024-10-26 18:26:35 +03:00
Guido van Rossum
905eddceb2
Update CODEOWNERS ( #126005 )
2024-10-26 15:24:51 +00:00
Erlend E. Aasland
8b7cdc5e0c
gh-125698: Autoconf: Sync EXEEXT and ac_exeext ( #125995 )
2024-10-26 17:11:42 +02:00
Bénédikt Tran
c5b99f5c2c
gh-125969: fix OOB in `future_schedule_callbacks` due to an evil `call_soon` ( #125970 )
...
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2024-10-25 23:45:09 +05:30
Jun Komoda
1384409460
gh-125783: Add tests to prevent regressions with the combination of `ctypes` and metaclasses. (GH-125881)
2024-10-25 18:31:35 +02:00
Nadeshiko Manju
7f6e884f3a
GH-125911: Call combine_symbol_mask on the initial trampoline of a trace (GH-125973)
2024-10-25 15:43:02 +00:00
Bénédikt Tran
417c130ba5
gh-120313: amend documentation regarding `ctypes._CFuncPtr` (GH-120989)
...
improve docs
2024-10-25 15:32:23 +02:00
Kumar Aditya
cae853e3b4
GH-125789: fix `fut._callbacks` to always return a copy of callbacks ( #125922 )
...
Fix `asyncio.Future._callbacks` to always return a copy of the internal list of callbacks to avoid mutation from user code affecting the internal state.
2024-10-25 18:19:30 +05:30
Victor Stinner
ebcc578dff
gh-115754: Use Py_GetConstant(Py_CONSTANT_EMPTY_STR) ( #125583 )
...
Replace PyUnicode_FromStringAndSize(NULL, 0)
with Py_GetConstant(Py_CONSTANT_EMPTY_STR).
2024-10-25 11:14:52 +02:00
Victor Stinner
db96327203
gh-121654: Add PyType_Freeze() function ( #122457 )
...
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2024-10-25 11:12:48 +02:00
Serhiy Storchaka
da8673da36
gh-84545: Clarify the 'extend' action documentation in argparse (GH-125870)
2024-10-25 08:41:38 +00:00
Russell Keith-Magee
75401febc9
gh-123930: Correct test of attribute failure to account for iOS ( #125959 )
...
Update a test of importing attributes from binary modules to account for iOS conditions.
2024-10-25 07:18:45 +00:00
Tian Gao
2513593303
Fixed a few type mismatches in pdb ( #125952 )
2024-10-25 00:17:58 -04:00
Malcolm Smith
371c537dff
Increase minimum Android API level to 24 ( #125946 )
...
Minimum Android API level has been increased to 24 (Android 7.0).
2024-10-25 08:41:07 +08:00
Malcolm Smith
b08570c90e
gh-125942: Android: set stdout to `errors="backslashreplace"` ( #125943 )
...
Android stdout/err streams now use `backslashreplace` encoding to ensure readability of the Android log.
2024-10-25 08:35:41 +08:00
Malcolm Smith
e68d4b08ff
gh-125940: Android: support 16 KB pages ( #125941 )
...
Modify Android build tooling to use 16kB pages.
2024-10-25 07:51:16 +08:00
Sam Gross
fed501d724
gh-125245: Fix race condition when importing `collections.abc` ( #125415 )
...
If multiple threads concurrently imported `collections.abc`, some of the
threads might incorrectly see the "shim" `Lib/collections/abc.py` module
instead of the correct `Lib/_collections_abc.py` module. This affected
both the free threading build and the default GIL-enabled build.
2024-10-24 18:12:51 -04:00
Sam Gross
332356b880
gh-125900: Clean-up logic around immortalization in free-threading ( #125901 )
...
* Remove `@suppress_immortalization` decorator
* Make suppression flag per-thread instead of per-interpreter
* Suppress immortalization in `eval()` to avoid refleaks in three tests
(test_datetime.test_roundtrip, test_logging.test_config8_ok, and
test_random.test_after_fork).
* frozenset() is constant, but not a singleton. When run multiple times,
the test could fail due to constant interning.
2024-10-24 18:09:59 -04:00
Kerim Kabirov
1306f33c84
gh-125933: Add ARIA labels to select elements in the version switcher ( #125934 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-10-24 23:52:21 +03:00