Skip to content
Permalink
Branch: 3.7
Commits on Feb 18, 2020
  1. bpo-39663: IDLE: Add additional tests for pyparse (GH-18536)

    miss-islington and csabella committed Feb 18, 2020
    Test when find_good_parse_start should return 0.
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    (cherry picked from commit ffda25f)
    
    Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Commits on Feb 17, 2020
  1. [3.8] bpo-39453: Fix contains method of list to hold strong references (

    miss-islington and corona10 committed Feb 17, 2020
    GH-18204)
    
    (cherry picked from commit f64abd1)
    
    Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Commits on Feb 16, 2020
  1. Revert "bpo-27657: Fix urlparse() with numeric paths (GH-661)" (#18526)

    orsenthil committed Feb 16, 2020
    This reverts commit 82b5f6b.
    
    The change broke the backwards compatibility of parsing behavior in a
    patch release of Python (3.7.6). A decision was taken to revert this
    patch in 3.7.7.
    
    In https://bugs.python.org/issue27657 it was decided that the previous
    behavior like
    
    >>> urlparse('localhost:8080')
    ParseResult(scheme='', netloc='', path='localhost:8080', params='', query='', fragment='')
    
    >>> urlparse('undefined:8080')
    ParseResult(scheme='', netloc='', path='undefined:8080', params='', query='', fragment='')
    
    needs to be preserved in patch releases as number of users rely upon it.
    
    Explicitly mention the releases involved with the revert in NEWS.
    Adopt the wording suggested by @ned-deily.
Commits on Feb 14, 2020
  1. bpo-39545: Document changes in the support of await in f-strings. (GH…

    miss-islington and serhiy-storchaka committed Feb 14, 2020
    …-18456)
    
    https://bugs.python.org/issue39545
    (cherry picked from commit f632736)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Commits on Feb 13, 2020
  1. bpo-39606: allow closing async generators that are already closed (GH…

    njsmith committed Feb 13, 2020
    …-18475) (GH-18502)
    
    The fix for [bpo-39386](https://bugs.python.org/issue39386) attempted to make it so you couldn't reuse a
    agen.aclose() coroutine object. It accidentally also prevented you
    from calling aclose() at all on an async generator that was already
    closed or exhausted. This commit fixes it so we're only blocking the
    actually illegal cases, while allowing the legal cases.
    
    The new tests failed before this patch. Also confirmed that this fixes
    the test failures we were seeing in Trio with Python dev builds:
      python-trio/trio#1396
    
    https://bugs.python.org/issue39606
    (cherry picked from commit 925dc7f)
Commits on Feb 12, 2020
  1. bpo-21016: pydoc and trace use sysconfig (GH-18476)

    miss-islington and vstinner committed Feb 12, 2020
    bpo-21016, bpo-1294959: The pydoc and trace modules now use the
    sysconfig module to get the path to the Python standard library, to
    support uncommon installation path like /usr/lib64/python3.9/ on
    Fedora.
    
    Co-Authored-By: Jan Matějek <jmatejek@suse.com>
    (cherry picked from commit 4fac7ed)
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
  2. docs: macos - change "versiona" to "versions" (GH-18467) (GH-18470)

    miss-islington and RandyMcMillan committed Feb 12, 2020
    (cherry picked from commit 029e840)
    
    Co-authored-by: @RandyMcMillan <randy.lee.mcmillan@gmail.com>
Commits on Feb 11, 2020
  1. bpo-38374: Remove weakref.ReferenceError from docs (GH-18452)

    miss-islington and rogerhurwitz committed Feb 11, 2020
    Reflecting changes to the code, removed weakref.ReferenceError from weakref.rst and exceptions.rst.
    
    Issue submitter provided evidence that the `weakref.ReferenceError` alias for `ReferenceError` was removed from the code in 2007.  Working with @gvanrossum at PyCascades CPython sprint we looked at the code and confirmed that `weakref.ReferenceError` was no longer in `weakref.py`.
    
    Based on that analysis I removed references `weakref.ReferenceError` from the two documents where it was still being referenced: `weakref.rst` and `exceptions.rst`.
    
    https://bugs.python.org/issue38374
    (cherry picked from commit 4eb9f43)
    
    Co-authored-by: Roger Hurwitz <rogerhurwitz@gmail.com>
  2. bpo-39600: Adjust code, add idlelib/NEWS item (GH-18449)

    miss-islington and terryjreedy committed Feb 11, 2020
    Complete previous patch.
    (cherry picked from commit 96ce227)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Commits on Feb 10, 2020
  1. bpo-13826: Clarify Popen constructor example (GH-18438)

    miss-islington and tdsmith committed Feb 10, 2020
    Clarifies that the use of `shlex.split` is more instructive than
    normative, and provides a simpler example.
    
    https://bugs.python.org/issue13826
    (cherry picked from commit 95d024d)
    
    Co-authored-by: Tim D. Smith <github@tim-smith.us>
  2. bpo-39594: Fix typo in os.times documentation (GH-18443)

    miss-islington and rogerhurwitz committed Feb 10, 2020
    There was an extra space in the url markup, causing the documentation not rendered properly.
    
    https://bugs.python.org/issue39594
    (cherry picked from commit 37c55b2)
    
    Co-authored-by: Roger Hurwitz <rogerhurwitz@gmail.com>
  3. Improve grammar in the import system reference documentation (GH-18209)

    miss-islington and Bonifacio2 committed Feb 10, 2020
    Replaced the period with a comma.
    
    Automerge-Triggered-By: @Mariatta
    (cherry picked from commit d47d0c8)
    
    Co-authored-by: Bonifacio de Oliveira <bonifacio.segundo@gmail.com>
  4. bpo-39600, IDLE: Remove duplicated font names (GH-18430)

    miss-islington and vstinner committed Feb 10, 2020
    In the font configuration window, remove duplicated font names.
    (cherry picked from commit ed335cf)
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
  5. [3.7] bpo-3950: Fix docs for default locale used by gettext to match …

    miss-islington committed Feb 10, 2020
    …implementation (GH-18435) (GH-18439)
    
    documentation for default locale directory Doc/library/gettext.rst changed to match gettext implementation line 63.
    (cherry picked from commit d68e0a8)
    
    
    Co-authored-by: Carl <Carl-Ty@users.noreply.github.com>
    
    
    https://bugs.python.org/issue3950
    
    
    
    Automerge-Triggered-By: @gvanrossum
Commits on Feb 6, 2020
  1. bpo-39534: Doc: Clarify return in finally (GH-18324)

    miss-islington and JulienPalard committed Feb 6, 2020
    (cherry picked from commit 446463f)
    
    Co-authored-by: Julien Palard <julien@palard.fr>
  2. bpo-39274: Ensure Fraction.__bool__() returns a bool (GH-18017)

    miss-islington and seberg committed Feb 6, 2020
    Some numerator types used (specifically NumPy) decides to not
    return a Python boolean for the "a != b" operation. Using the equivalent
    call to bool() guarantees a bool return also for such types.
    (cherry picked from commit 427c84f)
    
    Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
Commits on Feb 5, 2020
  1. bpo-39185 Add the d[etailed] and q[uiet] verbosity levels for msbuild (

    miss-islington and tonybaloney committed Feb 5, 2020
    …GH-17791)
    
    (cherry picked from commit 89ae20b)
    
    Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
Commits on Feb 4, 2020
  1. closes bpo-39510: Fix use-after-free in BufferedReader.readinto() (GH…

    miss-islington and phi-gamma committed Feb 4, 2020
    …-18295)
    
    When called on a closed object, readinto() segfaults on account
    of a write to a freed buffer:
    
        ==220553== Process terminating with default action of signal 11 (SIGSEGV): dumping core
        ==220553==  Access not within mapped region at address 0x2A
        ==220553==    at 0x48408A0: memmove (vg_replace_strmem.c:1272)
        ==220553==    by 0x58DB0C: _buffered_readinto_generic (bufferedio.c:972)
        ==220553==    by 0x58DCBA: _io__Buffered_readinto_impl (bufferedio.c:1053)
        ==220553==    by 0x58DCBA: _io__Buffered_readinto (bufferedio.c.h:253)
    
    Reproducer:
    
        reader = open ("/dev/zero", "rb")
        _void  = reader.read (42)
        reader.close ()
        reader.readinto (bytearray (42)) GH-GH-GH- BANG!
    
    The problem exists since 2012 when commit dc46945 added code
    to free the read buffer on close().
    
    Signed-off-by: Philipp Gesang <philipp.gesang@intra2net.com>
    (cherry picked from commit cb1c074)
    
    Co-authored-by: Philipp Gesang <phg@phi-gamma.net>
  2. Fixes in sorting descriptions (GH-18317)

    miss-islington and pochmann committed Feb 4, 2020
    Improvements in listsort.txt and a comment in sortperf.py.
    
    Automerge-Triggered-By: @csabella
    (cherry picked from commit 24e5ad4)
    
    Co-authored-by: Stefan Pochmann <stefan.pochmann@gmail.com>
Commits on Feb 3, 2020
  1. fixes typos in http.client documentation (GH-18300)

    miss-islington and jameshcorbett committed Feb 3, 2020
    (cherry picked from commit b94737a)
    
    Co-authored-by: James Corbett <james.h.corbett@gmail.com>
  2. bpo-39450 Stripped whitespace before parsing the docstring in TestCas…

    miss-islington and scirelli committed Feb 3, 2020
    …e.shortDescription (GH-18321)
    
    (cherry picked from commit 032de73)
    
    Co-authored-by: Steve Cirelli <scirelli+git@gmail.com>
Commits on Jan 31, 2020
  1. bpo-38792: Remove IDLE shell calltip before new prompt. (GH-17150)

    miss-islington and ZackerySpytz committed Jan 31, 2020
    Previously, a calltip might be left after SyntaxError, KeyboardInterrupt, or Shell Restart.
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    Co-authored-by: Tal Einat <taleinat+github@gmail.com>
    (cherry picked from commit bfdeaa3)
    
    Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Commits on Jan 30, 2020
  1. [3.7] bpo-39493: Fix definition of IO.closed in typing.py (GH-18273)

    3 people committed Jan 30, 2020
    * bpo-39493: Fix definition of IO.closed in typing.py (GH-18265)
    (cherry picked from commit 2e6569b)
    
    Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
    
    * Use @absractproperty
    
    Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
    Co-authored-by: Guido van Rossum <guido@python.org>
Commits on Jan 29, 2020
  1. bpo-39485: fix corner-case in method-detection of mock (GH-18256)

    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. 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>
Commits on Jan 28, 2020
  1. bpo-38092: Reduce overhead when using multiprocessing in a Windows vi…

    ameily authored and zooba committed Jan 28, 2020
    …rtual environment (GH-16098)
  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>
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. 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>
  3. 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 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-17876)
    
    (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-12947)
    
    (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. bpo-38473: Handle autospecced functions and methods used with attach_…

    miss-islington and tirkarthi committed Jan 25, 2020
    …mock (GH-16784) (#18166)
    
    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>
Older
You can’t perform that action at this time.