Skip to content
Permalink
Branch: 3.8
Commits on Jan 30, 2020
  1. bpo-39493: Fix definition of IO.closed in typing.py (GH-18265)

    miss-islington and hauntsaninja committed Jan 30, 2020
    (cherry picked from commit 2e6569b)
    
    Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
Commits on Jan 29, 2020
  1. bpo-39485: fix corner-case in method-detection of mock (GH-18255)

    miss-islington and cfbolz committed Jan 29, 2020
    Replace check for whether something is a method in the mock module. The
    previous version fails on PyPy, because there no method wrappers exist
    (everything looks like a regular Python-defined function). Thus the
    isinstance(getattr(result, '__get__', None), MethodWrapperTypes) check
    returns True for any descriptor, not just methods.
    
    This condition could also return erroneously True in CPython for
    C-defined descriptors.
    
    Instead to decide whether something is a method, just check directly
    whether it's a function defined on the class. This passes all tests on
    CPython and fixes the bug on PyPy.
    (cherry picked from commit a327677)
    
    Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
    
    Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
  2. bpo-39460: Fix test_zipfile.test_add_file_after_2107() (GH-18247)

    miss-islington and vstinner committed Jan 29, 2020
    XFS filesystem is limited to 32-bit timestamp, but the utimensat()
    syscall doesn't fail. Moreover, there is a VFS bug which returns
    a cached timestamp which is different than the value on disk.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1795576
    https://bugs.python.org/issue39460GH-msg360952
    (cherry picked from commit 3cb49b6)
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
  3. Doc: Fix external links to functional programming tutorial. (GH-18249)

    miss-islington and JulienPalard committed Jan 29, 2020
    (cherry picked from commit 35eac45)
    
    Co-authored-by: Julien Palard <julien@palard.fr>
  4. bpo-39153: Clarify C API *SetItem refcounting semantics (GH-18220)

    miss-islington and nanjekyejoannah committed Jan 29, 2020
    Some of the *SetItem methods in the C API steal a reference to the
    given value. This annotates the better behaved ones to assure the
    reader that these are not the ones with the inconsistent behaviour.
    
    * 📜🤖 Added by blurb_it.
    
    * make docs consistent with signature
    
    Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
    (cherry picked from commit e1e8000)
    
    Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
Commits on Jan 28, 2020
  1. bpo-39439: Fix multiprocessing spawn path in a venv on Windows (GH-18158

    miss-islington and ameily committed Jan 28, 2020
    )
    
    (cherry picked from commit 0be3246)
    
    Co-authored-by: Adam Meily <ameily@users.noreply.github.com>
  2. bpo-39287: Doc: Add UTF-8 mode section in using/windows. (GH-17935)

    miss-islington and methane committed Jan 28, 2020
    Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
    (cherry picked from commit 148610d)
    
    Co-authored-by: Inada Naoki <songofacandy@gmail.com>
  3. bpo-39393: Misleading error message on dependent DLL resolution failu…

    miss-islington and ZackerySpytz committed Jan 28, 2020
    …re (GH-18093)
    
    (cherry picked from commit 13c1c35)
    
    Co-authored-by: Zackery Spytz <zspytz@gmail.com>
  4. bpo-38883: Don't use POSIX `$HOME` in `pathlib.Path.home/expanduser` …

    miss-islington and lazka committed Jan 28, 2020
    …on Windows (GH-17961)
    
    In bpo-36264 os.path.expanduser was changed to ignore HOME on Windows.
    
    Path.expanduser/home still honored HOME despite being documented as behaving the same
    as os.path.expanduser. This makes them also ignore HOME so that both implementations
    behave the same way again.
    (cherry picked from commit c45a2aa)
    
    Co-authored-by: Christoph Reiter <reiter.christoph@gmail.com>
  5. bpo-36018: Minor fixes to the NormalDist() examples and recipes. (GH-…

    miss-islington and rhettinger committed Jan 28, 2020
    …18226) (GH-18227)
    
    * Change the source for the SAT data to a primary source.
    * Fix typo in the standard deviation
    * Clarify that the binomial probabalities are just for the Python room.
    (cherry picked from commit 01bf219)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Commits on Jan 27, 2020
  1. bpo-39392: Turtle overlap fill depends on OS (GH-18223)

    miss-islington and terryjreedy committed Jan 27, 2020
    Whether or not overlap regions for self-intersecting polygons
    or multiple shapes are filled depends on the operating system graphics,
    typeof overlap, and number of overlaps.
    (cherry picked from commit 2824c45)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
  2. [3.8] bpo-39390 shutil: fix argument types for ignore callback (GH-18122

    mbarkhau authored and giampaolo committed Jan 27, 2020
    )
  3. bpo-30780: Add IDLE configdialog tests (GH-3592)

    miss-islington and csabella committed Jan 27, 2020
    Expose dialog buttons to test code and complete their test coverage.
    Complete test coverage for highlights and keys tabs.
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    (cherry picked from commit dd023ad)
    
    Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
  4. Ignore NEWS snippets in code coverage stats (GH-18194)

    miss-islington and ncoghlan committed Jan 27, 2020
    (cherry picked from commit 7023288)
    
    Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
Commits on Jan 26, 2020
  1. [3.8] bpo-39082: Allow AsyncMock to correctly patch static/class meth…

    mkokotovich authored and cjw296 committed Jan 26, 2020
    …ods (GH-18190)
    
    (cherry picked from commit 62865f4)
    
    Co-authored-by: Matthew Kokotovich <mkokotovich@gmail.com>
Commits on Jan 25, 2020
  1. bpo-39234: Doc: `enum.auto()` incrementation value not specified. (GH…

    2 people authored and ned-deily committed Jan 25, 2020
    …-17872) (GH-17875)
    
    (cherry picked from commit 2e9012a)
    
    Co-authored-by: YoSTEALTH <35307184+YoSTEALTH@users.noreply.github.com>
  2. bpo-36654: Add examples for using tokenize module programmatically (G…

    2 people authored and berkerpeksag committed Jan 25, 2020
    …H-18187)
    
    (cherry picked from commit 4b09dc7)
    
    Co-authored-by: Windson yang <wiwindson@outlook.com>
  3. bpo-15243: Document __prepare__ as classmethod (GH-17124)

    2 people authored and berkerpeksag committed Jan 25, 2020
    (cherry picked from commit 7de6174)
    
    Co-authored-by: alclarks <57201106+alclarks@users.noreply.github.com>
  4. Update 3.8.rst (GH-18173) (#18182)

    2 people authored and csabella committed Jan 25, 2020
    Fixed the name of the contributor (@selik).
    (cherry picked from commit 9bfb4a7)
    
    Co-authored-by: fireattack <human.peng@gmail.com>
  5. bpo-38473: Handle autospecced functions and methods used with attach_…

    miss-islington and tirkarthi committed Jan 25, 2020
    …mock (GH-16784) (GH-18167)
    
    If an autospecced object is attached using attach_mock the
    child would be a function with mock object as attribute from
    which signature has to be derived.
    
    (cherry picked from commit 66b00a9)
    
    Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
  6. bpo-39388: IDLE: Fix bug when cancelling out of configdialog (GH-18068)

    miss-islington and csabella committed Jan 25, 2020
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    (cherry picked from commit d0d9fa8)
    
    Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Commits on Jan 24, 2020
  1. bpo-39430: Fix race condition in lazy imports in tarfile. (GH-18161)

    miss-islington and serhiy-storchaka committed Jan 24, 2020
    Use `from ... import ...` to ensure module is fully loaded before accessing its attributes.
    (cherry picked from commit 9017e0b)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
  2. Improve test coverage for AsyncMock. (GH-17906)

    miss-islington and tirkarthi committed Jan 24, 2020
    * Add test for nested async decorator patch.
    * Add test for side_effect and wraps with a function.
    * Add test for side_effect with an exception in the iterable.
    (cherry picked from commit 54f743e)
    
    Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
  3. bpo-39426: Fix outdated default and highest protocols in docs (GH-18154)

    miss-islington and mdickinson committed Jan 24, 2020
    Some portions of the pickle documentation hadn't been updated for the pickle protocol changes in Python 3.8 (new protocol 5, default protocol 4). This PR fixes those docs.
    
    https://bugs.python.org/issue39426
    (cherry picked from commit e9652e8)
    
    Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
Commits on Jan 23, 2020
  1. [3.8] bpo-35182: fix communicate() crash after child closes its pipes (

    alpire authored and miss-islington committed Jan 23, 2020
    …GH-18117) (GH-18148)
    
    When communicate() is called in a loop, it crashes when the child process
    has already closed any piped standard stream, but still continues to be running
    
    Co-authored-by: Andriy Maletsky <andriy.maletsky@gmail.com>.
    (cherry picked from commit d3ae95e)
    
    Co-authored-by: Alex Rebert <alex@forallsecure.com>
    
    
    
    
    
    https://bugs.python.org/issue35182
  2. bpo-39431: Also mention nonlocal in assignment quirk (GH-17375)

    miss-islington and shanavas786 committed Jan 23, 2020
    (cherry picked from commit 7142df5)
    
    Co-authored-by: Shanavas M <shanavas.m2@gmail.com>
  3. bpo-39421: Fix posible crash in heapq with custom comparison operators (

    miss-islington and pablogsal committed Jan 23, 2020
    GH-18118)
    
    * bpo-39421: Fix posible crash in heapq with custom comparison operators
    
    * fixup! bpo-39421: Fix posible crash in heapq with custom comparison operators
    
    * fixup! fixup! bpo-39421: Fix posible crash in heapq with custom comparison operators
    (cherry picked from commit 79f89e6)
    
    Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
  4. bpo-32989: IDLE - remove unneeded parameter (GH-18138)

    miss-islington and terryjreedy committed Jan 23, 2020
    IDLE does not pass a non-default _synchre in any of its calls to
    pyparse.find_good_parse_start.
    (cherry picked from commit f9e07e1)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
  5. bpo-39050: The Help button in IDLE's config menu works again (GH-17611)

    miss-islington and ZackerySpytz committed Jan 23, 2020
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    (cherry picked from commit 2e43b64)
    
    Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Commits on Jan 22, 2020
  1. bpo-39425: Fix list.count performance regression (GH-18119) (GH-18120)

    2 people authored and pablogsal committed Jan 22, 2020
    https://bugs.python.org/issue39425
    
    Automerge-Triggered-By: @pablogsal
    (cherry picked from commit 14d80d0)
    
    Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
    
    Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
  2. bpo-39413: os.unsetenv() is not available on Windows (GH-18108)

    vstinner committed Jan 22, 2020
    Update os.unsetenv() documentation: it is not available on Windows.
  3. closes bpo-39415: Remove unused codes from longobject.c complexobject…

    miss-islington and corona10 committed Jan 22, 2020
    ….c floatobject.c. (GH-18105)
    
    (cherry picked from commit 0d5eac8)
    
    Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Commits on Jan 21, 2020
  1. PyLong_AsLongLong() docs should say 'long long' (GH-18082) (GH-18110)

    2 people authored and mdickinson committed Jan 21, 2020
    (cherry picked from commit 47be7d0)
    
    Co-authored-by: Keith Erskine <toastie604@gmail.com>
    
    Co-authored-by: Keith Erskine <toastie604@gmail.com>
Older
You can’t perform that action at this time.