]>
granicus.if.org Git - python/log
Miss Islington (bot) [Mon, 12 Aug 2019 22:16:36 +0000 (15:16 -0700)]
Remove versioned executables from non-APPX packages (GH-15237)
(cherry picked from commit
c1aeb292d206e12b900dc4f7f816246c3a57c2ac )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 12 Aug 2019 21:35:16 +0000 (14:35 -0700)]
bpo-37354: Sign Activate.ps1 for release (GH-15235)
(cherry picked from commit
3e34a25a7a5c9ea2c46f2daeeb60f072faa5aaa1 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 12 Aug 2019 21:09:26 +0000 (14:09 -0700)]
[3.8] bpo-37354: Make Powershell Activate.ps1 script static to allow for signing (GH-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
732775d6be8062e72cf4995d5a9db0170e22c233 )
Co-authored-by: Derek Keeler <d3r3kk@users.noreply.github.com>
Miss Islington (bot) [Mon, 12 Aug 2019 08:19:47 +0000 (01:19 -0700)]
Fix docs for assert_called and assert_called_once (GH-15219)
(cherry picked from commit
f9590edfeae192ba95aadaee9460dc03a366c51a )
Co-authored-by: Ismail S <ismail-s@users.noreply.github.com>
Miss Islington (bot) [Sun, 11 Aug 2019 22:02:23 +0000 (15:02 -0700)]
bpo-37819: Add Fraction.as_integer_ratio() (GH-15212) (GH-15215)
(cherry picked from commit
f03b4c8a48f62134799d368b78da35301af466a3 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Sun, 11 Aug 2019 21:04:31 +0000 (14:04 -0700)]
bpo-32178: Fix IndexError trying to parse 'To' header starting with ':'. (GH-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
09a1872a8007048dcdf825a476816c5e3498b8f8 )
Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
Miss Islington (bot) [Sat, 10 Aug 2019 07:37:35 +0000 (00:37 -0700)]
Delete leftover clinic-generated file for C zipimport. (GH-15174)
(cherry picked from commit
51aac15f6d525595e200e3580409c4b8656e8a96 )
Co-authored-by: Greg Price <gnprice@gmail.com>
Serhiy Storchaka [Fri, 9 Aug 2019 22:34:22 +0000 (01:34 +0300)]
[3.8] bpo-32912: Revert SyntaxWarning on invalid escape sequences (GH-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.
Miss Islington (bot) [Fri, 9 Aug 2019 08:31:27 +0000 (01:31 -0700)]
bpo-34155: Dont parse domains containing @ (GH-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
8cb65d1381b027f0b09ee36bfed7f35bb4dec9a9 )
Co-authored-by: jpic <jpic@users.noreply.github.com>
Pablo Galindo [Fri, 9 Aug 2019 00:22:59 +0000 (01:22 +0100)]
[3.8] bpo-37795: Capture DeprecationWarnings in the test suite (GH-15184) (GH-15188)
(cherry picked from commit
aa542c2 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Thu, 8 Aug 2019 08:36:55 +0000 (01:36 -0700)]
bpo-35892: Add usage note to mode() (GH-15122) (GH-15176)
(cherry picked from commit
e43e7ed36480190083740fd75e2b9cdca72f1a68 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Wed, 7 Aug 2019 18:59:09 +0000 (11:59 -0700)]
bpo-37734: Remove unnecessary brace escapes in PC/layout script (GH-15165)
(cherry picked from commit
0378d98678f3617fd44d9a6266e7c17ebce62755 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Wed, 7 Aug 2019 18:15:15 +0000 (11:15 -0700)]
bpo-37778: Fixes the icons used for file associations to the Microsoft Store package (GH-15150)
(cherry picked from commit
87ce9588ceb4b4dd625913344844390f0b991b0c )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Wed, 7 Aug 2019 18:07:43 +0000 (11:07 -0700)]
bpo-37734: Fix use of registry values to launch Python from Microsoft Store app (GH-15146)
(cherry picked from commit
1fab9cbfbaf19a7bc79cef382136fcf9491e3183 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Wed, 7 Aug 2019 15:39:14 +0000 (08:39 -0700)]
bpo-37004: Documented asymmetry of string arguments in difflib.SequenceMatcher for ratio method (GH-13482) (#15157)
https://bugs.python.org/issue37004
(cherry picked from commit
e9cbcd0018abd2a5f2348c45d5c9c4265c4f42dc )
Co-authored-by: sweeneyde <36520290+sweeneyde@users.noreply.github.com>
Miss Islington (bot) [Wed, 7 Aug 2019 01:38:22 +0000 (18:38 -0700)]
Make importlib.metadata a simple module (GH-15153) (GH-15154)
(cherry picked from commit
3a5c433fce7312748859290b9d8db5b6507660f9 )
Co-authored-by: Barry Warsaw <barry@python.org>
Miss Islington (bot) [Wed, 7 Aug 2019 01:07:59 +0000 (18:07 -0700)]
bpo-37646: Document that eval() cannot access nested scopes (GH-15117) (GH-15155)
(cherry picked from commit
610a4823cc0a3c2380ad0dfe64ae483ced4e5304 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Tue, 6 Aug 2019 21:53:27 +0000 (14:53 -0700)]
Improve signal documentation (GH-14274)
* add a missing ``.. availability::`` reST explicit markup;
* more consistent "see man page" sentences.
(cherry picked from commit
cfebfef2def48095aa1f4c790a35e51818d67502 )
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
Miss Islington (bot) [Mon, 5 Aug 2019 22:22:13 +0000 (15:22 -0700)]
bpo-37759: First round of major edits to Whatsnew 3.8 (GH-15127) (GH-15139)
(cherry picked from commit
4f9ffc9d1a6a293563deaaaaf4a13331302219b4 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Mon, 5 Aug 2019 07:20:25 +0000 (00:20 -0700)]
bpo-37729: gc: write stats at once (GH-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
bf8162c8c45338470bbe487c8769bba20bde66c2 )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Miss Islington (bot) [Mon, 5 Aug 2019 00:08:16 +0000 (17:08 -0700)]
bpo-36419: IDLE - Refactor autocompete and improve testing. (GH-15121)
(cherry picked from commit
1213123005d9f94bb5027c0a5256ea4d3e97b61d )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 4 Aug 2019 21:04:49 +0000 (14:04 -0700)]
bpo-37748: Re-order the Run menu. (GH-15115)
Put the most common choice, Run Module, at the top.
(cherry picked from commit
14070299cdc0faf36975f0cc2d51824a9abf3db0 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 4 Aug 2019 20:52:59 +0000 (13:52 -0700)]
Update itertools docs (GH-15114) (GH-15118)
* Remove suggestion that is less relevant now that global lookups are much faster
* Add link for installing the recipes
(cherry picked from commit
adf02b36b3f3745ad4ee380d88f2f6011f54fc22 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Sun, 4 Aug 2019 20:34:56 +0000 (13:34 -0700)]
bpo-28292: Mark calendar.py helper functions as private. (GH-15113) (GH-15116)
(cherry picked from commit
b1c8ec010fb4eb2654ca994e95144c8f2fea07fb )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Sun, 4 Aug 2019 19:16:19 +0000 (12:16 -0700)]
bpo-36324: Update comments to include the target hash sums (GH-15110) (GH-15112)
(cherry picked from commit
8183bb8150edcac6a7525bfb7708d08837ecb095 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Sun, 4 Aug 2019 16:43:56 +0000 (09:43 -0700)]
bpo-37706: IDLE - fix sidebar code bug and drag tests (GH-15103)
Convert mouse y to line number in the sidebar rather than the text.
(cherry picked from commit
86f1a18abfee5939452f468d80de998918e2afd2 )
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Miss Islington (bot) [Sun, 4 Aug 2019 13:43:30 +0000 (06:43 -0700)]
bpo-37730: Fix usage of NotImplemented instead of NotImplementedError in docs. (GH-15062)
(cherry picked from commit
ed5e8e06cbf766e89d6c58a882ee024abb5b2ed7 )
Co-authored-by: David H <dheiberg@mozilla.com>
Miss Islington (bot) [Sun, 4 Aug 2019 10:01:55 +0000 (03:01 -0700)]
bpo-37685: Fixed comparisons of datetime.timedelta and datetime.timezone. (GH-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
17e52649c0e7e9389f1cc2444a53f059e24e6bca )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 3 Aug 2019 18:39:46 +0000 (11:39 -0700)]
Correct description of HTTP status code 308. (GH-15098)
Permanent redirect was explained as a temporary redirect.
(cherry picked from commit
5c72badd06a962fe0018ceb9916f3ae66314ea8e )
Co-authored-by: Florian Wendelborn <1133858+FlorianWendelborn@users.noreply.github.com>
Miss Islington (bot) [Fri, 2 Aug 2019 23:04:53 +0000 (16:04 -0700)]
bpo-30974: Change os.path.samefile docstring to match docs (GH-7337)
(cherry picked from commit
8e568ef266a2805f9a6042003723d9c050830461 )
Co-authored-by: Timo Furrer <tuxtimo@gmail.com>
Miss Islington (bot) [Fri, 2 Aug 2019 22:42:50 +0000 (15:42 -0700)]
bpo-20523: pdb searches for .pdbrc in ~ instead of $HOME (GH-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
7ea9a85f132b32347fcbd2cbe1b553a2e9890b56 )
Co-authored-by: Timothy Hopper <tdhopper@users.noreply.github.com>
Miss Islington (bot) [Fri, 2 Aug 2019 17:49:38 +0000 (10:49 -0700)]
bpo-36487: Make C-API docs clear about what the main interpreter is. (gh-15080)
(cherry picked from commit
854d0a4b98b13629252e21edaf2b785b429e5135 ) (gh-12666)
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
Miss Islington (bot) [Fri, 2 Aug 2019 05:16:44 +0000 (22:16 -0700)]
bpo-16970: Adding error message for invalid args (GH-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
4b3e97592376d5f8a3b75192b399a2da1be642cb )
Co-authored-by: tmblweed <tmblweed@users.noreply.github.com>
Miss Islington (bot) [Thu, 1 Aug 2019 14:38:57 +0000 (07:38 -0700)]
bpo-18049: Sync thread stack size to main thread size on macOS (GH-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
1a057bab0f18d6ad843ce321d1d77a4819497ae4 )
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Miss Islington (bot) [Thu, 1 Aug 2019 14:34:57 +0000 (07:34 -0700)]
bpo-37726: Prefer argparse over getopt in stdlib tutorial (GH-15052) (#15070)
(cherry picked from commit
2491134029b195d3159a489e1803ee22a7839b41 )
Co-authored-by: mental <m3nta1@yahoo.com>
Miss Islington (bot) [Wed, 31 Jul 2019 20:44:59 +0000 (13:44 -0700)]
bpo-37695: Correct unget_wch error message. (GH-14986)
(cherry picked from commit
c9345e382c630ddcc2b148b30954640e0e435c8a )
Co-authored-by: Anthony Sottile <asottile@umich.edu>
Miss Islington (bot) [Wed, 31 Jul 2019 20:22:09 +0000 (13:22 -0700)]
bpo-37723: Fix performance regression on regular expression parsing. (GH-15030)
Improve performance of sre_parse._uniq function.
(cherry picked from commit
9f55551f3df238e58315e724e50cb0d574d75b94 )
Co-authored-by: yannvgn <hi@yannvgn.io>
Miss Islington (bot) [Wed, 31 Jul 2019 15:04:31 +0000 (08:04 -0700)]
bpo-34101: Add doc of PyBuffer_GetPointer (GH-14994)
(cherry picked from commit
1b29af83bc17e773b0c0d117f5fe1018fde46b0d )
Co-authored-by: Hai Shi <shihai1992@gmail.com>
Miss Islington (bot) [Wed, 31 Jul 2019 09:10:38 +0000 (02:10 -0700)]
bpo-37085: Expose SocketCAN bcm_msg_head flags (GH-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
31c4fd2a10d90beaa37d630e5f74a471e14e089d )
Co-authored-by: karl ding <karlding@users.noreply.github.com>
Miss Islington (bot) [Wed, 31 Jul 2019 06:58:46 +0000 (23:58 -0700)]
Refined Qt GUI example in the logging cookbook. (GH-15045) (GH-15046)
(cherry picked from commit
472eced6770c2fabab3031e4e16cd32e32b8a0cc )
Miss Islington (bot) [Wed, 31 Jul 2019 05:42:17 +0000 (22:42 -0700)]
IDLE: changelog correction and addition (GH-15042)
(cherry picked from commit
d04f8907baaa6620be7347ba14dd84bc4ef33814 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Wed, 31 Jul 2019 05:23:05 +0000 (22:23 -0700)]
bpo-33821: Update IDLE section of What's New 3.7 (GH-15036)
* bpo-33821: Update IDLE section of What's New 3.7
* Fix roles.
(cherry picked from commit
5982b7201b84bfd24a1c2b2836401afee1cad8a7 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Wed, 31 Jul 2019 05:19:28 +0000 (22:19 -0700)]
bpo-34162: Add missing items to idlelib/NEWS.txt. (GH-15034)
(cherry picked from commit
fff5cb21ae270d8572741e18030765580c7ae361 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Wed, 31 Jul 2019 05:16:45 +0000 (22:16 -0700)]
bpo-33822: Add IDLE section of What's New 3.8 (GH-15035)
* bpo-33822: Add IDLE section of What's New 3.8
* Fix role.
(cherry picked from commit
a72ca90eb9f13ee2abc7e19b669974d2d0b3d63e )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 30 Jul 2019 22:34:20 +0000 (15:34 -0700)]
Fix idlelib typos discovered by min ho, pr 15018. (GH-15029)
(cherry picked from commit
0acb646b8e405864224bfd6d7d5089980dea63ac )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 30 Jul 2019 21:49:23 +0000 (14:49 -0700)]
bpo-36084: Add threading Native ID information to What's New documentation (GH-14845)
(cherry picked from commit
84846b0187919551b1b08dca447658bbbbb710b1 )
Co-authored-by: Jake Tesler <jake.tesler@gmail.com>
Miss Islington (bot) [Tue, 30 Jul 2019 20:10:15 +0000 (13:10 -0700)]
Don't skip pickle check_frame_opcodes() (GH-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
eca7ffc61cf925eae5def8c64b05d47f24e60e1f )
Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Miss Islington (bot) [Tue, 30 Jul 2019 18:34:33 +0000 (11:34 -0700)]
bpo-37707: Exclude expensive unit tests from PGO task (GH-15009) (#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
52a48e62c6a94577152f9301bbe5f3bc806cfcf1 )
Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Miss Islington (bot) [Tue, 30 Jul 2019 14:37:28 +0000 (07:37 -0700)]
bpo-37587: Make json.loads faster for long strings (GH-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
8a758f5b99c5fc3fd32edeac049d7d4a4b7cc163 )
Co-authored-by: Marco Paolini <mpaolini@users.noreply.github.com>
Miss Islington (bot) [Mon, 29 Jul 2019 22:39:49 +0000 (15:39 -0700)]
bpo-34162: Update idlelib/news.txt. (GH-15011)
(cherry picked from commit
f35c51d2eadd297bcf06d4f7c536bd1d8682b724 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 29 Jul 2019 22:15:50 +0000 (15:15 -0700)]
bpo-37706: Disable 3 IDLE scrollbar tests on Mac. (GH-15010)
They pass with tk 8.5.9 (Azure) but fail with the 8.6.x we install.
(cherry picked from commit
e8874b85b4e3bbb735467b0beaa933dcef362004 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Łukasz Langa [Mon, 29 Jul 2019 20:54:13 +0000 (22:54 +0200)]
Post v3.8.0b3
Łukasz Langa [Mon, 29 Jul 2019 20:53:25 +0000 (22:53 +0200)]
Merge tag 'v3.8.0b3' into 3.8
Python 3.8.0b3
Miss Islington (bot) [Mon, 29 Jul 2019 18:41:37 +0000 (11:41 -0700)]
Fix publishing of Windows release (GH-15006)
(cherry picked from commit
fe330fc4ad3b8218a84216a824af7d7007dcb85b )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 29 Jul 2019 15:26:29 +0000 (08:26 -0700)]
Add additional test for multi-line SyntaxError (GH-15003)
(cherry picked from commit
44212ec8111febfe5fc6c6ed231d4ef2d98bd7e2 )
Co-authored-by: Anthony Sottile <asottile@umich.edu>
Miss Islington (bot) [Mon, 29 Jul 2019 14:47:30 +0000 (07:47 -0700)]
bpo-37500: Make sure dead code does not generate bytecode but also detect syntax errors (GH-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
18c5f9d44dde37c0fae5585a604c6027825252d2 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Mon, 29 Jul 2019 14:18:47 +0000 (07:18 -0700)]
Fix `SyntaxError` indicator printing too many spaces for multi-line strings (GH-14433)
(cherry picked from commit
5b94f3578c662d5f1ee90c0e6b81481d9ec82d89 )
Co-authored-by: Anthony Sottile <asottile@umich.edu>
Łukasz Langa [Mon, 29 Jul 2019 13:26:01 +0000 (15:26 +0200)]
Python 3.8.0b3
Miss Islington (bot) [Mon, 29 Jul 2019 01:20:02 +0000 (18:20 -0700)]
bpo-36044: Avoid warnings in Windows PGO build and add lzma, bz2 and sqlite 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>
Miss Islington (bot) [Sun, 28 Jul 2019 19:45:46 +0000 (12:45 -0700)]
bpo-37697: Sync with importlib_metadata 0.19 (GH-14993) (GH-14995)
* 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>
Miss Islington (bot) [Sun, 28 Jul 2019 16:39:03 +0000 (09:39 -0700)]
bpo-37692: Improve highlight config sample (GH-14983)
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>
Miss Islington (bot) [Sun, 28 Jul 2019 11:48:26 +0000 (04:48 -0700)]
Remove trailing .0 from version changed note (GH-14987)
(cherry picked from commit
17a058ed6ffa7f56c0920d15d214ad080e7eef86 )
Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
Miss Islington (bot) [Sat, 27 Jul 2019 21:26:58 +0000 (14:26 -0700)]
bpo-37691: Let math.dist() accept sequences and iterables for coordinates (GH-14975) (GH-14984)
(cherry picked from commit
6b5f1b496f0b20144592b640b9c975df43a29eb0 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Sat, 27 Jul 2019 17:19:12 +0000 (10:19 -0700)]
bpo-37628: Fix IDLE config sample sizes (GH-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
3221a63c69268a9362802371a616f49d522a5c4f )
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Miss Islington (bot) [Sat, 27 Jul 2019 13:04:13 +0000 (06:04 -0700)]
Add Qt GUI example to the logging cookbook. (GH-14978) (GH-14979)
(cherry picked from commit
1ed915e8ae3cc59ad8f7a8eaccb94f27f19b10a6 )
Miss Islington (bot) [Sat, 27 Jul 2019 03:46:52 +0000 (20:46 -0700)]
bpo-17535: Increase line number horizontal padding by 2 pixels (GH-14959)
(cherry picked from commit
46ebd4a6a22431ce9676546d2bbe5a6dcd1cc1c1 )
Co-authored-by: Tal Einat <taleinat@gmail.com>
Miss Islington (bot) [Fri, 26 Jul 2019 22:04:28 +0000 (15:04 -0700)]
bpo-32910: Remove implementation detail in venv documentation. (GH-14968)
(cherry picked from commit
91e49575095ca16d1b67dd8822deeb7885e421da )
Co-authored-by: Derek Keeler <d3r3kk@users.noreply.github.com>
Steve Dower [Fri, 26 Jul 2019 20:39:51 +0000 (13:39 -0700)]
bpo-35524: Update Windows installer image in docs (GH-14966)
Miss Islington (bot) [Fri, 26 Jul 2019 16:24:43 +0000 (09:24 -0700)]
bpo-37664: Update regex for ignoring cache warning on some buildbots (GH-14960)
(cherry picked from commit
b1eb20e68e30c8ab128f9d63d622f0a8b49dcf34 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Thu, 25 Jul 2019 21:55:43 +0000 (14:55 -0700)]
bpo-37641 preserve relative file location in embeddable zip (GH-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
c4cda4369f4b8f33082890d16dfc364a90658ef6 )
Co-authored-by: Bill Collins <bilbocollins@gmail.com>
Miss Islington (bot) [Thu, 25 Jul 2019 17:27:59 +0000 (10:27 -0700)]
Swap 'if' branches so content matches to condition in importlib example (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>
Miss Islington (bot) [Thu, 25 Jul 2019 16:18:20 +0000 (09:18 -0700)]
bpo-37502: handle default parameter for buffers argument of pickle.loads correctly (GH-14593)
(cherry picked from commit
898318b53d921298d1f1fcfa0f415844afbeb318 )
Co-authored-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Miss Islington (bot) [Thu, 25 Jul 2019 00:00:39 +0000 (17:00 -0700)]
closes bpo-37675: Use pkgutil.iter_modules to find fixers in a package rather than listdir. (14942)
(cherry picked from commit
93e8aa62cfd0a61efed4a61a2ffc2283ae986ef2 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Miss Islington (bot) [Wed, 24 Jul 2019 22:31:48 +0000 (15:31 -0700)]
bpo-37672: Switch Windows Store package to use pip.ini for user mode (GH-14939)
(cherry picked from commit
123536fdab7b8def15c859aa70232bc55ec73096 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Wed, 24 Jul 2019 19:28:12 +0000 (12:28 -0700)]
bpo-37664: Update bundled pip to 19.2.1 and setuptools to 41.0.1 (GH-14934)
(cherry picked from commit
5380def8269b24a8a3bc46396373a1dc91b1dd1a )
Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
Stefan Behnel [Wed, 24 Jul 2019 18:46:01 +0000 (20:46 +0200)]
[3.8] bpo-37399: Correctly attach tail text to the last element/comment/pi (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.
Miss Islington (bot) [Wed, 24 Jul 2019 18:32:56 +0000 (11:32 -0700)]
[3.8] bpo-34160: explain how to deal with attribute order in ElementTree (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>
Miss Islington (bot) [Wed, 24 Jul 2019 17:14:53 +0000 (10:14 -0700)]
[3.8] Touch up venv docs (GH-14922) (GH-14923)
(cherry picked from commit
2f224a077a83ac9de8a12bb7dcc516642b8176d8 )
Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com>
Automerge-Triggered-By: @brettcannon
Miss Islington (bot) [Wed, 24 Jul 2019 06:30:27 +0000 (23:30 -0700)]
bpo-37667: Add regression test for regrtest. (GH-14929)
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>
Miss Islington (bot) [Wed, 24 Jul 2019 04:53:34 +0000 (21:53 -0700)]
Only setup PGO tests when --pgo is enabled. (GH-14927)
(cherry picked from commit
f0807ab24cbd13163bff7e0de3a97fe83584b80d )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Tue, 23 Jul 2019 20:23:43 +0000 (13:23 -0700)]
bpo-29446: IDLE -- add explicit imports (GH-14919) (GH-14920)
Stop depending on tkinter import *.
(cherry picked from commit
c6fd6c83b70df76421d05a7628367e64a2f83589 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 23 Jul 2019 13:04:13 +0000 (06:04 -0700)]
bpo-17535: IDLE editor line numbers (GH-14030)
(cherry picked from commit
7123ea009b0b004062d91f69859bddf422c34ab4 )
Co-authored-by: Tal Einat <taleinat@gmail.com>
Jeroen Demeyer [Tue, 23 Jul 2019 10:39:51 +0000 (12:39 +0200)]
[3.8] bpo-36974: separate vectorcall functions for each calling convention (GH-13781) (#14782)
Miss Islington (bot) [Tue, 23 Jul 2019 10:18:41 +0000 (03:18 -0700)]
bpo-33610: validate non-negative integer inputs in IDLE's config (GH-14822)
(cherry picked from commit
1ebee37dde5c2aabc8e2d2c7bbe2a69b293133bb )
Co-authored-by: Tal Einat <taleinat@gmail.com>
Miss Islington (bot) [Mon, 22 Jul 2019 20:17:23 +0000 (13:17 -0700)]
bpo-36044: Reduce number of unit tests run for PGO build (GH-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
4e16a4a3112161a5c6981c0588142d4a4673a934 )
Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Miss Islington (bot) [Mon, 22 Jul 2019 12:25:46 +0000 (05:25 -0700)]
Update logging cookbook to show multiple worker processes using the concurrent.futures module. (GH-14905) (GH-14906)
(cherry picked from commit
d309352c6fd93a51f2b3011ca8c2125d3a5d394b )
Miss Islington (bot) [Mon, 22 Jul 2019 07:59:00 +0000 (00:59 -0700)]
bpo-21478: Record calls to parent when autospecced objects are used as child 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>
Kyle Stanley [Mon, 22 Jul 2019 02:48:45 +0000 (22:48 -0400)]
[3.8] Fix typos in docs, comments and test assert messages (GH-14872). (#14900)
(cherry picked from commit
96e12d5f4f3c5a20986566038ee763dff3c228a1 )
Co-authored-by: Min ho Kim <minho42@gmail.com>
Miss Islington (bot) [Sun, 21 Jul 2019 23:39:08 +0000 (16:39 -0700)]
Add examples to elucidate the formulas (GH-14898) (GH-14899)
(cherry picked from commit
b530a4460b7a6ea96f1fa81a7c5bb529ead574ef )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Sun, 21 Jul 2019 20:38:09 +0000 (13:38 -0700)]
bpo-37627: Add acknowledgment (GH-14883)
(cherry picked from commit
4214f1ec3b3c73badd639229eff81eb5e57b82ec )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 21 Jul 2019 20:25:43 +0000 (13:25 -0700)]
bpo-37627: Initialize IDLE Custom Run dialog with previous entries (GH-14870)
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>
Miss Islington (bot) [Sun, 21 Jul 2019 19:44:28 +0000 (12:44 -0700)]
Fix typo found by Min ho Kim (GH-14879)
(cherry picked from commit
8e3a7380ecb310b50e48f47d1f26190cc9c45eb6 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 21 Jul 2019 19:38:58 +0000 (12:38 -0700)]
Minor whitespace, indentation, and quoting changes to improve internal consistency and appease linters (GH-14888) (GH-14889)
(cherry picked from commit
1c0e9bb94b8cfb5970532a9f3499563360ea5532 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Sun, 21 Jul 2019 18:08:57 +0000 (11:08 -0700)]
Bpo-37644: update suspicious.csv for distutils/examples (GH-14885)
(cherry picked from commit
22f0483d44b13140f6ea9927f0cf088c493e875a )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Sun, 21 Jul 2019 07:55:13 +0000 (00:55 -0700)]
bpo-36324: Make internal attributes for statistics.NormalDist() private. (GH-14871) (GH-14875)
Miss Islington (bot) [Fri, 19 Jul 2019 18:29:58 +0000 (11:29 -0700)]
Adjust builtins.zip() docstring to better communicate its signature (GH-14833)
(cherry picked from commit
af2f5b1723b95e45e1f15b5bd52102b7de560f7c )
Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
Miss Islington (bot) [Fri, 19 Jul 2019 09:17:53 +0000 (02:17 -0700)]
bpo-36546: Clean-up comments (GH-14857) (#14859)
(cherry picked from commit
eed5e9a9562d4dcd137e9f0fc7157bc3373c98cc )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Fri, 19 Jul 2019 09:17:21 +0000 (02:17 -0700)]
bpo-37624: Document weight assumptions for random.choices() (GH-14855) (GH-14858)
(cherry picked from commit
8dbe563aa6bd18b8c581951537dfb406d36e8063 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Fri, 19 Jul 2019 01:31:41 +0000 (18:31 -0700)]
bpo-37610: improve Using Python doc wrt Editors & IDE (GH-14850)
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>
Miss Islington (bot) [Thu, 18 Jul 2019 20:47:26 +0000 (13:47 -0700)]
bpo-33610: IDLE's code-context always shows current context immediately (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>