Victor Stinner
98f93a32f3
gh-124064: Fix -Wconversion warnings in pycore_{gc,list,stackref}.h ( #124174 )
2024-09-17 14:43:39 +00:00
Rafael Fontenelle
33eeccf6d4
Use pep role instead of url ( #121611 )
2024-09-17 16:02:14 +03: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
Sergey B Kirpichev
28aea5d07d
gh-123836: Check zero signs in math_testcases.txt ( #123854 )
...
Just like cmath_testcases.txt. These tests require IEEE 754 anyway.
Correct zero sign for sqrt tests to match math.h convention.
2024-09-17 10:22:40 +02:00
Savannah Ostrowski
14e5bdceff
GH-123945: Update regex for parsing negative numbers that contain underscores ( #123970 )
...
---------
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2024-09-16 23:30:17 -07:00
Rafael Fontenelle
0a32c6959c
GH-103484: Fix permanently redirects reported by linkcheck (GH-124144)
...
Fix redirects reported by linkcheck, update docs conf.py checks.
2024-09-17 02:53:38 +00:00
Furkan Onder
10de3600a9
GH-124108: Skip test_locale.test_strcoll_with_diacritic() on NetBSD ( #124110 )
...
Skip test_strcoll_with_diacritic() and test_strxfrm_with_diacritic()
of test_locale on NetBSD due to lack of UTF-8 LC_COLLATE
support.
2024-09-16 23:00:36 +00:00
sobolevn
a9c2bc1634
gh-121023: Improve `_xxtestfuzz/README.rst` ( #121024 )
...
Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
2024-09-16 23:28:09 +03:00
Peter Bierma
3b45df03a4
gh-124043: Disallow mixing `--with-trace-refs` and `--disable-gil` ( #124078 )
...
Tracing references is not currently thread-safe in the free-threaded build.
2024-09-16 16:03:16 -04: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
Adam Turner
05235e3c16
GH-109975: Copyedit 3.13 What's New: New Deprecations ( #123845 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-09-16 17:03:46 +00:00
Irit Katriel
aba42c0b54
gh-123969: refactor _PyErr_RaiseSyntaxError and _PyErr_EmitSyntaxWarning out of compiler ( #123972 )
2024-09-16 15:05:00 +01:00
Irit Katriel
9aa1f60e2d
gh-124058: remove _PyCompile_IsNestedScope, roll it into _PyCompile_IsInteractive ( #124061 )
2024-09-16 06:58:18 -07:00
Irit Katriel
453da532fe
gh-97588: remove unused functions in _ctypes/cfield.c (GH-124010)
2024-09-16 14:13:18 +02:00
Russell Keith-Magee
ef530ce7c6
gh-123748: Add conditional compilation rules for HACL SIMD256 and SIMD128 on macOS ( #123989 )
...
Add conditional compilation rules to allow HACL SIMD256 and SIMD128 to be ignored on the ARM64 pass of universal2 macOS builds.
2024-09-16 12:23:05 +08:00
Irit Katriel
56470004e5
gh-121404: update CODEOWNERS ( #124109 )
2024-09-15 19:21:22 +00:00
Sam Gross
401fff7423
gh-121459: Add missing return to _PyDict_LoadGlobalStackRef ( #124085 )
...
We need to return immediately if there's an error during dictionary
lookup.
Also avoid the conditional-if operator. MSVC versions through v19.27 miscompile
compound literals with side effects within a conditional operator. This caused
crashes in the Windows10 buildbot.
2024-09-14 14:29:55 -04:00
sobolevn
9dacf430c2
Remove unused `_allowed_types` from `typing.py` ( #124090 )
2024-09-14 16:14:45 +03:00
sobolevn
1de46136b9
Remove unused variable in `MagicMixin._mock_set_magics` ( #124092 )
2024-09-14 10:20:44 +00:00
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