Skip to content
Permalink
3.9

Commits on May 7, 2021

  1. Simple Enhancement. Add missing return statements in ftplib documenta…

    …tion. (GH-25968) (#25970)
    
    (cherry picked from commit b32c8e9)
    
    Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
    
    Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
    miss-islington and orsenthil committed May 7, 2021

Commits on May 6, 2021

  1. Fix minor grammar problems in dataclasses documentation (GH-25948) (#…

    …25959)
    
    Some missing words; some odd word choices.
    (cherry picked from commit ee8e7c2)
    
    Co-authored-by: Scott Noyes <snoyes@gmail.com>
    
    Co-authored-by: Scott Noyes <snoyes@gmail.com>
    miss-islington and snoyes committed May 6, 2021
  2. docs: clearly document that ":GH-X" string formatting results in "0X.…

    ….." (GH-25941)
    
    * clearly document that ":GH-X" string formatting results in "0X..."
    
    * put back the "serial comma"
    (cherry picked from commit 92ceb1c)
    
    Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
    miss-islington and taleinat committed May 6, 2021
  3. bpo-43972: Set content-length to 0 for http.server.SimpleHTTPRequestH…

    …andler 301s (GH-25705)
    
    * Set content-length for simple http server 301s
    
    When http.server.SimpleHTTPRequestHandler sends a 301 (Moved
    Permanently) due to a missing file, it does not set a Content-Length
    of 0. Unfortunately, certain clients can be left waiting for the
    connection to be closed in this circumstance, even though no body
    will be sent. At time of writing, both curl and Firefox demonstrate
    this behavior.
    
    * Test Content-Length on simple http server redirect
    
    When serving a redirect, the SimpleHTTPRequestHandler will now send
    `Content-Length: 0`. Several tests for http.server already cover
    various behaviors and checks including redirection. This change only
    adds one check for the expected Content-Length on the simplest case
    for a redirect.
    
    * Add news entry for SimpleHTTPRequestHandler fix
    
    * Clarify the specific kind of 301
    
    Co-authored-by: Senthil Kumaran <skumaran@gatech.edu>
    (cherry picked from commit fb42725)
    
    Co-authored-by: Stephen Rosen <sirosen@globus.org>
    miss-islington and sirosen committed May 6, 2021
  4. [3.9] bpo-36515: Disable unaligned memory access in _sha3 on ARM (GH-…

    …25927) (GH-25928)
    
    Contributed-By: Matthias Klose
    
    Automerge-Triggered-By: GH:tiran
    (cherry picked from commit da5c808)
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    miss-islington and gpshead committed May 6, 2021

Commits on May 5, 2021

  1. bpo-44022: Fix http client infinite line reading (DoS) after a HTTP 1…

    …00 Continue (GH-25916)
    
    Fixes http.client potential denial of service where it could get stuck reading lines from a malicious server after a 100 Continue response.
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    (cherry picked from commit 47895e3)
    
    Co-authored-by: Gen Xu <xgbarry@gmail.com>
    miss-islington and gen-xu committed May 5, 2021
  2. bpo-44040: Update broken link in pathlib source (GH-25905) (GH-25911)

    (cherry picked from commit 96d5c70)
    
    Co-authored-by: Kevin Follstad <kfollstad@gmail.com>
    miss-islington and kfollstad committed May 5, 2021

Commits on May 4, 2021

  1. bpo-40297: Fix test_socket.CANTest.testSendFrame (GH-19548)

    The address tuple for CAN_RAW no longer returns the address family
    after the introduction of CAN ISO-TP support in a30f6d4. However,
    updating test_socket.CANTest.testSendFrame was missed as part of the
    change, so the test incorrectly attempts to index past the last tuple
    item to retrieve the address family.
    
    This removes the now-redundant check for equality against socket.AF_CAN,
    as the tuple will not contain the address family.
    (cherry picked from commit 355bae8)
    
    Co-authored-by: karl ding <karlding@users.noreply.github.com>
    miss-islington and karlding committed May 4, 2021
  2. Clarify rx parameter of compileall functions (GH-25857)

    (cherry picked from commit 0949029)
    
    Co-authored-by: Jean-Abou-Samra <37271310+Jean-Abou-Samra@users.noreply.github.com>
    miss-islington and Jean-Abou-Samra committed May 4, 2021
  3. [3.9] bpo-44001: improve Literal documentation (GH-25877). (#25897)

    (cherry picked from commit 87109f4)
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    JelleZijlstra committed May 4, 2021
  4. [3.9] bpo-42083: Allow NULL doc in PyStructSequence_NewType (#25896)

    (cherry picked from commit 2f5baa1)
    
    Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
    encukou and Fidget-Spinner committed May 4, 2021
  5. closes bpo-43349: Fix tuning(7) manpage hyperlink. (GH-24680) (#25694)

    (cherry picked from commit f4d7d46)
    
    Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
    miss-islington and erlend-aasland committed May 4, 2021
  6. Fix typo in ast.py (GH-25740) (GH-25894)

    parantheses -> parentheses
    (cherry picked from commit 9ee8448)
    
    Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
    
    Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
    miss-islington and eltociear committed May 4, 2021
  7. bpo-32822: Add finally with return/break/continue to the tutorial (GH…

    …-25600) (#25890)
    
    This documents in the tutorial docs the behavior of a finally clause in
    case it should re-raise an exception but contains a
    return/break/continue statement.
    (cherry picked from commit a0b9915)
    
    Co-authored-by: Roberto Hueso <robertohueso96@gmail.com>
    miss-islington and robertohueso committed May 4, 2021
  8. bpo-38352: Add to typing.__all__ (GH-25821) (#25885)

    This adds IO, TextIO, BinaryIO, Match, and Pattern.
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
    (cherry picked from commit b115579)
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    4 people committed May 4, 2021
  9. bpo-43666: Lib/_aix_support.py routines may fail in a WPAR environment (

    GH-25095) (#25880)
    
    Since WPAR and LPAR both have a builddate for teh fileset bos.rte
    The name of the fileset checked is modified.
    To prevent a similiar situation (no builddate in ODM) a value
    sufficient for pep425 activity if retrieved buildate is zero or NULL
    Patch by M Felt.
    (cherry picked from commit 5017cde)
    
    Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
    miss-islington and aixtools committed May 4, 2021
  10. update docstring for win_getpass to reflect code changes (GH-24967)

    The code was updated in
    0ec88b3
    but the docstring was left untouched.
    
    => updated the docstring to reflect the code changes
    (cherry picked from commit d4222ea)
    
    Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
    miss-islington and jugmac00 committed May 4, 2021

Commits on May 3, 2021

  1. [3.9] bpo-43882 Remove the newline, and tab early. From query and fra…

    …gments. (#25853)
    
    * Remove the newline, and tab early. From query and fragments.
    orsenthil committed May 3, 2021
  2. Post 3.9.5

    ambv committed May 3, 2021
  3. Python 3.9.5

    ambv committed May 3, 2021
  4. bpo-42800: Add audit events for f_code and tb_frame (GH-24182)

    Accessing the following attributes will now fire PEP 578 style audit hooks as (object.__getattr__, obj, name):
    * PyTracebackObject: tb_frame
    * PyFrameObject: f_code
    * PyGenObject: gi_code, gi_frame
    * PyCoroObject: cr_code, cr_frame
    * PyAsyncGenObject: ag_code, ag_frame
    zooba committed May 3, 2021
  5. [3.9] Doc: Fix random.uniform example comment. (GH-25784) (GH-25843)

    (cherry picked from commit 440c025)
    
    
    Co-authored-by: Julien Palard <julien@palard.fr>
    
    Automerge-Triggered-By: GH:JulienPalard
    miss-islington committed May 3, 2021
  6. [3.9] Update macOS installer readme for 3.9.5 (GH-25836)

    ned-deily committed May 3, 2021
  7. bpo-41129: Fix check for macOS SDK paths when building Python (GH-25785

    …) (GH-25830)
    
    Narrow search to match contents of SDKs, namely only files in ``/System/Library``,
    ``/System/IOSSupport``, and ``/usr`` other than ``/usr/local``. Previously,
    anything under ``/System`` was assumed to be in an SDK which causes problems
    with the new file system layout in 10.15+ where user file systems may appear
    to be mounted under ``/System``.  Paths in ``/Library`` were also
    incorrectly treated as SDK locations.
    
    Co-authored-by: Ned Deily <nad@python.org>
    (cherry picked from commit d52bbde)
    
    Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
    miss-islington and nedbat committed May 3, 2021

Commits on May 2, 2021

  1. bpo-43434: Move sqlite3.connect audit event to sqlite3.Connection.__i…

    …nit__ (GH-25818)
    erlend-aasland committed May 2, 2021
  2. bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (G…

    …H-25099) (GH-25815)
    
    Reverts commit e653d4d and makes
    parsing even more strict. Like socket.inet_pton() any leading zero
    is now treated as invalid input.
    
    Signed-off-by: Christian Heimes <christian@python.org>
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    (cherry picked from commit 60ce8f0)
    miss-islington committed May 2, 2021
  3. bpo-32745: Fix a regression in the handling of ctypes' c_wchar_p type (

    …GH-8721) (#25812)
    
    Embedded nulls would cause a ValueError to be raised. Thanks go to Eryk Sun for their analysis.
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    (cherry picked from commit 73766b0)
    
    Co-authored-by: Zackery Spytz <zspytz@gmail.com>
    miss-islington and ZackerySpytz committed May 2, 2021
  4. bpo-41100: Update Misc/ACKS (GH-25808) (GH-25809)

    (cherry picked from commit 518f8b5)
    
    Co-authored-by: Ned Deily <nad@python.org>
    miss-islington and ned-deily committed May 2, 2021
  5. [3.9] bpo-44009: Provide "python3.x-intel64" for Apple Silicon Macs (G…

    …H-25804) (GH-25807)
    
    This allows reliably forcing macOS universal2 framework builds
    to run under Rosetta 2 Intel-64 emulation on Apple Silicon Macs
    if needed for testing or when universal2 wheels are not yet
    available.
    (cherry picked from commit 0cb33da)
    
    
    Co-authored-by: Ned Deily <nad@python.org>
    
    Automerge-Triggered-By: GH:ned-deily
    miss-islington committed May 2, 2021
  6. Fix broken name in build.yml (GH-25759) (GH-25802)

    (cherry picked from commit 29282b2)
    miss-islington committed May 2, 2021

Commits on May 1, 2021

  1. Fix exceptions mentioned in os.setxattr() docs (GH-25742) (GH-25794)

    (cherry picked from commit 7792324)
    
    Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
    
    Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
    miss-islington and shreyneil committed May 1, 2021
  2. Fixing doc for callback for lambda (GG-25779) (GH-25788)

    Fixing callback for lambda when no return value is provided
    (cherry picked from commit 50c21ad)
    
    Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
    
    Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
    miss-islington and shreyneil committed May 1, 2021
Older