]> granicus.if.org Git - python/log
python
5 years agoDocument default parameter of .seek() in the signature. (GH-14691)
Miss Islington (bot) [Thu, 11 Jul 2019 02:49:49 +0000 (19:49 -0700)]
Document default parameter of .seek() in the signature. (GH-14691)

(cherry picked from commit 2a3d4d9c53dd4831c3ecf56bc7c4a289c33030d6)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
5 years agobpo-26806: IDLE should run without docstrings (GH-14657) (GH-14677)
Miss Islington (bot) [Tue, 9 Jul 2019 18:59:19 +0000 (11:59 -0700)]
bpo-26806: IDLE should run without docstrings (GH-14657) (GH-14677)

After fcf1d00, IDLE startup failed with python compiled without docstrings.
(cherry picked from commit 6aeb2fe606408aae14c246470794f1303b3be812)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-18374: fix tests to check the correct thing about line numbers (GH-14659) (GH...
Miss Islington (bot) [Tue, 9 Jul 2019 13:28:57 +0000 (06:28 -0700)]
bpo-18374: fix tests to check the correct thing about line numbers (GH-14659) (GH-14672)

(cherry picked from commit 430a9f44fe22f029ae8cfeecb46621d7e199414b)

Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
5 years agobpo-37322: ssl test_pha_required_nocert() ignores expected SSLError (GH-14670)
Miss Islington (bot) [Tue, 9 Jul 2019 12:55:08 +0000 (05:55 -0700)]
bpo-37322: ssl test_pha_required_nocert() ignores expected SSLError (GH-14670)

test_ssl.test_pha_required_nocert() now uses
support.catch_threading_exception() to ignore the expected SSLError
in ConnectionHandler of ThreadedEchoServer (it is only raised
sometimes on Windows).
(cherry picked from commit 73ea54620a6f91c3f2e53880373dd47813691a21)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37120: Fix _ssl get_num_tickets() (GH-14668)
Miss Islington (bot) [Tue, 9 Jul 2019 12:42:49 +0000 (05:42 -0700)]
bpo-37120: Fix _ssl get_num_tickets() (GH-14668)

Replace PyLong_FromLong() with PyLong_FromSize_t():
SSL_CTX_get_num_tickets() return type is size_t.

https://bugs.python.org/issue37120
(cherry picked from commit 76611c7c0af6b2f4d0d98a5db827d34cff54ce25)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37526: Add support.catch_threading_exception() (GH-14664) (GH-14666)
Miss Islington (bot) [Tue, 9 Jul 2019 11:35:59 +0000 (04:35 -0700)]
bpo-37526: Add support.catch_threading_exception() (GH-14664) (GH-14666)

Context manager catching threading.Thread exception using
threading.excepthook.
(cherry picked from commit 91b4f7ab7f9a5e0908b91379ee085ae087a76483)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-18374: fix wrong col_offset of some ast.BinOp instances (GH-14607)
Miss Islington (bot) [Mon, 8 Jul 2019 21:41:34 +0000 (14:41 -0700)]
bpo-18374: fix wrong col_offset of some ast.BinOp instances (GH-14607)

Nested BinOp instances (e.g. a+b+c) had a wrong col_offset for the
second BinOp (e.g. 2 instead of 0 in the example). Fix it by using the
correct st node to copy the line and col_offset from in ast.c.
(cherry picked from commit 110a47c4f42cf4db88edc1876899fff8f05190fb)

Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
5 years agoDoc: Fix example title. (GH-14639)
Miss Islington (bot) [Mon, 8 Jul 2019 21:17:32 +0000 (14:17 -0700)]
Doc: Fix example title. (GH-14639)

(cherry picked from commit 66b4150f6f001640521ae6c9571cd4325cd67394)

Co-authored-by: Julien Palard <julien@palard.fr>
5 years agoDoc: Fix: Proper UpperCamelCase and lowercase. (GH-14644)
Miss Islington (bot) [Mon, 8 Jul 2019 21:13:57 +0000 (14:13 -0700)]
Doc: Fix: Proper UpperCamelCase and lowercase. (GH-14644)

Initial report by Michael Blankenship on docs@
(cherry picked from commit 2da622ff77a763327895656779370b80a833d95c)

Co-authored-by: Julien Palard <julien@palard.fr>
5 years agobpo-37421: test_concurrent_futures stops ForkServer (GH-14643) (GH-14645)
Miss Islington (bot) [Mon, 8 Jul 2019 09:51:49 +0000 (02:51 -0700)]
bpo-37421: test_concurrent_futures stops ForkServer (GH-14643) (GH-14645)

test_concurrent_futures now explicitly stops the ForkServer instance
if it's running.
(cherry picked from commit e676244235895aeb6ec3b81ca3ccf4a70e487919)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37520: Correct behavior for zipfile.Path.parent (GH-14638) (GH-14641)
Miss Islington (bot) [Sun, 7 Jul 2019 22:05:53 +0000 (15:05 -0700)]
bpo-37520: Correct behavior for zipfile.Path.parent (GH-14638) (GH-14641)

* bpo-37520: Correct behavior for zipfile.Path.parent

* đŸ“œđŸ€– Added by blurb_it.
(cherry picked from commit 38f44b4a4adc37e8f5f8971917d8b3145f351a56)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
5 years agobpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615)
Miss Islington (bot) [Sun, 7 Jul 2019 15:46:46 +0000 (08:46 -0700)]
bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615)

(cherry picked from commit f6cdd3ff687ebbf8209d793a18a042ea495c4aeb)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
5 years agobpo-37478: Add missing 'and'. (GH-14631)
Miss Islington (bot) [Sun, 7 Jul 2019 02:50:48 +0000 (19:50 -0700)]
bpo-37478: Add missing 'and'. (GH-14631)

(cherry picked from commit a9b40e4546ca631e5ab41376b5b72e8f296f557d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-37478: Specify possible exceptions for os.chdir() (GH-14611) (GH-14629)
Miss Islington (bot) [Sun, 7 Jul 2019 02:18:50 +0000 (19:18 -0700)]
bpo-37478: Specify possible exceptions for os.chdir() (GH-14611) (GH-14629)

(cherry picked from commit 0717b4d9b3899c5c2ca13031e4ff619a15a4d368)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
5 years agobpo-37456: Slash ('/') is now part of syntax. (GH-14627) (GH-14628)
Miss Islington (bot) [Sat, 6 Jul 2019 22:25:47 +0000 (15:25 -0700)]
bpo-37456: Slash ('/') is now part of syntax. (GH-14627) (GH-14628)

(cherry picked from commit 6f2a8c08573c71b78d2f6e2bfaf31641a0cd092b)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-37487: Fix PyList_GetItem index description. (GH-14623) (GH-14624)
Miss Islington (bot) [Sat, 6 Jul 2019 21:54:56 +0000 (14:54 -0700)]
bpo-37487: Fix PyList_GetItem index description. (GH-14623) (GH-14624)

0 is a legal index.
(cherry picked from commit f8709e804d16ec5d44b1d2f00d59a0f78df7b792)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-26806: add 30 to the recursion limit in IDLE's shell (GH-13944)
Miss Islington (bot) [Sat, 6 Jul 2019 12:54:17 +0000 (05:54 -0700)]
bpo-26806: add 30 to the recursion limit in IDLE's shell (GH-13944)

This is done to compensate for the extra stack frames added by
IDLE itself, which cause problems when setting the recursion limit
to low values.

This wraps sys.setrecursionlimit() and sys.getrecursionlimit()
as invisibly as possible.
(cherry picked from commit fcf1d003bf4f0100c9d0921ff3d70e1127ca1b71)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
5 years agobpo-37149: Replace dead link for online Tkinter reference (GH-14616)
Miss Islington (bot) [Sat, 6 Jul 2019 06:38:30 +0000 (23:38 -0700)]
bpo-37149: Replace dead link for online Tkinter reference  (GH-14616)

Also fix a name misspelling.
(cherry picked from commit 45bc61b97178b27ae05bd3eb95481bf0325795bb)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agocloses bpo-37508: Fix name of type in memory.rst. (GH-14604)
Miss Islington (bot) [Sat, 6 Jul 2019 04:09:57 +0000 (21:09 -0700)]
closes bpo-37508: Fix name of type in memory.rst. (GH-14604)

(cherry picked from commit 39a5d17a7f1387582eb484422df450bc09a5543e)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
5 years agoFix some typos (GH-14435)
Miss Islington (bot) [Fri, 5 Jul 2019 22:00:43 +0000 (15:00 -0700)]
Fix some typos (GH-14435)

(cherry picked from commit f7d72e48fb235684e17668a1e5107e6b0dab7b80)

Co-authored-by: Min ho Kim <minho42@gmail.com>
5 years agobpo-37421: multiprocessing tests now stop ForkServer (GH-14601)
Miss Islington (bot) [Fri, 5 Jul 2019 14:35:38 +0000 (07:35 -0700)]
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>
5 years agobpo-37481: Deprecate distutils bdist_wininst command (GH-14553)
Miss Islington (bot) [Fri, 5 Jul 2019 09:03:23 +0000 (02:03 -0700)]
bpo-37481: Deprecate distutils bdist_wininst command (GH-14553)

The distutils bdist_wininst command is now deprecated, use
bdist_wheel (wheel packages) instead.
(cherry picked from commit 1da4462765b084dfa8d869b6cb5855e8f6014a11)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agoUse OSError subclasses in os documentation (GH-14262)
Miss Islington (bot) [Fri, 5 Jul 2019 08:48:21 +0000 (01:48 -0700)]
Use OSError subclasses in os documentation (GH-14262)

(cherry picked from commit a55f75a6e3e9cda5c7c30bd961386b1a8a2e9892)

Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
5 years agoPost v3.8.0b2
Ɓukasz Langa [Thu, 4 Jul 2019 21:46:35 +0000 (23:46 +0200)]
Post v3.8.0b2

5 years agoMerge tag 'v3.8.0b2' into 3.8
Ɓukasz Langa [Thu, 4 Jul 2019 21:45:23 +0000 (23:45 +0200)]
Merge tag 'v3.8.0b2' into 3.8

Python 3.8.0b2

5 years agoMinor updates to the macOS installer screens for 3.8.0b2 (GH-14501)
Miss Islington (bot) [Thu, 4 Jul 2019 15:47:25 +0000 (08:47 -0700)]
Minor updates to the macOS installer screens for 3.8.0b2 (GH-14501)

(cherry picked from commit fc1fbe6099e826e8304eadf781af7c10d739fc40)

Co-authored-by: Ned Deily <nad@python.org>
5 years agobpo-37421: Fix multiprocessing get_temp_dir() finalizer (GH-14572)
Miss Islington (bot) [Thu, 4 Jul 2019 11:34:31 +0000 (04:34 -0700)]
bpo-37421: Fix multiprocessing get_temp_dir() finalizer (GH-14572)

Fix multiprocessing.util.get_temp_dir() finalizer: clear also the
'tempdir' configuration of the current process, so next call to
get_temp_dir() will create a new temporary directory, rather than
reusing the removed temporary directory.
(cherry picked from commit 9d40554e0da09a44a8547f3f3a2b9dedfeaf7928)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agoPython 3.8.0b2 v3.8.0b2
Ɓukasz Langa [Thu, 4 Jul 2019 10:50:19 +0000 (12:50 +0200)]
Python 3.8.0b2

5 years agobpo-37459: importlib docs improperly reference get_resource_loader() (GH-14568) ...
Miss Islington (bot) [Thu, 4 Jul 2019 01:27:40 +0000 (18:27 -0700)]
bpo-37459: importlib docs improperly reference get_resource_loader() (GH-14568) (GH-14580)

* bpo-37459: importlib docs improperly reference get_resource_loader()
(cherry picked from commit b607d992e76e485f20be3bfd6b311525123f936b)

Co-authored-by: aldwinaldwin <aldwinaldwin@users.noreply.github.com>
5 years agobpo-37233: optimize method_vectorcall in case of totalargs == 0 (GH-14550)
Miss Islington (bot) [Wed, 3 Jul 2019 13:06:38 +0000 (06:06 -0700)]
bpo-37233: optimize method_vectorcall in case of totalargs == 0 (GH-14550)

(cherry picked from commit 53c214344038341ce86fcf7efa12dc33be9d5b45)

Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be>
5 years ago[3.8] bpo-37233: use _PY_FASTCALL_SMALL_STACK in method_vectorcall (GH-13974)
Inada Naoki [Wed, 3 Jul 2019 12:46:07 +0000 (21:46 +0900)]
[3.8] bpo-37233: use _PY_FASTCALL_SMALL_STACK in method_vectorcall (GH-13974)

(cherry picked from commit 988e6aa322fb61651812fa5a61ec73316c71b041)

Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be>
5 years agobpo-37421: Fix test_distutils.test_build_ext() (GH-14564)
Miss Islington (bot) [Wed, 3 Jul 2019 09:48:14 +0000 (02:48 -0700)]
bpo-37421: Fix test_distutils.test_build_ext() (GH-14564)

test_distutils.test_build_ext() is now able to remove the temporary
directory on Windows: don't import the newly built C extension ("xx")
in the current process, but test it in a separated process.
(cherry picked from commit 74c9dd57771f4f061ee83b069c8e7b37de41246b)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37421: test_concurrent_futures cleans up multiprocessing (GH-14563)
Miss Islington (bot) [Wed, 3 Jul 2019 09:36:13 +0000 (02:36 -0700)]
bpo-37421: test_concurrent_futures cleans up multiprocessing (GH-14563)

test_concurrent_futures now cleans up multiprocessing to remove
immediately temporary directories created by
multiprocessing.util.get_temp_dir().

The test now uses setUpModule() and tearDownModule().
(cherry picked from commit 684cb47fffb7af3ac50cb077f6d2a095c9ce20b4)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37421: test_winconsoleio doesn't leak temp file anymore (GH-14562)
Miss Islington (bot) [Wed, 3 Jul 2019 09:31:39 +0000 (02:31 -0700)]
bpo-37421: test_winconsoleio doesn't leak temp file anymore (GH-14562)

test_winconsoleio doesn't leak a temporary file anymore: use
tempfile.TemporaryFile() to remove it when the test completes.
(cherry picked from commit b71d8d67959f3b5efbdfe00066589ac0d8f98aad)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37441: Fix wrong PyErr_SetImportErrorSubclass signature in doc (GH-14453)
Miss Islington (bot) [Wed, 3 Jul 2019 02:04:29 +0000 (19:04 -0700)]
bpo-37441: Fix wrong PyErr_SetImportErrorSubclass signature in doc (GH-14453)

(cherry picked from commit aeecf380660ea459d85bb5f59d76bb54f757b5be)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
5 years agobpo-37463: match_hostname requires quad-dotted IPv4 (GH-14499)
Miss Islington (bot) [Tue, 2 Jul 2019 21:06:18 +0000 (14:06 -0700)]
bpo-37463: match_hostname requires quad-dotted IPv4 (GH-14499)

ssl.match_hostname() no longer accepts IPv4 addresses with additional text
after the address and only quad-dotted notation without trailing
whitespaces. Some inet_aton() implementations ignore whitespace and all data
after whitespace, e.g. '127.0.0.1 whatever'.

Short notations like '127.1' for '127.0.0.1' were already filtered out.

The bug was initially found by Dominik Czarnota and reported by Paul Kehrer.

Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue37463
(cherry picked from commit 477b1b25768945621d466a8b3f0739297a842439)

Co-authored-by: Christian Heimes <christian@python.org>
5 years agobpo-37421: multiprocessing tests call _run_finalizers() (GH-14527)
Miss Islington (bot) [Tue, 2 Jul 2019 11:58:05 +0000 (04:58 -0700)]
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>
5 years agoStop using Argument Clinic for dict_pop (GH-13935)
Inada Naoki [Tue, 2 Jul 2019 11:32:43 +0000 (20:32 +0900)]
Stop using Argument Clinic for dict_pop (GH-13935)

5 years agobpo-37335, test_c_locale_coercion: Remove unnecessary code (GH-14447)
Miss Islington (bot) [Tue, 2 Jul 2019 11:18:40 +0000 (04:18 -0700)]
bpo-37335, test_c_locale_coercion: Remove unnecessary code (GH-14447)

Python initialization now ensures that sys stream encoding
names are always normalized by codecs.lookup(encoding).name.
Simplify test_c_locale_coercion: it doesn't have to normalize
encoding names anymore.
(cherry picked from commit 61bf97e91620e020939d57a36918ab22579920ff)

Co-authored-by: Jakub KulĂ­k <Kulikjak@gmail.com>
5 years agobpo-34602: Avoid failures setting macOS stack resource limit (GH-14546)
Miss Islington (bot) [Tue, 2 Jul 2019 07:31:07 +0000 (00:31 -0700)]
bpo-34602: Avoid failures setting macOS stack resource limit (GH-14546)

Under some conditions the earlier fix for bpo-18075, "Infinite recursion
tests triggering a segfault on Mac OS X", now causes failures on macOS
when attempting to change stack limit with resource.setrlimit
resource.RLIMIT_STACK, like regrtest does when running the test suite.
The reverted change had specified a non-default stack size when linking
the python executable on macOS.  As of macOS 10.14.4, the previous
code causes a hard failure when running tests, although similar
failures had been seen under some conditions under some earlier
systems.  Reverting the change to the interpreter stack size at link
time helped for release builds but caused some tests to fail when
built --with-pydebug.  Try the opposite approach: continue to build
the interpreter with an increased stack size on macOS and remove
the failing setrlimit call in regrtest initialization.  This will
definitely avoid the resource.RLIMIT_STACK error and should have
no, or fewer, side effects.
(cherry picked from commit 5bbbc733e6cc0804f19b071944af8d4719e26ae6)

Co-authored-by: Ned Deily <nad@python.org>
5 years agoPut pyexpatns.h include back. bpo-37437 (GH-14539)
Miss Islington (bot) [Tue, 2 Jul 2019 05:26:40 +0000 (22:26 -0700)]
Put pyexpatns.h include back. bpo-37437 (GH-14539)

(cherry picked from commit 2cd07920bb7d2d319999394092190f37935dc421)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
5 years agobpo-37363: Add audit events on startup for the run commands (GH-14524)
Miss Islington (bot) [Mon, 1 Jul 2019 23:22:29 +0000 (16:22 -0700)]
bpo-37363: Add audit events on startup for the run commands (GH-14524)

(cherry picked from commit e226e83d36dfc7220d836fb7a249ce18e70cb4a6)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-37470: Document more clearly the error handling for QueueHandler.emit(). (GH...
Miss Islington (bot) [Mon, 1 Jul 2019 19:53:39 +0000 (12:53 -0700)]
bpo-37470: Document more clearly the error handling for QueueHandler.emit(). (GH-14532) (GH-14533)

(cherry picked from commit 0f4e8132820947d93eccf31b9e526b81c6ffa53d)

5 years agobpo-37469: Document usability of SimpleQueue with QueueHandler and QueueListener...
Miss Islington (bot) [Mon, 1 Jul 2019 18:53:28 +0000 (11:53 -0700)]
bpo-37469: Document usability of SimpleQueue with QueueHandler and QueueListener. (GH-14521) (GH-14525)

(cherry picked from commit e6b64b756f940147728ea7808fb686ffcae89176)

5 years agobpo-36763: Use PyConfig_Clear() (GH-14445)
Miss Islington (bot) [Mon, 1 Jul 2019 18:28:55 +0000 (11:28 -0700)]
bpo-36763: Use PyConfig_Clear() (GH-14445)

Stop using "static PyConfig", PyConfig must now always use
dynamically allocated strings: use PyConfig_SetString(),
PyConfig_SetArgv() and PyConfig_Clear().
(cherry picked from commit 67310023f299b5a2fad71fca449b46d280036690)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-36763: Add PyConfig_SetWideStringList() (GH-14444)
Miss Islington (bot) [Mon, 1 Jul 2019 17:39:58 +0000 (10:39 -0700)]
bpo-36763: Add PyConfig_SetWideStringList() (GH-14444)

(cherry picked from commit 36242fd871d0f0977e720d4fae5700774bd8c09a)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agoRemove unused imports in tests (GH-14518) (GH-14520)
Victor Stinner [Mon, 1 Jul 2019 17:01:52 +0000 (19:01 +0200)]
Remove unused imports in tests (GH-14518) (GH-14520)

(cherry picked from commit 8f4ef3b019ce380022018587571b0f970e668de3)

5 years agobpo-36168: Lowercase the word "subsequent" in get_value doc (GH-14485)
Miss Islington (bot) [Mon, 1 Jul 2019 16:30:48 +0000 (09:30 -0700)]
bpo-36168: Lowercase the word "subsequent" in get_value doc (GH-14485)

Subsequent -> subsequent

https://bugs.python.org/issue36168
(cherry picked from commit 12b436e3b079fb3e3a7197c089df90a77e3bdd77)

Co-authored-by: Krishna Oza <krishoza15sep@gmail.com>
5 years agobpo-37467: Fix PyErr_Display() for bytes filename (GH-14504)
Miss Islington (bot) [Mon, 1 Jul 2019 15:11:15 +0000 (08:11 -0700)]
bpo-37467: Fix PyErr_Display() for bytes filename (GH-14504)

Fix sys.excepthook() and PyErr_Display() if a filename is a bytes
string. For example, for a SyntaxError exception where the filename
attribute is a bytes string.

Cleanup also test_sys:

* Sort imports.
* Rename numruns global var to INTERN_NUMRUNS.
* Add DisplayHookTest and ExceptHookTest test case classes.
* Don't save/restore sys.stdout and sys.displayhook using
  setUp()/tearDown(): do it in each test method.
* Test error case (call hook with no argument) after the success case.
(cherry picked from commit f9b7457bd7f438263e0d2dd1f70589ad56a2585e)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37209: Add pickle entry for 3.8 whatsnew (GH-14503) (GH-14512)
Miss Islington (bot) [Mon, 1 Jul 2019 14:05:02 +0000 (07:05 -0700)]
bpo-37209: Add pickle entry for 3.8 whatsnew (GH-14503) (GH-14512)

(cherry picked from commit ec6c1bd0491590f3c0e2908a7b2dfb91b6acdae9)

Co-authored-by: Pierre Glaser <pierreglaser@msn.com>
5 years agobpo-10945: Drop support for bdist_wininst on non-Windows systems (GH-14506)
Miss Islington (bot) [Mon, 1 Jul 2019 12:54:19 +0000 (05:54 -0700)]
bpo-10945: Drop support for bdist_wininst on non-Windows systems (GH-14506)

bdist_wininst depends on MBCS codec, unavailable on non-Windows,
and bdist_wininst have not worked since at least Python 3.2, possibly
never on Python 3.

Here we document that bdist_wininst is only supported on Windows,
and we mark it unsupported otherwise to skip tests.

Distributors of Python 3 can now safely drop the bdist_wininst .exe files
without the need to skip bdist_wininst related tests.
(cherry picked from commit 72cd653c4ed7a4f8f8fb06ac364b08a97085a2b5)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
5 years agobpo-32934: Clarified meaning of 'capacity' for BufferingHandler and MemoryHandler...
Miss Islington (bot) [Mon, 1 Jul 2019 12:12:08 +0000 (05:12 -0700)]
bpo-32934: Clarified meaning of 'capacity' for BufferingHandler and MemoryHandler. (GH-14498) (GH-14507)

(cherry picked from commit 84de34e39eb9e49b2ae691c6f67df8d7da3561de)

5 years agobpo-37221: Add PyCode_NewWithPosOnlyArgs to be used internally and set PyCode_New...
Miss Islington (bot) [Mon, 1 Jul 2019 11:29:14 +0000 (04:29 -0700)]
bpo-37221: Add PyCode_NewWithPosOnlyArgs to be used internally and set PyCode_New as a compatibility wrapper (GH-13959) (#14505)

Add PyCode_NewEx to be used internally and set PyCode_New as a compatibility wrapper
(cherry picked from commit 4a2edc34a405150d0b23ecfdcb401e7cf59f4650)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years ago[3.8] bpo-37428: Don't set PHA verify flag on client side (GH-14494)
Christian Heimes [Mon, 1 Jul 2019 07:25:48 +0000 (09:25 +0200)]
[3.8] bpo-37428: Don't set PHA verify flag on client side (GH-14494)

SSLContext.post_handshake_auth = True no longer sets
SSL_VERIFY_POST_HANDSHAKE verify flag for client connections. Although the
option is documented as ignored for clients, OpenSSL implicitly enables cert
chain validation when the flag is set.

Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue37428
(cherry picked from commit f0f5930ac88482ef896283db5be9b8d508d077db)

5 years ago[3.8] bpo-37440: Enable TLS 1.3 post-handshake auth in http.client (GH-14448) (GH...
Miss Islington (bot) [Mon, 1 Jul 2019 07:07:44 +0000 (00:07 -0700)]
[3.8] bpo-37440: Enable TLS 1.3 post-handshake auth in http.client (GH-14448) (GH-14495)

Post-handshake authentication is required for conditional client cert authentication with TLS 1.3.

https://bugs.python.org/issue37440
(cherry picked from commit d1bd6e79da1ee56dc1b902d804216ffd267399db)

Co-authored-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue37440

5 years agobpo-37199: Fix test failures when IPv6 is unavailable or disabled (GH-14480)
Miss Islington (bot) [Sun, 30 Jun 2019 15:42:22 +0000 (08:42 -0700)]
bpo-37199: Fix test failures when IPv6 is unavailable or disabled (GH-14480)

(cherry picked from commit c2cda638d63b98f5cf9a8ef13e15aace2b7e3f0b)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-35621: Support running subprocesses in asyncio when loop is executed in non-main...
Miss Islington (bot) [Sun, 30 Jun 2019 10:22:34 +0000 (03:22 -0700)]
bpo-35621: Support running subprocesses in asyncio when loop is executed in non-main thread  (GH-14344)

(cherry picked from commit 0d671c04c39b52e44597491b893eb0b6c86b3d45)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
5 years agobpo-29505: Add more fuzzing for re.compile, re.load and csv.reader (GH-14255)
Miss Islington (bot) [Sun, 30 Jun 2019 06:13:18 +0000 (23:13 -0700)]
bpo-29505: Add more fuzzing for re.compile, re.load and csv.reader (GH-14255)

Add more fuzz testing for re.compile, re.load and csv.reader
(cherry picked from commit 5cbbbd73a6acb6f96f5d6646aa7498d3dfb1706d)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
5 years agobpo-30754: Document textwrap.dedent blank line behavior. (GH-14469)
Miss Islington (bot) [Sun, 30 Jun 2019 04:40:41 +0000 (21:40 -0700)]
bpo-30754: Document textwrap.dedent blank line behavior. (GH-14469)

* Added documentation for textwrap.dedent behavior.
* Remove an obsolete note about pre-2.5 behavior from the docstring.
(cherry picked from commit eb97b9211e7c99841d6cae8c63893b3525d5a401)

Co-authored-by: tmblweed <tmblweed@users.noreply.github.com>
5 years ago[3.8] bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14473)
Benjamin Peterson [Sat, 29 Jun 2019 23:51:59 +0000 (16:51 -0700)]
[3.8] bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14473)

(cherry picked from commit 95da310078a9364bae9ab3f2ad9c71e34306a70c)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
5 years agobpo-37369: Fix initialization of sys members when launched via an app container ...
Steve Dower [Sat, 29 Jun 2019 21:28:59 +0000 (14:28 -0700)]
bpo-37369: Fix initialization of sys members when launched via an app container (GH-14467)

sys._base_executable is now always defined on all platforms, and can be overridden through configuration.
Also adds test.support.PythonSymlink to encapsulate platform-specific logic for symlinking sys.executable

5 years agobpo-37403: Touch up venv docs (GH-14458)
Miss Islington (bot) [Fri, 28 Jun 2019 19:36:09 +0000 (12:36 -0700)]
bpo-37403: Touch up venv docs (GH-14458)

Add a versionadded for PS Core and note that `.venv` is a common virtual environment name.
(cherry picked from commit f9f8e3ce709ceb15c8db8c8dde940daf1febf13d)

Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com>
5 years agobpo-37412: Fix test_os.test_getcwd_long_path() on macOS (GH-14452)
Miss Islington (bot) [Fri, 28 Jun 2019 18:07:10 +0000 (11:07 -0700)]
bpo-37412: Fix test_os.test_getcwd_long_path() on macOS (GH-14452)

(cherry picked from commit 29f609ed07aa7856741ff8b8b8b050369d0faf81)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37412: Fix os.getcwd() for long path on Windows (GH-14424) (GH-14451)
Miss Islington (bot) [Fri, 28 Jun 2019 16:23:06 +0000 (09:23 -0700)]
bpo-37412: Fix os.getcwd() for long path on Windows (GH-14424) (GH-14451)

* Fix test for integer overflow.
* Add an unit test.
(cherry picked from commit ec3e20a2d1edddb0558f9d32e2b367904ccdde88)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37432: Doc: Fix signature of PyObject_Del() (GH-14430)
Miss Islington (bot) [Fri, 28 Jun 2019 09:16:36 +0000 (02:16 -0700)]
bpo-37432: Doc: Fix signature of PyObject_Del() (GH-14430)

(cherry picked from commit b4bee03087a3c70cb040e2ce569c828860ed8e87)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
5 years agocloses bpo-37437: Update vendorized expat to 2.2.7. (GH-14436)
Miss Islington (bot) [Fri, 28 Jun 2019 04:12:38 +0000 (21:12 -0700)]
closes bpo-37437: Update vendorized expat to 2.2.7. (GH-14436)

(cherry picked from commit 3b03b09fc94425915c5b1225e9200a3a95bc827b)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
5 years agobpo-37390: Add audit event table to documentations (GH-14406)
Miss Islington (bot) [Thu, 27 Jun 2019 18:07:16 +0000 (11:07 -0700)]
bpo-37390: Add audit event table to documentations (GH-14406)

Also updates some (unreleased) event names to be consistent with the others.
(cherry picked from commit 44f91c388a6f4da9ed3300df32ca290b8aa104ea)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-30345: travis: use -Og with --with-pydebug (GH-14423)
Miss Islington (bot) [Thu, 27 Jun 2019 17:23:59 +0000 (10:23 -0700)]
bpo-30345: travis: use -Og with --with-pydebug (GH-14423)

(cherry picked from commit 21cfae107e410bf4b0ab3c142ca4449bc33290f5)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
5 years agocloses bpo-37420: Handle errors during iteration in os.sched_setaffinity. (GH-14414)
Miss Islington (bot) [Thu, 27 Jun 2019 16:45:30 +0000 (09:45 -0700)]
closes bpo-37420: Handle errors during iteration in os.sched_setaffinity. (GH-14414)

(cherry picked from commit 45a30af109f69a81576b87ea775863ba12d55316)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
5 years agoReplace deprecation warning with RuntimeError (GH-14397)
Miss Islington (bot) [Thu, 27 Jun 2019 11:58:34 +0000 (04:58 -0700)]
Replace deprecation warning with RuntimeError (GH-14397)

(cherry picked from commit 97d15b1ee06ce80c4dbda91fb538a89bbcb2bed9)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
5 years agobpo-33926: enable GDB tests on Travis CI (GH-14395)
Miss Islington (bot) [Thu, 27 Jun 2019 11:46:59 +0000 (04:46 -0700)]
bpo-33926: enable GDB tests on Travis CI (GH-14395)

(cherry picked from commit 667eaffb4e5d03bf8129773f79649c3befaa5b1a)

Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be>
5 years agobpo-37421: Fix test_shutil: don't leak temporary files (GH-14416)
Miss Islington (bot) [Wed, 26 Jun 2019 23:57:49 +0000 (16:57 -0700)]
bpo-37421: Fix test_shutil: don't leak temporary files (GH-14416)

* Fix typo in supports_file2file_sendfile(); ensure that dst is
  removed
* Fix test_copytree_custom_copy_function(): remove dst tree.
  Use support.rmtree() rather than shutil.rmtree() to remove
  temporary directories: support tries harder.
(cherry picked from commit 4c26abd14f1b7242998eb2f7756aa375e0fe714f)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-29412: Fix indexError when parsing a header value ending unexpectedly (GH-14387...
Miss Islington (bot) [Wed, 26 Jun 2019 22:05:36 +0000 (15:05 -0700)]
bpo-29412: Fix indexError when parsing a header value ending unexpectedly (GH-14387) (GH-14411)

* patched string index out of range error in get_word function of _header_value_parser.py and created tests in test__header_value_parser.py for CFWS.
* Raise HeaderParseError instead of continuing when parsing a word.
(cherry picked from commit 7213df7bbfd85378c6e42e1ac63144d5974bdcf6)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
5 years agobpo-37419: Fix possible segfaults when passing large sequences to os.posix_spawn...
Miss Islington (bot) [Wed, 26 Jun 2019 21:20:09 +0000 (14:20 -0700)]
bpo-37419: Fix possible segfaults when passing large sequences to os.posix_spawn() (GH-14409)

Use Py_ssize_t instead of int for i.
(cherry picked from commit d52a83a3d471ff3c7e9ebfa1731765e5334f7c24)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-37417: Fix error handling in bytearray.extend. (GH-14407)
Miss Islington (bot) [Wed, 26 Jun 2019 20:17:00 +0000 (13:17 -0700)]
bpo-37417: Fix error handling in bytearray.extend. (GH-14407)

(cherry picked from commit 2a7d596f27b2342caf168a03c95ebf3b56e5dbbd)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
5 years agobpo-37411: Rewrite test_wsgiref.testEnviron() (GH-14394)
Miss Islington (bot) [Wed, 26 Jun 2019 19:38:25 +0000 (12:38 -0700)]
bpo-37411: Rewrite test_wsgiref.testEnviron() (GH-14394)

Fix test_wsgiref.testEnviron() to no longer depend on the environment
variables (don't fail if "X" variable is set).

testEnviron() now overrides os.environ to get a deterministic
environment. Test full TestHandler.environ content: not only a few
selected variables.
(cherry picked from commit 5150d327924959639215ed0a78feffc0d88258da)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agoImprove Windows commands in tutorial (GH-14400)
Steve Dower [Wed, 26 Jun 2019 16:41:45 +0000 (09:41 -0700)]
Improve Windows commands in tutorial (GH-14400)

5 years agobpo-37412: os.getcwdb() now uses UTF-8 on Windows (GH-14396)
Miss Islington (bot) [Wed, 26 Jun 2019 16:14:30 +0000 (09:14 -0700)]
bpo-37412: os.getcwdb() now uses UTF-8 on Windows (GH-14396)

The os.getcwdb() function now uses the UTF-8 encoding on Windows,
rather than the ANSI code page: see PEP 529 for the rationale. The
function is no longer deprecated on Windows.

os.getcwd() and os.getcwdb() now detect integer overflow on memory
allocations. On Unix, these functions properly report MemoryError on
memory allocation failure.
(cherry picked from commit 689830ee6243126798a6c519c05aa11ba73db7cd)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37244: Fix test_multiprocessing.test_resource_tracker() (GH-14288)
Miss Islington (bot) [Tue, 25 Jun 2019 22:49:31 +0000 (15:49 -0700)]
bpo-37244: Fix test_multiprocessing.test_resource_tracker() (GH-14288)

Increase robustness of test_resource_tracker(): retry for 60 seconds.
(cherry picked from commit e1a63c4f21011a3ae77dff624196561070c83446)

Co-authored-by: Pierre Glaser <pierreglaser@msn.com>
5 years agobpo-36888, test_multiprocessing: Increase test_parent_process timeout (GH-14286)
Miss Islington (bot) [Tue, 25 Jun 2019 21:12:47 +0000 (14:12 -0700)]
bpo-36888, test_multiprocessing: Increase test_parent_process timeout (GH-14286)

(cherry picked from commit 594d9b9f58e1ef0a60b5ce9e590e0f45cd684f26)

Co-authored-by: Pierre Glaser <pierreglaser@msn.com>
5 years ago[3.8] bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError (GH-14119...
Abhilash Raj [Tue, 25 Jun 2019 18:38:48 +0000 (11:38 -0700)]
[3.8] bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError (GH-14119) (GH-14380)

When certain malformed messages have content-type set to 'mulitpart/*' but
still have a single part body, iter_attachments can raise AttributeError. This
patch fixes it by returning a None value instead when the body is single part.
(cherry picked from commit 02257012f6d3821d816cb6a7e8461a88a05b9a08)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
https://bugs.python.org/issue33972

5 years agobpo-37400: Fix test_os.test_chown() (GH-14374)
Miss Islington (bot) [Tue, 25 Jun 2019 15:26:56 +0000 (08:26 -0700)]
bpo-37400: Fix test_os.test_chown() (GH-14374)

Use os.getgroups() rather than grp.getgrall() to get groups.
Rename also the test to test_chown_gid().
(cherry picked from commit d7c87d982d4ec4ba201bcee14324ae5e0e90581f)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-4963: Fix for initialization and non-deterministic behavior issues in mimetypes...
Steve Dower [Tue, 25 Jun 2019 15:20:43 +0000 (08:20 -0700)]
bpo-4963: Fix for initialization and non-deterministic behavior issues in mimetypes (GH-14375)

5 years agoFix minor spelling error in What's new for Python 3.8 (GH-14371)
Miss Islington (bot) [Tue, 25 Jun 2019 11:02:49 +0000 (04:02 -0700)]
Fix minor spelling error in What's new for Python 3.8 (GH-14371)

(cherry picked from commit de9b606c90c16cea2780948431bb24e50cc5cd99)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years ago[3.8] bpo-37250: put back tp_print for backwards compatibility (GH-14193)
Jeroen Demeyer [Tue, 25 Jun 2019 10:58:58 +0000 (12:58 +0200)]
[3.8] bpo-37250: put back tp_print for backwards compatibility (GH-14193)

This is a 3.8-only compatibility measure for third-party Cython-based sdists.

https://bugs.python.org/issue37250

5 years agobpo-24214: Fixed the UTF-8 and UTF-16 incremental decoders. (GH-14304)
Miss Islington (bot) [Tue, 25 Jun 2019 09:12:16 +0000 (02:12 -0700)]
bpo-24214: Fixed the UTF-8 and UTF-16 incremental decoders. (GH-14304)

* The UTF-8 incremental decoders fails now fast if encounter
  a sequence that can't be handled by the error handler.
* The UTF-16 incremental decoders with the surrogatepass error
  handler decodes now a lone low surrogate with final=False.
(cherry picked from commit 894263ba80af4b7733c2df95b527e96953922656)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-36974: inherit tp_vectorcall_offset unconditionally (GH-13858) (GH-14342)
Miss Islington (bot) [Tue, 25 Jun 2019 08:19:16 +0000 (01:19 -0700)]
bpo-36974: inherit tp_vectorcall_offset unconditionally (GH-13858) (GH-14342)

(cherry picked from commit a8b27e623d75377aabe50df27e97cab4e81a174a)

Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be>
5 years agobpo-37393: Fix deprecation warnings in test_ntpath. (GH-14357)
Miss Islington (bot) [Tue, 25 Jun 2019 07:12:19 +0000 (00:12 -0700)]
bpo-37393: Fix deprecation warnings in test_ntpath. (GH-14357)

eval() was being called an extra time without a filter for
deprecation warnings.
(cherry picked from commit 9fe42b49c79c453d905d0395150ba0607fbab18b)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-36546: Mark first argument as position only (GH-14363) (GH-14364)
Miss Islington (bot) [Tue, 25 Jun 2019 03:07:00 +0000 (20:07 -0700)]
bpo-36546: Mark first argument as position only (GH-14363) (GH-14364)

5 years agobpo-37394: Fix pure Python implementation of the queue module (GH-14351)
Miss Islington (bot) [Tue, 25 Jun 2019 02:14:37 +0000 (19:14 -0700)]
bpo-37394: Fix pure Python implementation of the queue module (GH-14351)

(cherry picked from commit 3f5b9088b0ed08e1442cca37df78f609d5cd8c3c)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-35224: Add What's new entry for evaluation order in dict comprehensions (GH-14319)
Miss Islington (bot) [Tue, 25 Jun 2019 01:49:07 +0000 (18:49 -0700)]
bpo-35224: Add What's new entry for evaluation order in dict comprehensions (GH-14319)

(cherry picked from commit b51b7137faa22e12c570c70fe0462c662ccd935e)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-35360: Update Windows builds to use SQLite 3.28.0 (GH-14179)
Miss Islington (bot) [Mon, 24 Jun 2019 23:43:31 +0000 (16:43 -0700)]
bpo-35360: Update Windows builds to use SQLite 3.28.0 (GH-14179)

(cherry picked from commit 7fd2ba354ec2304743ffd9ba620e07d113532264)

Co-authored-by: animalize <animalize@users.noreply.github.com>
5 years agobpo-36889: Document asyncio Stream and StreamServer (GH-14203)
Miss Islington (bot) [Mon, 24 Jun 2019 18:33:11 +0000 (11:33 -0700)]
bpo-36889: Document asyncio Stream and StreamServer (GH-14203)

(cherry picked from commit 6793cce155f8875b10efd746cb0b34cb72263af7)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
5 years agobpo-32627: Fix compile error when conflicting `_uuid` headers included (GH-11751)
Miss Islington (bot) [Mon, 24 Jun 2019 18:27:57 +0000 (11:27 -0700)]
bpo-32627: Fix compile error when conflicting `_uuid` headers included (GH-11751)

(cherry picked from commit 6ffd9b05dfade9e3a101fe039157856eb855f82e)

Co-authored-by: ziheng <zihenglv@gmail.com>
5 years agoGet rid of exception traceback printing in asyncio tests (GH-14343)
Miss Islington (bot) [Mon, 24 Jun 2019 17:21:35 +0000 (10:21 -0700)]
Get rid of exception traceback printing in asyncio tests (GH-14343)

(cherry picked from commit 549f7d45c8d61ab7b1d4a4e266b9d790ad6f7504)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
5 years agobpo-37363: Add audit events for a range of modules (GH-14301)
Miss Islington (bot) [Mon, 24 Jun 2019 16:09:47 +0000 (09:09 -0700)]
bpo-37363: Add audit events for a range of modules (GH-14301)

(cherry picked from commit 60419a7e96577cf783b3b45bf3984f9fb0d7ddff)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-37359: Fix regrtest --cleanup (GH-14336)
Miss Islington (bot) [Mon, 24 Jun 2019 11:37:55 +0000 (04:37 -0700)]
bpo-37359: Fix regrtest --cleanup (GH-14336)

(cherry picked from commit 9bbf4d7083a819cbcee2a6cd3df2802d4c50f734)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37359: Add --cleanup option to python3 -m test (GH-14332) (GH-14334)
Victor Stinner [Mon, 24 Jun 2019 10:51:47 +0000 (12:51 +0200)]
bpo-37359: Add --cleanup option to python3 -m test (GH-14332) (GH-14334)

* regrtest: Add --cleanup option to remove "test_python_*" directories
  of previous failed test jobs.
* Add "make cleantest" to run "python3 -m test --cleanup".

(cherry picked from commit 47fbc4e45b35b3111e2d947a66490a43ac21d363)

5 years agoasyncio: Fix docs for default event loop (GH-14308)
Miss Islington (bot) [Mon, 24 Jun 2019 00:33:00 +0000 (17:33 -0700)]
asyncio: Fix docs for default event loop (GH-14308)

When the Windows default event loop changed, `asyncio-policy.rst` was updated but `asyncio-eventloop.rst` was missed.
(cherry picked from commit 9ffca670ed4df42eb256e7144619a9d3a830e7c0)

Co-authored-by: Ben Darnell <ben@bendarnell.com>
5 years agoImprove threading.daemon docstring (GH-14278)
Miss Islington (bot) [Sun, 23 Jun 2019 19:06:21 +0000 (12:06 -0700)]
Improve threading.daemon docstring (GH-14278)

Rephrase and clarify that "the entire Python program exits when only daemon threads are left". This matches the documentation at https://docs.python.org/3/library/threading.htmlGH-thread-objects.
(cherry picked from commit bb110cc2ed81447fb48805f31146cf31323a8fc3)

Co-authored-by: mbarkhau <mbarkhau@gmail.com>