summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* GH-113633: Use module state structure for _testcapi. (GH-113634)Neil Schemenauer2024-01-012-51/+65
| | | Use module state structure for _testcapi.
* gh-53502: Fixes for tests in gh-113363 (#113627)Ronald Oussoren2024-01-012-5/+4
| | | | | | | * gh-53502: Fixes for tests in gh-113363 * Use 32-bit compatible date in test_dump_naive_datetime_with_aware_datetime_option * Saving non-aware datetimes will use the old behaviour regardless of the aware_datimetime setting
* gh-53502: add a new option aware_datetime in plistlib to loads or dumps ↵AN Long2024-01-014-23/+134
| | | | | | aware datetime. (#113363) * add options to loads and dumps aware datetime in plistlib
* gh-113536: Expose `os.waitid` on macOS (#113542)Ronald Oussoren2024-01-014-13/+14
| | | | | | | | | * gh-113536: Expose `os.waitid` on macOS This API has been available on macOS for a long time, but was explicitly excluded due to unspecified problems with the API in ancient versions of macOS. * Document that the API is available on macOS starting in Python 3.13
* gh-62260: Fix ctypes.Structure subclassing with multiple layers (GH-13374)Jeffrey Kintscher2024-01-014-7/+70
| | | | | | | | | | | The length field of StgDictObject for Structure class contains now the total number of items in ffi_type_pointer.elements (excluding the trailing null). The old behavior of using the number of elements in the parent class can cause the array to be truncated when it is copied, especially when there are multiple layers of subclassing. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* build(deps): bump hypothesis from 6.91.0 to 6.92.2 in /Tools (#113615)dependabot[bot]2024-01-011-1/+1
| | | | | | | | | | | | | | | Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.91.0 to 6.92.2. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.91.0...hypothesis-python-6.92.2) --- updated-dependencies: - dependency-name: hypothesis dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump github/codeql-action from 2 to 3 (#113613)dependabot[bot]2024-01-011-1/+1
| | | | | | | | | | | | | | | | Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v2...v3) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump actions/setup-python from 4 to 5 (#113612)dependabot[bot]2024-01-015-6/+6
| | | | | | | | | | | | | | | Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* # gh-111700: Fix syntax highlighting for C code in the "What's New In Python ↵Parth Doshi2024-01-011-1/+3
| | | | | 3.12" documentation (#113609) Fix PEP 684 syntax highlighting in what's new Python 3.12
* gh-101578: [doc] mention that PyErr_GetRaisedException returns NULL when the ↵Irit Katriel2023-12-311-1/+1
| | | | error indicator is not set (#113369)
* gh-101100: Fix Sphinx warnings in `library/configparser.rst` (#113598)Hugo van Kemenade2023-12-3111-36/+35
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Update ConfigParser docs defining valid section name (#110506)Delgan2023-12-301-1/+1
|
* gh-89414: Document that SIGCLD is not available on macOS (#113580)Ronald Oussoren2023-12-301-0/+2
| | | Document that SIGCLD is not available on macOS
* gh-112536: Add support for thread sanitizer (TSAN) (gh-112648)Samet YASLAN2023-12-308-10/+81
|
* gh-103708: Make directory layout in sysconfig implementation configurable ↵Ankit Kumar Pandey2023-12-293-39/+52
| | | | | | (#103709)
* gh-103092: Make ``pyexpat`` module importable in sub-interpreters (#113555)Kirill Podoprigora2023-12-291-3/+1
|
* GH-113528: Remove a couple of expensive pathlib ABC tests (#113534)Barney Gale2023-12-282-42/+43
| | | | | | Run expensive tests for walking and globbing from `test_pathlib` but not `test_pathlib_abc`. The ABCs are not as tightly optimised as the classes in top-level `pathlib`, and so these tests are taking rather a long time on some buildbots. Coverage of the main `pathlib` classes should suffice.
* GH-113225: Speed up `pathlib._abc.PathBase.glob()` (#113556)Barney Gale2023-12-282-5/+12
| | | | `PathBase._scandir()` is implemented using `iterdir()`, so we can use its results directly, rather than passing them through `_make_child_relpath()`.
* Doc/library/os.rst: `os.waitid` absent on MacOS (#104558)John Hawkinson2023-12-281-0/+3
| | | | | * Doc/library/os.rst: `os.waitid` absent on MacOS Co-authored-by: AN Long <aisk@users.noreply.github.com>
* gh-101100: Fix Sphinx warnings in library/random.rst (#112981)Hugo van Kemenade2023-12-282-16/+44
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-113543: Make sure that `MacOSXOSAScript` sends `webbrowser.open` audit ↵Nikita Sobolev2023-12-282-0/+3
| | | | event (#113544)
* bpo-11102: Make configure enable major(), makedev(), and minor() on HP-UX ↵Zackery Spytz2023-12-284-4/+9
| | | | | | | (GH-19856) Always include <sys/types.h> before <sys/sysmacros.h>. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-103092: Make `_elementtree` module importable in sub-interpreters (#113434)Kirill Podoprigora2023-12-281-3/+1
| | | Enable imports of _elementtree module in sub-interpreters
* gh-110459: Make sure --with-openssl-rpath works on macOS (#113441)Ronald Oussoren2023-12-283-2/+14
| | | | | | | | * gh-110459: Make sure --with-openssl-rpath works on macOS On macOS the `-rpath` linker flag is spelled differently than on on platforms.
* gh-73427: deprecate `_enablelegacywindowsfsencoding` (#107729)Inada Naoki2023-12-284-0/+21
|
* gh-113299: Move cpp.py into libclinic (#113526)Erlend E. Aasland2023-12-273-4/+7
|
* gh-113317: Rework Argument Clinic cpp.py error handling (#113525)Erlend E. Aasland2023-12-275-36/+44
| | | | | | | | Rework error handling in the C preprocessor helper. Instead of monkey- patching the cpp.Monitor.fail() method from within clinic.py, rewrite cpp.py to use a subclass of the ClinicError exception. As a side-effect, ClinicError is moved into Tools/clinic/libclinic/errors.py. Yak-shaving in preparation for putting cpp.py into libclinic.
* gh-57795: Add news to idlelib/News3.txt (#113522)Terry Jan Reedy2023-12-271-0/+4
|
* gh-67641: Clarify documentation on bytes vs text with non-seeking tarfile ↵Stanley2023-12-272-8/+11
| | | | stream (GH-31610)
* bpo-26791: Update shutil.move() to provide the same symlink move behavior as ↵Jeffrey Kintscher2023-12-273-1/+34
| | | | the mv shell when moving a symlink into a directory that is the target of the symlink (GH-21759)
* GH-110109: pathlib ABCs: drop use of `warnings._deprecated()` (#113419)Barney Gale2023-12-271-6/+4
| | | | | | The `pathlib._abc` module will be made available as a PyPI backport supporting Python 3.8+. The `warnings._deprecated()` function was only added last year, and it's private from an external package perspective, so here we switch to `warnings.warn()` instead.
* GH-110109: pathlib ABCs: drop use of `io.text_encoding()` (#113417)Barney Gale2023-12-272-3/+18
| | | | | | Do not use the locale-specific default encoding in `PathBase.read_text()` and `write_text()`. Locale settings shouldn't influence the operation of these base classes, which are intended mostly for implementing rich paths on *nonlocal* filesystems.
* gh-57795: IDLE: Enter the selected text when opening the "Replace" dialog ↵Zackery Spytz2023-12-272-16/+8
| | | | | | (GH-17593) Co-authored-by: Roger Serwy <roger.serwy@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-64020: Deprecate pydoc.ispackage() (GH-20908)Zackery Spytz2023-12-274-2/+12
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-101100: Fix Sphinx warnings in `library/cmd.rst` (#113502)Hugo van Kemenade2023-12-272-12/+14
| | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-101100: Fix Sphinx warnings in `library/calendar.rst` (#113500)Hugo van Kemenade2023-12-272-4/+10
|
* gh-111615: Fix regression in QueueHandler configuration. (GH-111638)Vinay Sajip2023-12-273-17/+40
|
* gh-113350: Improve the wording of python logging docs to remove an ambiguity ↵Vaishnavi Maheshwari2023-12-272-7/+6
| | | | | around use of the word "higher". (GH-113491) Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
* gh-113332: Simplify calls to SSL_(CTX_)set_verify in _ssl.c (#113333)David Benjamin2023-12-261-7/+2
| | | | _ssl.c currently tries to preserve the verification callback, but at no point does it ever set one. Just pass in NULL.
* gh-101100: Fix Sphinx warnings in `library/bisect.rst` (#113496)Hugo van Kemenade2023-12-262-5/+4
|
* gh-101100: Fix Sphinx warnings in `howto/isolating-extensions.rst` (#113493)Hugo van Kemenade2023-12-262-3/+2
|
* bpo-36959: Fix error messages for invalid ISO format string in _strptime() ↵Gordon P. Hemsley2023-12-263-40/+61
| | | | | | | | (GH-13408) Previously some error messages complained about incompatible combinations of directives that are not contained in the format string. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-112532: Fix peg generator build.py for mimalloc build (gh-113492)Donghee Na2023-12-261-0/+1
| | | gh-112532: Fix peg generator for mimalloc build
* gh-112532: Use separate mimalloc heaps for GC objects (gh-113263)Sam Gross2023-12-269-23/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | * gh-112532: Use separate mimalloc heaps for GC objects In `--disable-gil` builds, we now use four separate heaps in anticipation of using mimalloc to find GC objects when the GIL is disabled. To support this, we also make a few changes to mimalloc: * `mi_heap_t` and `mi_tld_t` initialization is split from allocation. This allows us to have a `mi_tld_t` per-`PyThreadState`, which is important to keep interpreter isolation, since the same OS thread may run in multiple interpreters (using different PyThreadStates.) * Heap abandoning (mi_heap_collect_ex) can now be called from a different thread than the one that created the heap. This is necessary because we may clear and delete the containing PyThreadStates from a different thread during finalization and after fork(). * Use enum instead of defines and guard mimalloc includes. * The enum typedef will be convenient for future PRs that use the type. * Guarding the mimalloc includes allows us to unconditionally include pycore_mimalloc.h from other header files that rely on things like `struct _mimalloc_thread_state`. * Only define _mimalloc_thread_state in Py_GIL_DISABLED builds
* gh-111971: Make _PyUnicode_FromId thread-safe in --disable-gil (gh-113489)Donghee Na2023-12-262-3/+11
|
* Docs: make htmllive: open browser when ready (#113288)Hugo van Kemenade2023-12-261-3/+7
|
* gh-113468: Remove the "_new_ suffix from class names in pydocfodder (GH-113469)Serhiy Storchaka2023-12-261-8/+8
|
* gh-66515: mailbox.MH now supports folders withou the ".mh_sequences" file ↵Serhiy Storchaka2023-12-264-3/+26
| | | | | | (GH-804) (for example Claws Mail IMAP-cache folders).
* Misc minor improvements to the itertools recipes (gh-113477)Raymond Hettinger2023-12-251-81/+83
|
* gh-106905: Use separate structs to track recursion depth in each ↵Yilei Yang2023-12-254-339/+412
| | | | | | PyAST_mod2obj call. (GH-113035) Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>