summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* GH-73991: Support copying directory symlinks on older Windows (#120807)Barney Gale2024-07-036-29/+40
| | | | | Check for `ERROR_INVALID_PARAMETER` when calling `_winapi.CopyFile2()` and raise `UnsupportedOperation`. In `Path.copy()`, handle this exception and fall back to the `PathBase.copy()` implementation.
* gh-121035: Further improve logging flow diagram with respect to dark/light ↵Vinay Sajip2024-07-022-2/+14
| | | | modes. (GH-121265)
* gh-115773: Add sizes to debug offset structure (#120112)Pablo Galindo Salgado2024-07-022-0/+19
|
* gh-117139: Add _PyTuple_FromStackRefSteal and use it (#121244)Sam Gross2024-07-028-33/+28
| | | Avoids the extra conversion from stack refs to PyObjects.
* gh-121272: move __future__ import validation from compiler to symtable (#121273)Irit Katriel2024-07-022-16/+24
|
* gh-121165: protect macro expansion of `ADJUST_INDICES` with do-while(0) ↵Bénédikt Tran2024-07-022-26/+36
| | | | (#121166)
* gh-121210: handle nodes with missing attributes/fields in `ast.compare` ↵Bénédikt Tran2024-07-023-4/+36
| | | | (#121211)
* gh-121245: Amend d611c4c8e9 (correct import) (#121255)Sergey B Kirpichev2024-07-022-2/+3
| | | Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* Move get_signal_name() to test.support (#121251)Victor Stinner2024-07-026-58/+65
| | | | | | * Move get_signal_name() from test.libregrtest to test.support. * Use get_signal_name() in support.script_helper. * support.script_helper now decodes stdout and stderr from UTF-8, instead of ASCII, if a command failed.
* gh-121035: Improve logging flow diagram for dark/light modes. (GH-121254)Vinay Sajip2024-07-022-11/+62
|
* Fix phrasing in paragraphs with leading "similar" (#121135)Rafael Fontenelle2024-07-021-2/+2
|
* GH-119726: Use LDR for AArch64 trampolines (GH-121001)Diego Russo2024-07-012-22/+11
|
* gh-121196: Document `dict.fromkeys` params as pos-only (#121197)sobolevn2024-07-011-1/+1
|
* GH-116017: Get rid of _COLD_EXITs (GH-120960)Brandt Bucher2024-07-0116-337/+246
|
* gh-117657: Fix data races reported by TSAN in some set methods (#120914)AN Long2024-07-016-121/+81
| | | | | | Refactor the fast Unicode hash check into `_PyObject_HashFast` and use relaxed atomic loads in the free-threaded build. After this change, the TSAN doesn't report data races for this method.
* gh-121110: Temporarily Skip test_basic_multiple_interpreters_reset_each ↵Eric Snow2024-07-011-0/+7
| | | | | (gh-121236) This will allow Py_TRACE_REFS builds to pass the test suite, until the underlying issue can be resolved.
* gh-114104: clarify asynchronous comprehension docs to match runtime behavior ↵Danny Yang2024-07-011-4/+6
| | | | (#121175)
* gh-120743: Soft deprecate os.popen() function (#120744)Victor Stinner2024-07-013-1/+17
| | | Soft deprecate os.popen() and os.spawn*() functions.
* gh-121200: Fix test_expanduser_pwd2() of test_posixpath (#121228)Victor Stinner2024-07-012-3/+11
| | | | Call getpwnam() to get pw_dir, since it can be different than getpwall() pw_dir.
* gh-117657: Use critical section to make _socket.socket.close thread safe ↵AN Long2024-07-013-10/+41
| | | | (GH-120490)
* gh-121220: Mark test_threaded_weak_value_dict_copy() as CPU-heavy (#121221)Kirill Podoprigora2024-07-011-0/+2
| | | | | Mark test_threaded_weak_value_dict_copy() and test_threaded_weak_key_dict_copy() of test_weakref as CPU-heavy tests
* gh-117784: Only reference PHA functions ifndef SSL_VERIFY_POST_HANDSHAKE ↵Will Childs-Klein2024-07-012-11/+18
| | | | | | (GH-117785) With this change, builds with OpenSSL forks that don't have this functionalty (like AWS-LC or BoringSSL) will require less patching.
* build(deps-dev): bump types-setuptools from 70.0.0.20240524 to ↵dependabot[bot]2024-07-011-1/+1
| | | | | | 70.1.0.20240627 in /Tools (#121217) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps-dev): bump mypy from 1.10.0 to 1.10.1 in /Tools (#121216)dependabot[bot]2024-07-011-1/+1
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps-dev): bump types-psutil from 5.9.5.20240516 to 6.0.0.20240621 in ↵dependabot[bot]2024-07-011-1/+1
| | | | | | /Tools (#121215) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* gh-121200: Log pwd entry in test_expanduser_pwd2() (#121207)Victor Stinner2024-07-011-6/+7
| | | | Use subTest() to log the pwd entry in test_expanduser_pwd2() of test_posixpath to help debugging.
* gh-121084: Call _abc_registry_clear() when checking refleaks (#121191)Victor Stinner2024-07-011-3/+7
| | | | dash_R_cleanup() now calls _abc_registry_clear() before calling again register().
* gh-61103: Support double complex (_Complex) type in ctypes (#120894)Sergey B Kirpichev2024-07-0117-17/+316
| | | | | | | | | | | | | | | | | | Example: ```pycon >>> import ctypes >>> ctypes.__STDC_IEC_559_COMPLEX__ 1 >>> libm = ctypes.CDLL('libm.so.6') >>> libm.clog.argtypes = [ctypes.c_double_complex] >>> libm.clog.restype = ctypes.c_double_complex >>> libm.clog(1+1j) (0.34657359027997264+0.7853981633974483j) ``` Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-121199: Use _Py__has_attribute() in timemodule.c (#121203)Victor Stinner2024-07-012-2/+2
| | | | | Use the _Py__has_attribute() macro in timemodule.c and bootstrap_hash.c to fix a build error on old GCC versions (GCC 4.8.5 on s390x).
* gh-121188: Sanitize invalid XML characters in regrtest (#121195)Victor Stinner2024-07-014-5/+91
| | | | | When creating the JUnit XML file, regrtest now escapes characters which are invalid in XML, such as the chr(27) control character used in ANSI escape sequences.
* gh-113565: Improve and harden detection of curses dependencies (#119816)Erlend E. Aasland2024-07-017-716/+550
| | | | | | | | | | | | | | 1. Use pkg-config to check for ncursesw/panelw. If that fails, use pkg-config to check for ncurses/panel. 2. Regardless of pkg-config output, search for curses/panel headers, so we're sure we have all defines in pyconfig.h. 3. Regardless of pkg-config output, check if libncurses or libncursesw contains the 'initscr' symbol; if it does _and_ pkg-config failed earlier, add the resulting -llib linker option to CURSES_LIBS. Ditto for 'update_panels' and PANEL_LIBS. 4. Wrap the rest of the checks with WITH_SAVE_ENV and make sure we're using updated LIBS and CPPFLAGS for those. Add the PY_CHECK_CURSES convenience macro.
* gh-87744: fix waitpid race while calling send_signal in asyncio (#121126)Kumar Aditya2024-07-013-9/+42
| | | asyncio earlier relied on subprocess module to send signals to the process, this has some drawbacks one being that subprocess module unnecessarily calls waitpid on child processes and hence it races with asyncio implementation which internally uses child watchers. To mitigate this, now asyncio sends signals directly to the process without going through the subprocess on non windows systems. On Windows it fallbacks to subprocess module handling but on windows there are no child watchers so this issue doesn't exists altogether.
* gh-121163: Add "all" as an valid alias for "always" in ↵Kirill Podoprigora2024-06-305-43/+49
| | | | | | warnings.simplefilter() (#121164) Add support for ``all`` as an valid alias for ``always`` in ``warnings.simplefilter()`` and ``warnings.filterswarnings()``.
* [doc] Update element positions and styles in logging flow diagram. (GH-121182)Vinay Sajip2024-06-301-132/+155
| | | Update element positions and styles.
* gh-119447: Fix build with _PY_SHORT_FLOAT_REPR == 0 (#121178)Yureka2024-06-301-7/+3
|
* gh-120522: Add a `--with-app-store-compliance` configure option to patch out ↵Russell Keith-Magee2024-06-309-2/+238
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | problematic code (#120984) * Add --app-store-compliance configuration option. * Added blurb. * Correct tab-vs-spaces formatting issue. * Correct source file name in docs. Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> * Correct source code reference in Mac docs Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> * Only apply the patch forward, and ensure the working directory is correct. * Make patching reslient to multiple builds. * Documentation fixes found during review Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com> * Documentation and configure.ac syntax improvements Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> * Regenerate configure script. * Silence the patch echo output. --------- Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* GH-119054: Add alt text to pathlib inheritance diagram (#121158)Barney Gale2024-06-291-0/+6
| | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* GH-119054: Add "Expanding and resolving paths" section to pathlib docs. ↵Barney Gale2024-06-291-101/+101
| | | | | | | | | | | | | | | | | | (#120970) Add dedicated subsection for `home()`, `expanduser()`, `cwd()`, `absolute()`, `resolve()` and `readlink()`. The position of this section keeps all the `Path` constructors (`Path()`, `Path.from_uri()`, `Path.home()` and `Path.cwd()`) near the top. Within the section, closely related methods are kept adjacent. Specifically: -.`home()` and `expanduser()` (the former calls the latter) - `cwd()` and `absolute()` (the former calls the latter) - `absolute()` and `resolve()` (both make paths absolute) - `resolve()` and `readlink()` (both read symlink targets) - Ditto `cwd()` and `absolute()` - Ditto `absolute()` and `resolve()` The "Other methods" section is removed.
* gh-119372: Recover inf's and zeros in _Py_c_quot (GH-119457)Sergey B Kirpichev2024-06-293-2/+56
| | | | | | In some cases, previously computed as (nan+nanj), we could recover meaningful component values in the result, see e.g. the C11, Annex G.5.2, routine _Cdivd().
* gh-121101: Document -Wall option (an alias for -Walways) (#121102)Wim Jeantine-Glenn2024-06-292-0/+3
|
* gh-120713: Normalize year with century for datetime.strftime (GH-120820)blhsing2024-06-297-16/+174
|
* gh-121137: Add missing Py_DECREF calls for ADDITEMS opcode of _pickle.c ↵Justin Applegate2024-06-281-0/+2
| | | | | (#121136) PyObject_GetAttr returns a new reference, but this reference is never decremented using Py_DECREF, so Py_DECREF calls to this referece are added
* gh-117139: Fix a few wrong steals in bytecodes.c (GH-121127)Ken Jin2024-06-284-33/+33
| | | Fix a few wrong steals in bytecodes.c
* gh-121115: Skip __index__ in PyLong_AsNativeBytes by default (GH-121118)Steve Dower2024-06-285-9/+33
|
* gh-121018: Fix more cases of exiting in argparse when exit_on_error=False ↵Serhiy Storchaka2024-06-283-16/+59
| | | | | | | | | (GH-121056) * parse_intermixed_args() now raises ArgumentError instead of calling error() if exit_on_error is false. * Internal code now always raises ArgumentError instead of calling error(). It is then caught at the higher level and error() is called if exit_on_error is true.
* Check for compiler warnings in test_cext on Windows (#121088)Victor Stinner2024-06-285-5/+18
| | | | | | | | On Windows, test_cext and test_cppext now pass /WX flag to the MSC compiler to treat all compiler warnings as errors. In verbose mode, these tests now log the compiler commands to help debugging. Change Py_BUILD_ASSERT_EXPR implementation on Windows to avoid a compiler warning about an unnamed structure.
* gh-120804: remove `is_active` method from internal child watchers ↵Kumar Aditya2024-06-281-6/+0
| | | | implementation in asyncio (#121124)
* gh-121096: Ignore dlopen() leaks in Valgrind suppression file (#121097)Victor Stinner2024-06-281-0/+43
|
* gh-107803: add whatsnew for asyncio double linked list implementation (#120995)Kumar Aditya2024-06-281-0/+8
|
* gh-120837: Update _Py_DumpExtensionModules to be async-signal-safe (gh-121051)Donghee Na2024-06-271-2/+36
|