Skip to content
Permalink
3.8

Commits on May 12, 2021

  1. [3.8] bpo-44061: Fix pkgutil.iter_modules regression when passed a pa…

    …thlib.Path object (GH-25964). (GH-26056)
    
    (cherry picked from commit e9d7f88)
    
    Co-authored-by: Miguel Brito <5544985+miguendes@users.noreply.github.com>
    ambv and miguendes committed May 12, 2021

Commits on May 7, 2021

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

    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 7, 2021

Commits on May 6, 2021

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

    …00 Continue (GH-25916) (#25933)
    
    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 6, 2021

Commits on May 5, 2021

  1. [3.8] bpo-43882 - urllib.parse should sanitize urls containing ASCII …

    …newline and tabs. (GH-25595) (#25726)
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    (cherry picked from commit 76cd81d)
    Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
    Co-authored-by: Senthil Kumaran <skumaran@gatech.edu>
    4 people committed May 5, 2021

Commits on May 3, 2021

  1. Post 3.8.10

    ambv committed May 3, 2021
  2. Merge tag 'v3.8.10' into 3.8

    Python 3.8.10
    ambv committed May 3, 2021
  3. 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
    (cherry picked from commit bb2f3ff)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba committed May 3, 2021
  4. Python 3.8.10

    ambv committed May 3, 2021

Commits on May 2, 2021

  1. bpo-43434: Move sqlite3.connect audit events to sqlite3.Connection.__…

    …init__ (GH-25818)
    
    (cherry picked from commit c96cc08)
    
    Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
    erlend-aasland committed May 2, 2021
  2. bpo-32745: Fix a regression in the handling of ctypes' c_wchar_p type (

    …GH-8721) (#25811)
    
    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
  3. bpo-44009: Provide "python3.x-intel64" for Apple Silicon Macs (GH-25810)

    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
    
    Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
    ned-deily and miss-islington committed May 2, 2021
  4. [3.8] bpo-41100: Support macOS 11 Big Sur and Apple Silicon Macs (#25806

    )
    
    * bpo-41100: Support macOS 11 and Apple Silicon on Python 3.8
    
    This is a partial backport of bpo-41100 changes `e8b1c038b14b5fc8120aab62c9bf5fb840274cb6` and `96d906b144e6e6aa96c5ffebecbcc5d38034bbda` for Python 3.8. We introduce the ability to build Python from source for `arm64` on macOS, but we do not make a promise of support. This allows us to omit support for Universal2 binaries as well as weak-linking of symbols from the macOS SDK based on the deployment target, which are larger changes much more difficult to merge.
    
    This also includes a backport of subsequent bpo-42688 change `7e729978fa08a360cbf936dc215ba7dd25a06a08` to fix build errors with external `libffi`.
    
    * bpo-41116: Ensure system supplied libraries are found on macOS 11 (GH-23301) (GH-23455)
    
    On macOS system provided libraries are in a shared library cache
    and not at their usual location. This PR teaches distutils to search
    in the SDK, even if there was no "-sysroot" argument in
    the compiler flags.
    (cherry picked from commit 404a719)
    
    * bpo-42504: fix for MACOSX_DEPLOYMENT_TARGET=11 (GH-23556)
    
    macOS releases numbering has changed as of macOS 11 Big Sur.  Previously, major releases were of the form 10.x, 10.x+1, 10.x+2, etc; as of Big Sur, they are now x, x+1, etc, so, for example, 10.15, 10.15.1, ..., 10.15.7, 11, 11.0.1, 11.1, ..., 12, 12.1, etc. Allow Python to build with single-digit deployment target values. Patch provided by FX Coudert.
    (cherry picked from commit 5291639)
    
    * bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string (GH-24341) (GH-24410)
    
    * bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string
    (cherry picked from commit 49926cf)
    
    Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
    Co-authored-by: FX Coudert <fxcoudert@gmail.com>
    Co-authored-by: Max Bélanger <aeromax@gmail.com>
    4 people committed May 2, 2021
  5. Fix broken name in build.yml (GH-25759) (GH-25797)

    (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-25795)

    (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 (GH-25779) (GH-25789)

    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
  3. bpo-43971: Add spaces around annotated arg default '=' (GH-25702)

    Result: "quantity_on_hand: int = 0".
    (cherry picked from commit e726a90)
    
    Co-authored-by: Mohamed Moselhy <look4d@gmail.com>
    
    Co-authored-by: Mohamed Moselhy <look4d@gmail.com>
    miss-islington and moselhy committed May 1, 2021

Commits on Apr 30, 2021

  1. bpo-43935: Fix typo in Turtle.back() docstring (GH-25581)

    'e ,' to 'e, '.
    (cherry picked from commit 0048c60)
    
    Co-authored-by: Tarjei Bærland <tarjeibaerland@gmail.com>
    miss-islington and tarjeiba committed Apr 30, 2021
  2. [3.8] bpo-42589: Change URL for 'from' link when used in a raised exc… (

    GH-25755)
    
    …eption (GH-23872)
    
    Links for 'raise Exception from x' target to 'The raise statement' (7.8) section instead of 'The import statement' (7.11) section.
    
    There are more modified links than in the bug report because I searched some other ones which can get the same improvement..
    (cherry picked from commit 2fd928c)
    
    This PR is a cherry pick to python 3.8 from #23872. The fix was the removal of the change in the other file because the fixed section was introduced in 3.9. So the file does not need to be fixed in 3.8.
    
    
    Co-authored-by: sblondon <sblondon@users.noreply.github.com>
    
    Automerge-Triggered-By: GH:Mariatta
    sblondon committed Apr 30, 2021

Commits on Apr 29, 2021

  1. [doc] Be more clear on super() regarding multiple base classes methods (

    GH-21789) (GH-25707)
    
    (cherry picked from commit 69a733b)
    
    Co-authored-by: Andre Delfino <adelfino@gmail.com>
    
    Co-authored-by: Andre Delfino <adelfino@gmail.com>
    miss-islington and andresdelfino committed Apr 29, 2021
  2. [doc] Do some polishing in IDEs section (GH-22070) (GH-25704)

    (cherry picked from commit 08a4803)
    
    Co-authored-by: Andre Delfino <adelfino@gmail.com>
    
    Co-authored-by: Andre Delfino <adelfino@gmail.com>
    miss-islington and andresdelfino committed Apr 29, 2021

Commits on Apr 28, 2021

  1. bpo-43960: test_pdb resets breakpoints to make tests deterministic (G…

    …H-25691) (GH-25692)
    
    (cherry picked from commit 2dc6b17)
    
    Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
    
    Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
    miss-islington and iritkatriel committed Apr 28, 2021
  2. bpo-43962: Fix _PyInterpreterState_IDIncref() (GH-25683) (GH-25686)

    _PyInterpreterState_IDIncref() now calls
    _PyInterpreterState_IDInitref() and always increments id_refcount.
    
    (cherry picked from commit 32c5a17)
    vstinner committed Apr 28, 2021

Commits on Apr 27, 2021

  1. [3.8] bpo-43492: Upgrade Windows installer to use SQLite 3.35.5 (GH-2…

    …5641)
    
    (cherry picked from commit bf0c7c0)
    
    Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
    erlend-aasland committed Apr 27, 2021
  2. bpo-43492: Update macOS installer to use SQLite 3.35.5 (GH-25640)

    (cherry picked from commit ce82781)
    
    Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
    miss-islington and erlend-aasland committed Apr 27, 2021
  3. [doc] Remove duplicated operator.itemgetter example (GH-24178) (#25647)

    * Remove duplicated itemgetter example
    * Add spaces
    (cherry picked from commit 743e2ba)
    
    Co-authored-by: Andre Delfino <adelfino@gmail.com>
    miss-islington and andresdelfino committed Apr 27, 2021

Commits on Apr 26, 2021

  1. Use the zero argument form of super() in examples for Python3 docs. (G…

    …H-22314) (GH-25639)
    
    (cherry picked from commit 52cd6d5)
    
    Co-authored-by: Andre Delfino <adelfino@gmail.com>
    miss-islington and andresdelfino committed Apr 26, 2021
  2. [3.8] bpo-28577: Special case added to IP v4 and v6 hosts for /32 and…

    … /128 networks (GH-18757) (#25536)
    
    The `.hosts()` method now returns the single address present in a /32 or /128 network..
    (cherry picked from commit 8e9c47a)
    
    Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
    JamoBox committed Apr 26, 2021
  3. Fix thread locks in zlib module may go wrong in rare case (#22132)

    Setting `next_in` before acquiring the thread lock may mix up compress/decompress state in other threads.
    animalize committed Apr 26, 2021
  4. bpo-41661: Document os.path.relpath() exception on Windows with diffe…

    …rent drives (GH-25346) (#25367)
    
    (cherry picked from commit 67c0b3d)
    
    Co-authored-by: Zackery Spytz <zspytz@gmail.com>
    miss-islington and ZackerySpytz committed Apr 26, 2021
  5. bpo-17305: Link to the third-party idna package. (GH-25208) (#25211)

    So long as we don't have idna2008 in the standard library, we should at least point people to the third-party solution.
    (cherry picked from commit 1d023e3)
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    miss-islington and gpshead committed Apr 26, 2021
  6. [3.8] bpo-34463: Make python tracebacks identical to C tracebacks for (

    …#23899)
    
    * [3.8] bpo-34463: Make python tracebacks identical to C tracebacks for
    SyntaxErrors without a lineno (GH-23427)
    
    (cherry picked from commit 069560b)
    
    Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
    
    * 📜🤖 Added by blurb_it.
    
    * added missing newline in test
    
    Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
    iritkatriel and blurb-it committed Apr 26, 2021
  7. bpo-42924: Fix incorrect copy in bytearray_repeat (GH-24208) (#24212)

    Before, using the * operator to repeat a bytearray would copy data from the start of
    the internal buffer (ob_bytes) and not from the start of the actual data (ob_start).
    (cherry picked from commit 61d8c54)
    
    Co-authored-by: Tobias Holl <TobiasHoll@users.noreply.github.com>
    miss-islington and TobiasHoll committed Apr 26, 2021
Older