Sam Gross
b02301fa5a
gh-124068: Fix reference leak with generators in the free-threaded build ( #124069 )
...
If the generator is already cleared, then most fields in the
generator's frame are not valid other than f_executable. The invalid
fields may contain dangling pointers and should not be used.
2024-09-13 22:02:27 -04:00
Chris Barker
38809171b8
gh-121607: Edited source file import recipe to make it more clear ( #121519 )
...
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2024-09-13 16:36:40 -07:00
Raymond Hettinger
cd06f5e323
Minor edits to the descriptor guide (GH-123928)
2024-09-13 17:02:37 -05:00
Furkan Onder
b1d6f8a2ee
gh-123974: Fix time.get_clock_info() on NetBSD ( #123975 )
...
Fix OSError for thread_time clock on NetBSD by setting default resolution.
2024-09-13 22:34:25 +02: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
Oleg Iarygin
4f25e282ad
gh-100554: Fix formatting of type.rst modifications ( #124066 )
2024-09-13 18:35:08 +00:00
Loïc Estève
eadb9660ed
gh-122957: Fix test flakiness in asyncio test in free-thread build ( #124039 )
2024-09-13 11:13:30 -07:00
Furkan Onder
9f42b62db9
gh-124030: Skip test_tcsendbreak on NetBSD for ENOTTY error (GH-124031)
2024-09-13 19:27:54 +03:00
Ken Jin
8810e286fa
gh-121459: Deferred LOAD_GLOBAL (GH-123128)
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Sam Gross <655866+colesbury@users.noreply.github.com>
2024-09-14 00:23:51 +08:00
Wenzel Jakob
74330d992b
gh-100554: Add ``Py_tp_vectorcall`` slot to set ``PyTypeObject.tp_vectorcall`` using the ``PyType_FromSpec`` function family. ( #123332 )
2024-09-13 17:40:25 +02:00
utkonos
bbb36c0934
Normalize cdecl formatting as found elsewhere on ctypes.rst ( #121379 )
2024-09-13 18:26:16 +03:00
Rafael Fontenelle
39612103dd
Update to 3.13 the output of exceptions raised ( #123888 )
2024-09-13 15:17:30 +00:00
Irit Katriel
fe49e8f32f
gh-124022: add missing #include ( #124052 )
2024-09-13 15:16:54 +00:00
Donghee Na
e6bb1a2b28
gh-119802: Update memory management docs for free-threaded build (gh-124006)
...
* gh-119802: Update memory management docs for free-threaded build
* nit
* nit
* Address code review
* nit
* Update Doc/c-api/memory.rst
Co-authored-by: Sam Gross <colesbury@gmail.com>
---------
Co-authored-by: Sam Gross <colesbury@gmail.com>
2024-09-13 15:15:44 +00:00
Benjamin Peterson
bb904e063d
closes gh-124016: update Unicode to 16.0.0 ( #124017 )
2024-09-13 07:47:04 -07:00
Irit Katriel
a9594a34c6
gh-124022: Fix bug where class docstring is removed in interactive mode ( #124023 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-09-13 14:06:06 +00: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
Sergey B Kirpichev
b46c65ed2b
gh-123811: Test that round(Decimal) can return signed zero (GH-124007)
2024-09-13 15:49:13 +03: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
e49d1b44d3
gh-124044: protect macros expansions in `_cursesmodules.c` using `do { ... } while (0)` ( #124045 )
2024-09-13 11:26:19 +00:00
Petr Viktorin
432bf31327
gh-123909: PyType_From*: Disallow metaclasses with custom tp_new (GH-123947)
2024-09-13 13:18:49 +02:00
sobolevn
d7e83398c1
gh-108303: Remove the non-test `Lib/test/reperf.py` (GH-114356)
2024-09-13 13:13:52 +02:00
Bénédikt Tran
403f3ddedc
gh-123961: Remove global variable `ModDict` in `_cursesmodule.c` ( #123962 )
2024-09-13 10:33:13 +00:00
Savannah Ostrowski
e5b0185e43
GH-101599: Update docs to remove redundant option in argparse tutorial ( #124025 )
2024-09-13 09:14:52 +03:00
Malcolm Smith
f554883425
gh-116622: Mock the passage of time in Android logcat rate limit tests ( #124015 )
...
Mock the passage of time in Android logcat rate limit tests
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2024-09-13 04:58:11 +00:00
Yngve Mardal Moe
584cdf8d41
gh-123614: Add save function to turtle.py ( #123617 )
2024-09-12 21:36:17 -07:00
Malcolm Smith
1f9d163850
gh-116622: Android test script improvements ( #124012 )
...
* Set Android test script stdout to line-buffered
* Print warning logcat messages on stderr
* Add a -vv option to display high-volume messages which are rarely useful
* Documentation and comment improvements
2024-09-13 12:23:54 +08:00
Jason R. Coombs
a47cd21890
gh-123976: Refresh docs around custom providers. ( #123977 )
...
* gh-123976: Refresh docs around custom providers.
* Remove excess whitespace.
2024-09-13 02:29:08 +00:00
Miro Hrončok
f4e5643df6
gh-124027: Support Del, PgUp, and PgDn on TERM=vt100 ( #124028 )
...
pyrepl: Support Del, PgUp, and PgDn on TERM=vt100
From Fedora's /etc/inputrc:
"\e[5~": history-search-backward
"\e[6~": history-search-forward
"\e[3~": delete-char
Fixes https://github.com/python/cpython/issues/124027
2024-09-13 02:07:23 +01:00
Irit Katriel
6e06e01881
gh-124019: do not call codegen_annotations_in_scope if there are no annotations ( #124020 )
2024-09-12 20:24:15 +01:00
Jason R. Coombs
a53812df12
gh-123085: Fix issue in inferred caller when resources package has no source ( #123102 )
...
gh-123085: Fix issue in inferred caller when resources package has no source.
From importlib_resources 6.4.3 (python/importlib_resources#314 ).
2024-09-12 19:08:06 +00:00
Irit Katriel
8145ebea58
gh-124013: remove _PyCompile_IsTopLevelAwait ( #124014 )
2024-09-12 19:58:32 +01: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
Jason R. Coombs
3ea51fa2e3
gh-123994: Generate utf-16 file using little endian and BOM. ( #123995 )
2024-09-12 10:14:46 -04:00
Anders Kaseorg
a362c41bc9
gh-123968: Fix lower bound for `python -m random --float` ( #123971 )
2024-09-12 16:54:18 +03:00
Nice Zombies
8e99495701
gh-118577: Clarify that inspect.BoundArguments prefers to put values in args (GH-119936)
2024-09-12 14:03:32 +02:00
Hugo van Kemenade
f5597dbd0e
Docs: Drop letter PDF ( #123912 )
2024-09-12 13:49:19 +03:00
Irit Katriel
77c68b40d5
gh-111997: update what's new in 3.13 re C API for monitoring events ( #123822 )
2024-09-12 11:32:57 +01:00
sobolevn
ac918ccad7
gh-123935: Fix typo in `_get_slots` in `dataclasses.py` ( #123941 )
2024-09-12 10:29:06 +03:00
Malcolm Smith
43303e362e
gh-116622: Switch test_stress_delivery_simultaneous from SIGUSR1 to SIGUSR2 ( #123981 )
...
Use SIGUSR1 instead of SIGUSR2 to improve reliability of signal stress test on Android.
2024-09-12 13:52:07 +08:00
Jason R. Coombs
ba687d9481
gh-121735: Fix module-adjacent references in zip files ( #123037 )
...
* gh-116608: Apply style and compatibility changes from importlib_metadata.
* gh-121735: Ensure module-adjacent resources are loadable from a zipfile.
* gh-121735: Allow all modules to be processed by the ZipReader.
* Add blurb
* Remove update-zips script, unneeded.
* Remove unnecessary references to removed static fixtures.
* Remove zipdata fixtures, unused.
2024-09-11 22:33:07 -04:00
sobolevn
3bd942f106
Fix "The Matrix" movie release year in `typing.rst` ( #123965 )
2024-09-11 21:25:23 +03:00
Hugo van Kemenade
eb169f4027
Update Sphinx Lint and fix unnecessary parentheses in `:func:`s ( #123960 )
2024-09-11 21:05:15 +03:00
Irit Katriel
e07154fd1e
gh-123958: apply docstring removal optimization in ast_opt instead of codegen ( #123959 )
2024-09-11 17:02:28 +00:00
Bénédikt Tran
2938c3dec9
gh-123290: fix reference leaks in the error-branches of `_cursesmodule.c` ( #123953 )
2024-09-11 15:49:33 +00:00
Bénédikt Tran
ef05801ba0
gh-108951: Document how to terminate an asyncio.TaskGroup ( #123837 )
...
We don't want to add another API, since the recipe is straightforward and rarely needed.
The advantage is that we could backport this to the earliest Python version that has taskgroups (3.11, alas in security mode already, so we'll just do 3.12 and 3.13).
2024-09-11 08:43:24 -07:00
Jelle Zijlstra
5436d8b9c3
gh-119180: Documentation for PEP 649 and 749 ( #122235 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
2024-09-11 07:49:59 -07:00
Irit Katriel
6e23c89fcd
gh-123942: add missing test for docstring-handling code in ast_opt.c ( #123943 )
2024-09-11 15:39:53 +01:00
sobolevn
c8d1dbef5b
gh-123919: Fix null handling in `_freeze_module.c` ( #123920 )
2024-09-11 19:07:35 +05:30