]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Sat, 16 Nov 2019 22:45:24 +0000 (14:45 -0800)]
bpo-38823: Clean up refleaks in _asyncio initialization. (GH-17195)
https://bugs.python.org/issue38823
(cherry picked from commit
c3f6bdc332d23588102eba749a5929dd5bb67c9d )
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Miss Islington (bot) [Sat, 16 Nov 2019 18:32:37 +0000 (10:32 -0800)]
Fix typo in Lib/socketserver.py (GH-17024)
changed 'This is bad class design, but save some typing'
into 'This is bad class design, but saves some typing'.
(cherry picked from commit
d0acdfcf345b44b01e59f3623dcdab6279de686a )
Co-authored-by: Jason (Perry) Taylor <jtaylor@seek.com.au>
Jules Lasne (jlasne) [Fri, 15 Nov 2019 22:47:17 +0000 (23:47 +0100)]
[3.7] Updated missing periods in cmdline.rst (GH-17173). (GH-17182)
(cherry picked from commit
0fe0b88d6eb597c9a929e14ad47a5a9bd99bfe53 )
Co-authored-by: Jules Lasne (jlasne) <jules.lasne@gmail.com>
Miss Islington (bot) [Fri, 15 Nov 2019 09:14:44 +0000 (01:14 -0800)]
bpo-38351: Modernize email examples from %-formatting to f-strings (GH-17162)
(cherry picked from commit
e8acc865a3f112b98417f676c897ca6ec2dac2c7 )
Co-authored-by: Andrey Doroschenko <dorosch.github.io@yandex.ru>
Miss Islington (bot) [Wed, 13 Nov 2019 21:54:50 +0000 (13:54 -0800)]
bpo-38785: Prevent asyncio from crashing (GH-17144)
if parent `__init__` is not called from a constructor of object derived from `asyncio.Future`
https://bugs.python.org/issue38785
(cherry picked from commit
dad6be5ffe48beb74fad78cf758b886afddc7aed )
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Miss Islington (bot) [Wed, 13 Nov 2019 07:37:07 +0000 (23:37 -0800)]
bpo-4630: Add cursor no-blink option for IDLE (GH-16960)
This immediately toggles shell, editor, and output windows, but does not affect other input widgets.
(cherry picked from commit
9c2844927d15b2d3e21b28d62249dead02b5b597 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Wed, 13 Nov 2019 03:18:28 +0000 (19:18 -0800)]
Fix minor typos. (GH-17095)
(cherry picked from commit
2d56af7a94fe7ec0bdf3011652558ae1b889b4a8 )
Co-authored-by: Shu <23287722+susan-shu-c@users.noreply.github.com>
Benjamin Peterson [Tue, 12 Nov 2019 23:34:43 +0000 (15:34 -0800)]
[3.7] closes bpo-27805: Ignore ESPIPE in initializing seek of append-mode files. (GH-17137)
This change, which follows the behavior of C stdio's fdopen and Python 2's file object, allows pipes to be opened in append mode..
(cherry picked from commit
74fa9f723f700a342e582b5ad4b51a2c4801cd1c )
Serhiy Storchaka [Tue, 12 Nov 2019 18:07:20 +0000 (20:07 +0200)]
[3.7] bpo-38738: Fix formatting of True and False. (GH-17083) (GH-17128)
* "Return true/false" is replaced with "Return ``True``/``False``"
if the function actually returns a bool.
* Fixed formatting of some True and False literals (now in monospace).
* Replaced "True/False" with "true/false" if it can be not only bool.
* Replaced some 1/0 with True/False if it corresponds the code.
* "Returns <bool>" is replaced with "Return <bool>".
(cherry picked from commit
138ccbb02216ca086047c3139857fb44f3dab1f9 )
Miss Islington (bot) [Tue, 12 Nov 2019 13:34:16 +0000 (05:34 -0800)]
[3.7] bpo-38421: Update email.utils documentation (GH-16678) (GH-17121)
Updates documentation around email.utils.parsedate_tz().
Currently, the documentation specifies that when a string without a is timezone passed to parsedate_tz(), the last tuple is returned as ```None```.
This is no longer true since Python 3.3
https://bugs.python.org/issue38421
(cherry picked from commit
a12255d8def0c82560545e66c1be981a447751c3 )
Co-authored-by: David K <dave@paddez.com>
https://bugs.python.org/issue38421
Automerge-Triggered-By: @encukou
Miss Islington (bot) [Tue, 12 Nov 2019 11:13:32 +0000 (03:13 -0800)]
bpo-26353: IDLE adds an unneeded newline when saving a shell window (GH-17103)
(cherry picked from commit
c8b53dc3d8f721ed8519aa5a35530a42fbfb9424 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Tue, 12 Nov 2019 10:21:06 +0000 (02:21 -0800)]
[3.8] bpo-37309: idlelib/NEWS.txt - add missing period. (GH-17115)
(cherry picked from commit
8341a4d918ca96f8a5523444e056ffa82fa039d5 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 12 Nov 2019 00:58:49 +0000 (16:58 -0800)]
bpo-38771: Explict test for None in code example (GH-17108) (GH-17110)
(cherry picked from commit
98480cef9dba04794bd61c7e7cca643d384c8c35 )
Co-authored-by: Jonathan Scholbach <j.scholbach@posteo.de>
Miss Islington (bot) [Sat, 9 Nov 2019 11:12:35 +0000 (03:12 -0800)]
bpo-22367: Add tests for fcntl.lockf(). (GH-17010)
(cherry picked from commit
befa032d8869e0fab4732d910f3887642879d644 )
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Ammar Askar [Wed, 6 Nov 2019 15:40:06 +0000 (10:40 -0500)]
bpo-16575: Fix refleak on passing unions in ctypes (GH-17064)
The master and 3.8 versions of the previous change work as expected
because we perform the lookup for the `from_param` after the union
check. However, in 3.7, this lookup happens before the union
validation and so we must decrease the reference for `cnv` before
returning.
Miss Islington (bot) [Wed, 6 Nov 2019 14:27:17 +0000 (06:27 -0800)]
bpo-38696: Fix usage example of HTTPStatus (GH-17066)
(cherry picked from commit
56698d57691af2272f695f8c17c835ed99545cde )
Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
Jules Lasne (jlasne) [Tue, 5 Nov 2019 14:02:09 +0000 (15:02 +0100)]
[3.7] [3.8] Update interpreter.rst (GH-17059) (GH-17060) (GH-17061)
Fixed what seemed to be a weird phrasing.
(cherry picked from commit
5e01a6542a1beb552a17e16b71dc0ba9fc6adcfb )
Co-authored-by: Jules Lasne (jlasne) <jules.lasne@gmail.com>.
(cherry picked from commit
1eac437e8da106a626efffe9fce1cb47dbf5be35 )
Co-authored-by: Jules Lasne (jlasne) <jules.lasne@gmail.com>
Miss Islington (bot) [Tue, 5 Nov 2019 13:36:09 +0000 (05:36 -0800)]
[3.7] bpo-38159: Clarify documentation of PyState_AddModule (GH-16101) (GH-17027)
This was never intented to be called manually from PyInit_*.
Also, clarify PyState_RemoveModule return value.
(cherry picked from commit
9bc94eca0c69a551f928692364a99e9b67c4a45b )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
https://bugs.python.org/issue38159
Automerge-Triggered-By: @encukou
Miss Islington (bot) [Tue, 5 Nov 2019 04:50:01 +0000 (20:50 -0800)]
Fix a typo in wave module docstring (GH-17009)
s/pathing/patching/
(cherry picked from commit
25fa3ecb98f2c038a422b19c53641fa8e3ef8e52 )
Co-authored-by: Michael Haas <micha2718l@gmail.com>
Miss Skeleton (bot) [Sat, 2 Nov 2019 17:04:18 +0000 (10:04 -0700)]
bpo-38422: Clarify docstrings of pathlib suffix(es) (GH-16679)
Whenever I use `path.suffix` I have to check again whether it includes the dot or not. I decided to add it to the docstring so I won't have to keep checking.
https://bugs.python.org/issue38422
Automerge-Triggered-By: @pitrou
(cherry picked from commit
8d4fef4ee2a318097f429cf6cbd4fb2e430bb9da )
Co-authored-by: Ram Rachum <ram@rachum.com>
Vinay Sajip [Thu, 31 Oct 2019 14:15:04 +0000 (14:15 +0000)]
[3.7] bpo-16575: Add checks for unions passed by value to functions. (GH-16799) (GH-17017)
(cherry picked from commit
79d4ed102a5069c6cebaed2627cb1645637f0429 )
Miss Skeleton (bot) [Thu, 31 Oct 2019 12:50:32 +0000 (05:50 -0700)]
Add docstring for shlex.split (GH-16740) (GH-17012)
(cherry picked from commit
65c7382c47af07aea5c1ce86b76cf7f4b6acaaa2 )
Co-authored-by: MaT1g3R <peijun.ma@protonmail.com>
Miss Skeleton (bot) [Thu, 31 Oct 2019 12:09:57 +0000 (05:09 -0700)]
Update the URL for the requests package (GH-17006)
Change the url from docs.python-requests.org to requests.readthedocs.io
(cherry picked from commit
112f2b805bc83429e8a66a54d088bbefc921abb7 )
Co-authored-by: Simon Legner <Simon.Legner@gmail.com>
Serhiy Storchaka [Wed, 30 Oct 2019 20:45:14 +0000 (22:45 +0200)]
[3.7] bpo-38600: NULL -> ``NULL``. (GH-17001) (GH-17004)
Also fix some other formatting.
(cherry picked from commit
e835b31d2b212c3c7820364398979cae2a9740b2 )
Serhiy Storchaka [Wed, 30 Oct 2019 19:36:19 +0000 (21:36 +0200)]
[3.7] bpo-38600: Change the mark up of NULL in the C API documentation. (GH-16950) (GH-17000)
Replace all *NULL* with ``NULL``.
(cherry picked from commit
25fc088607c855060ed142296dc1bd0125fad1af )
Miss Skeleton (bot) [Tue, 29 Oct 2019 09:38:37 +0000 (02:38 -0700)]
bpo-37330: open(): "U" mode is removed in Python 3.9 (GH-16972)
Update open() documentation.
(cherry picked from commit
1d2862a323ae1387e306942253b1e487018e2b7f )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Skeleton (bot) [Tue, 29 Oct 2019 07:43:37 +0000 (00:43 -0700)]
bpo-36993: Improve error reporting for zipfiles with bad zip64 extra data. (GH-14656)
(cherry picked from commit
da6ce58dd5ac109485af45878fca6bfd265b43e9 )
Co-authored-by: Daniel Hillier <daniel.hillier@gmail.com>
Miss Skeleton (bot) [Mon, 28 Oct 2019 21:52:00 +0000 (14:52 -0700)]
bpo-38589: Fixes HTML Help shortcut when Windows is not installed to C drive (GH-16968)
(cherry picked from commit
0ac6137dd3d1e2c8f9558153ad63021f57e05e73 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Skeleton (bot) [Sun, 27 Oct 2019 10:13:10 +0000 (03:13 -0700)]
bpo-38592 Add pt-br switcher to Python Docs website (GH-16924) (GH-16954)
(cherry picked from commit
85c6f8c65cd4f7219522c1f304bdfff19f785e7a )
Co-authored-by: Marco Rougeth <marco@rougeth.com>
Miss Skeleton (bot) [Sun, 27 Oct 2019 08:41:27 +0000 (01:41 -0700)]
bpo-38334: Fix seeking backward on an encrypted zipfile.ZipExtFile. (GH-16937)
Test by Daniel Hillier.
(cherry picked from commit
5c32af7522d908e8c7da0243af37618433289cc5 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Terry Jan Reedy [Sun, 27 Oct 2019 06:38:20 +0000 (02:38 -0400)]
[3.7] bpo-37309: First idlelib/NEWS.txt for 3.7.6 (GH-) (#16949)
Miss Skeleton (bot) [Sun, 27 Oct 2019 02:38:26 +0000 (19:38 -0700)]
bpo-34162: Last idlelib/NEWS.txt items for 3.8.0. (GH-16943)
(cherry picked from commit
e31a79a5b44357b409d71949dc5308889970f9ab )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Skeleton (bot) [Sun, 27 Oct 2019 01:32:11 +0000 (18:32 -0700)]
bpo-38598: Do not try to compile IDLE shell or output windows (GH-16939)
(cherry picked from commit
e3f90b217a5152275b180b466bd503658a734462 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Skeleton (bot) [Sat, 26 Oct 2019 20:05:18 +0000 (13:05 -0700)]
bpo-38557: Improve documentation for list and tuple C API. (GH-16925)
(cherry picked from commit
d898d20e8c228229eb68e545f544db13f246f216 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Sat, 26 Oct 2019 14:30:14 +0000 (17:30 +0300)]
[3.7] bpo-38535: Fix positions for AST nodes for calls without arguments in decorators. (GH-16861). (GH-16930)
(cherry picked from commit
26ae9f6d3d755734c9f371b9356325afe5764813 )
Miss Skeleton (bot) [Fri, 25 Oct 2019 17:02:47 +0000 (10:02 -0700)]
Fix typo in formatter_unicode (GH-16831)
numbers's -> number's
(cherry picked from commit
7320ec05f72fc27b25789fe76f8297644e7e7e0a )
Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
Miss Skeleton (bot) [Thu, 24 Oct 2019 06:36:26 +0000 (23:36 -0700)]
bpo-33348: parse expressions after * and ** in lib2to3 (GH-6586)
These are valid even in python 2.7
https://bugs.python.org/issue33348
Automerge-Triggered-By: @gpshead
(cherry picked from commit
96b06aefe23521b61e4e9cdd44f5d30b00c7eb95 )
Co-authored-by: Zsolt Dollenstein <zsol.zsol@gmail.com>
Miss Skeleton (bot) [Wed, 23 Oct 2019 20:27:22 +0000 (13:27 -0700)]
Update URL in macOS installer copy of license (GH-16905)
(cherry picked from commit
01659ca62c4508518478a74615ac91c0009427ad )
Co-authored-by: Ned Deily <nad@python.org>
Miss Skeleton (bot) [Wed, 23 Oct 2019 11:45:09 +0000 (04:45 -0700)]
Spell Bitbucket correctly. (GH-16862) (GH-16899)
(cherry picked from commit
d34ac305327420bd68f05e201b63d2a665b073f8 )
Co-authored-by: Peter Bittner <django@bittner.it>
Miss Skeleton (bot) [Tue, 22 Oct 2019 20:17:21 +0000 (13:17 -0700)]
bpo-37415: Fix stdatomic.h header check for ICC compiler (GH-16717)
Fix stdatomic.h header check for ICC compiler: the ICC implementation
lacks atomic_uintptr_t type which is needed by Python.
Test:
* atomic_int and atomic_uintptr_t types
* atomic_load_explicit() and atomic_store_explicit()
* memory_order_relaxed and memory_order_seq_cst constants
But don't test ATOMIC_VAR_INIT(): it's not used in Python.
(cherry picked from commit
028f7349a0f6eaea0fec31becb587fcdf6e3cb28 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Skeleton (bot) [Tue, 22 Oct 2019 09:49:32 +0000 (02:49 -0700)]
Fix Zope URL (GH-16880)
(cherry picked from commit
dfe726b1ace03f206f45253b93ed7610473ae20f )
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Serhiy Storchaka [Mon, 21 Oct 2019 18:41:09 +0000 (21:41 +0300)]
bpo-38540: Revert a warning if PY_SSIZE_T_CLEAN is not defined. (GH-16876)
Miss Skeleton (bot) [Mon, 21 Oct 2019 18:12:17 +0000 (11:12 -0700)]
bpo-31202: Preserve case of literal parts in Path.glob() on Windows. (GH-16860)
(cherry picked from commit
10ecbadb799ddf3393d1fc80119a3db14724d381 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Skeleton (bot) [Mon, 21 Oct 2019 08:56:50 +0000 (01:56 -0700)]
bpo-38540: Fix possible leak in PyArg_Parse for "esGH-" and "etGH-". (GH-16869)
(cherry picked from commit
5bc6a7c06eda20ba131ecba6752be0506d310181 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 19 Oct 2019 19:29:20 +0000 (12:29 -0700)]
Remove doc reference to unmaitained Nose package (GH-16849)
The Nose package is no longer maintained.
(cherry picked from commit
88eeda6311a8e3bf57136da5f73c70bc91ad79f3 )
Co-authored-by: Jon Dufresne <jon.dufresne@gmail.com>
Miss Islington (bot) [Fri, 18 Oct 2019 13:24:28 +0000 (06:24 -0700)]
bpo-27657: Fix urlparse() with numeric paths (GH-661)
* bpo-27657: Fix urlparse() with numeric paths
Revert parsing decision from bpo-754016 in favor of the documented
consensus in bpo-16932 of how to treat strings without a // to
designate the netloc.
* bpo-22891: Remove urlsplit() optimization for 'http' prefixed inputs.
(cherry picked from commit
5a88d50ff013a64fbdb25b877c87644a9034c969 )
Co-authored-by: Tim Graham <timograham@gmail.com>
Victor Stinner [Wed, 16 Oct 2019 09:44:30 +0000 (11:44 +0200)]
bpo-35998: Fix test_asyncio.test_start_tls_server_1() (GH-16815) (GH-16818)
main() is now responsible to send the ANSWER, rather than
ServerProto. main() now waits until it got the HELLO before sending
the ANSWER over the new transport.
Previously, there was a race condition between main() replacing the
protocol and the protocol sending the ANSWER once it gets the HELLO.
TLSv1.3 was disabled for the test: reenable it.
(cherry picked from commit
fab4ef2df0857ab0c97f3058ac5ec3280c4eb891 )
Miss Islington (bot) [Tue, 15 Oct 2019 21:31:51 +0000 (14:31 -0700)]
Update doc switcher list for 3.8.0 (GH-16809)
(cherry picked from commit
3f36043db22361500f52634f2b8de49dde0e7da9 )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Tue, 15 Oct 2019 21:07:40 +0000 (14:07 -0700)]
Typo fix - implemention should be implementation (GH-16806)
(cherry picked from commit
2798b60c55619d8981288b69c20ba4a09efc7b0b )
Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
Ned Deily [Tue, 15 Oct 2019 07:28:42 +0000 (03:28 -0400)]
Post release updates
Ned Deily [Tue, 15 Oct 2019 07:15:46 +0000 (03:15 -0400)]
Merge tag 'v3.7.5' into 3.7
Ned Deily [Mon, 14 Oct 2019 22:32:36 +0000 (18:32 -0400)]
3.7.5
Miss Islington (bot) [Mon, 14 Oct 2019 22:19:51 +0000 (15:19 -0700)]
Doc: 3.8 is now stable. (GH-16790) (GH-16792)
(cherry picked from commit
4504b4500d2a1a80c26b27b0bfff8b624d5ce06c )
Co-authored-by: Julien Palard <julien@palard.fr>
Ned Deily [Mon, 14 Oct 2019 22:00:26 +0000 (18:00 -0400)]
Fix some news entries for 3.7.5 final.
Ned Deily [Mon, 14 Oct 2019 13:27:03 +0000 (09:27 -0400)]
[3.7] Update build docs for macOS (GH-16771) (GH-16774)
Ned Deily [Mon, 14 Oct 2019 08:38:13 +0000 (04:38 -0400)]
[3.7] Update macOS installer display files for 3.7.5 (GH-16767)
Miss Islington (bot) [Sun, 13 Oct 2019 16:58:59 +0000 (09:58 -0700)]
bpo-28556: Remove another mention of metaclass of Generic in typing docs (GH-16743)
Metaclass was removed in Python 3.7 (there is already a `versionchanged` item about this).
https://bugs.python.org/issue28556
(cherry picked from commit
8144095707f87bdee6f3e1bbb15283ea61381be6 )
Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
Abhilash Raj [Sat, 12 Oct 2019 18:50:03 +0000 (11:50 -0700)]
[3.7] bpo-38449: Revert "bpo-22347: Update mimetypes.guess_type to allow oper parsing of URLs (GH-15685)" (GH-16724) (GH-16727)
Reverts GH-15687 which caused the issue.
https://bugs.python.org/issue22347
https://bugs.python.org/issue38449
Miss Islington (bot) [Fri, 11 Oct 2019 17:27:16 +0000 (10:27 -0700)]
Fix typo: equivalent code of `async with cond` (GH-11681) (GH-16720)
Zachary Ware [Fri, 11 Oct 2019 16:30:37 +0000 (11:30 -0500)]
Update badges in README.rst (GH-16710)
We no longer use AppVeyor in 3.x, and others were still pointed at master.
Miss Islington (bot) [Fri, 11 Oct 2019 04:01:33 +0000 (21:01 -0700)]
Typo fix: "throuhgh" should be "through". (GH-16704)
(cherry picked from commit
a8e0d3141e271b3c0fbb7399a911f0c3aa567e30 )
Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
Miss Islington (bot) [Thu, 10 Oct 2019 11:17:05 +0000 (04:17 -0700)]
bpo-32996: Documentation fix-up. (GH-16646)
PR GH-4906 changed the typing.Generic class hierarchy, leaving an
outdated comment in the library reference. User-defined Generic ABCs now
must get a abc.ABCMeta metaclass from something other than typing.Generic
inheritance.
(cherry picked from commit
d47f0dd2e85ce032aebfedbde18cdb2e728fa79f )
Co-authored-by: M. Eric Irrgang <mei2n@virginia.edu>
Miss Islington (bot) [Wed, 9 Oct 2019 09:29:31 +0000 (02:29 -0700)]
bpo-36953: Delay removal of ABCs from collections. (GH-13409)
Bump the removal to 3.9, indicate collections.abc available since 3.3,
replace version-changed directive to deprecated-removed.
https://bugs.python.org/issue36953
(cherry picked from commit
eea47e09394dfb64d3a59a601d947d25bb1bdc96 )
Co-authored-by: Matthias Bussonnier <mbussonnier@ucmerced.edu>
Vinay Sajip [Wed, 9 Oct 2019 05:48:48 +0000 (06:48 +0100)]
bpo-38368: Added fix for ctypes crash when handling arrays in structs/unions. (GH-16589) (GH-16672)
(cherry picked from commit
e8bedbddadaa86be6bd86dc32dbdbd53933a4988 )
Miss Islington (bot) [Wed, 9 Oct 2019 02:42:15 +0000 (19:42 -0700)]
Typo fix: "empy" should be "empty". (GH-16666)
(cherry picked from commit
01171ebd966b0cd6352057799ad876dd1e07942e )
Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
Ricardo Bánffy [Tue, 8 Oct 2019 16:41:00 +0000 (17:41 +0100)]
[3.7] bpo-38294: Add list of no-longer-escaped chars to re.escape documentation. (GH-16442) (GH-16647)
Prior to 3.7, re.escape escaped many characters that don't have
special meaning in Python, but that use to require escaping in other
tools and languages. This commit aims to make it clear which characters
were, but are no longer escaped.
(cherry picked from commit
15ae75d660befe643ed42eb2707a557cea97256c )
Miss Islington (bot) [Tue, 8 Oct 2019 09:25:56 +0000 (02:25 -0700)]
Fix typo in _warnings.warn_explicit() docstring (GH-16625)
(cherry picked from commit
5dfbb4d50333e7a91fc0cd8c03a2f2f2cf56dbd9 )
Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
Miss Islington (bot) [Mon, 7 Oct 2019 21:25:06 +0000 (14:25 -0700)]
bpo-38344: Fix syntax in activate.bat (GH-16533)
(cherry picked from commit
e310af9e2941c2fbb7370e003276cc37eb230f16 )
Co-authored-by: James Abel <j@abel.co>
Miss Islington (bot) [Mon, 7 Oct 2019 12:04:09 +0000 (05:04 -0700)]
bpo-38391: Fixing a typo for Py_DECREF (GH-16616)
(cherry picked from commit
038503e08ac5b10601b95d5adc2c2cab7be10163 )
Co-authored-by: Krishna Oza <krishoza15sep@gmail.com>
Miss Islington (bot) [Mon, 7 Oct 2019 02:14:49 +0000 (19:14 -0700)]
bpo-26510: Add versionchanged for required arg of add_subparsers (GH-16588)
The `required` argument to `argparse.add_subparsers` was added in GH-3027. This PR specifies the earliest version of Python where it is available.
https://bugs.python.org/issue26510
Automerge-Triggered-By: @merwok
(cherry picked from commit
9e71917e0290972f65711f75510078f799cf0b59 )
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Miss Islington (bot) [Fri, 4 Oct 2019 08:14:28 +0000 (01:14 -0700)]
bpo-38235: Correct some arguments names in logging documentation (GH-16571) (GH-16577)
(cherry picked from commit
3142c667b50254daaa28f22c79bdda177136bd03 )
Co-authored-by: Ashley Whetter <AWhetter@users.noreply.github.com>
Miss Islington (bot) [Thu, 3 Oct 2019 21:27:35 +0000 (14:27 -0700)]
bpo-34344 Fix AbstractEventLoopPolicy.get_event_loop docstring (GH-16463)
(cherry picked from commit
b23a8423a923077e4f83d3f328bb7542b4c940ed )
Co-authored-by: idomic <michael.ido@gmail.com>
Ned Deily [Mon, 14 Oct 2019 13:27:03 +0000 (09:27 -0400)]
[3.7] Update build docs for macOS (GH-16771) (GH-16774)
Ned Deily [Mon, 14 Oct 2019 08:38:13 +0000 (04:38 -0400)]
[3.7] Update macOS installer display files for 3.7.5 (GH-16767)
Miss Islington (bot) [Sun, 13 Oct 2019 16:58:59 +0000 (09:58 -0700)]
bpo-28556: Remove another mention of metaclass of Generic in typing docs (GH-16743)
Metaclass was removed in Python 3.7 (there is already a `versionchanged` item about this).
https://bugs.python.org/issue28556
(cherry picked from commit
8144095707f87bdee6f3e1bbb15283ea61381be6 )
Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
Abhilash Raj [Sat, 12 Oct 2019 18:50:03 +0000 (11:50 -0700)]
[3.7] bpo-38449: Revert "bpo-22347: Update mimetypes.guess_type to allow oper parsing of URLs (GH-15685)" (GH-16724) (GH-16727)
Reverts GH-15687 which caused the issue.
https://bugs.python.org/issue22347
https://bugs.python.org/issue38449
Miss Islington (bot) [Sat, 12 Oct 2019 17:02:23 +0000 (10:02 -0700)]
bpo-38332: Catch KeyError from unknown cte in encoded-word. (GH-16503)
KeyError should cause a failure in parsing the encoded word and should be caught and raised as a _InvalidEWError instead.
(cherry picked from commit
65dcc8a8dc41d3453fd6b987073a5f1b30c5c0fd )
Co-authored-by: Andrei Troie <andreitroie90@gmail.com>
Miss Islington (bot) [Sat, 12 Oct 2019 16:26:04 +0000 (09:26 -0700)]
bpo-38341: Add SMTPNotSupportedError in the exports of smtplib (GH-16525)
Add SMTPNotSupportedError in the exports of smtplib
Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com>
(cherry picked from commit
3faf826e5879536d2272f1a51c58965a16827f81 )
Co-authored-by: nde <denayer.norman@gmail.com>
Pablo Galindo [Fri, 11 Oct 2019 20:28:49 +0000 (21:28 +0100)]
[3.7] bpo-38395: Fix ownership in weakref.proxy methods (GH-16632) (GH-16663)
The implementation of weakref.proxy's methods call back into the Python
API using a borrowed references of the weakly referenced object
(acquired via PyWeakref_GET_OBJECT). This API call may delete the last
reference to the object (either directly or via GC), leaving a dangling
pointer, which can be subsequently dereferenced.
To fix this, claim a temporary ownership of the referenced object when
calling the appropriate method. Some functions because at the moment they
do not need to access the borrowed referent, but to protect against
future changes to these functions, ownership need to be fixed in
all potentially affected methods..
(cherry picked from commit
10cd00a9e3c22af37c748ea5a417f6fb66601e21 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
https://bugs.python.org/issue38395
Miss Islington (bot) [Fri, 11 Oct 2019 17:27:16 +0000 (10:27 -0700)]
Fix typo: equivalent code of `async with cond` (GH-11681) (GH-16720)
Zachary Ware [Fri, 11 Oct 2019 16:30:37 +0000 (11:30 -0500)]
Update badges in README.rst (GH-16710)
We no longer use AppVeyor in 3.x, and others were still pointed at master.
Victor Stinner [Fri, 11 Oct 2019 15:36:56 +0000 (17:36 +0200)]
bpo-38347: find pathfix for Python scripts whose name contain a '-' (GH-16536) (GH-16719)
pathfix.py: Assume all files that end on '.py' are Python scripts when working recursively.
(cherry picked from commit
2b7dc40b2af6578181808ba73c1533fc114e55df )
Miss Islington (bot) [Fri, 11 Oct 2019 04:01:33 +0000 (21:01 -0700)]
Typo fix: "throuhgh" should be "through". (GH-16704)
(cherry picked from commit
a8e0d3141e271b3c0fbb7399a911f0c3aa567e30 )
Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
Miss Islington (bot) [Thu, 10 Oct 2019 13:50:38 +0000 (06:50 -0700)]
bpo-38109: Add missing constants to Lib/stat.py (GH-16665) (GH-16691)
Add missing stat.S_IFDOOR, stat.S_IFPORT, stat.S_IFWHT,
stat.S_ISDOOR, stat.S_ISPORT, and stat.S_ISWHT values to
the Python implementation of the stat module.
(cherry picked from commit
7bb14316b8ceddb813f31040a299af94a57ab339 )
Co-authored-by: Ronan Lamy <ronan.lamy@gmail.com>
Miss Islington (bot) [Thu, 10 Oct 2019 11:17:05 +0000 (04:17 -0700)]
bpo-32996: Documentation fix-up. (GH-16646)
PR GH-4906 changed the typing.Generic class hierarchy, leaving an
outdated comment in the library reference. User-defined Generic ABCs now
must get a abc.ABCMeta metaclass from something other than typing.Generic
inheritance.
(cherry picked from commit
d47f0dd2e85ce032aebfedbde18cdb2e728fa79f )
Co-authored-by: M. Eric Irrgang <mei2n@virginia.edu>
Miss Islington (bot) [Thu, 10 Oct 2019 08:00:41 +0000 (01:00 -0700)]
bpo-38425: Fix ‘res’ may be used uninitialized warning (GH-16688)
(cherry picked from commit
a05fcd3c7adf6e3a0944da8cf80a3346882e9b3b )
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Zachary Ware [Wed, 9 Oct 2019 21:56:07 +0000 (16:56 -0500)]
[3.7] bpo-38409: Fix grammar in str.strip() docstring (GH-16682) (GH-16686)
(cherry picked from commit
09895c27cd8ff60563a794016e8c099bc897cc74 )
Pablo Galindo [Wed, 9 Oct 2019 21:42:54 +0000 (22:42 +0100)]
[3.7] bpo-38379: don't claim objects are collected when they aren't (GH-16658) (GH-16685)
* [bpo-38379](https://bugs.python.org/issue38379): when a finalizer resurrects an object,
nothing is actually collected in this run of gc.
Change the stats to relect that truth..
(cherry picked from commit
ecbf35f9335b0420cb8adfda6f299d6747a16515 )
Co-authored-by: Tim Peters <tim.peters@gmail.com>
https://bugs.python.org/issue38379
Automerge-Triggered-By: @pablogsal
Miss Islington (bot) [Wed, 9 Oct 2019 13:52:34 +0000 (06:52 -0700)]
bpo-37531: regrtest ignores output on timeout (GH-16659)
bpo-37531, bpo-38207: On timeout, regrtest no longer attempts to call
`popen.communicate() again: it can hang until all child processes
using stdout and stderr pipes completes. Kill the worker process and
ignores its output.
Reenable test_regrtest.test_multiprocessing_timeout().
bpo-37531: Change also the faulthandler timeout of the main process
from 1 minute to 5 minutes, for Python slowest buildbots.
(cherry picked from commit
0ec618af98ac250a91ee9c91f8569e6df6772758 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Serhiy Storchaka [Wed, 9 Oct 2019 09:57:14 +0000 (12:57 +0300)]
[3.7] bpo-38407: Add docstrings for typing.SupportsXXX classes. (GH-16644). (GH-16673)
(cherry picked from commit
8252c52e57283515ace5d4251584255dc5c60eb5 )
Serhiy Storchaka [Wed, 9 Oct 2019 09:56:32 +0000 (12:56 +0300)]
[3.7] bpo-38405: Make nested subclasses of typing.NamedTuple pickleable. (GH-16641). (GH-16674)
(cherry picked from commit
13abda41003daf599587991d8291f0dacf6e9519 )
Miss Islington (bot) [Wed, 9 Oct 2019 09:29:31 +0000 (02:29 -0700)]
bpo-36953: Delay removal of ABCs from collections. (GH-13409)
Bump the removal to 3.9, indicate collections.abc available since 3.3,
replace version-changed directive to deprecated-removed.
https://bugs.python.org/issue36953
(cherry picked from commit
eea47e09394dfb64d3a59a601d947d25bb1bdc96 )
Co-authored-by: Matthias Bussonnier <mbussonnier@ucmerced.edu>
Vinay Sajip [Wed, 9 Oct 2019 05:48:48 +0000 (06:48 +0100)]
bpo-38368: Added fix for ctypes crash when handling arrays in structs/unions. (GH-16589) (GH-16672)
(cherry picked from commit
e8bedbddadaa86be6bd86dc32dbdbd53933a4988 )
Miss Islington (bot) [Wed, 9 Oct 2019 02:42:15 +0000 (19:42 -0700)]
Typo fix: "empy" should be "empty". (GH-16666)
(cherry picked from commit
01171ebd966b0cd6352057799ad876dd1e07942e )
Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
Ricardo Bánffy [Tue, 8 Oct 2019 16:41:00 +0000 (17:41 +0100)]
[3.7] bpo-38294: Add list of no-longer-escaped chars to re.escape documentation. (GH-16442) (GH-16647)
Prior to 3.7, re.escape escaped many characters that don't have
special meaning in Python, but that use to require escaping in other
tools and languages. This commit aims to make it clear which characters
were, but are no longer escaped.
(cherry picked from commit
15ae75d660befe643ed42eb2707a557cea97256c )
Miss Islington (bot) [Tue, 8 Oct 2019 13:56:08 +0000 (06:56 -0700)]
bpo-38118: Ignore Valgrind false alarm in PyUnicode_Decode() (GH-16651)
Valgrind emits "Conditional jump or move depends on uninitialised
value(s)" false alarms on GCC builtin strcmp() function. The GCC code
is correct.
Valgrind bug: https://bugs.kde.org/show_bug.cgi?id=264936
(cherry picked from commit
03ab6b4fc6f59a4452756e7a3a46310ce30ec4b2 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Tue, 8 Oct 2019 11:52:48 +0000 (04:52 -0700)]
bpo-36698: IDLE no longer fails when write non-encodable characters to stderr. (GH-16583)
It now escapes them with a backslash, as the regular Python interpreter.
Added the "errors" field to the standard streams.
(cherry picked from commit
b690a2759e62d9ee0b6ea1b20e8f7e4b2cdbf8bb )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 8 Oct 2019 09:25:56 +0000 (02:25 -0700)]
Fix typo in _warnings.warn_explicit() docstring (GH-16625)
(cherry picked from commit
5dfbb4d50333e7a91fc0cd8c03a2f2f2cf56dbd9 )
Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
Miss Islington (bot) [Mon, 7 Oct 2019 21:25:06 +0000 (14:25 -0700)]
bpo-38344: Fix syntax in activate.bat (GH-16533)
(cherry picked from commit
e310af9e2941c2fbb7370e003276cc37eb230f16 )
Co-authored-by: James Abel <j@abel.co>
Miss Islington (bot) [Mon, 7 Oct 2019 12:04:09 +0000 (05:04 -0700)]
bpo-38391: Fixing a typo for Py_DECREF (GH-16616)
(cherry picked from commit
038503e08ac5b10601b95d5adc2c2cab7be10163 )
Co-authored-by: Krishna Oza <krishoza15sep@gmail.com>