Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cpython bdw nogc #1

Open
wants to merge 534 commits into
base: main
Choose a base branch
from
Open

Cpython bdw nogc #1

wants to merge 534 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Jul 21, 2019

  1. Fix typo found by Min ho Kim (pythonGH-14879)

    (cherry picked from commit 8e3a738)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy authored Jul 21, 2019
    Configuration menu
    Copy the full SHA
    a8cac57 View commit details
    Browse the repository at this point in the history
  2. bpo-37627: Initialize IDLE Custom Run dialog with previous entries (p…

    …ythonGH-14870)
    
    Repeat the command line arguments most recently entered before so the user can edit them.
    (cherry picked from commit 35b87e6)
    
    Co-authored-by: Ngalim Siregar <ngalim.siregar@gmail.com>
    miss-islington and nsiregar authored Jul 21, 2019
    Configuration menu
    Copy the full SHA
    9325f40 View commit details
    Browse the repository at this point in the history
  3. bpo-37627: Add acknowledgment (pythonGH-14883)

    (cherry picked from commit 4214f1e)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy authored Jul 21, 2019
    Configuration menu
    Copy the full SHA
    52ee929 View commit details
    Browse the repository at this point in the history
  4. Add examples to elucidate the formulas (pythonGH-14898) (pythonGH-14899)

    (cherry picked from commit b530a44)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Jul 21, 2019
    Configuration menu
    Copy the full SHA
    0104841 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2019

  1. [3.8] Fix typos in docs, comments and test assert messages (pythonGH-…

    …14872). (python#14900)
    
    (cherry picked from commit 96e12d5)
    
    Co-authored-by: Min ho Kim <minho42@gmail.com>
    2 people authored and terryjreedy committed Jul 22, 2019
    Configuration menu
    Copy the full SHA
    24b5b36 View commit details
    Browse the repository at this point in the history
  2. bpo-21478: Record calls to parent when autospecced objects are used a…

    …s child with attach_mock (GH 14688) (pythonGH-14902)
    
    * Clear name and parent of mock in autospecced objects used with attach_mock
    
    * Add NEWS entry
    
    * Fix reversed order of comparison
    
    * Test child and standalone function calls
    
    * Use a helper function extracting mock to avoid code duplication and refactor tests.
    (cherry picked from commit 7397cda)
    
    Co-authored-by: Xtreak <tir.karthi@gmail.com>
    2 people authored and cjw296 committed Jul 22, 2019
    Configuration menu
    Copy the full SHA
    22fd679 View commit details
    Browse the repository at this point in the history
  3. Update logging cookbook to show multiple worker processes using the c…

    …oncurrent.futures module. (pythonGH-14905) (pythonGH-14906)
    
    (cherry picked from commit d309352)
    miss-islington authored and vsajip committed Jul 22, 2019
    Configuration menu
    Copy the full SHA
    5b39852 View commit details
    Browse the repository at this point in the history
  4. bpo-36044: Reduce number of unit tests run for PGO build (pythonGH-14702

    )
    
    Reduce the number of unit tests run for the PGO generation task.  This
    speeds up the task by a factor of about 15x.  Running the full unit test
    suite is slow.  This change may result in a slightly less optimized build
    since not as many code branches will be executed.  If you are willing to
    wait for the much slower build, the old behavior can be restored using
    './configure [..] PROFILE_TASK="-m test --pgo-extended"'.  We make no
    guarantees as to which PGO task set produces a faster build.  Users who
    care should run their own relevant benchmarks as results can depend on
    the environment, workload, and compiler tool chain.
    (cherry picked from commit 4e16a4a)
    
    Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
    miss-islington and nascheme authored Jul 22, 2019
    Configuration menu
    Copy the full SHA
    2406672 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2019

  1. bpo-33610: validate non-negative integer inputs in IDLE's config (pyt…

    …honGH-14822)
    
    (cherry picked from commit 1ebee37)
    
    Co-authored-by: Tal Einat <taleinat@gmail.com>
    miss-islington and taleinat authored Jul 23, 2019
    Configuration menu
    Copy the full SHA
    5dab5e7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bf8e82f View commit details
    Browse the repository at this point in the history
  3. bpo-17535: IDLE editor line numbers (pythonGH-14030)

    (cherry picked from commit 7123ea0)
    
    Co-authored-by: Tal Einat <taleinat@gmail.com>
    miss-islington and taleinat authored Jul 23, 2019
    Configuration menu
    Copy the full SHA
    1da6a31 View commit details
    Browse the repository at this point in the history
  4. bpo-29446: IDLE -- add explicit imports (pythonGH-14919) (pythonGH-14920

    )
    
    Stop depending on tkinter import *.
    (cherry picked from commit c6fd6c8)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy committed Jul 23, 2019
    Configuration menu
    Copy the full SHA
    fc63d5a View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2019

  1. Only setup PGO tests when --pgo is enabled. (pythonGH-14927)

    (cherry picked from commit f0807ab)
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    miss-islington and gpshead authored Jul 24, 2019
    Configuration menu
    Copy the full SHA
    9f77cfc View commit details
    Browse the repository at this point in the history
  2. bpo-37667: Add regression test for regrtest. (pythonGH-14929)

    Verify that it appears to find roughly the right number of tests in the stdlib's testsuite.
    (cherry picked from commit e95ac20)
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    miss-islington and gpshead authored Jul 24, 2019
    Configuration menu
    Copy the full SHA
    9d54de1 View commit details
    Browse the repository at this point in the history
  3. [3.8] Touch up venv docs (pythonGH-14922) (pythonGH-14923)

    (cherry picked from commit 2f224a0)
    
    
    Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com>
    
    Automerge-Triggered-By: @brettcannon
    miss-islington authored Jul 24, 2019
    Configuration menu
    Copy the full SHA
    eb62274 View commit details
    Browse the repository at this point in the history
  4. [3.8] bpo-34160: explain how to deal with attribute order in ElementT…

    …ree (pythonGH-14867) (pythonGH-14935)
    
    * Fix the formatting in the documentation of the tostring() functions.
    
    * bpo-34160: Document that the tostring() and tostringlist() functions also preserve the attribute order now.
    
    * bpo-34160: Add an explanation of how users should deal with the attribute order.
    (cherry picked from commit a3697db)
    
    Co-authored-by: Stefan Behnel <stefan_ml@behnel.de>
    miss-islington and scoder committed Jul 24, 2019
    Configuration menu
    Copy the full SHA
    6367391 View commit details
    Browse the repository at this point in the history
  5. [3.8] bpo-37399: Correctly attach tail text to the last element/comme…

    …nt/pi (pythonGH-14856) (pythonGH-14936)
    
    * bpo-37399: Correctly attach tail text to the last element/comment/pi, even when comments or pis are discarded.
    Also fixes the insertion of PIs when "insert_pis=True" is configured for a TreeBuilder.
    scoder authored Jul 24, 2019
    Configuration menu
    Copy the full SHA
    bb69789 View commit details
    Browse the repository at this point in the history
  6. bpo-37664: Update bundled pip to 19.2.1 and setuptools to 41.0.1 (pyt…

    …honGH-14934)
    
    (cherry picked from commit 5380def)
    
    Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
    miss-islington and pradyunsg authored Jul 24, 2019
    Configuration menu
    Copy the full SHA
    0cdb21d View commit details
    Browse the repository at this point in the history
  7. bpo-37672: Switch Windows Store package to use pip.ini for user mode (p…

    …ythonGH-14939)
    
    (cherry picked from commit 123536f)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba authored Jul 24, 2019
    Configuration menu
    Copy the full SHA
    4b7ce10 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2019

  1. closes bpo-37675: Use pkgutil.iter_modules to find fixers in a packag…

    …e rather than listdir. (14942)
    
    (cherry picked from commit 93e8aa6)
    
    Co-authored-by: Benjamin Peterson <benjamin@python.org>
    miss-islington and benjaminp authored Jul 25, 2019
    Configuration menu
    Copy the full SHA
    69802f6 View commit details
    Browse the repository at this point in the history
  2. bpo-37502: handle default parameter for buffers argument of pickle.lo…

    …ads correctly (pythonGH-14593)
    
    (cherry picked from commit 898318b)
    
    Co-authored-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
    miss-islington and mmohrhard authored Jul 25, 2019
    Configuration menu
    Copy the full SHA
    25cb4fd View commit details
    Browse the repository at this point in the history
  3. Swap 'if' branches so content matches to condition in importlib examp…

    …le (pythonGH-14947)
    
    Prior to this change the guard on an 'elif' used an assignment expression whose value was used in a later 'else' block, causing some confusion for people.
    
    (Discussion on Twitter: https://twitter.com/brettsky/status/1153861041068994566.)
    
    Automerge-Triggered-By: @brettcannon
    (cherry picked from commit 544fa15)
    
    Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
    miss-islington and uranusjr authored Jul 25, 2019
    Configuration menu
    Copy the full SHA
    c594c27 View commit details
    Browse the repository at this point in the history
  4. bpo-37641 preserve relative file location in embeddable zip (pythonGH…

    …-14884)
    
    Previously, pyc files in the embeddable distribution reported their
    location as <build path>/<file stem>.py. This causes a little confusion
    when interpreting stack traces as the file is in a (almost certainly)
    incorrect location, and lacks the full relative path to Lib (e.g.
    email/mime/image.py will only show image.py).
    
    This change preserves the Lib relative location of the source file as a
    path so that stack traces are (hopefully) less misleading and more
    informative.
    
    Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
    (cherry picked from commit c4cda43)
    
    Co-authored-by: Bill Collins <bilbocollins@gmail.com>
    miss-islington and mrginglymus authored Jul 25, 2019
    Configuration menu
    Copy the full SHA
    0f21197 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2019

  1. bpo-37664: Update regex for ignoring cache warning on some buildbots (p…

    …ythonGH-14960)
    
    (cherry picked from commit b1eb20e)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba authored Jul 26, 2019
    Configuration menu
    Copy the full SHA
    c503390 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    886e66d View commit details
    Browse the repository at this point in the history
  3. bpo-32910: Remove implementation detail in venv documentation. (pytho…

    …nGH-14968)
    
    (cherry picked from commit 91e4957)
    
    Co-authored-by: Derek Keeler <d3r3kk@users.noreply.github.com>
    miss-islington and d3r3kk authored Jul 26, 2019
    Configuration menu
    Copy the full SHA
    06e8fc9 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2019

  1. bpo-17535: Increase line number horizontal padding by 2 pixels (pytho…

    …nGH-14959)
    
    (cherry picked from commit 46ebd4a)
    
    Co-authored-by: Tal Einat <taleinat@gmail.com>
    miss-islington and taleinat authored Jul 27, 2019
    Configuration menu
    Copy the full SHA
    f6ab188 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d38fa58 View commit details
    Browse the repository at this point in the history
  3. bpo-37628: Fix IDLE config sample sizes (pythonGH-14958)

    The boxes for the font and highlight samples are now constrained by the overall config dialog size.  They gain scrollbars when the when a large font size makes the samples too large for the box.
    (cherry picked from commit 3221a63)
    
    Co-authored-by: Tal Einat <taleinat+github@gmail.com>
    miss-islington and taleinat authored Jul 27, 2019
    Configuration menu
    Copy the full SHA
    1710193 View commit details
    Browse the repository at this point in the history
  4. bpo-37691: Let math.dist() accept sequences and iterables for coordin…

    …ates (pythonGH-14975) (pythonGH-14984)
    
    (cherry picked from commit 6b5f1b4)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Jul 27, 2019
    Configuration menu
    Copy the full SHA
    76821ba View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2019

  1. Remove trailing .0 from version changed note (pythonGH-14987)

    (cherry picked from commit 17a058e)
    
    Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
    miss-islington and ncoghlan authored Jul 28, 2019
    Configuration menu
    Copy the full SHA
    69372ee View commit details
    Browse the repository at this point in the history
  2. bpo-37692: Improve highlight config sample (pythonGH-14983)

    Use an example shell interaction in the sample and better labels for shell elements.
    (cherry picked from commit b222955)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy authored Jul 28, 2019
    Configuration menu
    Copy the full SHA
    c94386d View commit details
    Browse the repository at this point in the history
  3. bpo-37697: Sync with importlib_metadata 0.19 (pythonGH-14993) (python…

    …GH-14995)
    
    * bpo-37697: Sync with importlib_metadata 0.19
    
    * Run make regen-importlib
    
    * 📜🤖 Added by blurb_it.
    (cherry picked from commit 049460d)
    
    Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
    miss-islington and jaraco committed Jul 28, 2019
    Configuration menu
    Copy the full SHA
    f96334c View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2019

  1. bpo-36044: Avoid warnings in Windows PGO build and add lzma, bz2 and …

    …sqlite coverage (pythonGH-14985)
    
    https://bugs.python.org/issue36044
    
    Automerge-Triggered-By: @zooba
    (cherry picked from commit e1b9002)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba authored Jul 29, 2019
    Configuration menu
    Copy the full SHA
    36fd7b6 View commit details
    Browse the repository at this point in the history
  2. Python 3.8.0b3

    ambv committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    4336222 View commit details
    Browse the repository at this point in the history
  3. Fix SyntaxError indicator printing too many spaces for multi-line s…

    …trings (pythonGH-14433)
    
    (cherry picked from commit 5b94f35)
    
    Co-authored-by: Anthony Sottile <asottile@umich.edu>
    miss-islington and asottile authored Jul 29, 2019
    Configuration menu
    Copy the full SHA
    cf52bd0 View commit details
    Browse the repository at this point in the history
  4. bpo-37500: Make sure dead code does not generate bytecode but also de…

    …tect syntax errors (pythonGH-14612)
    
    https://bugs.python.org/issue37500
    
    Add a new field to the compiler structure that allows to be configured
    so no bytecode is emitted. In this way is possible to detect errors by
    walking the nodes while preserving optimizations.
    
    https://bugs.python.org/issue37500
    (cherry picked from commit 18c5f9d)
    
    Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
    miss-islington and pablogsal authored Jul 29, 2019
    Configuration menu
    Copy the full SHA
    9ea738e View commit details
    Browse the repository at this point in the history
  5. Add additional test for multi-line SyntaxError (pythonGH-15003)

    (cherry picked from commit 44212ec)
    
    Co-authored-by: Anthony Sottile <asottile@umich.edu>
    miss-islington and asottile authored Jul 29, 2019
    Configuration menu
    Copy the full SHA
    bf0b8a6 View commit details
    Browse the repository at this point in the history
  6. Fix publishing of Windows release (pythonGH-15006)

    (cherry picked from commit fe330fc)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba authored Jul 29, 2019
    Configuration menu
    Copy the full SHA
    494ed69 View commit details
    Browse the repository at this point in the history
  7. Merge tag 'v3.8.0b3' into 3.8

    Python 3.8.0b3
    ambv committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    6f53a68 View commit details
    Browse the repository at this point in the history
  8. Post v3.8.0b3

    ambv committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    adc0e31 View commit details
    Browse the repository at this point in the history
  9. bpo-37706: Disable 3 IDLE scrollbar tests on Mac. (pythonGH-15010)

    They pass with tk 8.5.9 (Azure) but fail with the 8.6.x we install.
    (cherry picked from commit e8874b8)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy authored Jul 29, 2019
    Configuration menu
    Copy the full SHA
    8513b90 View commit details
    Browse the repository at this point in the history
  10. bpo-34162: Update idlelib/news.txt. (pythonGH-15011)

    (cherry picked from commit f35c51d)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy authored Jul 29, 2019
    Configuration menu
    Copy the full SHA
    8b50e3e View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2019

  1. bpo-37587: Make json.loads faster for long strings (pythonGH-14752)

    When scanning the string, most characters are valid, so
    checking for invalid characters first means never needing
    to check the value of strict on valid strings, and only
    needing to check it on invalid characters when doing
    non-strict parsing of invalid strings.
    
    This provides a measurable reduction in per-character
    processing time (~11% in the pre-merge patch testing).
    (cherry picked from commit 8a758f5)
    
    Co-authored-by: Marco Paolini <mpaolini@users.noreply.github.com>
    miss-islington and mpaolini authored Jul 30, 2019
    Configuration menu
    Copy the full SHA
    9265a87 View commit details
    Browse the repository at this point in the history
  2. bpo-37707: Exclude expensive unit tests from PGO task (pythonGH-15009) (

    python#15024)
    
    Mark some individual tests to skip when --pgo is used.  The tests
    marked increase the PGO task time significantly and likely don't
    help improve optimization of the final executable.
    (cherry picked from commit 52a48e6)
    
    Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
    miss-islington and nascheme committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    382cb85 View commit details
    Browse the repository at this point in the history
  3. Don't skip pickle check_frame_opcodes() (pythonGH-15027)

    This looks like the only place that proto 4 framing gets exercised
    so leave it as part of the PGO task.
    (cherry picked from commit eca7ffc)
    
    Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
    miss-islington and nascheme committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    0f9efbc View commit details
    Browse the repository at this point in the history
  4. bpo-36084: Add threading Native ID information to What's New document…

    …ation (pythonGH-14845)
    
    (cherry picked from commit 84846b0)
    
    Co-authored-by: Jake Tesler <jake.tesler@gmail.com>
    miss-islington and jaketesler authored Jul 30, 2019
    Configuration menu
    Copy the full SHA
    7026737 View commit details
    Browse the repository at this point in the history
  5. Fix idlelib typos discovered by min ho, pr 15018. (pythonGH-15029)

    (cherry picked from commit 0acb646)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy authored Jul 30, 2019
    Configuration menu
    Copy the full SHA
    01c62c9 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2019

  1. bpo-33822: Add IDLE section of What's New 3.8 (pythonGH-15035)

    * bpo-33822: Add IDLE section of What's New 3.8
    
    * Fix role.
    (cherry picked from commit a72ca90)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy authored Jul 31, 2019
    Configuration menu
    Copy the full SHA
    c7236b4 View commit details
    Browse the repository at this point in the history
  2. bpo-34162: Add missing items to idlelib/NEWS.txt. (pythonGH-15034)

    (cherry picked from commit fff5cb2)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy authored Jul 31, 2019
    Configuration menu
    Copy the full SHA
    34de5dc View commit details
    Browse the repository at this point in the history
  3. bpo-33821: Update IDLE section of What's New 3.7 (pythonGH-15036)

    * bpo-33821: Update IDLE section of What's New 3.7
    
    * Fix roles.
    (cherry picked from commit 5982b72)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy authored Jul 31, 2019
    Configuration menu
    Copy the full SHA
    9e044dd View commit details
    Browse the repository at this point in the history
  4. IDLE: changelog correction and addition (pythonGH-15042)

    (cherry picked from commit d04f890)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy authored Jul 31, 2019
    Configuration menu
    Copy the full SHA
    8194a20 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9b9cac4 View commit details
    Browse the repository at this point in the history
  6. bpo-37085: Expose SocketCAN bcm_msg_head flags (pythonGH-13646)

    Expose the CAN_BCM SocketCAN constants used in the bcm_msg_head struct
    flags (provided by <linux/can/bcm.h>) under the socket library.
    
    This adds the following constants with a CAN_BCM prefix:
    
      * SETTIMER
      * STARTTIMER
      * TX_COUNTEVT
      * TX_ANNOUNCE
      * TX_CP_CAN_ID
      * RX_FILTER_ID
      * RX_CHECK_DLC
      * RX_NO_AUTOTIMER
      * RX_ANNOUNCE_RESUME
      * TX_RESET_MULTI_IDX
      * RX_RTR_FRAME
      * CAN_FD_FRAME
    
    The CAN_FD_FRAME flag was introduced in the 4.8 kernel, while the other
    ones were present since SocketCAN drivers were mainlined in 2.6.25. As
    such, it is probably unnecessary to guard against these constants being
    missing.
    (cherry picked from commit 31c4fd2)
    
    Co-authored-by: karl ding <karlding@users.noreply.github.com>
    miss-islington and karlding authored Jul 31, 2019
    Configuration menu
    Copy the full SHA
    d8b914a View commit details
    Browse the repository at this point in the history
  7. bpo-34101: Add doc of PyBuffer_GetPointer (pythonGH-14994)

    (cherry picked from commit 1b29af8)
    
    Co-authored-by: Hai Shi <shihai1992@gmail.com>
    miss-islington and shihai1991 authored Jul 31, 2019
    Configuration menu
    Copy the full SHA
    29a3a33 View commit details
    Browse the repository at this point in the history
  8. bpo-37723: Fix performance regression on regular expression parsing. (p…

    …ythonGH-15030)
    
    Improve performance of sre_parse._uniq function.
    (cherry picked from commit 9f55551)
    
    Co-authored-by: yannvgn <hi@yannvgn.io>
    miss-islington and yannvgn authored Jul 31, 2019
    Configuration menu
    Copy the full SHA
    77fcccb View commit details
    Browse the repository at this point in the history
  9. bpo-37695: Correct unget_wch error message. (pythonGH-14986)

    (cherry picked from commit c9345e3)
    
    Co-authored-by: Anthony Sottile <asottile@umich.edu>
    miss-islington and asottile authored Jul 31, 2019
    Configuration menu
    Copy the full SHA
    462f070 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2019

  1. bpo-37726: Prefer argparse over getopt in stdlib tutorial (pythonGH-1…

    …5052) (python#15070)
    
    (cherry picked from commit 2491134)
    
    Co-authored-by: mental <m3nta1@yahoo.com>
    2 people authored and Guido van Rossum committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    dcc53eb View commit details
    Browse the repository at this point in the history
  2. bpo-18049: Sync thread stack size to main thread size on macOS (pytho…

    …nGH-14748)
    
    This changeset increases the default size of the stack
    for threads on macOS to the size of the stack
    of the main thread and reenables the relevant
    recursion test.
    (cherry picked from commit 1a057ba)
    
    Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
    miss-islington and ronaldoussoren authored Aug 1, 2019
    Configuration menu
    Copy the full SHA
    8399641 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2019

  1. bpo-16970: Adding error message for invalid args (pythonGH-14844)

    BPO -16970: Adding error message for invalid args
    
    Applied the patch argparse-v2 patch issue 16970, ran patch check and the test suite, test_argparse with 0 errors
    
    https://bugs.python.org/issue16970
    (cherry picked from commit 4b3e975)
    
    Co-authored-by: tmblweed <tmblweed@users.noreply.github.com>
    miss-islington and tmblweed authored Aug 2, 2019
    Configuration menu
    Copy the full SHA
    1cc7032 View commit details
    Browse the repository at this point in the history
  2. bpo-36487: Make C-API docs clear about what the main interpreter is. (p…

    …ythongh-15080)
    
    (cherry picked from commit 854d0a4) (pythongh-12666)
    
    Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
    2 people authored and ericsnowcurrently committed Aug 2, 2019
    Configuration menu
    Copy the full SHA
    375f35b View commit details
    Browse the repository at this point in the history
  3. bpo-20523: pdb searches for .pdbrc in ~ instead of $HOME (pythonGH-11847

    )
    
    Previously pdb checked the $HOME environmental variable
    to find the user .pdbrc. If $HOME is not set, the user
    .pdbrc would not be found.
    
    Change pdb to use `os.path.expanduser('~')` to determine
    the user's home directory. Thus, if $HOME is not set (as
    in tox or on Windows), os.path.expanduser('~') falls
    back on other techniques for locating the user's home
    directory.
    
    This follows pip's implementation for loading .piprc.
    
    Co-authored-by: Dan Lidral-Porter <dlp@aperiodic.org>
    (cherry picked from commit 7ea9a85)
    
    Co-authored-by: Timothy Hopper <tdhopper@users.noreply.github.com>
    miss-islington and tdhopper authored Aug 2, 2019
    Configuration menu
    Copy the full SHA
    79af3bd View commit details
    Browse the repository at this point in the history
  4. bpo-30974: Change os.path.samefile docstring to match docs (pythonGH-…

    …7337)
    
    (cherry picked from commit 8e568ef)
    
    Co-authored-by: Timo Furrer <tuxtimo@gmail.com>
    miss-islington and timofurrer authored Aug 2, 2019
    Configuration menu
    Copy the full SHA
    6b83390 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2019

  1. Correct description of HTTP status code 308. (pythonGH-15098)

    Permanent redirect was explained as a temporary redirect.
    (cherry picked from commit 5c72bad)
    
    Co-authored-by: Florian Wendelborn <1133858+FlorianWendelborn@users.noreply.github.com>
    2 people authored and benjaminp committed Aug 3, 2019
    Configuration menu
    Copy the full SHA
    4e402d3 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2019

  1. bpo-37685: Fixed comparisons of datetime.timedelta and datetime.timez…

    …one. (pythonGH-14996)
    
    There was a discrepancy between the Python and C implementations.
    
    Add singletons ALWAYS_EQ, LARGEST and SMALLEST in test.support
    to test mixed type comparison.
    (cherry picked from commit 17e5264)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    miss-islington and serhiy-storchaka authored Aug 4, 2019
    Configuration menu
    Copy the full SHA
    dde944f View commit details
    Browse the repository at this point in the history
  2. bpo-37730: Fix usage of NotImplemented instead of NotImplementedError…

    … in docs. (pythonGH-15062)
    
    (cherry picked from commit ed5e8e0)
    
    Co-authored-by: David H <dheiberg@mozilla.com>
    miss-islington and David H authored Aug 4, 2019
    Configuration menu
    Copy the full SHA
    dd5f8ab View commit details
    Browse the repository at this point in the history
  3. bpo-37706: IDLE - fix sidebar code bug and drag tests (pythonGH-15103)

    Convert mouse y to line number in the sidebar rather than the text.
    (cherry picked from commit 86f1a18)
    
    Co-authored-by: Tal Einat <taleinat+github@gmail.com>
    miss-islington and taleinat authored Aug 4, 2019
    Configuration menu
    Copy the full SHA
    1d2b4db View commit details
    Browse the repository at this point in the history
  4. Try to get rid of some circular reference issues in finalizers by not

    registering finalizers if they aren't necessary.
    Yhg1s committed Aug 4, 2019
    Configuration menu
    Copy the full SHA
    e25a822 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e6f28bf View commit details
    Browse the repository at this point in the history
  6. bpo-36324: Update comments to include the target hash sums (pythonGH-…

    …15110) (pythonGH-15112)
    
    (cherry picked from commit 8183bb8)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 4, 2019
    Configuration menu
    Copy the full SHA
    d7d607c View commit details
    Browse the repository at this point in the history
  7. Try to get rid of even more finalization cycles by not registering a

    finalizer unless it's *really* needed: tp_finalize or tp_del are set, or
    tp_weaklistoffset is set and there are actual weakrefs registered for the
    object.
    Yhg1s committed Aug 4, 2019
    Configuration menu
    Copy the full SHA
    f0cdfc4 View commit details
    Browse the repository at this point in the history
  8. bpo-28292: Mark calendar.py helper functions as private. (pythonGH-15113

    ) (pythonGH-15116)
    
    (cherry picked from commit b1c8ec0)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 4, 2019
    Configuration menu
    Copy the full SHA
    0c16f6b View commit details
    Browse the repository at this point in the history
  9. Update itertools docs (pythonGH-15114) (pythonGH-15118)

    * Remove suggestion that is less relevant now that global lookups are much faster
    * Add link for installing the recipes
    (cherry picked from commit adf02b3)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 4, 2019
    Configuration menu
    Copy the full SHA
    fc6e3bc View commit details
    Browse the repository at this point in the history
  10. bpo-37748: Re-order the Run menu. (pythonGH-15115)

    Put the most common choice, Run Module, at the top.
    (cherry picked from commit 1407029)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy authored Aug 4, 2019
    Configuration menu
    Copy the full SHA
    9c95fc7 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2019

  1. bpo-36419: IDLE - Refactor autocompete and improve testing. (pythonGH…

    …-15121)
    
    (cherry picked from commit 1213123)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy authored Aug 5, 2019
    Configuration menu
    Copy the full SHA
    5349f8c View commit details
    Browse the repository at this point in the history
  2. bpo-37729: gc: write stats at once (pythonGH-15050)

    gc used several PySys_WriteStderr() calls to write stats.
    It caused stats mixed up when stderr is shared by multiple
    processes like this:
    
      gc: collecting generation 2...
      gc: objects in each generation: 0 0gc: collecting generation 2...
      gc: objects in each generation: 0 0 126077 126077
      gc: objects in permanent generation: 0
    
      gc: objects in permanent generation: 0
      gc: done, 112575 unreachable, 0 uncollectablegc: done, 112575 unreachable, 0 uncollectable, 0.2223s elapsed
      , 0.2344s elapsed
    (cherry picked from commit bf8162c)
    
    Co-authored-by: Inada Naoki <songofacandy@gmail.com>
    miss-islington and methane committed Aug 5, 2019
    Configuration menu
    Copy the full SHA
    e8ea348 View commit details
    Browse the repository at this point in the history
  3. bpo-37759: First round of major edits to Whatsnew 3.8 (pythonGH-15127) (

    pythonGH-15139)
    
    (cherry picked from commit 4f9ffc9)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 5, 2019
    Configuration menu
    Copy the full SHA
    26f91db View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2019

  1. Improve signal documentation (pythonGH-14274)

    * add a missing ``.. availability::`` reST explicit markup;
    * more consistent "see man page" sentences.
    (cherry picked from commit cfebfef)
    
    Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
    miss-islington and geryogam authored Aug 6, 2019
    Configuration menu
    Copy the full SHA
    ef0b819 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2019

  1. bpo-37646: Document that eval() cannot access nested scopes (pythonGH…

    …-15117) (pythonGH-15155)
    
    (cherry picked from commit 610a482)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 7, 2019
    Configuration menu
    Copy the full SHA
    9341dcb View commit details
    Browse the repository at this point in the history
  2. Make importlib.metadata a simple module (pythonGH-15153) (pythonGH-15154

    )
    
    (cherry picked from commit 3a5c433)
    
    Co-authored-by: Barry Warsaw <barry@python.org>
    2 people authored and jaraco committed Aug 7, 2019
    Configuration menu
    Copy the full SHA
    e780d2f View commit details
    Browse the repository at this point in the history
  3. bpo-37004: Documented asymmetry of string arguments in difflib.Sequen…

    …ceMatcher for ratio method (pythonGH-13482) (python#15157)
    
    https://bugs.python.org/issue37004
    (cherry picked from commit e9cbcd0)
    
    Co-authored-by: sweeneyde <36520290+sweeneyde@users.noreply.github.com>
    2 people authored and terryjreedy committed Aug 7, 2019
    Configuration menu
    Copy the full SHA
    1a3a40c View commit details
    Browse the repository at this point in the history
  4. bpo-37734: Fix use of registry values to launch Python from Microsoft…

    … Store app (pythonGH-15146)
    
    (cherry picked from commit 1fab9cb)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba authored Aug 7, 2019
    Configuration menu
    Copy the full SHA
    eab76c3 View commit details
    Browse the repository at this point in the history
  5. bpo-37778: Fixes the icons used for file associations to the Microsof…

    …t Store package (pythonGH-15150)
    
    (cherry picked from commit 87ce958)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba authored Aug 7, 2019
    Configuration menu
    Copy the full SHA
    dc6653f View commit details
    Browse the repository at this point in the history
  6. bpo-37734: Remove unnecessary brace escapes in PC/layout script (pyth…

    …onGH-15165)
    
    (cherry picked from commit 0378d98)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba authored Aug 7, 2019
    Configuration menu
    Copy the full SHA
    84d31bb View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2019

  1. bpo-35892: Add usage note to mode() (pythonGH-15122) (pythonGH-15176)

    (cherry picked from commit e43e7ed)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 8, 2019
    Configuration menu
    Copy the full SHA
    5925b7d View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2019

  1. [3.8] bpo-37795: Capture DeprecationWarnings in the test suite (pytho…

    …nGH-15184) (pythonGH-15188)
    
    (cherry picked from commit aa542c2)
    
    Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
    pablogsal authored Aug 9, 2019
    Configuration menu
    Copy the full SHA
    162d45c View commit details
    Browse the repository at this point in the history
  2. bpo-34155: Dont parse domains containing @ (pythonGH-13079)

    Before:
    
            >>> email.message_from_string('From: a@malicious.org@important.com', policy=email.policy.default)['from'].addresses
            (Address(display_name='', username='a', domain='malicious.org'),)
    
            >>> parseaddr('a@malicious.org@important.com')
            ('', 'a@malicious.org')
    
        After:
    
            >>> email.message_from_string('From: a@malicious.org@important.com', policy=email.policy.default)['from'].addresses
            (Address(display_name='', username='', domain=''),)
    
            >>> parseaddr('a@malicious.org@important.com')
            ('', 'a@')
    
    https://bugs.python.org/issue34155
    (cherry picked from commit 8cb65d1)
    
    Co-authored-by: jpic <jpic@users.noreply.github.com>
    miss-islington and jpic authored Aug 9, 2019
    Configuration menu
    Copy the full SHA
    2170774 View commit details
    Browse the repository at this point in the history
  3. [3.8] bpo-32912: Revert SyntaxWarning on invalid escape sequences (py…

    …thonGH-15142)
    
    * bpo-32912: Revert warnings for invalid escape sequences.
    
    DeprecationWarning will continue to be emitted for invalid escape sequences in string and bytes literals in 3.8 just as it did in 3.7.
    
    SyntaxWarning may be emitted in the future. But per mailing list discussion, we don't yet know when because we haven't settled on how to do so in a non-disruptive manner.
    serhiy-storchaka authored and gpshead committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    4c5b6ba View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2019

  1. Delete leftover clinic-generated file for C zipimport. (pythonGH-15174)

    (cherry picked from commit 51aac15)
    
    Co-authored-by: Greg Price <gnprice@gmail.com>
    miss-islington and gnprice authored Aug 10, 2019
    Configuration menu
    Copy the full SHA
    c61f9b5 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2019

  1. bpo-32178: Fix IndexError trying to parse 'To' header starting with '…

    …:'. (pythonGH-15044)
    
    This should fix the IndexError trying to retrieve `DisplayName.display_name` and `DisplayName.value` when the `value` is basically an empty string.
    
    https://bugs.python.org/issue32178
    (cherry picked from commit 09a1872)
    
    Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
    miss-islington and maxking authored Aug 11, 2019
    Configuration menu
    Copy the full SHA
    9500bbe View commit details
    Browse the repository at this point in the history
  2. bpo-37819: Add Fraction.as_integer_ratio() (pythonGH-15212) (pythonGH…

    …-15215)
    
    (cherry picked from commit f03b4c8)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 11, 2019
    Configuration menu
    Copy the full SHA
    5ba1cb0 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2019

  1. Fix docs for assert_called and assert_called_once (pythonGH-15219)

    (cherry picked from commit f9590ed)
    
    Co-authored-by: Ismail S <ismail-s@users.noreply.github.com>
    2 people authored and cjw296 committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    2f087e2 View commit details
    Browse the repository at this point in the history
  2. [3.8] bpo-37354: Make Powershell Activate.ps1 script static to allow …

    …for signing (pythonGH-14967)
    
    - Remove use of replacement text in the script
    - Make use of the pyvenv.cfg file for prompt value.
    - Add parameters to allow more flexibility
    - Make use of the current path, and assumptions about where env puts things, to compensate
    - Make the script a bit more 'idiomatic' Powershell
    - Add script documentation (Get-Help .\.venv\Scripts\Activate.ps1 shows PS help page now
    (cherry picked from commit 732775d)
    
    Co-authored-by: Derek Keeler <d3r3kk@users.noreply.github.com>
    2 people authored and zooba committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    0c64b57 View commit details
    Browse the repository at this point in the history
  3. bpo-37354: Sign Activate.ps1 for release (pythonGH-15235)

    (cherry picked from commit 3e34a25)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba authored Aug 12, 2019
    Configuration menu
    Copy the full SHA
    2b98d8e View commit details
    Browse the repository at this point in the history
  4. Remove versioned executables from non-APPX packages (pythonGH-15237)

    (cherry picked from commit c1aeb29)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba authored Aug 12, 2019
    Configuration menu
    Copy the full SHA
    a150fee View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2019

  1. Configuration menu
    Copy the full SHA
    9bedb8c View commit details
    Browse the repository at this point in the history
  2. bpo-37760: Mark all generated Unicode data headers as generated. (pyt…

    …honGH-15171)
    
    This causes them to be collapsed by default in diffs shown on GitHub.
    
    https://bugs.python.org/issue37760
    
    Automerge-Triggered-By: @benjaminp
    (cherry picked from commit 4e3dfcc)
    
    Co-authored-by: Greg Price <gnprice@gmail.com>
    miss-islington and gnprice authored Aug 13, 2019
    Configuration menu
    Copy the full SHA
    c2b9d9f View commit details
    Browse the repository at this point in the history
  3. bpo-37760: Mark all generated Unicode data headers as generated. (pyt…

    …honGH-15171)
    
    This causes them to be collapsed by default in diffs shown on GitHub.
    
    https://bugs.python.org/issue37760
    
    Automerge-Triggered-By: @benjaminp
    (cherry picked from commit 4e3dfcc)
    
    Co-authored-by: Greg Price <gnprice@gmail.com>
    miss-islington and gnprice authored Aug 13, 2019
    Configuration menu
    Copy the full SHA
    b02e148 View commit details
    Browse the repository at this point in the history
  4. bpo-37841: Remove python_uwp dependency on msvcp140.dll (pythonGH-15253)

    (cherry picked from commit b0dace3)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba authored Aug 13, 2019
    Configuration menu
    Copy the full SHA
    853eecc View commit details
    Browse the repository at this point in the history
  5. bpo-37583: Add err 113 to support.get_socket_conn_refused_errs() (pyt…

    …honGH-14729)
    
    Add error number 113 EHOSTUNREACH to get_socket_conn_refused_errs()
    of test.support.
    (cherry picked from commit 1ac2a83)
    
    Co-authored-by: Hai Shi <shihai1992@gmail.com>
    miss-islington and shihai1991 authored Aug 13, 2019
    Configuration menu
    Copy the full SHA
    ee98951 View commit details
    Browse the repository at this point in the history
  6. bpo-37814: Document the empty tuple type annotation syntax (pythonGH-…

    …15208)
    
    https://bugs.python.org/issue37814:
    
    > The empty tuple syntax in type annotations, `Tuple[()]`, is not obvious from the examples given in the documentation (I naively expected `Tuple[]` to work); it has been documented in PEP 484 and in mypy, but not in the documentation for the typing module.
    
    https://bugs.python.org/issue37814
    (cherry picked from commit 8a784af)
    
    Co-authored-by: Josh Holland <anowlcalledjosh@gmail.com>
    miss-islington and sersorrel authored Aug 13, 2019
    Configuration menu
    Copy the full SHA
    6ad902a View commit details
    Browse the repository at this point in the history
  7. bpo-25172: Raise appropriate ImportError msg when crypt module used o…

    …n Windows (pythonGH-15149)
    
    (cherry picked from commit f4e725f)
    
    Co-authored-by: shireenrao <shireenrao@gmail.com>
    miss-islington and shireenrao authored Aug 13, 2019
    Configuration menu
    Copy the full SHA
    7f7f747 View commit details
    Browse the repository at this point in the history
  8. bpo-25172: Add test for crypt ImportError on Windows (pythonGH-15252)

    (cherry picked from commit 243a73d)
    
    Co-authored-by: shireenrao <shireenrao@gmail.com>
    miss-islington and shireenrao authored Aug 13, 2019
    Configuration menu
    Copy the full SHA
    e7ec9e0 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2019

  1. bpo-37681: no_sanitize_thread support from GCC 5.1 (pythonGH-15096)

    Fix the following warning with GCC 4.8.5:
    Objects/obmalloc.c: warning: ‘no_sanitize_thread’ attribute directive ignored
    (cherry picked from commit 7e479c8)
    
    Co-authored-by: Hai Shi <shihai1992@gmail.com>
    miss-islington and shihai1991 authored Aug 14, 2019
    Configuration menu
    Copy the full SHA
    364a1d3 View commit details
    Browse the repository at this point in the history
  2. bpo-37738: Fix curses addch(str, color_pair) (pythonGH-15071)

    Fix the implementation of curses addch(str, color_pair): pass the
    color pair to setcchar(), instead of always passing 0 as the color
    pair.
    (cherry picked from commit 077af8c)
    
    Co-authored-by: Victor Stinner <vstinner@redhat.com>
    miss-islington and vstinner authored Aug 14, 2019
    Configuration menu
    Copy the full SHA
    9842269 View commit details
    Browse the repository at this point in the history
  3. [3.8] bpo-37531: Fix regrtest timeout for subprocesses (pythonGH-15072)…

    … (pythonGH-15279)
    
    * bpo-37531: Fix regrtest timeout for subprocesses (pythonGH-15072)
    
    Co-Authored-By: Joannah Nanjekye <joannah.nanjekye@ibm.com>
    (cherry picked from commit b0c8369)
    
    * bpo-36511: Fix failures in Windows ARM32 buildbot (pythonGH-15181)
    
    (cherry picked from commit ed70a34)
    
    Backport also minor fixes from master (fix typo, remove importlib import).
    vstinner authored Aug 14, 2019
    Configuration menu
    Copy the full SHA
    d85c567 View commit details
    Browse the repository at this point in the history
  4. bpo-37849: IDLE: fix completion window positioning above line (python…

    …GH-15267)
    
    (cherry picked from commit 71662dc)
    
    Co-authored-by: Tal Einat <taleinat+github@gmail.com>
    miss-islington and taleinat authored Aug 14, 2019
    Configuration menu
    Copy the full SHA
    557802d View commit details
    Browse the repository at this point in the history
  5. bpo-37811: FreeBSD, OSX: fix poll(2) usage in sockets module (pythonG…

    …H-15202)
    
    FreeBSD implementation of poll(2) restricts the timeout argument to be
    either zero, or positive, or equal to INFTIM (-1).
    
    Unless otherwise overridden, socket timeout defaults to -1. This value
    is then converted to milliseconds (-1000) and used as argument to the
    poll syscall. poll returns EINVAL (22), and the connection fails.
    
    This bug was discovered during the EINTR handling testing, and the
    reproduction code can be found in
    https://bugs.python.org/issue23618 (see connect_eintr.py,
    attached). On GNU/Linux, the example runs as expected.
    
    This change is trivial:
    If the supplied timeout value is negative, truncate it to -1.
    (cherry picked from commit 2814620)
    
    Co-authored-by: Artem Khramov <akhramov@pm.me>
    miss-islington and akhramov authored Aug 14, 2019
    Configuration menu
    Copy the full SHA
    123f6c4 View commit details
    Browse the repository at this point in the history
  6. bpo-21131: Fix faulthandler.register(chain=True) stack (pythonGH-15276)

    faulthandler now allocates a dedicated stack of SIGSTKSZ*2 bytes,
    instead of just SIGSTKSZ bytes. Calling the previous signal handler
    in faulthandler signal handler uses more than SIGSTKSZ bytes of stack
    memory on some platforms.
    (cherry picked from commit ac827ed)
    
    Co-authored-by: Victor Stinner <vstinner@redhat.com>
    miss-islington and vstinner authored Aug 14, 2019
    Configuration menu
    Copy the full SHA
    b8e6824 View commit details
    Browse the repository at this point in the history
  7. bpo-37775: Update compileall doc for invalidation_mode parameter (pyt…

    …honGH-15148)
    
    (cherry picked from commit 68e495d)
    
    Co-authored-by: Hai Shi <shihai1992@gmail.com>
    miss-islington and shihai1991 authored Aug 14, 2019
    Configuration menu
    Copy the full SHA
    dbe4c28 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2019

  1. [3.8] Replace usage of the obscure PEM_read_bio_X509_AUX with the mor…

    …e standard PEM_read_bio_X509 (pythonGH-15303) (pythonGH-15304)
    
    X509_AUX is an odd, note widely used, OpenSSL extension to the X509 file format. This function doesn't actually use any of the extra metadata that it parses, so just use the standard API.
    
    Automerge-Triggered-By: @tiran
    (cherry picked from commit 40dad95)
    
    
    Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
    
    Automerge-Triggered-By: @tiran
    miss-islington authored Aug 15, 2019
    Configuration menu
    Copy the full SHA
    f781283 View commit details
    Browse the repository at this point in the history
  2. Indent code inside if block. (pythonGH-15284)

    Without indendation, seems like strcpy line is parallel to `if` condition.
    (cherry picked from commit 69f37bc)
    
    Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
    miss-islington and hansrajdas authored Aug 15, 2019
    Configuration menu
    Copy the full SHA
    64db5aa View commit details
    Browse the repository at this point in the history
  3. bpo-37642: Update acceptable offsets in timezone (pythonGH-14878) (py…

    …thon#15227)
    
    This fixes an inconsistency between the Python and C implementations of
    the datetime module. The pure python version of the code was not
    accepting offsets greater than 23:59 but less than 24:00. This is an
    accidental legacy of the original implementation, which was put in place
    before tzinfo allowed sub-minute time zone offsets.
    
    pythonGH-14878
    
    (cherry picked from commit 92c7e30)
    pganssle authored Aug 15, 2019
    Configuration menu
    Copy the full SHA
    27b38b9 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2019

  1. bpo-37256: Wording in Request class docs (pythonGH-14792)

    * bpo-37256: Wording in Request class docs
    
    * 📜🤖 Added by blurb_it.
    
    * Update Misc/NEWS.d/next/Documentation/2019-07-16-14-48-12.bpo-37256.qJTrBb.rst
    
    Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
    (cherry picked from commit 38c7199)
    
    Co-authored-by: Ngalim Siregar <ngalim.siregar@gmail.com>
    miss-islington and nsiregar authored Aug 16, 2019
    Configuration menu
    Copy the full SHA
    f991912 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2019

  1. [3.8] fix link to time function from time_ns doc (pythonGH-15285) (py…

    …thonGH-15321)
    
    Because mod, func, class, etc all share one namespace, :func:time creates a link to the time module doc page rather than the time.time function.
    (cherry picked from commit 1b1d051)
    
    
    Co-authored-by: Éric Araujo <merwok@netwok.org>
    
    Automerge-Triggered-By: @merwok
    miss-islington authored Aug 17, 2019
    Configuration menu
    Copy the full SHA
    7309cca View commit details
    Browse the repository at this point in the history
  2. bpo-36266: Add module name in ImportError when DLL not found on Windo…

    …ws (pythonGH-15180)
    
    (cherry picked from commit 24fe460)
    
    Co-authored-by: shireenrao <shireenrao@gmail.com>
    miss-islington and shireenrao authored Aug 17, 2019
    Configuration menu
    Copy the full SHA
    786a4e1 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2019

  1. bpo-36502: Correct documentation of str.isspace() (pythonGH-15019) (p…

    …ythonGH-15296)
    
    The documented definition was much broader than the real one:
    there are tons of characters with general category "Other",
    and we don't (and shouldn't) treat most of them as whitespace.
    
    Rewrite the definition to agree with the comment on
    _PyUnicode_IsWhitespace, and with the logic in makeunicodedata.py,
    which is what generates that function and so ultimately governs.
    
    Add suitable breadcrumbs so that a reader who wants to pin down
    exactly what this definition means (what's a "bidirectional class"
    of "B"?) can do so.  The `unicodedata` module documentation is an
    appropriate central place for our references to Unicode's own copious
    documentation, so point there.
    
    Also add to the isspace() test a thorough check that the
    implementation agrees with the intended definition.
    gnprice authored and vstinner committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    8c1c426 View commit details
    Browse the repository at this point in the history
  2. Remove 'unstable' warning for Windows Store package in docs (pythonGH…

    …-15334)
    
    (cherry picked from commit cf9360e)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba authored Aug 19, 2019
    Configuration menu
    Copy the full SHA
    9aa0ab1 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2019

  1. bpo-37868: Improve is_dataclass for instances. (pythonGH-15325)

    (cherry picked from commit b0f4dab)
    
    Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
    miss-islington and ericvsmith authored Aug 20, 2019
    Configuration menu
    Copy the full SHA
    1271ee8 View commit details
    Browse the repository at this point in the history
  2. bpo-37732: Fix GCC warning in _PyObject_Malloc() (pythonGH-15333) (py…

    …thonGH-15342)
    
    pymalloc_alloc() now returns directly the pointer, return NULL on
    memory allocation error.
    
    allocate_from_new_pool() already uses NULL as marker for "allocation
    failed".
    
    (cherry picked from commit 18f8dcf)
    vstinner authored Aug 20, 2019
    Configuration menu
    Copy the full SHA
    30e5aff View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2019

  1. bpo-35518: Skip test that relies on a deceased network service. (pyth…

    …onGH-15349)
    
    If this service had thoroughly vanished, we could just ignore the
    test until someone gets around to either recreating such a service
    or redesigning the test to somehow work locally.  The
    `support.transient_internet` mechanism catches the failure to
    resolve the domain name, and skips the test.
    
    But in fact the domain snakebite.net does still exist, as do its
    nameservers -- and they can be quite slow to reply.  As a result
    this test can easily take 20-30s before it gets auto-skipped.
    
    So, skip the test explicitly up front.
    (cherry picked from commit 5b95a15)
    
    Co-authored-by: Greg Price <gnprice@gmail.com>
    miss-islington and gnprice authored Aug 21, 2019
    Configuration menu
    Copy the full SHA
    44f2c09 View commit details
    Browse the repository at this point in the history
  2. bpo-37823: Fix open() link in telnetlib doc (pythonGH-15281)

    Fixed wrong link to Telnet.open() method in telnetlib documentation.
    (cherry picked from commit e0b6117)
    
    Co-authored-by: Michael Anckaert <michael.anckaert@sinax.be>
    miss-islington and MichaelAnckaert authored Aug 21, 2019
    Configuration menu
    Copy the full SHA
    c777dec View commit details
    Browse the repository at this point in the history
  3. Update asyncio.ensure_future() documentation (pythonGH-15347) (python…

    …GH-15364)
    
    Added back mention that ensure_future actually scheduled obj. This documentation just mentions what ensure_future returns, so I did not realize that ensure_future also schedules obj.
    (cherry picked from commit 092911d)
    
    Co-authored-by: Roger Iyengar <ri@rogeriyengar.com>
    2 people authored and 1st1 committed Aug 21, 2019
    Configuration menu
    Copy the full SHA
    349d897 View commit details
    Browse the repository at this point in the history
  4. Fix difflib ? hint in diff output when dealing with tabs (pythonGH-…

    …15201)
    
    (cherry picked from commit e1c638d)
    
    Co-authored-by: Anthony Sottile <asottile@umich.edu>
    miss-islington and asottile authored Aug 21, 2019
    Configuration menu
    Copy the full SHA
    7e293f5 View commit details
    Browse the repository at this point in the history
  5. bpo-9949: Enable symlink traversal for ntpath.realpath (pythonGH-15287)

    (cherry picked from commit 75e0649)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba authored Aug 21, 2019
    Configuration menu
    Copy the full SHA
    c30c869 View commit details
    Browse the repository at this point in the history
  6. bpo-37834: Normalise handling of reparse points on Windows (pythonGH-…

    …15370)
    
    bpo-37834: Normalise handling of reparse points on Windows
    * ntpath.realpath() and nt.stat() will traverse all supported reparse points (previously was mixed)
    * nt.lstat() will let the OS traverse reparse points that are not name surrogates (previously would not traverse any reparse point)
    * nt.[l]stat() will only set S_IFLNK for symlinks (previous behaviour)
    * nt.readlink() will read destinations for symlinks and junction points only
    
    bpo-1311: os.path.exists('nul') now returns True on Windows
    * nt.stat('nul').st_mode is now S_IFCHR (previously was an error)
    zooba authored Aug 21, 2019
    Configuration menu
    Copy the full SHA
    9eb3d54 View commit details
    Browse the repository at this point in the history
  7. bpo-36311: Fixes decoding multibyte characters around chunk boundarie…

    …s and improves decoding performance (pythonGH-15083)
    
    (cherry picked from commit 7ebdda0)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba authored Aug 21, 2019
    Configuration menu
    Copy the full SHA
    f93c15a View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2019

  1. Configuration menu
    Copy the full SHA
    a50d2f7 View commit details
    Browse the repository at this point in the history
  2. bpo-37834: Fix test on Windows 7 (pythonGH-15377)

    (cherry picked from commit 374be59)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba authored Aug 22, 2019
    Configuration menu
    Copy the full SHA
    967d625 View commit details
    Browse the repository at this point in the history
  3. Add missing space to warning message (pythonGH-14915) (pythonGH-15379)

    This typo was introduced in pythonGH-13409 when changing the message text.
    (cherry picked from commit c4106af)
    
    Co-authored-by: Florian Bruhin <me@the-compiler.org>
    2 people authored and rhettinger committed Aug 22, 2019
    Configuration menu
    Copy the full SHA
    8ede967 View commit details
    Browse the repository at this point in the history
  4. bpo-27961: Remove leftovers from the times when long long wasn't requ…

    …ired (pythonGH-15388)
    
    (cherry picked from commit a38e9d1)
    
    Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
    miss-islington and sir-sigurd authored Aug 22, 2019
    Configuration menu
    Copy the full SHA
    2878f37 View commit details
    Browse the repository at this point in the history
  5. bpo-14050: Note that not all data can be sorted (pythonGH-15381) (pyt…

    …honGH-15395)
    
    (cherry picked from commit 4109263)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 22, 2019
    Configuration menu
    Copy the full SHA
    cb8de91 View commit details
    Browse the repository at this point in the history
  6. bpo-28556: Add a regression test to typing (pythonGH-15396)

    This adds a regression test for the issue found in the Python 2 backport, see python/typing#656
    
    https://bugs.python.org/issue28556
    (cherry picked from commit 8889627)
    
    Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
    miss-islington and ilevkivskyi authored Aug 22, 2019
    Configuration menu
    Copy the full SHA
    5fda09c View commit details
    Browse the repository at this point in the history
  7. bpo-30550: Clarify JSON ordering guarantees (pythonGH-15397) (pythonG…

    …H-15403)
    
    (cherry picked from commit 657008e)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 22, 2019
    Configuration menu
    Copy the full SHA
    4a40498 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2019

  1. bpo-12634: Clarify an awkward section of the tutorial (pythonGH-15406) (

    pythonGH-15409)
    
    (cherry picked from commit 483ae0c)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 23, 2019
    Configuration menu
    Copy the full SHA
    f6a7f5b View commit details
    Browse the repository at this point in the history
  2. bpo-30826: Improve control flow examples (pythonGH-15407) (pythonGH-1…

    …5410)
    
    (cherry picked from commit 6fcb6cf)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 23, 2019
    Configuration menu
    Copy the full SHA
    b6341e6 View commit details
    Browse the repository at this point in the history
  3. bpo-37915: Fix comparison between tzinfo objects and timezone objects (

    …pythonGH-15390)
    
    https://bugs.python.org/issue37915
    
    Automerge-Triggered-By: @pablogsal
    (cherry picked from commit 4be11c0)
    
    Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
    miss-islington and pablogsal authored Aug 23, 2019
    Configuration menu
    Copy the full SHA
    5c77730 View commit details
    Browse the repository at this point in the history
  4. Correct minor grammar mistake (pythonGH-15404)

    (cherry picked from commit d288b29)
    
    Co-authored-by: Andre Delfino <adelfino@gmail.com>
    miss-islington and andresdelfino authored Aug 23, 2019
    Configuration menu
    Copy the full SHA
    994925b View commit details
    Browse the repository at this point in the history
  5. bpo-37926: Fix PySys_SetArgvEx(0, NULL, 0) crash (pythonGH-15415) (py…

    …thonGH-15420)
    
    empty_argv is no longer static in Python 3.8, but it is declared in
    a temporary scope, whereas argv keeps a reference to it.
    empty_argv memory (allocated on the stack) is reused by
    make_sys_argv() code which is inlined when using gcc -O3.
    
    Define empty_argv in PySys_SetArgvEx() body, to ensure
    that it remains valid for the whole lifetime of
    the PySys_SetArgvEx() call.
    
    (cherry picked from commit c486825)
    vstinner authored Aug 23, 2019
    Configuration menu
    Copy the full SHA
    ca9ae94 View commit details
    Browse the repository at this point in the history
  6. Fix _PyTime_MIN/MAX values (pythonGH-15384) (pythonGH-15426)

    _PyTime_t type is defined as int64_t, and so min/max are INT64_MIN/INT64_MAX,
    not PY_LLONG_MIN/PY_LLONG_MAX.
    
    (cherry picked from commit 8e76c45)
    vstinner authored Aug 23, 2019
    Configuration menu
    Copy the full SHA
    944aa01 View commit details
    Browse the repository at this point in the history
  7. [3.8] Fix typo (inifite -> infinite) (pythonGH-15429)

    The same typo exists in the changelogs of 3.6 and 3.7.
    
    Automerge-Triggered-By: @Mariatta
    GeeTransit authored and miss-islington committed Aug 23, 2019
    Configuration menu
    Copy the full SHA
    fe64ba6 View commit details
    Browse the repository at this point in the history
  8. bpo-36763: Implement PyWideStringList_Insert() of PEP 587 (pythonGH-1…

    …5423)
    
    (cherry picked from commit 3842f29)
    
    Co-authored-by: Victor Stinner <vstinner@redhat.com>
    miss-islington and vstinner authored Aug 23, 2019
    Configuration menu
    Copy the full SHA
    a6427cb View commit details
    Browse the repository at this point in the history
  9. bpo-36763, doc: Add links in the new C API init doc (pythonGH-15433)

    (cherry picked from commit 1beb7c3)
    
    Co-authored-by: Victor Stinner <vstinner@redhat.com>
    miss-islington and vstinner authored Aug 23, 2019
    Configuration menu
    Copy the full SHA
    9cbdce3 View commit details
    Browse the repository at this point in the history
  10. bpo-26589: Add http status code 451 (pythonGH-15413) (pythonGH-15436)

    (cherry picked from commit 8f080b0)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 23, 2019
    Configuration menu
    Copy the full SHA
    761e5a7 View commit details
    Browse the repository at this point in the history
  11. bpo-37549: os.dup() fails for standard streams on Windows 7 (pythonGH…

    …-15389)
    
    (cherry picked from commit 5be6660)
    
    Co-authored-by: Zackery Spytz <zspytz@gmail.com>
    miss-islington and ZackerySpytz authored Aug 23, 2019
    Configuration menu
    Copy the full SHA
    3921d12 View commit details
    Browse the repository at this point in the history
  12. bpo-36763: PyConfig_Read() handles PySys_AddXOption() (pythonGH-15431) (

    pythonGH-15435)
    
    PyConfig_Read() is now responsible to handle early calls to
    PySys_AddXOption() and PySys_AddWarnOption().
    
    Options added by PySys_AddXOption() are now handled the same way than
    PyConfig.xoptions and command line -X options.
    
    For example, PySys_AddXOption(L"faulthandler") enables faulthandler
    as expected.
    
    (cherry picked from commit 120b707)
    vstinner authored Aug 23, 2019
    Configuration menu
    Copy the full SHA
    af84a88 View commit details
    Browse the repository at this point in the history
  13. bpo-37798: Add C fastpath for statistics.NormalDist.inv_cdf() (python…

    …GH-15266) (pythonGH-15441)
    
    (cherry picked from commit 0a18ee4)
    
    Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
    2 people authored and rhettinger committed Aug 23, 2019
    Configuration menu
    Copy the full SHA
    5779c53 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2019

  1. Fix funny typo in Doc/bugs. (pythonGH-15412)

    Fix typo in description of link to mozilla bug report writing guidelines.
    
    Though the URL is misleading, we're indeed trying to write bug _reports_, not to add bugs.
    
    Automerge-Triggered-By: @ned-deily
    (cherry picked from commit e17f201)
    
    Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com>
    miss-islington and awecx authored Aug 24, 2019
    Configuration menu
    Copy the full SHA
    7784d4b View commit details
    Browse the repository at this point in the history
  2. bpo-19119: Remove invalid test and rename a misnamed test (pythonGH-1…

    …5442) (pythonGH-15447)
    
    (cherry picked from commit 4101181)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 24, 2019
    Configuration menu
    Copy the full SHA
    ef3ccd7 View commit details
    Browse the repository at this point in the history
  3. bpo-29535: Remove promize about hash randomization of datetime object…

    …s. (pythonGH-15269)
    
    (cherry picked from commit e9c90aa)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    miss-islington and serhiy-storchaka authored Aug 24, 2019
    Configuration menu
    Copy the full SHA
    076d0b9 View commit details
    Browse the repository at this point in the history
  4. bpo-28269: Replace strcasecmp with system function _stricmp. (pythonG…

    …H-13095)
    
    (cherry picked from commit 05f2d84)
    
    Co-authored-by: Minmin Gong <gongminmin@msn.com>
    miss-islington and gongminmin authored Aug 24, 2019
    Configuration menu
    Copy the full SHA
    920ec4b View commit details
    Browse the repository at this point in the history
  5. [3.8] bpo-37830: Fix compilation of break and continue in finally. (p…

    …ythonGH-15320) (pythonGH-15456)
    
    Fix compilation of "break" and "continue" in the
    "finally" block when the corresponding "try" block
    contains "return" with a non-constant value.
    (cherry picked from commit ef61c52)
    serhiy-storchaka authored Aug 24, 2019
    Configuration menu
    Copy the full SHA
    ed146b5 View commit details
    Browse the repository at this point in the history
  6. bpo-37772: fix zipfile.Path.iterdir() outputs (pythonGH-15170) (pytho…

    …n#15461)
    
    * fix Path._add_implied_dirs to include all implied directories
    
    * fix Path._add_implied_dirs to include all implied directories
    
    * Optimize code by using sets instead of lists
    
    * 📜🤖 Added by blurb_it.
    
    * fix Path._add_implied_dirs to include all implied directories
    
    * Optimize code by using sets instead of lists
    
    * 📜🤖 Added by blurb_it.
    
    * Add tests to zipfile.Path.iterdir() fix
    
    * Update test for zipfile.Path.iterdir()
    
    * remove whitespace from test file
    
    * Rewrite NEWS blurb to describe the user-facing impact and avoid implementation details.
    
    * remove redundant [] within set comprehension
    
    * Update to use unique_everseen to maintain order and other suggestions in review
    
    * remove whitespace and add back add_dirs in tests
    
    * Add new standalone function parents using posixpath to get parents of a directory
    
    * removing whitespace (sorry)
    
    * Remove import pathlib from zipfile.py
    
    * Rewrite _parents as a slice on a generator of the ancestry of a path.
    
    * Remove check for '.' and '/', now that parents no longer returns those.
    
    * Separate calculation of implied dirs from adding those
    
    * Re-use _implied_dirs in tests for generating zipfile with dir entries.
    
    * Replace three fixtures (abcde, abcdef, abde) with one representative example alpharep.
    
    * Simplify implementation of _implied_dirs by collapsing the generation of parent directories for each name.
    (cherry picked from commit a4e2991)
    
    Co-authored-by: shireenrao <shireenrao@gmail.com>
    2 people authored and jaraco committed Aug 24, 2019
    Configuration menu
    Copy the full SHA
    c410f38 View commit details
    Browse the repository at this point in the history
  7. bpo-32118: Simplify docs for sequence comparison (pythonGH-15450) (py…

    …thon#15466)
    
    (cherry picked from commit edd2112)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 24, 2019
    Configuration menu
    Copy the full SHA
    0ad8568 View commit details
    Browse the repository at this point in the history
  8. bpo-37798: Test both Python and C versions in test_statistics.py (pyt…

    …honGH-15453) (pythonGH-15467)
    
    (cherry picked from commit 8ad22a4)
    
    Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
    2 people authored and rhettinger committed Aug 24, 2019
    Configuration menu
    Copy the full SHA
    d5a66bc View commit details
    Browse the repository at this point in the history
  9. bpo-14112: Allow beginners to explore shallowness in greater depth ;-) (

    pythonGH-15465) (pythonGH-15469)
    
    (cherry picked from commit 69ee87e)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 24, 2019
    Configuration menu
    Copy the full SHA
    a842494 View commit details
    Browse the repository at this point in the history
  10. [3.8] Clarify argument types in datetime docs. (pythonGH-15459) (pyth…

    …onGH-15472)
    
    "Arguments may be integers... " could be misunderstand as they also
    could be strings.
    
    New wording makes it clear that arguments have to be integers.
    
    modified:   Doc/library/datetime.rst
    
    
    
    Automerge-Triggered-By: @pganssle
    (cherry picked from commit c5218fc)
    
    
    Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
    
    Automerge-Triggered-By: @pganssle
    miss-islington authored Aug 24, 2019
    Configuration menu
    Copy the full SHA
    ffe43b2 View commit details
    Browse the repository at this point in the history
  11. Fix typo and rearrange words in IDLE news item (pythonGH-15471)

    Redo of pythonGH-15402 by GeeTransit and Kyle Stanley.
    (cherry picked from commit 0dfc025)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy authored Aug 24, 2019
    Configuration menu
    Copy the full SHA
    bf99801 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2019

  1. Configuration menu
    Copy the full SHA
    21161d7 View commit details
    Browse the repository at this point in the history
  2. bpo-37929: IDLE: avoid Squeezer-related config dialog crashes (python…

    …GH-15452)
    
    These were caused by keeping around a reference to the Squeezer
    instance and calling it's load_font() upon config changes, which
    sometimes happened even if the shell window no longer existed.
    
    This change completely removes that mechanism, instead having the
    editor window properly update its width attribute, which can then
    be used by Squeezer.
    (cherry picked from commit d4b4c00)
    
    Co-authored-by: Tal Einat <taleinat+github@gmail.com>
    miss-islington and taleinat authored Aug 25, 2019
    Configuration menu
    Copy the full SHA
    e266d06 View commit details
    Browse the repository at this point in the history
  3. bpo-37905: Improve docs for NormalDist (pythonGH-15486) (pythonGH-15487)

    (cherry picked from commit 8371799)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 25, 2019
    Configuration menu
    Copy the full SHA
    970548c View commit details
    Browse the repository at this point in the history
  4. [3.8] bpo-37757: Disallow PEP 572 cases that expose implementation de…

    …tails (pythonGH-15491)
    
    - drop TargetScopeError in favour of raising SyntaxError directly
      as per the updated PEP 572
    - comprehension iteration variables are explicitly local, but
      named expression targets in comprehensions are nonlocal or
      global. Raise SyntaxError as specified in PEP 572
    - named expression targets in the outermost iterable of a
      comprehension have an ambiguous target scope. Avoid resolving
      that question now by raising SyntaxError. PEP 572
      originally required this only for cases where the bound name
      conflicts with the iteration variable in the comprehension,
      but CPython can't easily restrict the exception to that case
      (as it doesn't know the target variable names when visiting
      the outermost iterator expression)
    
    (cherry picked from commit 5dbe0f5)
    ncoghlan authored Aug 25, 2019
    Configuration menu
    Copy the full SHA
    6ca0307 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2019

  1. Doc: Keep the venv/* exclude pattern. (pythonGH-15229)

    In case it has been previously created.
    (cherry picked from commit 73e0549)
    
    Co-authored-by: Julien Palard <julien@palard.fr>
    miss-islington and JulienPalard authored Aug 26, 2019
    Configuration menu
    Copy the full SHA
    352a123 View commit details
    Browse the repository at this point in the history
  2. bpo-37824: Properly handle user input warnings in IDLE shell. (python…

    …GH-15500)
    
    Cease turning SyntaxWarnings into SyntaxErrors.
    (cherry picked from commit 1039f39)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy committed Aug 26, 2019
    Configuration menu
    Copy the full SHA
    0778870 View commit details
    Browse the repository at this point in the history
  3. bpo-15542: Documentation incorrectly suggests __init__ called after d…

    …irect __new__ call (pythonGH-15478) (pythonGH-15506)
    
    (cherry picked from commit 6b16d93)
    
    Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
    2 people authored and rhettinger committed Aug 26, 2019
    Configuration menu
    Copy the full SHA
    c841fb9 View commit details
    Browse the repository at this point in the history
  4. bpo-37805: Add tests for json.dump(..., skipkeys=True) (pythonGH-15489)

    https://bugs.python.org/issue37805
    
    Automerge-Triggered-By: @methane
    (cherry picked from commit 44cd86b)
    
    Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
    miss-islington and corona10 authored Aug 26, 2019
    Configuration menu
    Copy the full SHA
    a387517 View commit details
    Browse the repository at this point in the history
  5. [3.8] bpo-36917: Add default implementation of ast.NodeVisitor.visit_…

    …Constant(). (pythonGH-15490) (pythonGH-15509)
    
    It emits a deprecation warning and calls corresponding method
    visit_Num(), visit_Str(), etc.
    (cherry picked from commit c3ea41e)
    miss-islington authored and serhiy-storchaka committed Aug 26, 2019
    Configuration menu
    Copy the full SHA
    522a394 View commit details
    Browse the repository at this point in the history
  6. bpo-34679: Restore instantiation Windows IOCP event loop from non-mai…

    …n thread (pythonGH-15492)
    
    * Restore running proactor event loop from non-main thread
    
    Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
    (cherry picked from commit 1c06009)
    
    Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
    miss-islington and asvetlov authored Aug 26, 2019
    Configuration menu
    Copy the full SHA
    69d22b8 View commit details
    Browse the repository at this point in the history
  7. [3.8] bpo-37947: Adjust correctly the recursion level in symtable for…

    … named expressions (pythonGH-15499) (pythonGH-15515)
    
    (cherry picked from commit 0e4ea16)
    
    Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
    pablogsal authored Aug 26, 2019
    Configuration menu
    Copy the full SHA
    3769425 View commit details
    Browse the repository at this point in the history
  8. Remove leftovers from the times when long long wasn't required (pytho…

    …nGH-15501)
    
    In a38e9d1 pyconfig.h.in was
    manually edited and that edit was overwritten when running autoreconf.
    (cherry picked from commit 52c1a6a)
    
    Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
    miss-islington and sir-sigurd authored Aug 26, 2019
    Configuration menu
    Copy the full SHA
    82f4bfd View commit details
    Browse the repository at this point in the history
  9. bpo-37954: Fix reference leak in the symtable (pythonGH-15514)

    (cherry picked from commit 4901dc4)
    
    Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
    miss-islington and pablogsal authored Aug 26, 2019
    Configuration menu
    Copy the full SHA
    ed8af33 View commit details
    Browse the repository at this point in the history
  10. Fix typo: Pyssize_t => Py_ssize_t (pythonGH-15411)

    (cherry picked from commit b3b9619)
    
    Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
    miss-islington and sir-sigurd authored Aug 26, 2019
    Configuration menu
    Copy the full SHA
    54449da View commit details
    Browse the repository at this point in the history
  11. bpo-37055: fix warnings in _blake2 module (pythonGH-14646)

    https://bugs.python.org/issue37055
    
    Automerge-Triggered-By: @tiran
    (cherry picked from commit b27cbec)
    
    Co-authored-by: Inada Naoki <songofacandy@gmail.com>
    miss-islington and methane authored Aug 26, 2019
    Configuration menu
    Copy the full SHA
    2bb4fc3 View commit details
    Browse the repository at this point in the history
  12. bpo-37798: Minor code formatting and comment clean-ups. (pythonGH-15526

    …) (pythonGH-15527)
    
    (cherry picked from commit 6fee0f8)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 26, 2019
    Configuration menu
    Copy the full SHA
    56c4d2d View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    04b7507 View commit details
    Browse the repository at this point in the history
  14. bpo-37925: Mention --embed in python-config usage (pythonGH-15458)

    (cherry picked from commit d3cc189)
    
    Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
    miss-islington and isidentical authored Aug 26, 2019
    Configuration menu
    Copy the full SHA
    b8a22ac View commit details
    Browse the repository at this point in the history
  15. Fix an invalid assertEqual() call in test_descr.py (pythonGH-15318)

    (cherry picked from commit 6b2e325)
    
    Co-authored-by: Zackery Spytz <zspytz@gmail.com>
    miss-islington and ZackerySpytz authored Aug 26, 2019
    Configuration menu
    Copy the full SHA
    c75f0e5 View commit details
    Browse the repository at this point in the history
  16. bpo-36763: Make Py_BytesMain() public (pythonGH-15532)

    Declare Py_BytesMain() in Include/pylifecycle.h, rather in
    Include/internal/pycore_pylifecycle.h.
    (cherry picked from commit 9a943b4)
    
    Co-authored-by: Victor Stinner <vstinner@redhat.com>
    miss-islington and vstinner authored Aug 26, 2019
    Configuration menu
    Copy the full SHA
    1d4285a View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2019

  1. bpo-36205: Fix the rusage implementation of time.process_time() (pyth…

    …onGH-15538)
    
    (cherry picked from commit 8bf5fef)
    
    Co-authored-by: vrajivk <3413293+vrajivk@users.noreply.github.com>
    miss-islington and vrajivk authored Aug 27, 2019
    Configuration menu
    Copy the full SHA
    91020fa View commit details
    Browse the repository at this point in the history
  2. Fix unused variable and signed/unsigned warnings (pythonGH-15537) (py…

    …thonGH-15551)
    
    (cherry picked from commit 0138c4c)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 27, 2019
    Configuration menu
    Copy the full SHA
    d5ba8bb View commit details
    Browse the repository at this point in the history
  3. bpo-37936: Remove some .gitignore rules that were intended locally. (p…

    …ythonGH-15542)
    
    These appeared in commit c5ae169.  The comment on them, as well as
    the presence among them of a rule for the .gitignore file itself,
    indicate that the author intended these lines to remain only in their
    own local working tree -- not to get committed even to their own repo,
    let alone merged upstream.
    
    They did nevertheless get committed, because it turns out that Git
    takes no notice of what .gitignore says about files that it's already
    tracking... for example, this .gitignore file itself.
    
    Give effect to these lines' original intention, by deleting them. :-)
    
    Git tip, for reference: the `.git/info/exclude` file is a handy way
    to do exactly what these lines were originally intended to do.  A
    related handy file is `~/.config/git/ignore`.  See gitignore(5),
    aka `git help ignore`, for details.
    
    https://bugs.python.org/issue37936
    
    Automerge-Triggered-By: @zware
    (cherry picked from commit 8c9e9b0)
    
    Co-authored-by: Greg Price <gnprice@gmail.com>
    miss-islington and gnprice authored Aug 27, 2019
    Configuration menu
    Copy the full SHA
    caf7a30 View commit details
    Browse the repository at this point in the history
  4. bpo-37951: Lift subprocess's fork() restriction (pythonGH-15544)

    (cherry picked from commit 98d90f7)
    
    Co-authored-by: Christian Heimes <christian@python.org>
    miss-islington and tiran authored Aug 27, 2019
    Configuration menu
    Copy the full SHA
    03c52f2 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2019

  1. bpo-36582: Make collections.UserString.encode() return bytes, not str (

    …pythonGH-13138) (pythonGH-15557)
    
    (cherry picked from commit 2a16eea)
    
    Co-authored-by: Daniel Fortunov <asqui@users.noreply.github.com>
    2 people authored and rhettinger committed Aug 28, 2019
    Configuration menu
    Copy the full SHA
    2cb82d2 View commit details
    Browse the repository at this point in the history
  2. closes bpo-37965: Fix compiler warning of distutils CCompiler.test_fu…

    …nction. (pythonGH-15561)
    
    https://bugs.python.org/issue37965
    
    https://bugs.python.org/issue37965
    
    Automerge-Triggered-By: @benjaminp
    (cherry picked from commit 55aabee)
    
    Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
    2 people authored and benjaminp committed Aug 28, 2019
    Configuration menu
    Copy the full SHA
    23985c6 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2019

  1. [3.8] bpo-37482: Fix email address name with encoded words and specia…

    …l chars (pythonGH-14561) (pythonGH-15380)
    
    Special characters in email address header display names are normally
    put within double quotes. However, encoded words (=?charset?x?...?=) are
    not allowed withing double quotes. When the header contains a word with
    special characters and another word that must be encoded, the first one
    must also be encoded.
    
    In the next example, the display name in the From header is quoted and
    therefore the comma is allowed; in the To header, the comma is not
    within quotes and not encoded, which is not allowed and therefore
    rejected by some mail servers.
    
    From: "Foo Bar, France" <foo@example.com>
    To: Foo Bar, =?utf-8?q?Espa=C3=B1a?= <foo@example.com>
    
    https://bugs.python.org/issue37482
    (cherry picked from commit df0c21f)
    
    Co-authored-by: bsiem <52461103+bsiem@users.noreply.github.com>
    bsiem authored and ned-deily committed Aug 29, 2019
    Configuration menu
    Copy the full SHA
    bd127b1 View commit details
    Browse the repository at this point in the history
  2. bpo-18378: Recognize "UTF-8" as a valid name in locale._parse_localen…

    …ame (pythonGH-14736)
    
    (cherry picked from commit b0caf32)
    
    Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
    miss-islington and ronaldoussoren authored Aug 29, 2019
    Configuration menu
    Copy the full SHA
    e471a54 View commit details
    Browse the repository at this point in the history
  3. bpo-34775: Return NotImplemented in PurePath division. (pythonGH-9509) (

    pythonGH-15172)
    
    (cherry picked from commit 4c69be2)
    
    Co-authored-by: aiudirog <aiudirog@gmail.com>
    2 people authored and ned-deily committed Aug 29, 2019
    Configuration menu
    Copy the full SHA
    4adcaf8 View commit details
    Browse the repository at this point in the history
  4. bpo-36511: Fix failures in Windows ARM32 buildbot (pythonGH-15181)

    (cherry picked from commit ed70a34)
    
    Co-authored-by: Paul Monson <paulmon@users.noreply.github.com>
    miss-islington and paulmon authored Aug 29, 2019
    Configuration menu
    Copy the full SHA
    ed00fee View commit details
    Browse the repository at this point in the history
  5. bpo-18049: Define THREAD_STACK_SIZE for AIX to pass default recursion…

    … limit test (pythonGH-15081)
    
    * Define THREAD_STACK_SIZE for AIX to pass default recursion limit test
    (cherry picked from commit 9670ce7)
    
    Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
    miss-islington and aixtools authored Aug 29, 2019
    Configuration menu
    Copy the full SHA
    f92bb6e View commit details
    Browse the repository at this point in the history
  6. bpo-36167: fix an incorrect capitalization (pythonGH-14482)

    (cherry picked from commit 3aa48b8)
    
    Co-authored-by: avinassh <avinassh@users.noreply.github.com>
    miss-islington and avinassh authored Aug 29, 2019
    Configuration menu
    Copy the full SHA
    e009a91 View commit details
    Browse the repository at this point in the history
  7. bpo-25777: Wording describes a lookup, not a call (pythonGH-15573) (p…

    …ythonGH-15576)
    
    (cherry picked from commit 03acba6)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 29, 2019
    Configuration menu
    Copy the full SHA
    f3dca6a View commit details
    Browse the repository at this point in the history
  8. bpo-35946: Improve assert_called_with documentation (pythonGH-11796)

    (cherry picked from commit f5896a0)
    
    Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
    miss-islington and Rémi Lapeyre authored Aug 29, 2019
    Configuration menu
    Copy the full SHA
    612d393 View commit details
    Browse the repository at this point in the history
  9. bpo-36871: Ensure method signature is used when asserting mock calls …

    …to a method (GH15578)
    
    * Fix call_matcher for mock when using methods
    
    * Add NEWS entry
    
    * Use None check and convert doctest to unittest
    
    * Use better name for mock in tests. Handle _SpecState when the attribute was not accessed and add tests.
    
    * Use reset_mock instead of reinitialization. Change inner class constructor signature for check
    
    * Reword comment regarding call object lookup logic
    (cherry picked from commit c961278)
    
    Co-authored-by: Xtreak <tir.karthi@gmail.com>
    2 people authored and cjw296 committed Aug 29, 2019
    Configuration menu
    Copy the full SHA
    38d311d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    097eae5 View commit details
    Browse the repository at this point in the history
  11. bpo-37372: Fix error unpickling datetime.time objects from Python 2 w…

    …ith seconds>=24. (pythonGH-14307)
    
    (cherry picked from commit 122376d)
    
    Co-authored-by: Justin Blanchard <UncombedCoconut@gmail.com>
    miss-islington and UncombedCoconut authored Aug 29, 2019
    Configuration menu
    Copy the full SHA
    d1d42bf View commit details
    Browse the repository at this point in the history
  12. bpo-23674: Clarify ambiguities in super() docs (pythonGH-15564) (pyth…

    …onGH-15586)
    
    (cherry picked from commit cd81f05)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 29, 2019
    Configuration menu
    Copy the full SHA
    43b7ed7 View commit details
    Browse the repository at this point in the history
  13. bpo-37960: Silence only necessary errors in repr() of buffered and te…

    …xt streams. (pythonGH-15543)
    
    (cherry picked from commit b235a1b)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    miss-islington and serhiy-storchaka authored Aug 29, 2019
    Configuration menu
    Copy the full SHA
    102130a View commit details
    Browse the repository at this point in the history
  14. bpo-16468: Clarify which objects can be passed to "choices" in argpar…

    …se (pythonGH-15566) (pythonGH-15587)
    
    (cherry picked from commit 84125fe)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 29, 2019
    Configuration menu
    Copy the full SHA
    0d45d50 View commit details
    Browse the repository at this point in the history
  15. bpo-36743: __get__ is sometimes called without the owner argument (py…

    …thonGH-12992) (pythonGH-15589)
    
    (cherry picked from commit 0dac68f)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 29, 2019
    Configuration menu
    Copy the full SHA
    c71ae1a View commit details
    Browse the repository at this point in the history
  16. bpo-37947: Avoid double-decrement in symtable recursion counting (pyt…

    …honGH-15593)
    
    With `symtable_visit_expr` now correctly adjusting the recursion depth for named
    expressions, `symtable_handle_namedexpr` should be leaving it alone.
    
    Also adds a new check to `PySymtable_BuildObject` that raises `SystemError`
    if a successful first symbol analysis pass fails to keep the stack depth
    accounting clean.
    (cherry picked from commit 0614523)
    
    Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
    miss-islington and ncoghlan authored Aug 29, 2019
    Configuration menu
    Copy the full SHA
    384c6d7 View commit details
    Browse the repository at this point in the history
  17. bpo-37979: Add alternative to fromisoformat in documentation (pythonG…

    …H-15596)
    
    Adds a link to `dateutil.parser.isoparse` in the documentation.
    
    It would be nice to set up intersphinx for things like this, but I think we can leave that for a separate PR.
    
    CC: @pitrou
    
    [bpo-37979](https://bugs.python.org/issue37979)
    
    https://bugs.python.org/issue37979
    
    Automerge-Triggered-By: @pitrou
    (cherry picked from commit 59725f3)
    
    Co-authored-by: Paul Ganssle <paul@ganssle.io>
    miss-islington and pganssle authored Aug 29, 2019
    Configuration menu
    Copy the full SHA
    9db66a2 View commit details
    Browse the repository at this point in the history
  18. [3.8] bpo-37034: Display argument name on errors with keyword argumen…

    …ts with Argument Clinic. (pythonGH-13593). (pythonGH-15599)
    
    (cherry picked from commit 4901fe2)
    
    Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
    serhiy-storchaka and Rémi Lapeyre authored Aug 29, 2019
    Configuration menu
    Copy the full SHA
    96631dc View commit details
    Browse the repository at this point in the history
  19. [3.8] bpo-37834: Prevent shutil.rmtree exception (pythonGH-15602) (py…

    …thon#15603)
    
    when built on non-Windows system without fd system call support,
    like older versions of macOS.
    (cherry picked from commit 7fcc208)
    
    Co-authored-by: Ned Deily <nad@python.org>
    ambv and ned-deily authored Aug 29, 2019
    Configuration menu
    Copy the full SHA
    25a044e View commit details
    Browse the repository at this point in the history
  20. Python 3.8.0b4

    ambv committed Aug 29, 2019
    Configuration menu
    Copy the full SHA
    d93605d View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2019

  1. Steven Bethard designated a new maintainer for argparse (pythonGH-15605

    …) (pythonGH-15606)
    
    (cherry picked from commit 496058f)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Aug 30, 2019
    Configuration menu
    Copy the full SHA
    c19d6bc View commit details
    Browse the repository at this point in the history
  2. bpo-37976: Prevent shadowing of TypeError in zip() (pythonGH-15592) (p…

    …ythonGH-15608)
    
    (cherry picked from commit 6a650aa)
    
    Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
    2 people authored and rhettinger committed Aug 30, 2019
    Configuration menu
    Copy the full SHA
    27f4186 View commit details
    Browse the repository at this point in the history
  3. Merge tag 'v3.8.0b4' into 3.8

    Python 3.8.0b4
    ambv committed Aug 30, 2019
    Configuration menu
    Copy the full SHA
    23d532a View commit details
    Browse the repository at this point in the history
  4. Post v3.8.0b4

    ambv committed Aug 30, 2019
    Configuration menu
    Copy the full SHA
    1553e3b View commit details
    Browse the repository at this point in the history
  5. bpo-37140: Fix StructUnionType_paramfunc() (pythonGH-15612)

    Fix a ctypes regression of Python 3.8. When a ctypes.Structure is
    passed by copy to a function, ctypes internals created a temporary
    object which had the side effect of calling the structure finalizer
    (__del__) twice. The Python semantics requires a finalizer to be
    called exactly once. Fix ctypes internals to no longer call the
    finalizer twice.
    
    Create a new internal StructParam_Type which is only used by
    _ctypes_callproc() to call PyMem_Free(ptr) on Py_DECREF(argument).
    StructUnionType_paramfunc() creates such object.
    (cherry picked from commit 96b4087)
    
    Co-authored-by: Victor Stinner <vstinner@redhat.com>
    miss-islington and vstinner authored Aug 30, 2019
    Configuration menu
    Copy the full SHA
    17f61ed View commit details
    Browse the repository at this point in the history
  6. IDLE: Fix 2 typos found by Min ho Kim. (pythonGH-15617)

    (cherry picked from commit 15119bc)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy authored Aug 30, 2019
    Configuration menu
    Copy the full SHA
    3d75857 View commit details
    Browse the repository at this point in the history
  7. Fix typos mostly in comments, docs and test names (pythonGH-15209)

    (cherry picked from commit 39d87b5)
    
    Co-authored-by: Min ho Kim <minho42@gmail.com>
    miss-islington and minho42 authored Aug 30, 2019
    Configuration menu
    Copy the full SHA
    4bd1d05 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    bd8ca9a View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2019

  1. [3.8] bpo-37990: fix gc stats (pythonGH-15626)

    (cherry picked from commit 013e52f)
    methane authored Aug 31, 2019
    Configuration menu
    Copy the full SHA
    97a31c7 View commit details
    Browse the repository at this point in the history
  2. bpo-37977: Warn more strongly and clearly about pickle security (pyth…

    …onGH-15595) (pythonGH-15629)
    
    (cherry picked from commit daa82d0)
    
    Co-authored-by: Daniel Pope <lordmauve@users.noreply.github.com>
    2 people authored and rhettinger committed Aug 31, 2019
    Configuration menu
    Copy the full SHA
    6922b9e View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2019

  1. [3.8] bpo-37994: Fix silencing all errors if an attribute lookup fail…

    …s. (pythonGH-15630) (pythonGH-15635)
    
    Only AttributeError should be silenced.
    (cherry picked from commit 41c57b3)
    serhiy-storchaka authored Sep 1, 2019
    Configuration menu
    Copy the full SHA
    353053d View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2019

  1. bpo-38010 Sync importlib.metadata with importlib_metadata 0.20. (pyth…

    …onGH-15646) (pythonGH-15648)
    
    Sync importlib.metadata with importlib_metadata 0.20.
    (cherry picked from commit 102e9b4)
    
    Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
    miss-islington and jaraco committed Sep 2, 2019
    Configuration menu
    Copy the full SHA
    bf69e16 View commit details
    Browse the repository at this point in the history
  2. bpo-36853: Fix suspicious.py to actually print the unused rules (pyth…

    …onGH-13579) (pythonGH-15649)
    
    * Fix suspicious.py to actually print the unused rules
    
    * Fix the other `self.warn` calls
    (cherry picked from commit e1786b5)
    
    Co-authored-by: Anthony Sottile <asottile@umich.edu>
    2 people authored and jaraco committed Sep 2, 2019
    Configuration menu
    Copy the full SHA
    b365cfa View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2019

  1. bpo-35771: IDLE: Fix flaky tool-tip hover delay tests (pythonGH-15634)

    Extending the hover delay in test_tooltip should avoid spurious test_idle failures.
    One longer delay instead of two shorter delays results in a net speedup.
    (cherry picked from commit 132acab)
    
    Co-authored-by: Tal Einat <taleinat+github@gmail.com>
    miss-islington and taleinat authored Sep 3, 2019
    Configuration menu
    Copy the full SHA
    1c18aec View commit details
    Browse the repository at this point in the history
  2. bpo-37798: Fix _statistics module doc (pythonGH-15546)

    (cherry picked from commit 0cf832a)
    
    Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
    2 people authored and taleinat committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    58067d2 View commit details
    Browse the repository at this point in the history
  3. [3.8] bpo-21315: Fix parsing of encoded words with missing leading ws (

    …pythonGH-13425) (pythonGH-15655)
    
    * [bpo-21315](https://bugs.python.org/issue21315): Fix parsing of encoded words with missing leading ws.
    
    Because of missing leading whitespace, encoded word would get parsed as
    unstructured token. This patch fixes that by looking for encoded words when
    splitting tokens with whitespace.
    
    Missing trailing whitespace around encoded word now register a defect
    instead.
    
    Original patch suggestion by David R. Murray on [bpo-21315](https://bugs.python.org/issue21315).
    (cherry picked from commit 66c4f3f)
    
    Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
    (cherry picked from commit dc20fc4)
    
    Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
    
    
    
    
    
    https://bugs.python.org/issue21315
    epicfaace authored and miss-islington committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    59e8fba View commit details
    Browse the repository at this point in the history
  4. bpo-38020: Fixes crash in os.readlink() on Windows (pythonGH-15663)

    (cherry picked from commit 993ac92)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba authored Sep 3, 2019
    Configuration menu
    Copy the full SHA
    54dac6c View commit details
    Browse the repository at this point in the history
  5. bpo-38022: IDLE: upgrade help.html to sphinx 2.x HTML5 output (python…

    …GH-15664)
    
    The HTML5 output from Sphinx 2.x adds  '<p>' tags within list elements.  Using a new prevtag attribute, ignore these instead of emitting unwanted '\n\n'.
    
    Also stop looking for 'first' classes on tags (no longer present) and fix the bug of double-spacing instead of single spacing after <pre> blocks.
    (cherry picked from commit 580bdb0)
    
    Co-authored-by: Tal Einat <taleinat+github@gmail.com>
    miss-islington and taleinat authored Sep 3, 2019
    Configuration menu
    Copy the full SHA
    952ea67 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2019

  1. closes bpo-37966: Fully implement the UAX GH-15 quick-check algorithm. (

    pythonGH-15558)
    
    The purpose of the `unicodedata.is_normalized` function is to answer
    the question `str == unicodedata.normalized(form, str)` more
    efficiently than writing just that, by using the "quick check"
    optimization described in the Unicode standard in UAX GH-15.
    
    However, it turns out the code doesn't implement the full algorithm
    from the standard, and as a result we often miss the optimization and
    end up having to compute the whole normalized string after all.
    
    Implement the standard's algorithm.  This greatly speeds up
    `unicodedata.is_normalized` in many cases where our partial variant
    of quick-check had been returning MAYBE and the standard algorithm
    returns NO.
    
    At a quick test on my desktop, the existing code takes about 4.4 ms/MB
    (so 4.4 ns per byte) when the partial quick-check returns MAYBE and it
    has to do the slow normalize-and-compare:
    
      $ build.base/python -m timeit -s 'import unicodedata; s = "\uf900"*500000' \
          -- 'unicodedata.is_normalized("NFD", s)'
      50 loops, best of 5: 4.39 msec per loop
    
    With this patch, it gets the answer instantly (58 ns) on the same 1 MB
    string:
    
      $ build.dev/python -m timeit -s 'import unicodedata; s = "\uf900"*500000' \
          -- 'unicodedata.is_normalized("NFD", s)'
      5000000 loops, best of 5: 58.2 nsec per loop
    
    This restores a small optimization that the original version of this
    code had for the `unicodedata.normalize` use case.
    
    With this, that case is actually faster than in master!
    
    $ build.base/python -m timeit -s 'import unicodedata; s = "\u0338"*500000' \
        -- 'unicodedata.normalize("NFD", s)'
    500 loops, best of 5: 561 usec per loop
    
    $ build.dev/python -m timeit -s 'import unicodedata; s = "\u0338"*500000' \
        -- 'unicodedata.normalize("NFD", s)'
    500 loops, best of 5: 512 usec per loop
    (cherry picked from commit 2f09413)
    
    Co-authored-by: Greg Price <gnprice@gmail.com>
    miss-islington and gnprice authored Sep 4, 2019
    Configuration menu
    Copy the full SHA
    4dd1c9d View commit details
    Browse the repository at this point in the history
  2. Fix grammar in asyncio-dev.rst (pythonGH-15672)

    Automerge-Triggered-By: @ned-deily
    (cherry picked from commit 675d17c)
    
    Co-authored-by: Roger Iyengar <ri@rogeriyengar.com>
    miss-islington and akindofyoga authored Sep 4, 2019
    Configuration menu
    Copy the full SHA
    5e194f5 View commit details
    Browse the repository at this point in the history
  3. bpo-38030: Fix os.stat failures on block devices on Windows (pythonGH…

    …-15681)
    
    (cherry picked from commit 772ec0f)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba authored Sep 4, 2019
    Configuration menu
    Copy the full SHA
    cad7abf View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2019

  1. Fix idlelib.help comments (pythonGH-15669)

    (cherry picked from commit 6cd9666)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy authored Sep 5, 2019
    Configuration menu
    Copy the full SHA
    29825a3 View commit details
    Browse the repository at this point in the history
  2. bpo-22347: Update mimetypes.guess_type to allow proper parsing of URLs (

    pythonGH-15522)
    
    https://bugs.python.org/issue22347
    (cherry picked from commit 87bd207)
    
    Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
    miss-islington and corona10 authored Sep 5, 2019
    Configuration menu
    Copy the full SHA
    6d7a786 View commit details
    Browse the repository at this point in the history
  3. [3.8] bpo-37764: Fix infinite loop when parsing unstructured email he…

    …aders. (pythonGH-15239) (pythonGH-15686)
    
    Fixes a case in which email._header_value_parser.get_unstructured hangs the system for some invalid headers. This covers the cases in which the header contains either:
    - a case without trailing whitespace
    - an invalid encoded word
    
    https://bugs.python.org/issue37764
    
    This fix should also be backported to 3.7 and 3.8
    
    https://bugs.python.org/issue37764
    (cherry picked from commit c5b242f)
    
    Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
    maxking and epicfaace authored Sep 5, 2019
    Configuration menu
    Copy the full SHA
    6ad0a2c View commit details
    Browse the repository at this point in the history
  4. bpo-37902: IDLE: Add scrolling for IDLE browsers. (pythonGH-15368)

    Modify the wheel event handler so it can also be used for module, path, and stack browsers.
    Patch by George Zhang.
    (cherry picked from commit 2cd9025)
    
    Co-authored-by: GeeTransit <geetransit@gmail.com>
    miss-islington and GeeTransit authored Sep 5, 2019
    Configuration menu
    Copy the full SHA
    9c2654d View commit details
    Browse the repository at this point in the history
  5. bpo-38026: fix inspect.getattr_static (pythonGH-15676)

    It should avoid dynamic lookup including `isinstance`.
    
    This is a regression caused by pythonGH-5351.
    (cherry picked from commit 8f9cc87)
    
    Co-authored-by: Inada Naoki <songofacandy@gmail.com>
    miss-islington and methane authored Sep 5, 2019
    Configuration menu
    Copy the full SHA
    bdcbb83 View commit details
    Browse the repository at this point in the history
  6. bpo-36324: Apply review comments from Allen Downey (pythonGH-15693) (p…

    …ythonGH-15694)
    
    (cherry picked from commit e4810b2)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Sep 5, 2019
    Configuration menu
    Copy the full SHA
    dafbe32 View commit details
    Browse the repository at this point in the history
  7. bpo-36324: Apply review comment from Jake Vanderplas (pythonGH-15695) (

    …pythonGH-15696)
    
    (cherry picked from commit 9b51570)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Sep 5, 2019
    Configuration menu
    Copy the full SHA
    f5649bf View commit details
    Browse the repository at this point in the history
  8. Correct minor gramatical mistake in sys.settrace doc (pythonGH-15637)

    (cherry picked from commit 3038e87)
    
    Co-authored-by: Andre Delfino <adelfino@gmail.com>
    miss-islington and andresdelfino authored Sep 5, 2019
    Configuration menu
    Copy the full SHA
    7eaedda View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2019

  1. More refinements to the statistics docs (pythonGH-15713) (pythonGH-15715

    )
    
    (cherry picked from commit d8c93aa)
    
    Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
    miss-islington and rhettinger committed Sep 6, 2019
    Configuration menu
    Copy the full SHA
    b8c6677 View commit details
    Browse the repository at this point in the history
  2. bpo-37380: subprocess: don't use _active on win (pythonGH-14360) (pyt…

    …honGH-15707)
    
    As noted by @eryksun in [1] and [2], using _cleanup and _active(in
    __del__) is not necessary on Windows, since:
    
    > Unlike Unix, a process in Windows doesn't have to be waited on by
    > its parent to avoid a zombie. Keeping the handle open will actually
    > create a zombie until the next _cleanup() call, which may be never
    > if Popen() isn't called again.
    
    This patch simply defines `subprocess._active` as `None`, for which we already
    have the proper logic in place in `subprocess.Popen.__del__`, that prevents it
    from trying to append the process to the `_active`. This patch also defines
    `subprocess._cleanup` as a noop for Windows.
    
    [1] https://bugs.python.org/issue37380GH-msg346333
    [2] https://bugs.python.org/issue36067GH-msg336262
    
    Signed-off-by: Ruslan Kuprieiev <ruslan@iterative.ai>
    (cherry picked from commit 042821a)
    
    Co-authored-by: Ruslan Kuprieiev <kupruser@gmail.com>
    2 people authored and vstinner committed Sep 6, 2019
    Configuration menu
    Copy the full SHA
    4d1abed View commit details
    Browse the repository at this point in the history
  3. bpo-38041: Refine IDLE Shell restart lines. (pythonGH-15709)

     Restart lines now always start with '=' and never end with ' ' and fill the width of the window unless that would require ending with ' ', which could be wrapped by itself and possible confusing the user.
    (cherry picked from commit 38da805)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy authored Sep 6, 2019
    Configuration menu
    Copy the full SHA
    4009a85 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2019

  1. bpo-20806: Reference both times(2) and times(3) and link to MSDN. (py…

    …thonGH-15479)
    
    (cherry picked from commit 3ccdbc3)
    
    Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
    miss-islington and nanjekyejoannah authored Sep 7, 2019
    Configuration menu
    Copy the full SHA
    cc51a6d View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2019

  1. [3.8] Correct Roman-numeral example in Unicode HOWTO. (pythonGH-15541)…

    …. (pythonGH-15728)
    
    (cherry picked from commit 32a960f)
    
    Co-authored-by: Greg Price <gnprice@gmail.com>
    serhiy-storchaka and gnprice authored Sep 8, 2019
    Configuration menu
    Copy the full SHA
    3be4b10 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2019

  1. Configuration menu
    Copy the full SHA
    cc1bdf9 View commit details
    Browse the repository at this point in the history
  2. bpo-34410: Fix a crash in the tee iterator when re-enter it. (pythonG…

    …H-15625)
    
    RuntimeError is now raised in this case.
    (cherry picked from commit 526a014)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    miss-islington and serhiy-storchaka authored Sep 9, 2019
    Configuration menu
    Copy the full SHA
    6e3809c View commit details
    Browse the repository at this point in the history
  3. bpo-37445: Include FORMAT_MESSAGE_IGNORE_INSERTS in FormatMessageW() …

    …calls (pythonGH-14462)
    
    If FormatMessageW() is passed the FORMAT_MESSAGE_FROM_SYSTEM flag without FORMAT_MESSAGE_IGNORE_INSERTS, it will fail if there are insert sequences in the message definition.
    (cherry picked from commit a656365)
    
    Co-authored-by: Zackery Spytz <zspytz@gmail.com>
    miss-islington and ZackerySpytz authored Sep 9, 2019
    Configuration menu
    Copy the full SHA
    e103732 View commit details
    Browse the repository at this point in the history
  4. [3.8] bpo-15817: gdbinit: Document commands after defining them (pyth…

    …onGH-15021) (python#15744)
    
    The gdb manual[1] says the following for "document":
    
      The command commandname must already be defined.
    
    [1] https://sourceware.org/gdb/current/onlinedocs/gdb/Define.html
    
    And indeed when trying to use the gdbinit file with gdb 8.3, I get:
    
      .../cpython/Misc/gdbinit:17: Error in sourced command file:
      Undefined command: "pyo".  Try "help".
    
    Fix this by moving all documentation blocks after the define blocks.
    
    This was introduced in pythonGH-6384.
    (cherry picked from commit 1f86fdc)
    
    Authored-by: Florian Bruhin <me@the-compiler.org>
    zware authored Sep 9, 2019
    Configuration menu
    Copy the full SHA
    14f7de7 View commit details
    Browse the repository at this point in the history
  5. bpo-32587: Make winreg.REG_MULTI_SZ support zero-length strings (pyth…

    …onGH-13239)
    
    * bpo-32587: Make winreg.REG_MULTI_SZ support PendingFileRenameOperations
    
    * Address review comments.
    (cherry picked from commit e223ba1)
    
    Co-authored-by: Zackery Spytz <zspytz@gmail.com>
    miss-islington and ZackerySpytz authored Sep 9, 2019
    Configuration menu
    Copy the full SHA
    ebca7eb View commit details
    Browse the repository at this point in the history
  6. bpo-37936: Avoid ignoring files that we actually do track. (pythonGH-…

    …15451)
    
    There were about 14 files that are actually in the repo but that are
    covered by the rules in .gitignore.
    
    Git itself takes no notice of what .gitignore says about files that
    it's already tracking... but the discrepancy can be confusing to a
    human that adds a new file unexpectedly covered by these rules, as
    well as to non-Git software that looks at .gitignore but doesn't
    implement this wrinkle in its semantics.  (E.g., `rg`.)
    
    Several of these are from rules that apply more broadly than
    intended: for example, `Makefile` applies to `Doc/Makefile` and
    `Tools/freeze/test/Makefile`, whereas `/Makefile` means only the
    `Makefile` at the repo's root.
    
    And the `Modules/Setup` rule simply wasn't updated after 961d54c.
    
    https://bugs.python.org/issue37936
    (cherry picked from commit 5e5e951)
    
    Co-authored-by: Greg Price <gnprice@gmail.com>
    miss-islington and gnprice authored Sep 9, 2019
    Configuration menu
    Copy the full SHA
    c837ad4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    eb02196 View commit details
    Browse the repository at this point in the history
  8. bpo-37705: Improve the implementation of winerror_to_errno() (pythonG…

    …H-15623)
    
    winerror_to_errno() is no longer automatically generated.
    Do not rely on the old _dosmapperr() function.
    Add ERROR_NO_UNICODE_TRANSLATION (1113) -> EILSEQ.
    (cherry picked from commit 19052a1)
    
    Co-authored-by: Zackery Spytz <zspytz@gmail.com>
    miss-islington and ZackerySpytz authored Sep 9, 2019
    Configuration menu
    Copy the full SHA
    68e401f View commit details
    Browse the repository at this point in the history
  9. bpo-36250: ignore ValueError from signal in non-main thread (pythonGH…

    …-12251)
    
    Authored-By: blueyed <github@thequod.de>
    (cherry picked from commit 8d64bfa)
    
    Co-authored-by: Daniel Hahler <github@thequod.de>
    miss-islington and blueyed authored Sep 9, 2019
    Configuration menu
    Copy the full SHA
    87a5a33 View commit details
    Browse the repository at this point in the history
  10. [3.8] Doc: Fix PDF build (NoUri). (pythonGH-15739) (pythonGH-15754)

    (cherry picked from commit 63c98ed)
    
    
    Co-authored-by: Julien Palard <julien@palard.fr>
    
    Automerge-Triggered-By: @JulienPalard
    miss-islington authored Sep 9, 2019
    Configuration menu
    Copy the full SHA
    2522679 View commit details
    Browse the repository at this point in the history
  11. bpo-37212: Preserve keyword argument order in unittest.mock.call and …

    …error messages (pythonGH-14310)
    
    (cherry picked from commit 9d60706)
    
    Co-authored-by: Xtreak <tir.karthi@gmail.com>
    miss-islington and tirkarthi authored Sep 9, 2019
    Configuration menu
    Copy the full SHA
    bee8bfe View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    6ee2b20 View commit details
    Browse the repository at this point in the history