Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Commits on Feb 17, 2023

  1. gh-101992: update plistlib examples to be runnable (#101994)

    * gh-101992: update plistlib examples to be runnable
    
    * Update Doc/library/plistlib.rst
    
    ---------
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    dtrodrigues and terryjreedy committed Feb 17, 2023
  2. gh-100809: Fix handling of drive-relative paths in pathlib.Path.absol…

    …ute() (GH-100812)
    
    Resolving the drive independently uses the OS API, which ensures it starts from the current directory on that drive.
    barneygale committed Feb 17, 2023
  3. gh-101360: Fix anchor matching in pathlib.PureWindowsPath.match() (GH…

    …-101363)
    
    Use `fnmatch` to match path and pattern anchors, just as we do for other
    path parts. This allows patterns such as `'*:/Users/*'` to be matched.
    barneygale committed Feb 17, 2023
  4. Docs: fix typos in PyFunction_WatchCallback docs and in 3.12 NEWS (GH…

    …-101980)
    
    - possitibility => possibility
    - disaallowed => disallowed
    yeojin-dev committed Feb 17, 2023
  5. gh-101758: Fix Refleak-Related Failures in test_singlephase_variants (g…

    …h-101969)
    
    gh-101891 is causing failures under `$> ./python -m test test_imp -R 3:3`.  Furthermore, with that fixed, "test_singlephase_variants" is leaking references.  This change addresses the first part, but skips the leaking tests until we can follow up with a fix.
    
    #101758
    ericsnowcurrently committed Feb 17, 2023

Commits on Feb 16, 2023

  1. gh-101758: Add _PyState_AddModule() Back for the Stable ABI (gh-101956)

    We're adding the function back, only for the stable ABI symbol and not as any form of API. I had removed it yesterday.
    
    This undocumented "private" function was added with the implementation for PEP 3121 (3.0, 2007) for internal use and later moved out of the limited API (3.6, 2016) and then into the internal API (3.9, 2019). I removed it completely yesterday, including from the stable ABI manifest (where it was added because the symbol happened to be exported). It's unlikely that anyone is using _PyState_AddModule(), especially any stable ABI extensions built against 3.2-3.5, but we're playing it safe.
    
    #101758
    ericsnowcurrently committed Feb 16, 2023
  2. GH-96764: rewrite asyncio.wait_for to use asyncio.timeout (#98518)

    Changes `asyncio.wait_for` to use `asyncio.timeout` as its underlying implementation.
    kumaraditya303 committed Feb 16, 2023
  3. gh-93573: Replace wrong example domains in configparser doc (GH-93574)

    * Replace bitbucket.org domain by forge.example
    * Update example to python.org
    * Use explicitly invalid domain
    
    topsecret.server.com domain is not controled by PSF. It's replaced by invalid topsecret.server.example domain. It follows RFC 2606, which advise .example as TLD for documentation.
    sblondon committed Feb 16, 2023
  4. gh-101881: Support (non-)blocking read/write functions on Windows pip…

    …es (GH-101882)
    
    * fileutils: handle non-blocking pipe IO on Windows
    
    Handle erroring operations on non-blocking pipes by reading the _doserrno code.
    Limit writes on non-blocking pipes that are too large.
    
    * Support blocking functions on Windows
    
    Use the GetNamedPipeHandleState and SetNamedPipeHandleState Win32 API functions to add support for os.get_blocking and os.set_blocking.
    RayyanAnsari committed Feb 16, 2023
  5. gh-101951: use textwrap.dedent in compiler tests to make them more re…

    …adable (GH-101950)
    
    Fixes #101951.
    
    Automerge-Triggered-By: GH:iritkatriel
    iritkatriel committed Feb 16, 2023
  6. gh-99108: Refactor _sha256 & _sha512 into _sha2. (#101924)

    This merges their code. They're backed by the same single HACL* static library, having them be a single module simplifies maintenance.
    
    This should unbreak the wasm enscripten builds that currently fail due to linking in --whole-archive mode and the HACL* library appearing twice.
    
    Long unnoticed error fixed: _sha512.SHA384Type was doubly assigned and was actually SHA512Type. Nobody depends on those internal names.
    
    Also rename LIBHACL_ make vars to LIBHACL_SHA2_ in preperation for other future HACL things.
    gpshead committed Feb 16, 2023
  7. gh-98627: Add an Optional Check for Extension Module Subinterpreter C…

    …ompatibility (gh-99040)
    
    Enforcing (optionally) the restriction set by PEP 489 makes sense. Furthermore, this sets the stage for a potential restriction related to a per-interpreter GIL.
    
    This change includes the following:
    
    * add tests for extension module subinterpreter compatibility
    * add _PyInterpreterConfig.check_multi_interp_extensions
    * add Py_RTFLAGS_MULTI_INTERP_EXTENSIONS
    * add _PyImport_CheckSubinterpIncompatibleExtensionAllowed()
    * fail iff the module does not implement multi-phase init and the current interpreter is configured to check
    
    #98627
    ericsnowcurrently committed Feb 16, 2023

Commits on Feb 15, 2023

  1. gh-101758: Add a Test For Single-Phase Init Modules in Multiple Inter…

    …preters (gh-101920)
    
    The test verifies the behavior of single-phase init modules when loaded in multiple interpreters.
    
    #101758
    ericsnowcurrently committed Feb 15, 2023
  2. gh-101758: Clean Up Uses of Import State (gh-101919)

    This change is almost entirely moving code around and hiding import state behind internal API.  We introduce no changes to behavior, nor to non-internal API.  (Since there was already going to be a lot of churn, I took this as an opportunity to re-organize import.c into topically-grouped sections of code.)  The motivation is to simplify a number of upcoming changes.
    
    Specific changes:
    
    * move existing import-related code to import.c, wherever possible
    * add internal API for interacting with import state (both global and per-interpreter)
    * use only API outside of import.c (to limit churn there when changing the location, etc.)
    * consolidate the import-related state of PyInterpreterState into a single struct field (this changes layout slightly)
    * add macros for import state in import.c (to simplify changing the location)
    * group code in import.c into sections
    *remove _PyState_AddModule()
    
    #101758
    ericsnowcurrently committed Feb 15, 2023
  3. gh-99138: Isolate _zoneinfo (#99218)

    * Convert zone info type to heap type and add it to module state
    * Add global variables to module state
    erlend-aasland committed Feb 15, 2023
  4. gh-101819: Remove _PyWindowsConsoleIO_Type from the Windows DLL (GH-1…

    …01904)
    
    Automerge-Triggered-By: GH:erlend-aasland
    erlend-aasland committed Feb 15, 2023
  5. GH-87849: Fix refleak in SEND instruction. (GH-101908)

    Fix refleak in SEND instruction.
    markshannon committed Feb 15, 2023
Older