summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* GH-113516: don't set `LDSHARED` when building for WASI (GH-115495)Brett Cannon2024-02-153-2/+2
|
* gh-115482: Assume the Main Interpreter is Always Running "main" (gh-115484)Eric Snow2024-02-141-1/+8
| | | | | This is a temporary fix to unblock embedders that do not call Py_Main(). _PyInterpreterState_IsRunningMain() will always return true for the main interpreter, even in corner cases where it technically should not. The (future) full solution will do the right thing in those corner cases.
* gh-114570: Add PythonFinalizationError exception (#115352)Victor Stinner2024-02-1413-6/+55
| | | | | | | | | | | | | | | | | Add PythonFinalizationError exception. This exception derived from RuntimeError is raised when an operation is blocked during the Python finalization. The following functions now raise PythonFinalizationError, instead of RuntimeError: * _thread.start_new_thread() * subprocess.Popen * os.fork() * os.fork1() * os.forkpty() Morever, _winapi.Overlapped finalizer now logs an unraisable PythonFinalizationError, instead of an unraisable RuntimeError.
* gh-112529: Use _PyThread_Id() in mimalloc in free-threaded build (#115488)Sam Gross2024-02-142-4/+13
| | | | | The free-threaded GC uses mimallocs segment thread IDs to restore the overwritten `ob_tid` thread ids in PyObjects. For that reason, it's important that PyObjects and mimalloc use the same identifiers.
* gh-115041: Add wrappers that are atomic only in free-threaded builds (#115046)mpage2024-02-144-0/+40
| | | | | | These are intended to be used in places where atomics are required in free-threaded builds but not in the default build. We don't want to introduce the potential performance overhead of an atomic operation in the default build.
* Add myself to various CODEOWNERS (GH-115481)Ken Jin2024-02-141-0/+2
|
* gh-112302: Move pip SBOM discovery to release-tools (#115360)Seth Michael Larson2024-02-142-921/+0
|
* Docs: spell out sentence about ndbm/gdbm file formats (#115470)Erlend E. Aasland2024-02-141-6/+8
|
* gh-115441: Fix missing braces warning (#115460)Sam Gross2024-02-141-11/+0
| | | Removes `_py_object_state_INIT`. We want to initialize the `object_state` field to zero.
* gh-112087: Make __sizeof__ and listiter_{len, next} to be threadsafe (gh-114843)Donghee Na2024-02-147-69/+80
|
* gh-115399: Upgrade bundled libexpat to 2.6.0 (#115431)Seth Michael Larson2024-02-1415-306/+431
|
* gh-115243: Fix crash in deque.index() when the deque is concurrently ↵kcatss2024-02-143-2/+8
| | | | modified (GH-115247)
* Docs: reword sentences about dbm submodule traits (#114609)Erlend E. Aasland2024-02-141-14/+6
| | | Don't repeatedly say that keys and values are coerced into bytes.
* gh-115392: Fix doctest reporting incorrect line numbers for decorated ↵Brian Schubert2024-02-145-1/+23
| | | | functions (#115440)
* gh-115403: Remove extra colon after "Examples" in datetime documentation ↵Stanislav Lyu2024-02-141-1/+1
| | | | (#115452)
* gh-100414: Make dbm.sqlite3 the preferred dbm backend (#115447)Erlend E. Aasland2024-02-143-3/+3
|
* gh-115450: Fix direct invocation of `test_desctut` (#115451)Nikita Sobolev2024-02-141-11/+11
|
* gh-100414: Skip test_dbm_sqlite3 if sqlite3 is unavailable (#115449)Erlend E. Aasland2024-02-141-2/+5
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-100414: Add SQLite backend to dbm (#114481)Erlend E. Aasland2024-02-147-6/+544
| | | | | Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* gh-114058: Fix flaky globals to constant test (#115423)Ken Jin2024-02-141-11/+32
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* ftplib docs: `timeout` doesn't have to be a whole number (#115443)Alex Waygood2024-02-141-3/+3
|
* Docs: Use substitutions instead of manual version updates (#115416)Hugo van Kemenade2024-02-144-4/+6
|
* gh-111968: Rename freelist related struct names to Eric's suggestion (gh-115329)Donghee Na2024-02-1419-207/+190
|
* gh-115421: Update the list of installed test subdirectories. (#115422)T. Wouters2024-02-131-3/+9
| | | | | Update the list of installed test subdirectories with all newly added subdirectories of Lib/test, so that the tests in those directories are properly installed.
* gh-76785: Improved Subinterpreters Compatibility with 3.12 (gh-115424)Eric Snow2024-02-1312-719/+857
| | | | | For the most part, these changes make is substantially easier to backport subinterpreter-related code to 3.12, especially the related modules (e.g. _xxsubinterpreters). The main motivation is to support releasing a PyPI package with the 3.13 capabilities compiled for 3.12. A lot of the changes here involve either hiding details behind macros/functions or splitting up some files.
* gh-115391: Fix compiler warning in `Objects/longobject.c` (GH-115368)Kirill Podoprigora2024-02-131-1/+1
|
* gh-115383: Use runner version to compute config.cache key (#115409)Sam Gross2024-02-133-6/+18
|
* gh-115417: Remove accidentally left debugging print (#115418)Kirill Podoprigora2024-02-131-1/+0
| | | gh-115417: Remove debugging print
* Remove more stray backticks from NEWS files (#115374)Ezio Melotti2024-02-133-5/+5
| | | | | | | * Remove stray backtick from NEWS file * Remove more stray backticks from 3.12.0a1.rst * Remove another stray backtick in 3.13.0a1.rst
* GH-113710: Improve `_SET_IP` and `_CHECK_VALIDITY` (GH-115248)Mark Shannon2024-02-137-35/+79
|
* gh-115405: add versionadded tag for co_qualname in code objects ↵Christophe Papazian2024-02-131-0/+2
| | | | documentation (#115411)
* gh-113437: Update documentation about PyUnicode_AsWideChar() function ↵qqwqqw6892024-02-131-1/+6
| | | | (GH-113455)
* GH-113710: Backedge counter improvements. (GH-115166)Mark Shannon2024-02-137-55/+81
|
* gh-114058: Foundations of the Tier2 redundancy eliminator (GH-115085)Ken Jin2024-02-1325-140/+3137
| | | | | | | --------- Co-authored-by: Mark Shannon <9448417+markshannon@users.noreply.github.com> Co-authored-by: Jules <57632293+JuliaPoo@users.noreply.github.com> Co-authored-by: Guido van Rossum <gvanrossum@users.noreply.github.com>
* gh-108303: Move all `pydoc` related test files to new `test.test_pydoc` ↵Nikita Sobolev2024-02-137-27/+34
| | | | package (#114506)
* gh-115252: Fix test_enum with -OO mode again (GH-115334)Serhiy Storchaka2024-02-131-5/+5
|
* gh-115032: Update DictConfigurator.configure_formatter() comment about `fmt` ↵Mariusz Felisiak2024-02-131-4/+3
| | | | retry. (GH-115303)
* Update "Using Python on a Mac" (#115024)Hugo van Kemenade2024-02-132-46/+63
|
* gh-89240: Enable multiprocessing on Windows to use large process pools ↵Steve Dower2024-02-1312-6/+1195
| | | | | | | (GH-107873) We add _winapi.BatchedWaitForMultipleObjects to wait for larger numbers of handles. This is an internal module, hence undocumented, and should be used with caution. Check the docstring for info before using BatchedWaitForMultipleObjects.
* gh-114099: Refactor configure and Makefile to accomodate non-macOS ↵Russell Keith-Magee2024-02-125-432/+600
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | frameworks (#115120) Part of the PEP 730 work to add iOS support. This change lays the groundwork for introducing iOS/tvOS/watchOS frameworks; it includes the structural refactoring needed so that iOS branches can be added into in a subsequent PR. Summary of changes: * Updates config.sub to the 2024-01-01 release. This is the "as released" version of config.sub. * Adds a RESSRCDIR variable to allow sharing of macOS and iOS Makefile steps. * Adds an INSTALLTARGETS variable so platforms can customise which targets are actually installed. This will be used to exclude certain targets (e.g., binaries, manfiles) from iOS framework installs. * Adds a PYTHONFRAMEWORKINSTALLNAMEPREFIX variable; this is used as the install name for the library. This is needed to allow for iOS frameworks to specify an @rpath-based install name. * Evaluates MACHDEP earlier in the configure process so that ac_sys_system is available. * Modifies _PYTHON_HOST_PLATFORM evaluation for cross-platform builds so that the CPU architecture is differentiated from the host identifier. This will be used to generate a _PYTHON_HOST_PLATFORM definition that includes ABI information, not just CPU architecture. * Differentiates between SOABI_PLATFORM and PLATFORM_TRIPLET. SOABI_PLATFORM is used in binary module names, and includes the ABI, but not the OS or CPU architecture (e.g., math.cpython-313-iphonesimulator.dylib). PLATFORM_TRIPLET is used as the sys._multiarch value, and on iOS will contains the ABI and architecture (e.g., iphoneos-arm64). This differentiation hasn't historically been needed because while macOS is a multiarch platform, it uses a bare darwin as PLATFORM_TRIPLE. * Removes the use of the deprecated -Wl,-single_module flag when compiling macOS frameworks. * Some whitespace normalisation where there was a mix of spaces and tabs in a single block.
* gh-111140: Minor doc fixes for PyLong_AsNativeBytes (GH-115375)Steve Dower2024-02-121-10/+14
|
* gh-115317: Rewrite changelog filter to use vanilla JavaScript (#115324)Hugo van Kemenade2024-02-122-50/+56
| | | | Co-authored-by: Tomas R <tomas.roun8@gmail.com>
* gh-115258: Temporarily skip some `queue` tests on all platforms (#115361)Kirill Podoprigora2024-02-121-2/+2
|
* gh-111140: Adds PyLong_AsNativeBytes and PyLong_FromNative[Unsigned]Bytes ↵Steve Dower2024-02-1214-26/+533
| | | | functions (GH-114886)
* Remove stray backtick in NEWS entry (#115356)Ezio Melotti2024-02-121-1/+1
|
* gh-115285: Fix `test_dataclasses` with `-OO` mode (#115286)Nikita Sobolev2024-02-121-0/+3
|
* gh-114271: Make `PyInterpreterState.threads.count` thread-safe in ↵mpage2024-02-122-4/+4
| | | | | free-threaded builds (gh-115093) Use atomics to mutate PyInterpreterState.threads.count.
* gh-110850: Add PyTime_t C API (GH-115215)Petr Viktorin2024-02-1219-114/+448
| | | | | | | | | | | | * gh-110850: Add PyTime_t C API Add PyTime_t API: * PyTime_t type. * PyTime_MIN and PyTime_MAX constants. * PyTime_AsSecondsDouble(), PyTime_Monotonic(), PyTime_PerfCounter() and PyTime_GetSystemClock() functions. Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-115049: Fix py.exe failing when user has no LocalAppData. (GH-115185)Steve Dower2024-02-122-2/+14
| | | Also ensure we always display a debug message or error for RC_INTERNAL_ERROR
* gh-87804: Fix the refleak in error handling of `_pystatvfs_fromstructstatfs` ↵Nikita Sobolev2024-02-121-8/+9
| | | | | (#115335) It was the macro expansion! Sorry!