Skip to content
Permalink
3.9
Switch branches/tags

Commits on Aug 4, 2022

  1. [3.9] gh-91423: Remove bugs.python.org from bugs.rst (GH-91425) (GH-9…

    …5614)
    
    Co-authored-by: roy reznik <royreznik@gmail.com>
    Co-authored-by: Inada Naoki <songofacandy@gmail.com>
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>.
    (cherry picked from commit df81d28)
    hauntsaninja committed Aug 4, 2022

Commits on Jul 29, 2022

  1. gh-95280: Fix test_get_ciphers on systems without RSA key exchange (G…

    …H-95282) (GH-95323)
    
    (cherry picked from commit 5654030)
    
    Co-authored-by: Christian Heimes <christian@python.org>
    miss-islington and tiran committed Jul 29, 2022

Commits on Jul 28, 2022

  1. [3.9] gh-90359: Update documentation to follow PEP 495. (gh-94800). (g…

    …h-94835)
    
    (cherry picked from commit 07374cc)
    
    Co-authored-by: Dong-hee Na <donghee.na@python.org>
    corona10 committed Jul 28, 2022

Commits on Jul 27, 2022

  1. [3.9] gh-94208: Add more TLS version/protocol checks for FreeBSD (GH-…

    …94347) (GH-95312)
    
    Three test cases were failing on FreeBSD with latest OpenSSL.
    (cherry picked from commit 1bc86c2)
    
    Co-authored-by: Christian Heimes <christian@python.org>
    ambv and tiran committed Jul 27, 2022

Commits on Jul 26, 2022

  1. gh-94821: Fix autobind of empty unix domain address (GH-94826) (GH-94875

    )
    
    When binding a unix socket to an empty address on Linux, the socket is
    automatically bound to an available address in the abstract namespace.
    
        >>> s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
        >>> s.bind("")
        >>> s.getsockname()
        b'\x0075499'
    
    Since python 3.9, the socket is bound to the one address:
    
        >>> s.getsockname()
        b'\x00'
    
    And trying to bind multiple sockets will fail with:
    
        Traceback (most recent call last):
          File "/home/nsoffer/src/cpython/Lib/test/test_socket.py", line 5553, in testAutobind
            s2.bind("")
        OSError: [Errno 98] Address already in use
    
    Added 2 tests:
    - Auto binding empty address on Linux
    - Failing to bind an empty address on other platforms
    
    Fixes f6b3a07 (bpo-44493: Add missing terminated NUL in sockaddr_un's length (GH-26866)
    (cherry picked from commit c22f134)
    
    Co-authored-by: Nir Soffer <nsoffer@redhat.com>
    miss-islington and nirs committed Jul 26, 2022

Commits on Jul 5, 2022

  1. [3.9] gh-90355: Add isolated flag if currently isolated (GH-92857) (G…

    …H-94570)
    
    Co-authored-by: Carter Dodd <carter.dodd@gmail.com>
    Co-authored-by: Éric <merwok@netwok.org>
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    (cherry picked from commit c8556bc)
    ambv committed Jul 5, 2022

Commits on Jul 1, 2022

  1. gh-81054: Document that SimpleHTTPRequestHandler follows symbolic lin…

    …ks (GH-94416) (GH-94494)
    
    (cherry picked from commit 80aaeab)
    
    Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
    miss-islington and dignissimus committed Jul 1, 2022

Commits on Jun 22, 2022

  1. gh-91172: Create a workflow for verifying bundled pip and setuptools (G…

    …H-31885) (GH-94123)
    
    Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
    Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
    (cherry picked from commit d36954b)
    
    Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
    miss-islington and illia-v committed Jun 22, 2022
  2. gh-87389: Fix an open redirection vulnerability in http.server. (GH-9…

    …3879) (GH-94093)
    
    Fix an open redirection vulnerability in the `http.server` module when
    an URI path starts with `//` that could produce a 301 Location header
    with a misleading target.  Vulnerability discovered, and logic fix
    proposed, by Hamza Avvan (@hamzaavvan).
    
    Test and comments authored by Gregory P. Smith [Google].
    (cherry picked from commit 4abab6b)
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    miss-islington and gpshead committed Jun 22, 2022

Commits on Jun 16, 2022

  1. gh-91810: Fix regression with writing an XML declaration with encodin…

    …g='unicode' (GH-93426) (GH-93791)
    
    Suppress writing an XML declaration in open files in ElementTree.write()
    with encoding='unicode' and xml_declaration=None.
    
    If file patch is passed to ElementTree.write() with encoding='unicode',
    always open a new file in UTF-8.
    (cherry picked from commit d7db9dc)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    miss-islington and serhiy-storchaka committed Jun 16, 2022

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
Older