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 May 11, 2023

  1. gh-104392: Remove _paramspec_tvars from typing (#104393)

    This does nothing.
    JelleZijlstra committed May 11, 2023
  2. gh-99108: Refresh HACL* from upstream (#104401)

    Refresh HACL* from upstream and add a SHA3 test hashing over 4GiB of data.
    msprotz committed May 11, 2023
  3. gh-101117: Improve accuracy of sqlite3.Cursor.rowcount docs (#104287)

    The SQLite C API sqlite3_changes() can only be relied upon when the
    current active statement has been run to completion.
    erlend-aasland committed May 11, 2023
  4. GH-92184: Convert os.altsep to '/' in filenames when creating ZipInfo…

    … objects (#92185)
    
    This causes the zipfile module to also consider the character defined by
    `os.altsep` (if there is one) to be a path separator and convert it to a
    forward slash, as defined by the zip specification.
    
    A logical no-op on all known platforms today as os.altsep is currently only set to a meaningful value on Windows (where it is "/").
    pR0Ps committed May 11, 2023
  5. GH-90208: Suppress OSError exceptions from pathlib.Path.glob() (GH-…

    …104141)
    
    `pathlib.Path.glob()` now suppresses all OSError exceptions, except
    those raised from calling `is_dir()` on the top-level path.
    
    Previously, `glob()` suppressed ENOENT, ENOTDIR, EBADF and ELOOP
    errors and their Windows equivalents. PermissionError was also
    suppressed unless it occurred when calling `is_dir()` on the
    top-level path. However, the selector would abort prematurely
    if a PermissionError was raised, and so `glob()` could return
    incomplete results.
    barneygale committed May 11, 2023

Commits on May 10, 2023

  1. gh-103000: Optimise dataclasses.asdict for the common case (#104364)

    Co-authored-by: David Ellis <ducksual@gmail.com>
    AlexWaygood and DavidCEllis committed May 10, 2023
  2. GH-87695: Fix OSError from pathlib.Path.glob() (GH-104292)

    Fix issue where `pathlib.Path.glob()` raised `OSError` when it encountered
    a symlink to an overly long path.
    barneygale committed May 10, 2023
  3. gh-104263: Rely on Py_NAN and introduce Py_INFINITY (GH-104202)

    This PR removes `_Py_dg_stdnan` and `_Py_dg_infinity` in favour of
    using the standard `NAN` and `INFINITY` macros provided by C99.
    This change has the side-effect of fixing a bug on MIPS where the
    hard-coded value used by `_Py_dg_stdnan` gave a signalling NaN
    rather than a quiet NaN.
    ---------
    
    Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
    seberg and mdickinson committed May 10, 2023
  4. gh-104010: Separate and improve docs for typing.get_origin and `typ…

    …ing.get_args` (#104013)
    
    * separate documentation and examples for both functions
    * add examples demonstrating behaviour with unsupported types
    * document return value of `get_origin` for `ParamSpecArgs` and `ParamSpecKwargs` instances
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    chgnrdv and JelleZijlstra committed May 10, 2023
  5. gh-101819: Adapt _io._BufferedIOBase_Type methods to Argument Clinic (#…

    …104355)
    
    Make sure the defining class is passed to all methods,
    so we can easily fetch module state from them in the future.
    erlend-aasland committed May 10, 2023
  6. gh-104252: Immortalize Py_EMPTY_KEYS (gh-104253)

    This was missed in gh-19474.  It matters for with a per-interpreter GIL since PyDictKeysObject.dk_refcnt breaks isolation and leads to races.
    ericsnowcurrently committed May 10, 2023
  7. gh-101819: Harden _io init (#104352)

    Fix potential refleak if PyModule_AddObject() fails.
    erlend-aasland committed May 10, 2023
  8. gh-103848: Adds checks to ensure that bracketed hosts found by urlspl…

    …it are of IPv6 or IPvFuture format (#103849)
    
    * Adds checks to ensure that bracketed hosts found by urlsplit are of IPv6 or IPvFuture format
    
    ---------
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    JohnJamesUtley and gpshead committed May 10, 2023

Commits on May 9, 2023

  1. gh-74895: adjust tests to work on Solaris (#104326)

    Solaris is unusual here, but apparently everyone is happy when SOCK_STREAM is explicitly specified.
    kulikjak committed May 9, 2023
  2. gh-101819: Refactor _io in preparation for module isolation (#104334)

    - Replace query with parameter in bufferediobase_unsupported()
    - Replace query with parameter in iobase_unsupported()
    - Hide delegate: Add method wrapper for _PyIOBase_check_seekable
    - Hide delegate: Add method wraper for _PyIOBase_check_readable
    - Hide delegate: Add method wraper for _PyIOBase_check_writable
    - Replace query with parameter in _PyIOBase_check_seekable()
    - Replace query with parameter in _PyIOBase_check_readable()
    - Replace query with parameter in _PyIOBase_check_writable()
    erlend-aasland committed May 9, 2023
  3. gh-102327: Extend docs for "url" and "headers" parameters to HTTPConn…

    …ection.request()
    
    Added example on how to use the HTTPConnection object for making GET request.
    
    Original issue: #102327
    
    ---------
    
    Co-authored-by: Éric <earaujo@caravan.coop>
    davidfstr and merwok committed May 9, 2023
Older