summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.8.0b3v3.8.0b3Łukasz Langa2019-07-2946-112/+454
|
* bpo-36044: Avoid warnings in Windows PGO build and add lzma, bz2 and sqlite ↵Miss Islington (bot)2019-07-293-0/+5
| | | | | | | | | | coverage (GH-14985) https://bugs.python.org/issue36044 Automerge-Triggered-By: @zooba (cherry picked from commit e1b900247227dad49d8231f1d028872412230ab4) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-37697: Sync with importlib_metadata 0.19 (GH-14993) (GH-14995)Miss Islington (bot)2019-07-287-794/+841
| | | | | | | | | | * bpo-37697: Sync with importlib_metadata 0.19 * Run make regen-importlib * 📜🤖 Added by blurb_it. (cherry picked from commit 049460da9c7b5f51732e2966195c44713af9dc4c) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-37692: Improve highlight config sample (GH-14983)Miss Islington (bot)2019-07-282-18/+19
| | | | | | Use an example shell interaction in the sample and better labels for shell elements. (cherry picked from commit b222955355c8077a3ceca79195731663d7c3dd5f) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Remove trailing .0 from version changed note (GH-14987)Miss Islington (bot)2019-07-281-1/+1
| | | | | (cherry picked from commit 17a058ed6ffa7f56c0920d15d214ad080e7eef86) Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
* bpo-37691: Let math.dist() accept sequences and iterables for coordinates ↵Miss Islington (bot)2019-07-275-20/+47
| | | | | | | (GH-14975) (GH-14984) (cherry picked from commit 6b5f1b496f0b20144592b640b9c975df43a29eb0) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-37628: Fix IDLE config sample sizes (GH-14958)Miss Islington (bot)2019-07-275-51/+129
| | | | | | 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 3221a63c69268a9362802371a616f49d522a5c4f) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* Add Qt GUI example to the logging cookbook. (GH-14978) (GH-14979)Miss Islington (bot)2019-07-271-0/+213
| | | (cherry picked from commit 1ed915e8ae3cc59ad8f7a8eaccb94f27f19b10a6)
* bpo-17535: Increase line number horizontal padding by 2 pixels (GH-14959)Miss Islington (bot)2019-07-271-1/+1
| | | | | (cherry picked from commit 46ebd4a6a22431ce9676546d2bbe5a6dcd1cc1c1) Co-authored-by: Tal Einat <taleinat@gmail.com>
* bpo-32910: Remove implementation detail in venv documentation. (GH-14968)Miss Islington (bot)2019-07-262-4/+3
| | | | | (cherry picked from commit 91e49575095ca16d1b67dd8822deeb7885e421da) Co-authored-by: Derek Keeler <d3r3kk@users.noreply.github.com>
* bpo-35524: Update Windows installer image in docs (GH-14966)Steve Dower2019-07-261-0/+0
|
* bpo-37664: Update regex for ignoring cache warning on some buildbots (GH-14960)Miss Islington (bot)2019-07-261-2/+3
| | | | | (cherry picked from commit b1eb20e68e30c8ab128f9d63d622f0a8b49dcf34) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-37641 preserve relative file location in embeddable zip (GH-14884)Miss Islington (bot)2019-07-251-6/+5
| | | | | | | | | | | | | | | | 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 c4cda4369f4b8f33082890d16dfc364a90658ef6) Co-authored-by: Bill Collins <bilbocollins@gmail.com>
* Swap 'if' branches so content matches to condition in importlib example ↵Miss Islington (bot)2019-07-251-3/+3
| | | | | | | | | | | | (GH-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 544fa15ea1b7b73068319bdb217b684e2fd7bacc) Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
* bpo-37502: handle default parameter for buffers argument of pickle.loads ↵Miss Islington (bot)2019-07-253-1/+7
| | | | | | | correctly (GH-14593) (cherry picked from commit 898318b53d921298d1f1fcfa0f415844afbeb318) Co-authored-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* closes bpo-37675: Use pkgutil.iter_modules to find fixers in a package ↵Miss Islington (bot)2019-07-252-4/+5
| | | | | | | rather than listdir. (14942) (cherry picked from commit 93e8aa62cfd0a61efed4a61a2ffc2283ae986ef2) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-37672: Switch Windows Store package to use pip.ini for user mode (GH-14939)Miss Islington (bot)2019-07-244-35/+50
| | | | | (cherry picked from commit 123536fdab7b8def15c859aa70232bc55ec73096) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-37664: Update bundled pip to 19.2.1 and setuptools to 41.0.1 (GH-14934)Miss Islington (bot)2019-07-244-2/+3
| | | | | (cherry picked from commit 5380def8269b24a8a3bc46396373a1dc91b1dd1a) Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
* [3.8] bpo-37399: Correctly attach tail text to the last element/comment/pi ↵Stefan Behnel2019-07-242-24/+124
| | | | | | (GH-14856) (GH-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.
* [3.8] bpo-34160: explain how to deal with attribute order in ElementTree ↵Miss Islington (bot)2019-07-241-2/+40
| | | | | | | | | | | | (GH-14867) (GH-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 a3697db0102b9b6747fe36009e42f9b08f0c1ea8) Co-authored-by: Stefan Behnel <stefan_ml@behnel.de>
* [3.8] Touch up venv docs (GH-14922) (GH-14923)Miss Islington (bot)2019-07-241-21/+26
| | | | | | | | (cherry picked from commit 2f224a077a83ac9de8a12bb7dcc516642b8176d8) Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com> Automerge-Triggered-By: @brettcannon
* bpo-37667: Add regression test for regrtest. (GH-14929)Miss Islington (bot)2019-07-241-0/+26
| | | | | | Verify that it appears to find roughly the right number of tests in the stdlib's testsuite. (cherry picked from commit e95ac20103437d8099fb91cd4468ab030852f3b7) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* Only setup PGO tests when --pgo is enabled. (GH-14927)Miss Islington (bot)2019-07-241-2/+3
| | | | | (cherry picked from commit f0807ab24cbd13163bff7e0de3a97fe83584b80d) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-29446: IDLE -- add explicit imports (GH-14919) (GH-14920)Miss Islington (bot)2019-07-231-0/+2
| | | | | | Stop depending on tkinter import *. (cherry picked from commit c6fd6c83b70df76421d05a7628367e64a2f83589) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-17535: IDLE editor line numbers (GH-14030)Miss Islington (bot)2019-07-2318-80/+891
| | | | | (cherry picked from commit 7123ea009b0b004062d91f69859bddf422c34ab4) Co-authored-by: Tal Einat <taleinat@gmail.com>
* [3.8] bpo-36974: separate vectorcall functions for each calling convention ↵Jeroen Demeyer2019-07-2310-101/+372
| | | | (GH-13781) (#14782)
* bpo-33610: validate non-negative integer inputs in IDLE's config (GH-14822)Miss Islington (bot)2019-07-231-7/+31
| | | | | (cherry picked from commit 1ebee37dde5c2aabc8e2d2c7bbe2a69b293133bb) Co-authored-by: Tal Einat <taleinat@gmail.com>
* bpo-36044: Reduce number of unit tests run for PGO build (GH-14702)Miss Islington (bot)2019-07-227-4/+96
| | | | | | | | | | | | | | 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 4e16a4a3112161a5c6981c0588142d4a4673a934) Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
* Update logging cookbook to show multiple worker processes using the ↵Miss Islington (bot)2019-07-221-0/+35
| | | | | concurrent.futures module. (GH-14905) (GH-14906) (cherry picked from commit d309352c6fd93a51f2b3011ca8c2125d3a5d394b)
* bpo-21478: Record calls to parent when autospecced objects are used as child ↵Miss Islington (bot)2019-07-223-11/+55
| | | | | | | | | | | | | | | | with attach_mock (GH 14688) (GH-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 7397cda99795a4a8d96193d710105e77a07b7411) Co-authored-by: Xtreak <tir.karthi@gmail.com>
* [3.8] Fix typos in docs, comments and test assert messages (GH-14872). (#14900)Kyle Stanley2019-07-2220-23/+23
| | | | | (cherry picked from commit 96e12d5f4f3c5a20986566038ee763dff3c228a1) Co-authored-by: Min ho Kim <minho42@gmail.com>
* Add examples to elucidate the formulas (GH-14898) (GH-14899)Miss Islington (bot)2019-07-211-6/+10
| | | | | (cherry picked from commit b530a4460b7a6ea96f1fa81a7c5bb529ead574ef) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-37627: Add acknowledgment (GH-14883)Miss Islington (bot)2019-07-211-0/+1
| | | | | (cherry picked from commit 4214f1ec3b3c73badd639229eff81eb5e57b82ec) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-37627: Initialize IDLE Custom Run dialog with previous entries (GH-14870)Miss Islington (bot)2019-07-214-10/+22
| | | | | | Repeat the command line arguments most recently entered before so the user can edit them. (cherry picked from commit 35b87e6001bd991f625abe305951c77ddeb9a9c5) Co-authored-by: Ngalim Siregar <ngalim.siregar@gmail.com>
* Fix typo found by Min ho Kim (GH-14879)Miss Islington (bot)2019-07-211-1/+1
| | | | | (cherry picked from commit 8e3a7380ecb310b50e48f47d1f26190cc9c45eb6) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Minor whitespace, indentation, and quoting changes to improve internal ↵Miss Islington (bot)2019-07-211-53/+74
| | | | | | | consistency and appease linters (GH-14888) (GH-14889) (cherry picked from commit 1c0e9bb94b8cfb5970532a9f3499563360ea5532) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* Bpo-37644: update suspicious.csv for distutils/examples (GH-14885)Miss Islington (bot)2019-07-211-1/+1
| | | | | (cherry picked from commit 22f0483d44b13140f6ea9927f0cf088c493e875a) Co-authored-by: Ned Deily <nad@python.org>
* bpo-36324: Make internal attributes for statistics.NormalDist() private. ↵Miss Islington (bot)2019-07-213-49/+56
| | | | (GH-14871) (GH-14875)
* Adjust builtins.zip() docstring to better communicate its signature (GH-14833)Miss Islington (bot)2019-07-191-1/+1
| | | | | (cherry picked from commit af2f5b1723b95e45e1f15b5bd52102b7de560f7c) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
* bpo-36546: Clean-up comments (GH-14857) (#14859)Miss Islington (bot)2019-07-191-9/+3
| | | | | (cherry picked from commit eed5e9a9562d4dcd137e9f0fc7157bc3373c98cc) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-37624: Document weight assumptions for random.choices() (GH-14855) ↵Miss Islington (bot)2019-07-191-1/+2
| | | | | | | (GH-14858) (cherry picked from commit 8dbe563aa6bd18b8c581951537dfb406d36e8063) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-37610: improve Using Python doc wrt Editors & IDE (GH-14850)Miss Islington (bot)2019-07-193-11/+15
| | | | | | | | Move the Editors and IDE section out of the Unix section, to its own section. https://bugs.python.org/issue37610 (cherry picked from commit 8f040b7a9f442e7c2605ef1cad9c6b5eb7dd7af7) Co-authored-by: aldwinaldwin <aldwinaldwin@users.noreply.github.com>
* bpo-33610: IDLE's code-context always shows current context immediately ↵Miss Islington (bot)2019-07-183-7/+22
| | | | | | | | | (GH-14821) (#14846) Eliminate delay of up to 100ms and accompanying visual artifact. Fix bug of never showing context when hide and show. (cherry picked from commit e0a1f8fb5c60886dbddf1a3ccb5d47576bdd43e2) Co-authored-by: Tal Einat <taleinat@gmail.com>
* bpo-37552: Skip failing tests in strptime/strftime with UCRT version ↵Miss Islington (bot)2019-07-183-1/+32
| | | | | | | | 17763.615 (GH-14460) A bug in MSVC UCRT version 17763.615 (which has been fixed in newer versions) is causing test failures in some strptime/strftime tests when the default code page is c65001. This change selectively skips the tests affected by this. (cherry picked from commit 9cd39b16e2655f748f7aa8d20bca4812da00ba70) Co-authored-by: Paul Monson <paulmon@users.noreply.github.com>
* bpo-36390: Gather IDLE Format menu functions into format.py (GH-14827) ↵Miss Islington (bot)2019-07-186-116/+114
| | | | | | | | | | (GH-14829) Add two indent spec methods from editor and Rstrip to existing file. Tests are not added for indent methods because they need change in lights of 3.x's prohibition on mixing tabs and spaces. (cherry picked from commit 1b3892243433da7eae7f5f3a4f98f13d309c8926) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Fix IndexError when parsing unexpectedly ending quoted-string. (GH-14813)Miss Islington (bot)2019-07-173-1/+7
| | | | | | | This exception was caused because the input ended unexpectedly with only one single quote instead of a pair with some value inside it. (cherry picked from commit 719a062bcb7b08a56e6576dcd75f4244e6053209) Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
* bpo-37461: Fix infinite loop in parsing of specially crafted email headers ↵Miss Islington (bot)2019-07-173-0/+12
| | | | | | | | | | | | | (GH-14794) * bpo-37461: Fix infinite loop in parsing of specially crafted email headers. Some crafted email header would cause the get_parameter method to run in an infinite loop causing a DoS attack surface when parsing those headers. This patch fixes that by making sure the DQUOTE character is handled to prevent going into an infinite loop. (cherry picked from commit a4a994bd3e619cbaff97610a1cee8ffa87c672f5) Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
* bpo-36390: IDLE: Combine region formatting methods. (GH-12481) (GH-14811)Miss Islington (bot)2019-07-177-327/+589
| | | | | | | Rename paragraph.py to format.py and add region formatting methods from editor.py. Add tests for the latter. (cherry picked from commit 82494aa6d947c4a320c09c58fe0f100cdcf7af0b) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-37530: simplify, optimize and clean up IDLE code context (GH-14675)Miss Islington (bot)2019-07-175-99/+140
| | | | | | | | | | | | | | * Only create CodeContext instances for "real" editors windows, but not e.g. shell or output windows. * Remove configuration update Tk event fired every second, by having the editor window ask its code context widget to update when necessary, i.e. upon font or highlighting updates. * When code context isn't being shown, avoid having a Tk event fired every 100ms to check whether the code context needs to be updated. * Use the editor window's getlineno() method where applicable. * Update font of the code context widget before the main text widget (cherry picked from commit 7036e1de3a87d36c7ef41b8a2b44ed6fc4d34be2) Co-authored-by: Tal Einat <taleinat@gmail.com>
* Docs: Correct formatting of a multiline code block (GH-13806)Miss Islington (bot)2019-07-171-2/+4
| | | | | (cherry picked from commit bd26a4466b507e196fc9a5e4a6cb7cd6d39f85aa) Co-authored-by: Joseph Fox-Rabinovitz <madphysicist@users.noreply.github.com>