Jakub Kulík
8f82d9aa21
bpo-41843: Reenable use of sendfile in shutil module on Solaris (GH-23893)
2024-09-19 14:47:05 +00:00
Stefano Rivera
426569eb8c
Support the "pager" binary in _pyrepl ( #122878 )
...
Debian (and derivatives) provide a /usr/bin/pager binary, managed by the
alternatives system, that always points to an available pager utility.
Allow _pyrepl to use it, to follow system policy.
This is a very trivial change, from a patch that Debian has been
carrying since 2.7 era. Seems appropriate to upstream.
https://bugs.debian.org/799555
2024-09-19 13:18:24 +00:00
Sergey B Kirpichev
4420cf4dc9
gh-124040: Adjust few tests in testHypot/testDist to get exactly computed results (GH-124042)
2024-09-19 11:11:03 +03:00
sobolevn
7628f67d55
gh-123934: Fix `MagicMock` not to reset magic method return values ( #124038 )
2024-09-19 10:55:47 +03:00
Victor Stinner
43cd7aa8cd
gh-120754: Fix memory leak in FileIO.__init__() ( #124225 )
...
Free 'self->stat_atopen' before assigning it, since
io.FileIO.__init__() can be called multiple times manually
(especially by test_io).
2024-09-19 00:11:50 +02:00
Jacek
ea7fe1fe2e
gh-124212: Fix undefined variable in error message in venv (GH-124211)
2024-09-18 22:05:18 +00:00
Furkan Onder
36682c0914
gh-124083: Skip test_signal.test_strsignal() on NetBSD ( #124084 )
...
Skip test_strsignal() on NetBSD due to TypeError.
2024-09-18 21:22:00 +00:00
Zachary Ware
9a6e2336e4
Fix `make htmllive` target (GH-124219)
...
Allow `make -C Doc htmllive` to work without manual venv activation
Set PATH to ensure that `sphinx-autobuild` can find `sphinx-build`.
2024-09-18 21:02:20 +00:00
Tomas R
21d2a9ab2f
gh-116022: Improve `repr()` of AST nodes ( #117046 )
...
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-09-18 10:28:22 -07:00
Victor Stinner
f9fa6ba4f8
gh-124064: Fix -Wconversion warnings in Parser/string_parser.c ( #124204 )
...
Fix integer overflow check in decode_unicode_with_escapes(): use
PY_SSIZE_T_MAX instead of SIZE_MAX.
2024-09-18 19:10:56 +02:00
Bénédikt Tran
5cd50cb6eb
gh-122145: Handle an empty AST body when reporting tracebacks ( #122161 )
2024-09-18 18:42:33 +02:00
Cody Maloney
8b6c7c7877
gh-120754: Refactor I/O modules to stash whole stat result rather than individual members ( #123412 )
...
Multiple places in the I/O stack optimize common cases by using the
information from stat. Currently individual members are extracted from
the stat and stored into the fileio struct. Refactor the code to store
the whole stat struct instead.
Parallels the changes to _io. The `stat` Python object doesn't allow
changing members, so rather than modifying estimated_size, just clear
the value.
2024-09-18 17:47:57 +02:00
Jelle Zijlstra
96f619faa7
gh-124206: Fix calling get_annotate_function() on static types ( #124208 )
...
Fixes #124206 . No news entry because the bug this fixes was never
released.
2024-09-18 08:39:22 -07:00
sobolevn
3b6bfa77aa
gh-102511: Change the `os.path.splitroot` param name from `path` back to `p` (GH-124097)
2024-09-18 15:17:32 +01:00
Sam James
0c4884d8aa
test: fix _is_perf_version_at_least typo ( #124199 )
2024-09-18 13:44:32 +01:00
Petr Viktorin
32119fc377
gh-118915: Add/fix docs entries for some new 3.13 C API (GH-124134)
2024-09-18 14:15:43 +02:00
Petr Viktorin
42c8b0556c
gh-123085: _compile_importlib: Avoid copying sources before compilation (GH-124131)
...
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2024-09-18 14:14:34 +02:00
Sergey B Kirpichev
8a284e1896
gh-119771: Set errno on overflows in _Py_c_pow() ( #120256 )
...
Before we did this in complex_pow() and behavior of the public C API
function _Py_c_pow() was different from the pure-python pow().
2024-09-18 10:39:11 +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
neonene
646f16bdee
gh-124153: Implement `PyType_GetBaseByToken()` and `Py_tp_token` slot (GH-124163)
2024-09-18 09:18:19 +02:00
Serhiy Storchaka
79a7410236
Revert "gh-123974: Fix time.get_clock_info() on NetBSD ( #123975 )" (GH-124115)
...
This reverts commit b1d6f8a2ee
.
2024-09-18 09:29:24 +03:00
Nate Ohlson
29a1a6e3ed
gh-124191: Disable -Wconversion in enable safety (gh-124192)
2024-09-18 12:55:09 +09:00
Bradley Reynolds
d8c0fe1944
gh-124194: Fix wrong issue number in What's New in Python 3.8 ( #124195 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-09-18 01:51:15 +01:00
Jacek
a15a584bf3
gh-122765: make prompt in activate.csh robust against unbalanced quotes and newlines (GH-123751)
2024-09-17 17:16:43 +00:00
Sergey B Kirpichev
f4dd440210
gh-123836: workaround fmod(x, y) bug on Windows ( #124171 )
...
Buildbot failure on Windows 10 with MSC v.1916 64 bit (AMD64):
FAIL: testFmod (test.test_math.MathTests.testFmod)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\buildarea\3.x.bolen-windows10\build\Lib\test\test_math.py", line 605, in testFmod
self.ftest('fmod(-10, 1)', math.fmod(-10, 1), -0.0)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\buildarea\3.x.bolen-windows10\build\Lib\test\test_math.py", line 258, in ftest
self.fail("{}: {}".format(name, failure))
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: fmod(-10, 1): expected -0.0, got 0.0 (zero has wrong sign)
Here Windows loose sign of the result; if y is nonzero, the result
should have the same sign as x.
This amends commit 28aea5d07d
.
2024-09-17 17:16:15 +00:00
Jakub Kulík
f15fff3f13
gh-110190: Fix ctypes structs with array on SPARC (GH-118233)
2024-09-17 19:06:53 +02: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
Rafael Fontenelle
ab80c6b402
GH-103484: Fix broken links reported by linkcheck ( #124169 )
2024-09-17 17:05:15 +02:00
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