Skip to content
Permalink
3.10
Switch branches/tags

Commits on May 5, 2022

  1. gh-92223: Remove pre-Python 3.7 alternative in asyncio docs (GH-92224)

    (cherry picked from commit d1b2e98)
    
    Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
    miss-islington and srittau committed May 5, 2022

Commits on May 4, 2022

  1. gh-92036: Fix gc_fini_untrack() (GH-92037)

    Fix a crash in subinterpreters related to the garbage collector. When
    a subinterpreter is deleted, untrack all objects tracked by its GC.
    To prevent a crash in deallocator functions expecting objects to be
    tracked by the GC, leak a strong reference to these objects on
    purpose, so they are never deleted and their deallocator functions
    are not called.
    (cherry picked from commit 1424336)
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    miss-islington and vstinner committed May 4, 2022
  2. bpo-47029: Fix BrokenPipeError in multiprocessing.Queue at garbage co…

    …llection and explicit close (GH-31913)
    
    (cherry picked from commit dfb1b9d)
    
    Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
    miss-islington and maggyero committed May 4, 2022

Commits on May 3, 2022

  1. [3.10] Improve the typing docs (GH-92264) (#92270)

    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>.
    (cherry picked from commit 27e3665)
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    JelleZijlstra committed May 3, 2022
  2. gh-87304: Improve comments in language reference for imports (GH-92164)

    (cherry picked from commit ee2205b)
    
    Co-authored-by: Robert Yang <35813883+robert861212@users.noreply.github.com>
    miss-islington and robert861212 committed May 3, 2022
  3. bpo-29890: Test IPv*Interface construction with tuple argument (GH-30862

    )
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    (cherry picked from commit b295a92)
    
    Co-authored-by: Humbled Drugman <humbled.drugman@gmail.com>
    miss-islington and humbdrag committed May 3, 2022
  4. bpo-46604: fix function name in ssl module docstring (GH-31064)

    The function fetch_server_certificate is replaced by get_server_certificate in the module. I reflected the change in the module docstrings.
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    (cherry picked from commit feca9bb)
    
    Co-authored-by: Kossi GLOKPOR <83467320+glk0@users.noreply.github.com>
    miss-islington and glk0 committed May 3, 2022
  5. bpo-46415: Use f-string for ValueError in ipaddress.ip_{address,netwo…

    …rk,interface} helper functions (GH-30642)
    
    `IPv*Network` and `IPv*Interface` constructors accept a 2-tuple of
    (address description, netmask) as the address parameter.
    When the tuple-based address is used errors are not propagated
    correctly through the `ipaddress.ip_*` helper because of the %-formatting now expecting several arguments:
    
    	In [7]: ipaddress.ip_network(("192.168.100.0", "fooo"))
            ...
    	TypeError: not all arguments converted during string formatting
    
    Compared to:
    
    	In [8]: ipaddress.IPv4Network(("192.168.100.0", "foo"))
            ...
    	NetmaskValueError: 'foo' is not a valid netmask
    
    Use an f-string to make sure the error is always properly formatted.
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    (cherry picked from commit 52dc9c3)
    
    Co-authored-by: Thomas Cellerier <thomascellerier@gmail.com>
    miss-islington and thomascellerier committed May 3, 2022
  6. [3.10] gh-91583: AC: Fix regression for functions with defining_class (

    …GH-91739) (GH-92079)
    
    Argument Clinic now generates the same efficient code as before
    adding the defining_class parameter.
    (cherry picked from commit a055dac)
    serhiy-storchaka committed May 3, 2022
  7. gh-92106: Add test that subscription works on arbitrary TypedDicts (G…

    …H-92176)
    
    (cherry picked from commit 81fb354)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    miss-islington and serhiy-storchaka committed May 3, 2022

Commits on May 2, 2022

  1. bpo-46586: Fix more erroneous doc links to builtins (GH-31429)

    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    Co-authored-by: Éric <merwok@netwok.org>
    (cherry picked from commit cc6ae4f)
    
    Co-authored-by: Meer Suri <46469858+meersuri@users.noreply.github.com>
    miss-islington and meersuri committed May 2, 2022
  2. bpo-46787: Fix ProcessPoolExecutor exception memory leak (GH-31408) (

    …GH-31408)
    
    Do not store `ProcessPoolExecutor` work item exception traceback that prevents
    exception frame locals from being garbage collected.
    (cherry picked from commit 9c204b1)
    
    Co-authored-by: themylogin <themylogin@gmail.com>
    miss-islington and themylogin committed May 2, 2022
  3. bpo-6686: Replace String with Bytes in xml.sax.handler documentation (G…

    …H-30612)
    
    (cherry picked from commit 32e4f45)
    
    Co-authored-by: Yassir Karroum <ukarroum17@gmail.com>
    miss-islington and ukarroum committed May 2, 2022
  4. importlib docs: Update importlib.abc hierarchy (GH-31113)

    Fixed some inconsistencies in the text about relationships
    (cherry picked from commit 5f45a9d)
    
    Co-authored-by: David Gilbertson <gilbertson.david@gmail.com>
    miss-islington and davidgilbertson committed May 2, 2022
  5. [3.10] bpo-43504: Remove effbot urls (GH-26308) (#92161)

    * [3.10] Remove effbot urls (GH-26308).
    (cherry picked from commit e9f66ae)
    
    Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
    Thaddeus1499 and E-Paine committed May 2, 2022
  6. gh-91783: Document security considerations for shutil.unpack_archive (G…

    …H-91844)
    
    (cherry picked from commit 4b297a9)
    
    Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
    miss-islington and dignissimus committed May 2, 2022
  7. [3.10] Fix typo in Programming FAQ (GH-92083) (GH-92148)

    I believe the word "with" was missing here.
    (cherry picked from commit 2a7efa3)
    
    
    Co-authored-by: Matt Harding <majaharding@gmail.com>
    miss-islington and majaha committed May 2, 2022
  8. gh-92082: contextlib docs: Change aclosing from a class to a function…

    … for consistency (GH-92155)
    
    Signed-off-by: prwatson <prwatson@redhat.com>
    (cherry picked from commit 958f21c)
    
    Co-authored-by: Thaddeus1499 <104600742+Thaddeus1499@users.noreply.github.com>
    miss-islington and Thaddeus1499 committed May 2, 2022
  9. [3.10] gh-89301: Fix regression with bound values in traced SQLite st…

    …atements (#92147)
    
    (cherry picked from commit 721aa96)
    erlend-aasland committed May 2, 2022
  10. [3.10] build(deps): bump actions/cache from 3.0.1 to 3.0.2 (GH-92111) (

    …#92124)
    
    Bumps [actions/cache](https://github.com/actions/cache) from 3.0.1 to 3.0.2.
    - [Release notes](https://github.com/actions/cache/releases)
    - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
    - [Commits](actions/cache@v3.0.1...v3.0.2)
    
    ---
    updated-dependencies:
    - dependency-name: actions/cache
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>.
    (cherry picked from commit eefe691)
    JelleZijlstra committed May 2, 2022
  11. concurrent.futures: Fix typo in docstring (GH-92121)

    (cherry picked from commit b11243e)
    
    Co-authored-by: Yiannis Hadjicharalambous <hadjicharalambous.yiannis@gmail.com>
    miss-islington and yiannis-had committed May 2, 2022
  12. gh-88546: glob.glob docs: Make new paragraph for emphasis and reorder…

    …ed sentence (GH-91614)
    
    (cherry picked from commit b9ab6ce)
    
    Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
    miss-islington and slateny committed May 2, 2022
  13. asyncio.subprocess: Fix a typo in doc (GH-92030)

    Remove a confusion for read method in asyncio-subprocess doc for stderr StreamReader instance
    (cherry picked from commit bb857a9)
    
    Co-authored-by: Harsh <65716674+Harsh-br0@users.noreply.github.com>
    miss-islington and Harsh-br0 committed May 2, 2022
  14. gh-85133: os docs: Add that getenv uses os.environ (GH-91874)

    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    (cherry picked from commit b25352a)
    
    Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
    miss-islington and slateny committed May 2, 2022
  15. gh-84714: Add behavior if dst file exists (GH-91867)

    (cherry picked from commit 9166ace)
    
    Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
    miss-islington and slateny committed May 2, 2022
  16. bpo-36819: Fix crashes in built-in encoders with weird error handlers (

    …GH-28593)
    
    If the error handler returns position less or equal than the starting
    position of non-encodable characters, most of built-in encoders didn't
    properly re-size the output buffer. This led to out-of-bounds writes,
    and segfaults.
    (cherry picked from commit 18b07d7)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    miss-islington and serhiy-storchaka committed May 2, 2022
  17. gh-85679: Recommend encoding="utf-8" in tutorial (GH-91778)

    (cherry picked from commit 614420d)
    
    Co-authored-by: Inada Naoki <songofacandy@gmail.com>
    miss-islington and methane committed May 2, 2022

Commits on May 1, 2022

  1. [3.10] build(deps): bump actions/stale from 4 to 5 (GH-92108) (#92127)

    Bumps [actions/stale](https://github.com/actions/stale) from 4 to 5.
    - [Release notes](https://github.com/actions/stale/releases)
    - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
    - [Commits](actions/stale@v4...v5)
    
    ---
    updated-dependencies:
    - dependency-name: actions/stale
      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>.
    (cherry picked from commit 34129f7)
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    JelleZijlstra and dependabot[bot] committed May 1, 2022
  2. [3.10] gh-91401: Conservative backport of subprocess._USE_VFORK (#9…

    …1932)
    
    This does not alter the `_posixsubprocess.fork_exec()` private API to
    avoid issues for anyone relying on that (bad idea) or for anyone who's
    `subprocess.py` and `_posixsubprocess.so` upgrades may not become
    visible to existing Python 3.10 processes at the same time.
    
    Backports the concept of cd5726f.
    
    Provides a fail-safe way to disable vfork for #91401.
    
    I didn't backport the documentation as I don't actually expect this to be used and `.. versionadded: 3.10.5` always looks weird in docs. It's being done more to have a fail-safe in place for people just in case.
    gpshead committed May 1, 2022
  3. typing docs: Add example for async functions (GH-20386)

    Fixes python/typingGH-424
    (cherry picked from commit 9588f88)
    
    Co-authored-by: Sam Bull <aa6bs0@sambull.org>
    miss-islington and Dreamsorcerer committed May 1, 2022
  4. gh-81488: Add recursive wording for issubclass docs (GH-92087)

    (cherry picked from commit 1066ecb)
    
    Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
    miss-islington and slateny committed May 1, 2022
  5. gh-91611: Use example.com for documentation, not mydomain.com (GH-91613)

    example.com is reserved by the IANA as special-use domain name for documentation
    purposes. The domain names are used widely in books, tutorials, sample network
    configurations, and generally as examples for the use of domain name.
    
    On the other hand, mydomain.com is real Domain Name Registration service.
    (cherry picked from commit ea39246)
    
    Co-authored-by: Motoki Naruse <motoki@naru.se>
    miss-islington and narusemotoki committed May 1, 2022

Commits on Apr 30, 2022

  1. gh-89253: Add 3.10 whatsnew section for itertools.pairwise (GH-91563)

    GH-89253
    
    [`pairwise()`](https://docs.python.org/3/library/itertools.htmlGH-itertools.pairwise) already has the 'new in python3.10'
    
    Automerge-Triggered-By: GH:rhettinger
    (cherry picked from commit 5dcfb91)
    
    Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
    miss-islington and slateny committed Apr 30, 2022
  2. gh-87801: Add run() to subprocess.CalledProcessError description (GH-…

    …91628)
    
    (cherry picked from commit 567be05)
    
    Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
    miss-islington and slateny committed Apr 30, 2022
  3. gh-87192: Update wording for fcntl 'Changed in' (GH-91658)

    (cherry picked from commit d7eb1ff)
    
    Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
    miss-islington and slateny committed Apr 30, 2022
Older