Skip to content
Permalink
3.9
Switch branches/tags

Commits on Jun 6, 2022

  1. gh-83728: Add hmac.new default parameter deprecation (GH-91939) (GH-9…

    …3546)
    
    (cherry picked from commit 56b5daf)
    
    Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
    miss-islington and slateny committed Jun 6, 2022

Commits on May 24, 2022

  1. gh-93065: Fix HAMT to iterate correctly over 7-level deep trees (GH-9…

    …3066) (#93147)
    
    Also while there, clarify a few things about why we reduce the hash to 32 bits.
    
    Co-authored-by: Eli Libman <eli@hyro.ai>
    Co-authored-by: Yury Selivanov <yury@edgedb.com>
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    
    (cherry picked from commit c1f5c90)
    miss-islington committed May 24, 2022

Commits on May 19, 2022

  1. bpo-46879: Fix incorrect sphinx object names in doc (GH-31615) (GH-92976

    )
    
    (cherry picked from commit 2cdd57f)
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    Co-authored-by: Martin Fischer <martin@push-f.com>
    3 people committed May 19, 2022
  2. bpo-45393: help() on operator precedence has misleading entries (GH-3…

    …1246) (GH-92967)
    
    (cherry picked from commit fb082c2)
    
    Co-authored-by: Zackery Spytz <zspytz@gmail.com>
    miss-islington and ZackerySpytz committed May 19, 2022
  3. gh-92417: Update docs and examples of doctest.IGNORE_EXCEPTION_DETAIL…

    … for Py>=3 (GH-92502) (GH-92964)
    
    (cherry picked from commit 97b9c10)
    miss-islington committed May 19, 2022

Commits on May 17, 2022

  1. Post 3.9.13

    ambv committed May 17, 2022
  2. Python 3.9.13

    ambv committed May 17, 2022

Commits on May 16, 2022

  1. [3.9] gh-92112: Fix crash triggered by an evil custom mro() (GH-92113

    …) (GH-92372)
    
    (cherry picked from commit 85354ed)
    
    Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
    JelleZijlstra and izbyshev committed May 16, 2022
  2. [3.9] bpo-34480: fix bug where match variable is used prior to being …

    …defined (GH-17643) (GH-32256)
    
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    4 people committed May 16, 2022
  3. Check result of utc_to_seconds and skip fold probe in pure Python (GH…

    …-91582) (GH-92748)
    
    The `utc_to_seconds` call can fail, here's a minimal reproducer on
    Linux:
    
    TZ=UTC python -c "from datetime import *; datetime.fromtimestamp(253402300799 + 1)"
    
    The old behavior still raised an error in a similar way, but only
    because subsequent calculations happened to fail as well. Better to fail
    fast.
    
    This also refactors the tests to split out the `fromtimestamp` and
    `utcfromtimestamp` tests, and to get us closer to the actual desired
    limits of the functions. As part of this, we also changed the way we
    detect platforms where the same limits don't necessarily apply (e.g.
    Windows).
    
    As part of refactoring the tests to hit this condition explicitly (even
    though the user-facing behvior doesn't change in any way we plan to
    guarantee), I noticed that there was a difference in the places that
    `datetime.utcfromtimestamp` fails in the C and pure Python versions, which
    was fixed by skipping the "probe for fold" logic for UTC specifically —
    since UTC doesn't have any folds or gaps, we were never going to find a
    fold value anyway. This should prevent some failures in the pure python
    `utcfromtimestamp` method on timestamps close to 0001-01-01.
    
    There are two separate news entries for this because one is a
    potentially user-facing change, the other is an internal code
    correctness change that, if anything, changes some error messages. The
    two happen to be coupled because of the test refactoring, but they are
    probably best thought of as independent changes.
    
    Fixes GH-91581
    (cherry picked from commit 83c0247)
    
    Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
    miss-islington and pganssle committed May 16, 2022
  4. gh-80143: Add clarification for escape characters (GH-92292) (GH-92630)

    (cherry picked from commit 549567c)
    
    Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
    miss-islington and slateny committed May 16, 2022
  5. gh-92530: Fix an issue that occurred after interrupting threading.Con…

    …dition.notify (GH-92534) (GH-92831)
    
    If Condition.notify() was interrupted just after it released the waiter lock,
    but before removing it from the queue, the following calls of notify() failed
    with RuntimeError: cannot release un-acquired lock.
    (cherry picked from commit 70af994)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    miss-islington and serhiy-storchaka committed May 16, 2022
  6. gh-87670: Add web.archive redirects from effbot (GH-92816)

    (cherry picked from commit 3ed1cae)
    
    Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
    miss-islington and slateny committed May 16, 2022

Commits on May 13, 2022

  1. gh-92611: Link to PEP 594 sections & add key detail in doc deprecatio…

    …n notices (GH-92612)
    
    (cherry picked from commit 9f68dab)
    
    Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
    miss-islington and CAM-Gerlach committed May 13, 2022
  2. Document Py_ssize_t. (GH-92512)

    It fixes 252 errors from a Sphinx nitpicky run (sphinx-build -n). But
    there's 8182 errors left.
    
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    (cherry picked from commit 664aa94)
    
    Co-authored-by: Julien Palard <julien@palard.fr>
    miss-islington and JulienPalard committed May 13, 2022

Commits on May 12, 2022

  1. [3.9] gh-92436: __future__ docs: add note on expectations for "from _…

    …_future__ import annotations" (GH-92568). (#92726)
    
    (cherry picked from commit 6582c96)
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    JelleZijlstra committed May 12, 2022

Commits on May 11, 2022

  1. bpo-42627: Fix incorrect parsing of Windows registry proxy settings (G…

    …H-26307)
    
    (cherry picked from commit b69297e)
    
    Co-authored-by: 狂男风 <CrazyBoyFeng@Live.com>
    miss-islington and CrazyBoyFeng committed May 11, 2022
  2. [3.9] gh-91810: ElementTree: Use text file's encoding by default in X…

    …ML declaration (GH-91903) (GH-92665)
    
    ElementTree method write() and function tostring() now use the text file's
    encoding ("UTF-8" if not available) instead of locale encoding in XML
    declaration when encoding="unicode" is specified.
    (cherry picked from commit 707839b)
    
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    
    Automerge-Triggered-By: GH:serhiy-storchaka
    miss-islington committed May 11, 2022
  3. [3.9] Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (G…

    …H-92631) (GH-92661)
    
    (cherry picked from commit 38486ca)
    
    
    Co-authored-by: Mikhail Terekhov <termim@gmail.com>
    
    Automerge-Triggered-By: GH:serhiy-storchaka
    miss-islington committed May 11, 2022

Commits on May 10, 2022

  1. [3.9] gh-76773: Update docs mentioning no-longer-supported Windows ve…

    …rsions & features (GH-92529) (GH-92610)
    
    (cherry picked from commit f1bbcba)
    
    
    Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
    
    Automerge-Triggered-By: GH:serhiy-storchaka
    miss-islington committed May 10, 2022
  2. gh-92256: Improve Argument Clinic parser error messages (GH-92268)

    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    Co-authored-by: Victor Stinner <vstinner@python.org>
    (cherry picked from commit 4bd07d1)
    
    Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
    miss-islington and erlend-aasland committed May 10, 2022
  3. bpo-13553: Document tkinter.Tk args (GH-4786)

    (cherry picked from commit c56e2bb)
    
    Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
    miss-islington and csabella committed May 10, 2022

Commits on May 9, 2022

  1. bpo-46785: Fix race condition between os.stat() and unlink on Windows (

    …GH-31858)
    
    * [3.9] bpo-46785: Fix race condition between os.stat() and unlink on Windows (GH-31858).
    (cherry picked from commit 39e6b8a)
    
    Co-authored-by: Itai Steinherz <itaisteinherz@gmail.com>
    itaisteinherz committed May 9, 2022
  2. Doc: Update py2app link. (GH-91585)

    See: https://mail.python.org/archives/list/docs@python.org/thread/KDVFGNGGUGGPVRZT7WZYHHWXCRS2GEN7/
    (cherry picked from commit b77a95f)
    
    Co-authored-by: Julien Palard <julien@palard.fr>
    miss-islington and JulienPalard committed May 9, 2022
  3. gh-92417: asyncio docs: asyncio.run() is available on all support…

    …ed Python versions (GH-92419)
    
    (cherry picked from commit f4e317b)
    
    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    miss-islington and AlexWaygood committed May 9, 2022
  4. CODEOWNERS: Add Erlend Aasland as sqlite3 code owner (GH-92535)

    Signed-off-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    (cherry picked from commit 3edda03)
    
    Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
    miss-islington and erlend-aasland committed May 9, 2022
  5. bpo-38056: overhaul Error Handlers section in codecs documentation (G…

    …H-15732)
    
    * Some handlers were wrongly described as text-encoding only, but actually they can also be used in text-decoding.
    * Add more description to each handler.
    * Add two REPL examples.
    * Add indexes for Error Handler's name.
    
    Co-authored-by: Kyle Stanley <aeros167@gmail.com>
    Co-authored-by: Victor Stinner <vstinner@python.org>
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    (cherry picked from commit 5bc2390)
    
    Co-authored-by: Ma Lin <animalize@users.noreply.github.com>
    miss-islington and animalize committed May 9, 2022

Commits on May 8, 2022

  1. pdb docs: workaround for double semicolon in strings (GH-17011)

    see gotcha/ipdb#172
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    (cherry picked from commit 2888b11)
    
    Co-authored-by: Godefroid Chapelle <gotcha@bubblenet.be>
    miss-islington and gotcha committed May 8, 2022
  2. gh-77521: Add link to builtin module names in modules tutorial (GH-92438

    )
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    (cherry picked from commit 859250c)
    
    Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
    miss-islington and slateny committed May 8, 2022
  3. [3.10] gh-90622: Do not spawn ProcessPool workers on demand via fork …

    …method. (GH-91598) (GH-92497) (#92499)
    
    Do not spawn ProcessPool workers on demand when they spawn via fork.
    
    This avoids potential deadlocks in the child processes due to forking from
    a multithreaded process..
    (cherry picked from commit ebb37fc)
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    (cherry picked from commit b795376)
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    miss-islington and gpshead committed May 8, 2022
  4. Fix use of the default role in a news entry. (GH-92500)

    (cherry picked from commit 8883172)
    
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    miss-islington and ezio-melotti committed May 8, 2022
  5. gh-92417: logging docs: Remove warning that only applies to Python …

    …<3.2 (GH-92425)
    
    (cherry picked from commit 318c4e9)
    
    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    miss-islington and AlexWaygood committed May 8, 2022
  6. [3.9] gh-92417: json docs: dict is ordered on all supported Pytho…

    …n versions (GH-92422) (GH-92466)
    
    (cherry picked from commit bc098cf)
    
    
    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    
    Automerge-Triggered-By: GH:serhiy-storchaka
    miss-islington committed May 8, 2022
Older