]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 years agobpo-39885: Make IDLE context menu cut and copy work again (GH-18951)
Miss Islington (bot) [Fri, 29 May 2020 23:11:28 +0000 (16:11 -0700)] 
bpo-39885: Make IDLE context menu cut and copy work again (GH-18951)

Leave selection when right click within.  This exception to clearing selections when right-clicking was omitted from the previous commit, 4ca060d.  I did not realize that this completely disabled the context menu entries, and  I should have merged a minimal fix immediately.  An automated test should follow.
(cherry picked from commit 97e4e0f53d6690db6b942678489716a30925b8af)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-24048: Save the live exception during import.c's remove_module() (GH-13005)
Miss Islington (bot) [Fri, 29 May 2020 19:35:21 +0000 (12:35 -0700)] 
bpo-24048: Save the live exception during import.c's remove_module() (GH-13005)

Save the live exception during the course of remove_module().
(cherry picked from commit 94a64e9cd411a87514b68082c1c437eb3b49dfb9)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years ago[3.8] bpo-25872: Fix KeyError in linecache when multithreaded (GH-18007) (GH-20092)
Miss Islington (bot) [Fri, 29 May 2020 12:17:42 +0000 (05:17 -0700)] 
[3.8] bpo-25872: Fix KeyError in linecache when multithreaded (GH-18007) (GH-20092)

Backporting to 3.8 and adding a NEWS item (I should have added one to the master branch -- oh well).
(cherry picked from commit b86636bff4b29ce23c886df079715dd951f13a07)

Co-authored-by: Andrew Kuchling <amk@amk.ca>
5 years agobpo-39040: Fix parsing of email mime headers with whitespace between encoded-words...
Miss Islington (bot) [Fri, 29 May 2020 11:43:47 +0000 (04:43 -0700)] 
bpo-39040: Fix parsing of email mime headers with whitespace between encoded-words. (gh-17620)

* bpo-39040: Fix parsing of email headers with encoded-words inside a quoted string.

It is fairly common to find malformed mime headers (especially content-disposition
headers) where the parameter values, instead of being encoded to RFC
standards, are "encoded" by doing RFC 2047 "encoded word" encoding, and
then enclosing the whole thing in quotes.  The processing of these malformed
headers was incorrectly leaving the spaces between encoded words in the decoded
text (whitespace between adjacent encoded words is supposed to be stripped on
decoding).  This changeset fixes the encoded word processing inside quoted strings
(bare-quoted-string) to do correct RFC 2047 decoding by stripping that
whitespace.
(cherry picked from commit 21017ed904f734be9f195ae1274eb81426a9e776)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
5 years agoImprove IO tutorial's "Old string formatting" section (GH-16251)
Miss Islington (bot) [Thu, 28 May 2020 01:39:19 +0000 (18:39 -0700)] 
Improve IO tutorial's "Old string formatting" section (GH-16251)

* Use a more universal explanation of string interpolation rather than specifically referencing sprintf(), which depends on the reader having a C background.

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit eaca2aa117d663acf8160a0b4543ee2c7006fcc7)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
5 years agobpo-13097: ctypes: limit callback to 1024 arguments (GH-19914)
Miss Islington (bot) [Wed, 27 May 2020 15:51:23 +0000 (08:51 -0700)] 
bpo-13097: ctypes: limit callback to 1024 arguments (GH-19914)

ctypes now raises an ArgumentError when a callback
is invoked with more than 1024 arguments.

The ctypes module allocates arguments on the stack in
ctypes_callproc() using alloca(), which is problematic
when large numbers of arguments are passed. Instead
of a stack overflow, this commit raises an ArgumentError
if more than 1024 parameters are passed.
(cherry picked from commit 29a1384c040d39659e7d01f1fd7b6eb71ef2634e)

Co-authored-by: Sean Gillespie <sean@swgillespie.me>
5 years agobpo-39073: validate Address parts to disallow CRLF (GH-19007)
Miss Islington (bot) [Wed, 27 May 2020 13:38:14 +0000 (06:38 -0700)] 
bpo-39073: validate Address parts to disallow CRLF (GH-19007)

 Disallow CR or LF in email.headerregistry.Address arguments to guard against header injection attacks.
(cherry picked from commit 614f17211c5fc0e5b828be1d3320661d1038fe8f)

Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
5 years agoFix the link to ncurses patch download in macos installer build script (GH-20421)
Miss Islington (bot) [Wed, 27 May 2020 10:29:25 +0000 (03:29 -0700)] 
Fix the link to ncurses patch download in macos installer build script (GH-20421)

Reason: the link `ftp://invisible-island.net/ncurses//5.9/ncurses-5.9-20120616-patch.sh.bz2` is dead, which prevents `Mac/BuildScript/build-installer.py` from completing. Looks like the host of the FTP server was changed to `ftp.invisible-island.net`, thus this proposal.

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
(cherry picked from commit 7da46b676aed7111de34b57c8b942a7f3bb80327)

Co-authored-by: Oleg Höfling <hoefling@users.noreply.github.com>
5 years ago[3.7] bpo-38580: Document that select() accepts iterables, not just sequences (GH...
Tal Einat [Tue, 26 May 2020 12:59:23 +0000 (15:59 +0300)] 
[3.7] bpo-38580: Document that select() accepts iterables, not just sequences (GH-16832)

(cherry picked from commit 372ee27d4958302dac7ad6a8711f6fd04771b2e6)

Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
5 years ago[3.8] bpo-35714: Reject null characters in struct format strings (GH-16928) (GH-20419)
Miss Islington (bot) [Tue, 26 May 2020 09:16:36 +0000 (02:16 -0700)] 
[3.8] bpo-35714: Reject null characters in struct format strings (GH-16928) (GH-20419)

struct.error is now raised if there is a null character in a struct
format string.
(cherry picked from commit 3f59b55316f4c6ab451997902579aa69020b537c)
(cherry picked from commit 5ff5edfef63b3dbc1abb004b3fa4b3db87e79ff9)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-39301: State that floor division is used for right shift operations (GH-20347...
Miss Islington (bot) [Tue, 26 May 2020 08:34:04 +0000 (01:34 -0700)] 
bpo-39301: State that floor division is used for right shift operations (GH-20347) (GH-20416)

* bpo-39301: State that floor division is used for right shift operations

* Remove "without overflow check"
(cherry picked from commit af7553ac95a96713be847dd45bc5a8aeb0a75955)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-37309: Update NEWS.txt for 3.7.8 (GH-20353)
Terry Jan Reedy [Sun, 24 May 2020 13:40:19 +0000 (09:40 -0400)] 
bpo-37309: Update NEWS.txt for 3.7.8 (GH-20353)

5 years agobpo-40723: Make IDLE autocomplete test run without __main__.__file__ (GH-20311)
Miss Islington (bot) [Sun, 24 May 2020 11:12:11 +0000 (04:12 -0700)] 
bpo-40723: Make IDLE autocomplete test run without __main__.__file__ (GH-20311)

This was the only failure running unittest.main(test.test_idle) after imports.
(cherry picked from commit 905b3cd05f8d2c29e1605d109900e3e9d07af4d3)

Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de>
5 years agobpo-40439: Update broken link in lexical analysis docs (GH-20184)
Miss Islington (bot) [Sat, 23 May 2020 01:17:45 +0000 (18:17 -0700)] 
bpo-40439: Update broken link in lexical analysis docs (GH-20184)

Automerge-Triggered-By: @csabella
(cherry picked from commit af23f0d3cf19343512e6ca1fe1d46a5dbe425719)

Co-authored-by: Matteo Bertucci <matteobertucci2004@gmail.com>
5 years ago[3.7] bpo-40663: Correctly handle annotations with subscripts in ast_unparse.c (GH...
Batuhan Taskaya [Fri, 22 May 2020 22:32:34 +0000 (01:32 +0300)] 
[3.7] bpo-40663: Correctly handle annotations with subscripts in ast_unparse.c (GH-20156). (GH-20192)

(cherry picked from commit 2135e10dc717c00d10d899d232bebfc59bb25032)

Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
5 years ago[3.7] [doc] Remove references to obsolete BuildApplet on macOS (GH-20023) (GH-20306)
Miss Islington (bot) [Thu, 21 May 2020 23:35:04 +0000 (16:35 -0700)] 
[3.7] [doc] Remove references to obsolete BuildApplet on macOS (GH-20023) (GH-20306)

(cherry picked from commit 7864f11cdf12807555d62c7a132c191eb41ecc02)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
Automerge-Triggered-By: @ned-deily
5 years agos/wakup/wakeup (GH-20250)
Miss Islington (bot) [Wed, 20 May 2020 17:59:00 +0000 (10:59 -0700)] 
s/wakup/wakeup (GH-20250)

(as title)

Automerge-Triggered-By: @Mariatta
(cherry picked from commit f2947e354c95d246b1836ac78d4c820c420e259b)

Co-authored-by: Kunal Bhalla <bhalla.kunal@gmail.com>
5 years agoUse v2 of GitHub Actions where available (GH-20232)
Miss Islington (bot) [Wed, 20 May 2020 17:02:07 +0000 (10:02 -0700)] 
Use v2 of GitHub Actions where available (GH-20232)

Automerge-Triggered-By: @Mariatta
(cherry picked from commit 7fbe65dbc42985d002d9538fe9a9887e6e6af66c)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
5 years agobpo-39631: Adds NEWS entry (GH-20227)
Miss Islington (bot) [Tue, 19 May 2020 22:17:11 +0000 (15:17 -0700)] 
bpo-39631: Adds NEWS entry (GH-20227)

(cherry picked from commit 92327a9913150f5bb55b2727a2c5d50f9b7b6e55)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-39631: Fix file association MIME type in the Windows installer (GH-20205)
Miss Islington (bot) [Tue, 19 May 2020 12:41:07 +0000 (05:41 -0700)] 
bpo-39631: Fix file association MIME type in the Windows installer (GH-20205)

Use text/x-python instead of text/plain to avoid issues with tools assuming that "ShellExecute(script)" is a non-executable operation.
(cherry picked from commit 8c862e51248c5ebfec787badec88eb58c9267e1e)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years ago[3.7] Doc: Python 3.10 in sidebar and version switcher. (GH-20209) (GH-20223)
Miss Islington (bot) [Tue, 19 May 2020 12:32:30 +0000 (05:32 -0700)] 
[3.7] Doc: Python 3.10 in sidebar and version switcher. (GH-20209) (GH-20223)

(cherry picked from commit 19e3e0026417caa92ffe21a67157363b45da9aa2)

Co-authored-by: Julien Palard <julien@palard.fr>
Automerge-Triggered-By: @JulienPalard
5 years agobpo-39976: Add **other_popen_kwargs to subprocess docs (GH-20145)
Miss Islington (bot) [Tue, 19 May 2020 09:28:22 +0000 (02:28 -0700)] 
bpo-39976: Add **other_popen_kwargs to subprocess docs (GH-20145)

(cherry picked from commit 46545000c2a30b46aed717b546bc09e5bae7148f)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-35890: Use RegQueryInfoKeyW and CryptAcquireContextW explicitly (GH-19974)
Steve Dower [Mon, 18 May 2020 22:24:41 +0000 (23:24 +0100)] 
bpo-35890: Use RegQueryInfoKeyW and CryptAcquireContextW explicitly (GH-19974)

Co-authored-by: Minmin Gong <gongminmin@msn.com>
5 years agobpo-40650: Include winsock2.h in pytime.c, instead of a full windows.h (GH-20137)
Miss Islington (bot) [Mon, 18 May 2020 16:39:13 +0000 (09:39 -0700)] 
bpo-40650: Include winsock2.h in pytime.c, instead of a full windows.h (GH-20137)

(cherry picked from commit f660567937277cc3a2cd53af77bbb18e905427e8)

Co-authored-by: Minmin Gong <gongminmin@msn.com>
5 years agobpo-40653: Move _dirnameW out of GH-ifdef HAVE_SYMLINK/GH-endif (GH-20144)
Miss Islington (bot) [Mon, 18 May 2020 16:34:21 +0000 (09:34 -0700)] 
bpo-40653: Move _dirnameW out of GH-ifdef HAVE_SYMLINK/GH-endif (GH-20144)

(cherry picked from commit 7f21c9ac872acc2114aee3313d132b016550ff42)

Co-authored-by: Minmin Gong <gongminmin@msn.com>
5 years agobpo-40548: Github Actions: update actions/checkout to v2 (GH-20164)
Miss Islington (bot) [Mon, 18 May 2020 14:06:55 +0000 (07:06 -0700)] 
bpo-40548: Github Actions: update actions/checkout to v2 (GH-20164)

Signed-off-by: Filipe Laíns <lains@archlinux.org>
(cherry picked from commit c444108dd62672f2b41539bcc8f15da44501f405)

Co-authored-by: Filipe Laíns <lains@archlinux.org>
5 years agoDoc: change 'Posix' for 'POSIX' (GH-20001)
Miss Islington (bot) [Sun, 17 May 2020 21:35:22 +0000 (14:35 -0700)] 
Doc: change 'Posix' for 'POSIX' (GH-20001)

(cherry picked from commit 65460565df99fbda6a74b6bb4bf99affaaf8bd95)

Co-authored-by: Mathieu Dupuy <mathieu.dupuy@doctolib.com>
5 years ago[3.7] bpo-40457: Support OpenSSL without TLS 1.0/1.1 (GH-19862) (GH-20126)
Miss Islington (bot) [Sat, 16 May 2020 08:45:06 +0000 (01:45 -0700)] 
[3.7] bpo-40457: Support OpenSSL without TLS 1.0/1.1 (GH-19862) (GH-20126)

5 years agobpo-40163: Fix multissltest download of old OpenSSL (GH-19329)
Miss Islington (bot) [Fri, 15 May 2020 20:54:54 +0000 (13:54 -0700)] 
bpo-40163: Fix multissltest download of old OpenSSL (GH-19329)

(cherry picked from commit 938717fd04c53c717895a756d5910e8c8813706c)

Co-authored-by: Christian Heimes <christian@python.org>
5 years ago[3.7] bpo-40515: Require OPENSSL_THREADS (GH-19953) (GH-20120)
Christian Heimes [Fri, 15 May 2020 20:37:32 +0000 (22:37 +0200)] 
[3.7] bpo-40515: Require OPENSSL_THREADS (GH-19953) (GH-20120)

5 years agobpo-40479: Test with latest OpenSSL versions (GH-20108)
Miss Islington (bot) [Fri, 15 May 2020 17:05:57 +0000 (10:05 -0700)] 
bpo-40479: Test with latest OpenSSL versions (GH-20108)

* 1.0.2u (EOL)
* 1.1.0l (EOL)
* 1.1.1g
* 3.0.0-alpha2 (disabled for now)

Build the FIPS provider and create a FIPS configuration file for OpenSSL
3.0.0.

Signed-off-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: @tiran
(cherry picked from commit 62d618c06bd395308b7163dbcb26c7e6d0922033)

Co-authored-by: Christian Heimes <christian@python.org>
5 years agobpo-40055: test_distutils leaves warnings filters unchanged (GH-20095)
Miss Islington (bot) [Fri, 15 May 2020 16:22:54 +0000 (09:22 -0700)] 
bpo-40055: test_distutils leaves warnings filters unchanged (GH-20095)

distutils.tests now saves/restores warnings filters to leave them
unchanged. Importing tests imports docutils which imports
pkg_resources which adds a warnings filter.
(cherry picked from commit 6e57237faf0da8904e0130a11350cae3c5062b82)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years ago[3.8] bpo-40548: GitHub Action workflow: skip jobs on doc only PRs (GH-20100)
Miss Islington (bot) [Fri, 15 May 2020 03:46:25 +0000 (20:46 -0700)] 
[3.8] bpo-40548: GitHub Action workflow: skip jobs on doc only PRs (GH-20100)

* bpo-40548: Always run GitHub action, even on doc PRs (GH-19981)

Always run GitHub action jobs, even on documentation-only pull
requests. So it will be possible to make a GitHub action job, like
the Windows (64-bit) job, mandatory.

(cherry picked from commit 4e363761fc02a89d53aba4382dc451293bd6f0ba)

* bpo-40548: GitHub Action workflow: skip jobs on doc only PRs (GH-19983)

Signed-off-by: Filipe Laíns <lains@archlinux.org>
(cherry picked from commit 75d7257b201a56f950c20cd9f5753a83fff4742b)

* bpo-40548: github actions: pass the changes check on no source changes (GH-20097)

Signed-off-by: Filipe Laíns <lains@archlinux.org>
(cherry picked from commit 6a78589b6b22878491a4b042bb8b3161e1d120f6)

Co-authored-by: Filipe Laíns <filipe.lains@gmail.com>
Co-authored-by: Filipe Laíns <lains@archlinux.org>
(cherry picked from commit 07bd5cf3d9551ae84100e6400836163fcd507f07)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-38872: Document exec symbol for codeop.compile_command (GH-20047) (#20099)
Miss Islington (bot) [Fri, 15 May 2020 01:19:38 +0000 (18:19 -0700)] 
bpo-38872: Document exec symbol for codeop.compile_command (GH-20047) (#20099)

* Document exec symbol for codeop.compile_command

* Remove extra statements

Co-authored-by: nanjekyejoannah <joannah.nanjekye@ibm.com>
(cherry picked from commit 7ba1f75f3f02b4b50ac6d7e17d15e467afa36aac)

Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
5 years agobpo-40561: Add docstrings for webbrowser open functions (GH-19999)
Miss Islington (bot) [Mon, 11 May 2020 19:06:32 +0000 (12:06 -0700)] 
bpo-40561: Add docstrings for webbrowser open functions (GH-19999)

Co-authored-by: Brad Solomon <brsolomon@deloitte.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit ef7973a981ff8f4687ef3fdb85a69fa15aa11fe5)

Co-authored-by: Brad Solomon <brad.solomon.1124@gmail.com>
5 years agoMake the first dataclass example more useful (GH-19994) (GH-19998)
Miss Islington (bot) [Fri, 8 May 2020 11:52:48 +0000 (04:52 -0700)] 
Make the first dataclass example more useful (GH-19994) (GH-19998)

(cherry picked from commit 2effef7453986bf43a6d921cd471a8bc0722c36a)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
5 years ago[3.7] bpo-40559: Add Py_DECREF to _asynciomodule.c:task_step_impl() (GH-19990)
Miss Islington (bot) [Fri, 8 May 2020 11:30:30 +0000 (04:30 -0700)] 
[3.7] bpo-40559: Add Py_DECREF to _asynciomodule.c:task_step_impl() (GH-19990)

This fixes a possible memory leak in the C implementation of
asyncio.Task.
(cherry picked from commit d2c349b190bcba21a4a38e6520a48ad97a9f1529)

Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
5 years ago[3.7] bpo-40417: Fix deprecation warning in PyImport_ReloadModule (GH-19750) (GH...
Robert Rouhani [Wed, 6 May 2020 00:49:29 +0000 (17:49 -0700)] 
[3.7] bpo-40417: Fix deprecation warning in PyImport_ReloadModule (GH-19750) (GH-19935)

Use importlib instead of imp.

Automerge-Triggered-By: @brettcannon.
(cherry picked from commit f40bd46)

Co-authored-by: Robert Rouhani robert.rouhani@gmail.com
5 years agobpo-40459: Fix NameError in platform.py (GH-19855)
Miss Islington (bot) [Tue, 5 May 2020 02:51:33 +0000 (19:51 -0700)] 
bpo-40459: Fix NameError in platform.py (GH-19855)

(cherry picked from commit 1e7e4519a8ddc2239101a0146d788c9161143a77)

Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
5 years agobpo-40419: timeit CLI docs now mention 1,2,5,10,... trials instead of powers of 10...
Miss Islington (bot) [Sat, 2 May 2020 16:29:49 +0000 (09:29 -0700)] 
bpo-40419: timeit CLI docs now mention 1,2,5,10,... trials instead of powers of 10 (GH-19752)

(cherry picked from commit 766352320fd736e2c8ed545b4cc57563f61a0b9d)

Co-authored-by: Sander <svr003@gmail.com>
5 years ago[3.7] bpo-39435: Fix docs for pickle.loads (GH-18160). (GH-19844)
Antoine Pitrou [Fri, 1 May 2020 19:53:35 +0000 (21:53 +0200)] 
[3.7] bpo-39435: Fix docs for pickle.loads (GH-18160). (GH-19844)

(cherry picked from commit 289842ae820f99908d3a345f1f3b6d4e5b4b97fc)

Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
Automerge-Triggered-By: @pitrou
5 years agobpo-40443: Remove unused imports in idlelib (GH-19801)
Miss Islington (bot) [Thu, 30 Apr 2020 01:45:54 +0000 (18:45 -0700)] 
bpo-40443: Remove unused imports in idlelib (GH-19801)

(cherry picked from commit 6900f16d2207ca4fc252fa9d778ca0b13a3c95e0)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-40436: Fix code parsing gdb version (GH-19792)
Miss Islington (bot) [Wed, 29 Apr 2020 15:30:46 +0000 (08:30 -0700)] 
bpo-40436: Fix code parsing gdb version (GH-19792)

test_gdb and test.pythoninfo now check gdb command exit code.
(cherry picked from commit ec9bea4a3766bd815148a27f61eb24e7dd459ac7)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years ago[3.8] bpo-40431: Fix syntax typo in turtledemo (GH-19777) (GH-19784)
Miss Islington (bot) [Wed, 29 Apr 2020 09:42:05 +0000 (02:42 -0700)] 
[3.8] bpo-40431: Fix syntax typo in turtledemo (GH-19777) (GH-19784)

[3.8] bpo-40431: Fix syntax typo in turtledemo (GH-19777)

* Addresses a syntax typo that mistakenly used a undefined string prefix due to a missing space.

(cherry picked from commit 49f70db83e2c62ad06805927f53f6c3e8f4b798e)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
(cherry picked from commit cc011b5190b63f0be561ddec38fc4cd9e60cbf6a)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
5 years agobpo-40348: Fix typos in the programming FAQ (GH-19729)
Miss Islington (bot) [Mon, 27 Apr 2020 03:29:03 +0000 (20:29 -0700)] 
bpo-40348: Fix typos in the programming FAQ (GH-19729)

(cherry picked from commit caf1aadf3d020f742ba3d7fcf678ca700224914b)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years ago[3.7] bpo-38387: Formally document PyDoc_STRVAR and PyDoc_STR macros (GH-16607) ...
Zachary Ware [Mon, 27 Apr 2020 02:46:06 +0000 (21:46 -0500)] 
[3.7] bpo-38387: Formally document PyDoc_STRVAR and PyDoc_STR macros (GH-16607) (GH-19728)

Adds a short description of `PyDoc_STRVAR` and `PyDoc_STR` to "Useful macros" section of C-API docs.

Currently, there is [one lone mention](https://docs.python.org/3/c-api/module.html?highlight=pydoc_strvarGH-c.PyModuleDef) in the C-API reference, despite the fact that `PyDoc_STRVAR` is ubiquitous to `Modules/`.

Additionally, this properly uses `c:macro` within `Doc/c-api/module.rst` to link..
(cherry picked from commit b54e46cb57ebac5c525a9a6be241412cd57bc935)

Co-authored-by: Brad Solomon <brad.solomon.1124@gmail.com>
5 years ago[3.7] bpo-38546: Backport multiprocessing tests fixes from master (GH-19689)
Victor Stinner [Thu, 23 Apr 2020 22:44:08 +0000 (00:44 +0200)] 
[3.7] bpo-38546: Backport multiprocessing tests fixes from master (GH-19689)

* bpo-37421: multiprocessing tests call _run_finalizers() (GH-14527)

multiprocessing tests now call explicitly _run_finalizers() to remove
immediately temporary directories created by
multiprocessing.util.get_temp_dir().
(cherry picked from commit 039fb49c185570ab7b02f13fbdc51c859cfd831e)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
(cherry picked from commit 632cb36084dc9d13f1cdb31a0e7e3ba80745a51a)

* bpo-37421: multiprocessing tests now stop ForkServer (GH-14601)

multiprocessing tests now stop the ForkServer instance if it's
running: close the "alive" file descriptor to ask the server to stop
and then remove its UNIX address.
(cherry picked from commit 8fbeb14312b4c1320d31ad86e69749515879d1c3)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
(cherry picked from commit 229f6e85f8b4d57a2e742e0d3fc361c5bd15f1cb)

* bpo-38546: multiprocessing tests stop the resource tracker (GH-17641) (GH-17647)

Multiprocessing and concurrent.futures tests now stop the resource
tracker process when tests complete.

Add ResourceTracker._stop() method to
multiprocessing.resource_tracker.

Add _cleanup_tests() helper function to multiprocessing.util: share
code between multiprocessing and concurrent.futures tests.

(cherry picked from commit 9707e8e22d80ca97bf7a9812816701cecde6d226)
(cherry picked from commit 35acb3597208e10a101140474adec86859d57f61)

* Remove NEWS about resource tracker

Python 3.7 multiprocessing does not have resource tracker.

Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
5 years agobpo-39932: Fix multiprocessing test_heap() (GH-19690)
Victor Stinner [Thu, 23 Apr 2020 22:20:00 +0000 (00:20 +0200)] 
bpo-39932: Fix multiprocessing test_heap() (GH-19690)

bpo-32759, bpo-39932: Fix multiprocessing test_heap():
a new Heap object is now created for each test run.

Partial backport of commit e4679cd644aa19f9d9df9beb1326625cf2b02c15
by Antoine Pitrou.

5 years ago[3.7] gdbinit: Use proper define syntax (GH-19557) (GH-19678)
Florian Bruhin [Thu, 23 Apr 2020 15:53:23 +0000 (17:53 +0200)] 
[3.7] gdbinit: Use proper define syntax (GH-19557) (GH-19678)

Using `def` rather than `define` results in:

    Ambiguous command "def pu": define, define-prefix.

Automerge-Triggered-By: @csabella.
(cherry picked from commit 1221135289306333d11db25ab20cbbd21ceec630)

Co-authored-by: Florian Bruhin <me@the-compiler.org>
5 years agobpo-38360: macOS: support alternate form of -isysroot flag (GH-16480)
Miss Islington (bot) [Wed, 22 Apr 2020 16:27:24 +0000 (09:27 -0700)] 
bpo-38360: macOS: support alternate form of -isysroot flag (GH-16480)

It is possible to use either '-isysroot /some/path' (with a space) or
'-isysroot/some/path' (no space in between). Support both forms in
places where special handling of -isysroot is done, rather than just
the first form.
Co-authored-by: Ned Deily <nad@python.org>
(cherry picked from commit b310700976524b4b99ee319c947ca40468716fc9)

Co-authored-by: Joshua Root <jmr@macports.org>
5 years agobpo-40138: Fix Windows os.waitpid() for large exit code (GH-19654)
Miss Islington (bot) [Wed, 22 Apr 2020 16:16:42 +0000 (09:16 -0700)] 
bpo-40138: Fix Windows os.waitpid() for large exit code (GH-19654)

Fix the Windows implementation of os.waitpid() for exit code
larger than "INT_MAX >> 8". The exit status is now interpreted as an
unsigned number.
(cherry picked from commit b07350901cac9197aef41855d8a4d56533636b91)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-38439: Add 256px IDLE icon (GH-17473)
Miss Islington (bot) [Wed, 22 Apr 2020 07:38:37 +0000 (00:38 -0700)] 
bpo-38439: Add 256px IDLE icon (GH-17473)

Icon author: Andrew Clover, bpo-1490384
(cherry picked from commit 3a69f3caeeaea57048ed3bc3051e16854b9a4cd6)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
5 years agobpo-40164: Update macOS installer builds to use OpenSSL 1.1.1g. (GH-19642) (GH-19644)
Miss Islington (bot) [Wed, 22 Apr 2020 03:04:15 +0000 (20:04 -0700)] 
bpo-40164: Update macOS installer builds to use OpenSSL 1.1.1g. (GH-19642) (GH-19644)

(cherry picked from commit 783a673f23c5e9ffafe12fe172e119dc0fa2abda)

Co-authored-by: Ned Deily <nad@python.org>
5 years agobpo-39942:Fix failure in `TypeVar` when missing `__name__` (GH-19616)
Miss Islington (bot) [Mon, 20 Apr 2020 20:22:34 +0000 (13:22 -0700)] 
bpo-39942:Fix failure in `TypeVar` when missing `__name__` (GH-19616)

https://bugs.python.org/issue39942
(cherry picked from commit a25a04fea5446b1712cde0cff556574be139285a)

Co-authored-by: HongWeipeng <hongweichen8888@sina.com>
5 years agoFix typo in Lib/tracepack.py (GH-19605)
Miss Islington (bot) [Mon, 20 Apr 2020 02:36:52 +0000 (19:36 -0700)] 
Fix typo in Lib/tracepack.py (GH-19605)

Typo fix: "emites" -> "emit".
(cherry picked from commit df8913f7c48d267efd662e8ffd9496595115eee8)

Co-authored-by: Galden <wudenggang0@163.com>
5 years agobpo-39285: Clarify example for PurePath.match (GH-19458)
Miss Islington (bot) [Sun, 19 Apr 2020 10:03:42 +0000 (03:03 -0700)] 
bpo-39285: Clarify example for PurePath.match (GH-19458)

Fixes Issue39285

The example incorrectly returned True for match.

Furthermore the example is ambiguous in its usage of PureWindowsPath.
Windows is case-insensitve, however the underlying match functionality
utilizes fnmatch.fnmatchcase.

Automerge-Triggered-By: @pitrou
(cherry picked from commit c12375aa0b838d34067efa3f1b9a1fbc632d0413)

Co-authored-by: Tim Lo <timlo@users.noreply.github.com>
5 years agobpo-27635: Fix pickle documentation about `__new__` not being called. (GH-19269)
Miss Islington (bot) [Sat, 18 Apr 2020 18:14:41 +0000 (11:14 -0700)] 
bpo-27635: Fix pickle documentation about `__new__` not being called. (GH-19269)

Automerge-Triggered-By: @pitrou
(cherry picked from commit 482259d0dcf27714a84cf56b93977320bea7e093)

Co-authored-by: Furkan Önder <furkantahaonder@gmail.com>
5 years ago[3.7] bpo-40179: Fix translation of #elif in Argument Clinic (GH-19364) (GH-19584)
Serhiy Storchaka [Sat, 18 Apr 2020 16:12:14 +0000 (19:12 +0300)] 
[3.7] bpo-40179: Fix translation of #elif in Argument Clinic (GH-19364) (GH-19584)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
(cherry picked from commit 12446e6a605f066d837d3a595d0a73e4f3b43b65)

5 years agoFix two typos in multiprocessing (GH-19571) (GH-19579)
Miss Islington (bot) [Sat, 18 Apr 2020 07:24:05 +0000 (00:24 -0700)] 
Fix two typos in multiprocessing (GH-19571) (GH-19579)

(cherry picked from commit c606624af8d4cb3b4a052fb263bb983b3f87585b)

Co-authored-by: Galden <wudenggang0@163.com>
Co-authored-by: Galden <wudenggang0@163.com>
5 years agobpo-38492: Remove pythonw.exe dependency on the Microsoft C++ runtime (GH-16824)
Miss Islington (bot) [Fri, 17 Apr 2020 23:31:28 +0000 (16:31 -0700)] 
bpo-38492: Remove pythonw.exe dependency on the Microsoft C++ runtime (GH-16824)

(cherry picked from commit 7aebbd1182bc818324656b2fb764679faf51fdff)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-40287: Fix SpooledTemporaryFile.seek() return value (GH-19540)
Miss Islington (bot) [Fri, 17 Apr 2020 07:13:34 +0000 (00:13 -0700)] 
bpo-40287: Fix SpooledTemporaryFile.seek() return value (GH-19540)

It has not returned the file position after the seek.
(cherry picked from commit 485e715cb1ff92bc9882cd51ec32589f9cb30503)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
5 years agoFix parameter names in assertIn() docs (GH-18829)
Miss Islington (bot) [Fri, 17 Apr 2020 02:07:31 +0000 (19:07 -0700)] 
Fix parameter names in assertIn() docs (GH-18829)

The names "member" and "container" for the arguments are also used in the module and shown with the help() function, and are immediately understandable in this context, contrary to "first" and "second".
(cherry picked from commit a388bbd3f129364c39843f63e92f08bc53c71905)

Co-authored-by: Christoph Zwerschke <cito@online.de>
5 years agobpo-39793: use the same domain on make_msgid tests (GH-18698) (GH-19555)
Miss Islington (bot) [Thu, 16 Apr 2020 18:08:59 +0000 (11:08 -0700)] 
bpo-39793: use the same domain on make_msgid tests (GH-18698) (GH-19555)

(cherry picked from commit 5565c30f0b25996a0e73477fc0e1e1aced52b926)

Co-authored-by: Batuhan Taşkaya <batuhanosmantaskaya@gmail.com>
5 years agoUpdate libregrtest from master (GH-19517)
Victor Stinner [Tue, 14 Apr 2020 23:05:20 +0000 (01:05 +0200)] 
Update libregrtest from master (GH-19517)

* bpo-36670: regrtest bug fixes (GH-16537)

* Fix TestWorkerProcess.__repr__(): start_time is only valid
  if _popen is not None.
* Fix _kill(): don't set _killed to True if _popen is None.
* _run_process(): only set _killed to False after calling
  run_test_in_subprocess().

(cherry picked from commit 2ea71a07d0a720707094ee55f78fd232c40724bc)

* [3.8] Update libregrtest from master (GH-19516)

* bpo-37531: regrtest now catchs ProcessLookupError (GH-16827)

Fix a warning on a race condition on TestWorkerProcess.kill(): ignore
silently ProcessLookupError rather than logging an useless warning.

(cherry picked from commit a661392f8fb5ac4fc095aa1845d1eb7a25c4e9be)

* bpo-38502: regrtest uses process groups if available (GH-16829)

test.regrtest now uses process groups in the multiprocessing mode
(-jN command line option) if process groups are available: if
os.setsid() and os.killpg() functions are available.

(cherry picked from commit ecb035cd14c11521276343397151929a94018a22)

* bpo-37957: Allow regrtest to receive a file with test (and subtests) to ignore (GH-16989)

When building Python in some uncommon platforms there are some known tests that will fail. Right now, the test suite has the ability to ignore entire tests using the -x option and to receive a filter file using the --matchfile filter. The problem with the --matchfile option is that it receives a file with patterns to accept and when you want to ignore a couple of tests and subtests, is too cumbersome to lists ALL tests that are not the ones that you want to accept and he problem with -x is that is not easy to ignore just a subtests that fail and the whole test needs to be ignored.

For these reasons, add a new option to allow to ignore a list of test and subtests for these situations.

(cherry picked from commit e0cd8aa70a3ce19c3d3712568940aa0cbd9aa97b)

* regrtest: log timeout at startup (GH-19514)

Reduce also worker timeout.

(cherry picked from commit 4cf65a630a8d45bad3fe5cdc4c2632ec64e7ba27)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
(cherry picked from commit 67b8a1f0f0f78ec38b8626fa9f5b2f5a55c17e15)

* bpo-36842: Fix reference leak in tests by running out-of-proc (GH-13556)

(cherry picked from commit 9ddc416e9f6635376312c3615193f19480ac772a)

* Backport libregrtest changes from master

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-32033: Fix test_pwd failures on Android (GH-19502)
Miss Islington (bot) [Tue, 14 Apr 2020 18:31:34 +0000 (11:31 -0700)] 
bpo-32033: Fix test_pwd failures on Android (GH-19502)

(cherry picked from commit 96515e9f6785328c52ebc5d4ce60e0087a9adc2d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years ago[3.7] Improved documentation for `BUILD_CONST_KEY_MAP` (GH-19454) (GH-19496)
Miss Islington (bot) [Mon, 13 Apr 2020 03:01:39 +0000 (20:01 -0700)] 
[3.7] Improved documentation for `BUILD_CONST_KEY_MAP` (GH-19454) (GH-19496)

(cherry picked from commit 85dd6bb1f61f7edcd6ac0b640a98644531690a0e)

Co-authored-by: laike9m <laike9m@users.noreply.github.com>
Automerge-Triggered-By: @zhangyangyu
5 years ago[3.7] bpo-31758: Prevent crashes when using an uninitialized _elementtree.XMLParser...
Miss Islington (bot) [Sun, 12 Apr 2020 17:15:35 +0000 (10:15 -0700)] 
[3.7] bpo-31758: Prevent crashes when using an uninitialized _elementtree.XMLParser object (GH-3997) (GH-19487)

(cherry picked from commit 402e1cdb132f384e4dcde7a3d7ec7ea1fc7ab527)

5 years ago[3.7] bpo-40126: Fix reverting multiple patches in unittest.mock. (GH-19351) (GH...
Serhiy Storchaka [Sun, 12 Apr 2020 11:54:03 +0000 (14:54 +0300)] 
[3.7] bpo-40126: Fix reverting multiple patches in unittest.mock. (GH-19351) (GH-19484)

Patcher's __exit__() is now never called if its __enter__() is failed.
Returning true from __exit__() silences now the exception.
(cherry picked from commit 4b222c9491d1700e9bdd98e6889b8d0ea1c7321e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-38501: Add a warning section to multiprocessing.Pool docs about resource managing...
Miss Islington (bot) [Sat, 11 Apr 2020 02:11:16 +0000 (19:11 -0700)] 
bpo-38501: Add a warning section to multiprocessing.Pool docs about resource managing (GH-19466)

(cherry picked from commit 7ec43a73092d43c6c95e7dd2669f49d54b57966f)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-40204: Pin Sphinx version to 1.8.2 in Doc/Makefile (GH-19442) (GH-19443)
Victor Stinner [Thu, 9 Apr 2020 23:40:58 +0000 (01:40 +0200)] 
bpo-40204: Pin Sphinx version to 1.8.2 in Doc/Makefile (GH-19442) (GH-19443)

(cherry picked from commit 37a257c0ae0d4ba746397ae7584db887b175ab24)

5 years agoRemove extraneous ')' in abstract.h (GH-19146)
Miss Islington (bot) [Wed, 8 Apr 2020 10:01:11 +0000 (03:01 -0700)] 
Remove extraneous ')' in abstract.h (GH-19146)

(cherry picked from commit ac2cfe6631b77a2005d8f16f034dbb6154f04ab2)

Co-authored-by: Jimmy Yang <codingExpert123@gmail.com>
5 years agobpo-40089: Fix threading._after_fork() (GH-19191) (GH-19193)
Miss Islington (bot) [Tue, 7 Apr 2020 21:36:07 +0000 (14:36 -0700)] 
bpo-40089: Fix threading._after_fork() (GH-19191) (GH-19193)

If fork was not called by a thread spawned by threading.Thread,
threading._after_fork() now creates a _MainThread instance for
_main_thread, instead of a _DummyThread instance.
(cherry picked from commit d8ff44ce4cd6f3ec0fab5fccda6bf14afcb25c30)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-40196: Fix a bug in the symtable when reporting inspecting global variables ...
Miss Islington (bot) [Mon, 6 Apr 2020 16:41:24 +0000 (09:41 -0700)] 
bpo-40196: Fix a bug in the symtable when reporting inspecting global variables (GH-19391)

(cherry picked from commit 799d7d61a91eb0ad3256ef9a45a90029cef93b7c)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agoFix misinformation about NaN != NaN comparison (GH-19357) (GH-19384)
Miss Islington (bot) [Sun, 5 Apr 2020 09:57:05 +0000 (02:57 -0700)] 
Fix misinformation about NaN != NaN comparison (GH-19357) (GH-19384)

(cherry picked from commit 810f68f1282c917fc1ad6af540a9f08524dfe310)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
5 years agobpo-40164: Update Windows to OpenSSL 1.1.1f (GH-19359)
Steve Dower [Sat, 4 Apr 2020 14:47:46 +0000 (15:47 +0100)] 
bpo-40164: Update Windows to OpenSSL 1.1.1f (GH-19359)

5 years agobpo-38689: avoid IDLE hanging when calltip fails getting a signature (GH-17152)
Miss Islington (bot) [Sat, 4 Apr 2020 03:24:39 +0000 (20:24 -0700)] 
bpo-38689: avoid IDLE hanging when calltip fails getting a signature (GH-17152)

Inspect.signature failed on the test case because its isinstance call raised.
(cherry picked from commit 52013e5b6d5ca32eef5a3d65ecdf7db89cefc2fd)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
5 years agobpo-40158: Fix CPython MSBuild Properties in NuGet Package (GH-19343)
Miss Islington (bot) [Fri, 3 Apr 2020 22:18:26 +0000 (15:18 -0700)] 
bpo-40158: Fix CPython MSBuild Properties in NuGet Package (GH-19343)

Fix default Python home path relative to the NuGet package
(cherry picked from commit 6e623ff9d251e0ce86e9b18a01bfd6f067079d7a)

Co-authored-by: Chris Martinez <sydefekt@hotmail.com>
5 years ago[3.7] bpo-36541: lib2to3: Support named assignment expressions (GH-12702) (GH-19317)
Tim Hatch [Fri, 3 Apr 2020 19:14:15 +0000 (12:14 -0700)] 
[3.7] bpo-36541: lib2to3: Support named assignment expressions (GH-12702) (GH-19317)

lib2to3: Support named assignment expressions (GH-12702)

There are two copies of the grammar -- the one used by Python itself as
Grammar/Grammar, and the one used by lib2to3 which has necessarily diverged at
Lib/lib2to3/Grammar.txt because it needs to support older syntax an we want it
to be reasonable stable to avoid requiring fixer rewrites.

This brings suport for syntax like `if x:= foo():` to match what the live
Python grammar does.

This should've been added at the time of the walrus operator itself, but lib2to3 being
independent is often overlooked.  So we do consider this a bugfix rather than enhancement.

(cherry picked from commit 3c3aa4516c70753de06bb142b6793d01330fcf0f)

Co-authored-by: Tim Hatch <tim@timhatch.com>
5 years agobpo-40131: Fix source and target order in zipapp example (GH-19290) (GH-19340)
Miss Islington (bot) [Fri, 3 Apr 2020 17:14:16 +0000 (10:14 -0700)] 
bpo-40131: Fix source and target order in zipapp example (GH-19290) (GH-19340)

(cherry picked from commit bd6a4c3d72828d3d0e13922e165998539d24f8bc)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-40140: test_builtin.PtyTests registers SIGHUP handler (GH-19314) (GH-19316) ...
Victor Stinner [Fri, 3 Apr 2020 12:09:02 +0000 (14:09 +0200)] 
bpo-40140: test_builtin.PtyTests registers SIGHUP handler (GH-19314) (GH-19316) (GH-19318)

test_builtin.PtyTests now registers an handler for SIGHUP signal.
Closing the PTY file descriptor can emit a SIGHUP signal: just ignore
it.

run_child() now also closes the PTY file descriptor before waiting
for the process completition, otherwise the test hangs on AIX.

(cherry picked from commit 7a51a7e19f0143f75f8fc9ff68f93ed40937aec6)
(cherry picked from commit 745bd91bab8e57c52d63a2d541465551d7551f78)

5 years agobpo-40122: Updated documentation for dis.findlabels() (GH-19274)
Miss Islington (bot) [Fri, 3 Apr 2020 08:06:07 +0000 (01:06 -0700)] 
bpo-40122: Updated documentation for dis.findlabels() (GH-19274)

(cherry picked from commit b74468e233a5137ff518e61eff65ca2d8833e38a)

Co-authored-by: laike9m <laike9m@users.noreply.github.com>
5 years agobpo-40146: Update OpenSSL to 1.1.1f in Azure Pipelines (GH-19320) (GH-19324)
Miss Islington (bot) [Fri, 3 Apr 2020 01:45:40 +0000 (18:45 -0700)] 
bpo-40146: Update OpenSSL to 1.1.1f in Azure Pipelines (GH-19320) (GH-19324)

Update also OpenSSL version in Ubuntu and Coverage jobs.
(cherry picked from commit 1767a0490f80c7b90d81051db24ef2b82cd9434f)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-40162: Update Travis CI config to OpenSSL 1.1.1f (GH-19319)
Miss Islington (bot) [Fri, 3 Apr 2020 01:21:37 +0000 (18:21 -0700)] 
bpo-40162: Update Travis CI config to OpenSSL 1.1.1f (GH-19319)

(cherry picked from commit b1ffb8b72307a556442d09b427c3b29badb9878c)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-39503: CVE-2020-8492: Fix AbstractBasicAuthHandler (GH-18284) (GH-19297)
Miss Islington (bot) [Thu, 2 Apr 2020 10:16:17 +0000 (03:16 -0700)] 
bpo-39503: CVE-2020-8492: Fix AbstractBasicAuthHandler (GH-18284) (GH-19297)

The AbstractBasicAuthHandler class of the urllib.request module uses
an inefficient regular expression which can be exploited by an
attacker to cause a denial of service. Fix the regex to prevent the
catastrophic backtracking. Vulnerability reported by Ben Caller
and Matt Schwager.

AbstractBasicAuthHandler of urllib.request now parses all
WWW-Authenticate HTTP headers and accepts multiple challenges per
header: use the realm of the first Basic challenge.

Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit 0b297d4ff1c0e4480ad33acae793fbaf4bf015b4)

5 years agobpo-40146: Update OpenSSL to 1.1.1f in Azure Pipelines (GH-19288)
Miss Islington (bot) [Thu, 2 Apr 2020 01:23:15 +0000 (18:23 -0700)] 
bpo-40146: Update OpenSSL to 1.1.1f in Azure Pipelines (GH-19288)

(cherry picked from commit 224e1c34d677ef42fe665ac008a000d4dcec1398)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-40094: Enhance os.WIFEXITED documentation (GH-19244) (GH-19278)
Miss Islington (bot) [Wed, 1 Apr 2020 23:26:47 +0000 (16:26 -0700)] 
bpo-40094: Enhance os.WIFEXITED documentation (GH-19244) (GH-19278)

(cherry picked from commit 7c72383f95b0cdedf390726069428d7b69ed2597)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agoHandle when IOCTL_VM_SOCKETS_GET_LOCAL_CID does not exist in "socket" (GH-19270)
Miss Islington (bot) [Wed, 1 Apr 2020 01:09:57 +0000 (18:09 -0700)] 
Handle when IOCTL_VM_SOCKETS_GET_LOCAL_CID does not exist in "socket" (GH-19270)

Running `test_socket` or anything that depends on it (like python -m
test.pythoninfo) crashes if IOCTL_VM_SOCKETS_GET_LOCAL_CID does not
exist in the socket module.

Automerge-Triggered-By: @pablogsal
(cherry picked from commit 6eb9619c88612565b424be14196a8adae6d51978)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agoDocument most common signals (GH-19245) (GH-19258)
Victor Stinner [Tue, 31 Mar 2020 17:44:34 +0000 (19:44 +0200)] 
Document most common signals (GH-19245) (GH-19258)

Document individual signals (only the most common signals):
description, default action, availability.

(cherry picked from commit 400e1dbcad93061f1f7ab4735202daaa5e731507)

5 years agobpo-40019: Skip test_gdb if Python was optimized (GH-19081)
Miss Islington (bot) [Tue, 31 Mar 2020 17:28:35 +0000 (10:28 -0700)] 
bpo-40019: Skip test_gdb if Python was optimized (GH-19081)

test_gdb now skips tests if it detects that gdb failed to read debug
information because the Python binary is optimized.
(cherry picked from commit 7bf069b6110278102c8f4719975a5eb5a5af25f9)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agocloses bpo-40125: Update multissltests.py to use OpenSSL 1.1.1f. (GH-19248)
Miss Islington (bot) [Tue, 31 Mar 2020 16:07:23 +0000 (09:07 -0700)] 
closes bpo-40125: Update multissltests.py to use OpenSSL 1.1.1f. (GH-19248)

(cherry picked from commit cd16661f903153ecac55f190ed682e576c5deb24)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
5 years agobpo-39689: Do not use native packing for format "?" with standard size (GH-18969)
Miss Islington (bot) [Tue, 31 Mar 2020 12:24:07 +0000 (05:24 -0700)] 
bpo-39689: Do not use native packing for format "?" with standard size (GH-18969)

(cherry picked from commit 472fc843ca816d65c12f9508ac762ca492165c45)

Co-authored-by: Stefan Krah <skrah@bytereef.org>
5 years agofix comma location in various places (GH-19233)
Miss Islington (bot) [Mon, 30 Mar 2020 21:33:31 +0000 (14:33 -0700)] 
fix comma location in various places (GH-19233)

(cherry picked from commit c49016e67c3255b37599b354a8d7995d40663991)

Co-authored-by: Mathieu Dupuy <deronnax@users.noreply.github.com>
5 years agobpo-38002: Use False/True for IDLE pyshell bools (GH-19203)
Miss Islington (bot) [Sat, 28 Mar 2020 17:18:12 +0000 (10:18 -0700)] 
bpo-38002: Use False/True for IDLE pyshell bools (GH-19203)

Change 0/1 assignments to 'executing', 'canceled', 'reading', 'endoffile'.
These are not used outside of pyshell. Other bools already use False/True.
Add comment about int needed for Windows call.
Remove self.more, unused in idlelib and code.InteractiveInterpreter.
The latter uses 'more' as a local.
(cherry picked from commit 34a49aa3e4d023b5f9e9029f4f1ec68f1a8a8120)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-40045: Make "dunder" method documentation easier to locate (GH-19153) (GH-19199)
Miss Islington (bot) [Fri, 27 Mar 2020 19:17:51 +0000 (12:17 -0700)] 
bpo-40045: Make "dunder" method documentation easier to locate (GH-19153) (GH-19199)

* issue 40045

* Update lexical_analysis.rst

Make "dunder" method documentation easier(GH-19153)

Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
(cherry picked from commit 5f9c131c099d6675d1a9d0228497865488afd548)

Co-authored-by: Javad Mokhtari <javadmokhtari@outlook.com>
Co-authored-by: Javad Mokhtari <javadmokhtari@outlook.com>
5 years agobpo-19698: Document when importlib.machinery.FrozenImporter gained spec-related metho...
Miss Islington (bot) [Thu, 26 Mar 2020 17:15:21 +0000 (10:15 -0700)] 
bpo-19698: Document when importlib.machinery.FrozenImporter gained spec-related methods (GH-19158) (GH-19165)

(cherry picked from commit 302e5a8f79514fd84bafbc44b7c97ec636302322)

Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com>
Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com>
5 years agobpo-1812: Fix newline conversion when doctest.testfile loads from a package whose...
Miss Islington (bot) [Thu, 26 Mar 2020 16:18:55 +0000 (09:18 -0700)] 
bpo-1812: Fix newline conversion when doctest.testfile loads from a package whose loader has a get_data method (GH-17385)

This pull request fixes the newline conversion bug originally reported in bpo-1812. When that issue was originally submitted, the open builtin did not default to universal newline mode; now it does, which makes the issue fix simpler, since the only code path that needs to be changed is the one in doctest._load_testfile where the file is loaded from a package whose loader has a get_data method.
(cherry picked from commit e0b8101492f6c61dee831425b4d3dae39a953599)

Co-authored-by: Peter Donis <peterdonis@alum.mit.edu>
5 years agobpo-39879: Update datamodel docs to include dict ordering (GH-19006)
Miss Islington (bot) [Thu, 26 Mar 2020 14:59:40 +0000 (07:59 -0700)] 
bpo-39879: Update datamodel docs to include dict ordering (GH-19006)

Co-authored-by: furkanonder <furkantahaonder@gmail.com>
(cherry picked from commit 59c644eaa72b0cc48302f59d66852c4ea8332eba)

Co-authored-by: Lahfa Samy <lahfa121999@gmail.com>
5 years agobpo-40016: re docstring: Clarify relationship of inline and argument flags (GH-19078)
Miss Islington (bot) [Wed, 25 Mar 2020 19:03:34 +0000 (12:03 -0700)] 
bpo-40016: re docstring: Clarify relationship of inline and argument flags (GH-19078)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 89a2209ae6fc5f39868621799730e16f931eb497)

Co-authored-by: Ram Rachum <ram@rachum.com>
5 years agobpo-40013: Clarify documentation of restval in csv.DictReader (GH-19099) (GH-19142)
Miss Islington (bot) [Wed, 25 Mar 2020 07:01:14 +0000 (00:01 -0700)] 
bpo-40013: Clarify documentation of restval in csv.DictReader (GH-19099) (GH-19142)

(cherry picked from commit 4b3252cb764807fdb3a661b458d43e4af55cf4df)

Co-authored-by: Juhana Jauhiainen <juhana.jauhiainen@gmail.com>
5 years agobpo-40014: Fix os.getgrouplist() (GH-19126)
Miss Islington (bot) [Tue, 24 Mar 2020 17:39:15 +0000 (10:39 -0700)] 
bpo-40014: Fix os.getgrouplist() (GH-19126)

Fix os.getgrouplist(): if getgrouplist() function fails because the
group list is too small, retry with a larger group list.

On failure, the glibc implementation of getgrouplist() sets ngroups
to the total number of groups. For other implementations, double the
group list size.
(cherry picked from commit f5c7cabb2be4e42a5975ba8aac8bb458c8d9d6d7)

Co-authored-by: Victor Stinner <vstinner@python.org>