]> granicus.if.org Git - python/log
python
6 years agobpo-33674: asyncio: Fix SSLProtocol race (GH-7175) (GH-7188)
Victor Stinner [Tue, 29 May 2018 04:46:48 +0000 (06:46 +0200)]
bpo-33674: asyncio: Fix SSLProtocol race (GH-7175) (GH-7188)

Fix a race condition in SSLProtocol.connection_made() of
asyncio.sslproto: start immediately the handshake instead of using
call_soon(). Previously, data_received() could be called before the
handshake started, causing the handshake to hang or fail.

(cherry picked from commit be00a5583a2cb696335c527b921d1868266a42c6)

6 years agobpo-32878: Adds documentation for st_ino on Windows (GH-5764) (GH-7190)
Steve Dower [Tue, 29 May 2018 02:27:11 +0000 (19:27 -0700)]
bpo-32878: Adds documentation for st_ino on Windows (GH-5764) (GH-7190)

6 years agobpo-33670: Expose Sphinx errorlevel (GH-7156)
Miss Islington (bot) [Tue, 29 May 2018 01:49:50 +0000 (18:49 -0700)]
bpo-33670: Expose Sphinx errorlevel (GH-7156)

(cherry picked from commit 8c1ad0c4f69390fded09012e1ed5242c45753bb4)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33469: RuntimeError after closing loop that used run_in_executor (GH-7171)
Miss Islington (bot) [Tue, 29 May 2018 01:32:17 +0000 (18:32 -0700)]
bpo-33469: RuntimeError after closing loop that used run_in_executor (GH-7171)

(cherry picked from commit fdccfe09f0b10776645fdb04a0783d6864c32b21)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-33673: Install python-docs-theme even if Sphinx is already installed (GH-7163)
Miss Islington (bot) [Tue, 29 May 2018 01:08:17 +0000 (18:08 -0700)]
bpo-33673: Install python-docs-theme even if Sphinx is already installed (GH-7163)

(cherry picked from commit 3d3e66c2daebd8e6b18944eac7546168c0006c78)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobro-33614: Override exit code in find_msbuild.bat (GH-7169)
Miss Islington (bot) [Mon, 28 May 2018 22:38:30 +0000 (15:38 -0700)]
bro-33614: Override exit code in find_msbuild.bat (GH-7169)

(cherry picked from commit f9b364fe51ac083e3e423b1e2cefe0e1ad7d9a60)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-31647: Fix write_eof() after close() for SelectorSocketTransport (GH-7149) (...
Miss Islington (bot) [Mon, 28 May 2018 20:25:03 +0000 (13:25 -0700)]
bpo-31647: Fix write_eof() after close() for SelectorSocketTransport (GH-7149) (#7154)

Fixed bug where calling write_eof() on a _SelectorSocketTransport after
it's already closed raises AttributeError.
(cherry picked from commit 23f587e395e41bd5e116312b036183f42bc4159b)

Co-authored-by: twisteroid ambassador <twisteroidambassador@users.noreply.github.com>
6 years agobpo-33614: Ensures module definition files for the stable ABI on Windows are correctl...
Miss Islington (bot) [Mon, 28 May 2018 20:16:07 +0000 (13:16 -0700)]
bpo-33614: Ensures module definition files for the stable ABI on Windows are correctly regenerated. (GH-7165)

(cherry picked from commit e97ba4c690613d734843db218aeedce2f0e5937f)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-32374: Ignore Python-level exceptions in test_bad_traverse (GH-7145)
Miss Islington (bot) [Mon, 28 May 2018 16:37:10 +0000 (09:37 -0700)]
bpo-32374: Ignore Python-level exceptions in test_bad_traverse (GH-7145)

(cherry picked from commit 08c5aca9d13b24b35faf89ebd26fc348ae1731b2)

Co-authored-by: Marcel Plch <gmarcel.plch@gmail.com>
6 years agobpo-33655: Also ignore test_posix_fallocate failures on BSD platforms (GH-7134)
Miss Islington (bot) [Sat, 26 May 2018 21:57:59 +0000 (14:57 -0700)]
bpo-33655: Also ignore test_posix_fallocate failures on BSD platforms (GH-7134)

The failure may be due to the use oF ZFS, a case we already ignore
for Solaris-based systems where ZFS is frequently used.
(cherry picked from commit 09c4a7dee2eb39b515e5f499f184257cdbe9cb42)

Co-authored-by: Ned Deily <nad@python.org>
6 years ago[3.6] bpo-32769: A new take on annotations/type hinting glossary entries (GH-6829...
Andrés Delfino [Sat, 26 May 2018 17:41:12 +0000 (14:41 -0300)]
[3.6] bpo-32769: A new take on annotations/type hinting glossary entries (GH-6829) (GH-7128)

* [3.6] bpo-32769: A new take on annotations/type hinting glossary entries (GH-6829).
(cherry picked from commit 6e33f810c9e3a549c9379f24cf1d1752c29195f0)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* Typo fix spotted by Guido

6 years agobpo-33644: Fix signatures of tp_finalize handlers in testing code. (GH-7111) (GH...
Miss Islington (bot) [Sat, 26 May 2018 10:17:08 +0000 (03:17 -0700)]
bpo-33644: Fix signatures of tp_finalize handlers in testing code. (GH-7111) (GH-7125)

(cherry picked from commit 19de8b3dd742fb53681478ad4fff57ed7c37a953)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agotest.regrtest: flush stdout when display progress (GH-7105)
Miss Islington (bot) [Fri, 25 May 2018 17:08:23 +0000 (10:08 -0700)]
test.regrtest: flush stdout when display progress (GH-7105)

runtest_mp.py: call print() with flush=True.
(cherry picked from commit 4f0bc7f7ab6ec23594b0efe11d082f78ae42abed)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-33012: Add -Wno-cast-function-type for gcc 8. (GH-6757)
Miss Islington (bot) [Fri, 25 May 2018 11:02:54 +0000 (04:02 -0700)]
bpo-33012: Add -Wno-cast-function-type for gcc 8. (GH-6757)

(cherry picked from commit ef91ddeae79497fac25545dd68ee55a5a3c60e8d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years ago[3.6] bpo-26819: Prevent proactor double read on resume (GH-6921) (#7110)
CtrlZvi [Fri, 25 May 2018 08:03:25 +0000 (01:03 -0700)]
[3.6] bpo-26819: Prevent proactor double read on resume (GH-6921) (#7110)

The proactor event loop has a race condition when reading with
pausing/resuming. `resume_reading()` unconditionally schedules the read
function to read from the current future. If `resume_reading()` was
called before the previously scheduled done callback fires, this results
in two attempts to get the data from the most recent read and an
assertion failure. This commit tracks whether or not `resume_reading`
needs to reschedule the callback to restart the loop, preventing a
second attempt to read the data..
(cherry picked from commit 4151061855b571bf8a7579daa7875b8e243057b9)

Co-authored-by: CtrlZvi <viz+github@flippedperspective.com>
6 years agoDocument typing.NoReturn (GH-7107)
Miss Islington (bot) [Fri, 25 May 2018 04:56:24 +0000 (21:56 -0700)]
Document typing.NoReturn (GH-7107)

(cherry picked from commit 6e413f4327a68c4c7d62e0b6d0f9144be11dd6cd)

Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
6 years agobpo-33629: Prevent coredump in test_importlib (GH-7090)
Miss Islington (bot) [Thu, 24 May 2018 21:07:44 +0000 (14:07 -0700)]
bpo-33629: Prevent coredump in test_importlib (GH-7090)

bpo-32374, bpo-33629: Use support.SuppressCrashReport() in
test_bad_traverse() of MultiPhaseExtensionModuleTests to prevent
leaking a core dump file.
(cherry picked from commit 483000e164ec68717d335767b223ae31b4b720cf)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years ago[3.6] bpo-33622: Fix issues with handling errors in the GC. (GH-7078) (GH-7095)
Serhiy Storchaka [Thu, 24 May 2018 13:05:38 +0000 (16:05 +0300)]
[3.6] bpo-33622: Fix issues with handling errors in the GC. (GH-7078) (GH-7095)

* Fixed a leak when the GC fails to add an object with __del__ into
  the gc.garbage list.
* PyGC_Collect() can now be called when an exception is set and
  preserves it.
* Fixed an undefined behavior with comparing a dead pointer with NULL.
(cherry picked from commit 301e3cc8a5bc68c5347ab6ac6f83428000d31ab2)

6 years agobpo-33628: IDLE: Minor code cleanup of codecontext.py and its tests (GH-7085)
Miss Islington (bot) [Thu, 24 May 2018 03:16:33 +0000 (20:16 -0700)]
bpo-33628: IDLE: Minor code cleanup of codecontext.py and its tests  (GH-7085)

(cherry picked from commit 8506016f904ba6bc27bf5261f27a0bdd5945cd26)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years ago[3.6] Improve comments in test_idle.py. (GH-7057) (GH-7060)
Terry Jan Reedy [Tue, 22 May 2018 18:34:18 +0000 (14:34 -0400)]
[3.6] Improve comments in test_idle.py.  (GH-7057) (GH-7060)

(cherry picked from commit 2a6d5da)

6 years agobpo-30877: Fix clearing a cache in the the JSON decoder. (GH-7048)
Miss Islington (bot) [Tue, 22 May 2018 13:26:43 +0000 (06:26 -0700)]
bpo-30877: Fix clearing a cache in the the JSON decoder. (GH-7048)

(cherry picked from commit ae00fb1d4f38ea1803b10d798564740adcdad63e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years ago[3.6] bpo-5945: Improve mappings and sequences C API docs. (GH-7029). (GH-7049)
Serhiy Storchaka [Tue, 22 May 2018 11:54:14 +0000 (14:54 +0300)]
[3.6] bpo-5945: Improve mappings and sequences C API docs. (GH-7029). (GH-7049)

(cherry picked from commit f5b1183610d5888db3bbd639b1a0c945dbd8f8dd)

6 years ago[3.6] Fix line breaks added after hyphens by blurb. (GH-7002) (GH-7051)
Serhiy Storchaka [Tue, 22 May 2018 11:53:37 +0000 (14:53 +0300)]
[3.6] Fix line breaks added after hyphens by blurb. (GH-7002) (GH-7051)

Also remove bullet asterisks from IDLE entries.
(cherry picked from commit aef639f62677f8a342af24e9c19f0503b0d1e36e)

6 years agoFix lambda parameters being refered as arguments (GH-7037)
Miss Islington (bot) [Tue, 22 May 2018 08:07:35 +0000 (01:07 -0700)]
Fix lambda parameters being refered as arguments (GH-7037)

(cherry picked from commit 268cc7c3f8f58075b42ff0cd6b6c6c5d76044895)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33583: Add note in PyObject_GC_Resize() doc (GH-7021)
Miss Islington (bot) [Tue, 22 May 2018 02:18:41 +0000 (19:18 -0700)]
bpo-33583: Add note in PyObject_GC_Resize() doc (GH-7021)

(cherry picked from commit 1179f4b40f375af5c59cd4b6be9cc313fa0e1a37)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
6 years ago[3.6] bpo-33542: Ignore DUID in uuid.get_node on Windows. (GH-6922) (GH-7014)
Serhiy Storchaka [Mon, 21 May 2018 12:20:55 +0000 (15:20 +0300)]
[3.6] bpo-33542: Ignore DUID in uuid.get_node on Windows. (GH-6922) (GH-7014)

uuid._ipconfig_getnode did not validate the maximum length of the value,
so long as the value had the same type of formatting as a MAC address.
This let it select DUIDs as MAC addresses. It now requires an exact
length match.
(cherry picked from commit c66c342cb42ab8a88884527ddfe3a5086bc06316)

Co-authored-by: CtrlZvi <viz+github@flippedperspective.com>
6 years ago[3.6] bpo-33263: Fix FD leak in _SelectorSocketTransport (GH-6450) (#7025)
Andrew Svetlov [Mon, 21 May 2018 10:09:49 +0000 (13:09 +0300)]
[3.6] bpo-33263: Fix FD leak in _SelectorSocketTransport (GH-6450) (#7025)

* bpo-33263 Fix FD leak in _SelectorSocketTransport. (GH-6450)

Under particular circumstances _SelectorSocketTransport can try to add a reader
even the transport is already being closed. This can lead to FD leak and
invalid stated of the following connections. Fixed the SelectorSocketTransport
to add the reader only if the trasport is still active..
(cherry picked from commit a84d0b361a26c05c6fadc6640591ec3feee5bfb5)

6 years agobpo-33580: Make binary/text file glossary entries follow most common "see also" style...
Miss Islington (bot) [Sun, 20 May 2018 15:57:42 +0000 (08:57 -0700)]
bpo-33580: Make binary/text file glossary entries follow most common "see also" style. (GH-6991)

(cherry picked from commit 0c4be82890858f874ff2158b0fcfdb8f261569c0)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-30940: Updating round() docs. (GH-6342)
Miss Islington (bot) [Sun, 20 May 2018 15:29:45 +0000 (08:29 -0700)]
bpo-30940: Updating round() docs. (GH-6342)

(cherry picked from commit 900c48dba3f3eb8fb03ea766a5646f81c3bf3e9c)

Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
6 years agoDocs: be less specific about python versions (GH-6985)
Miss Islington (bot) [Sun, 20 May 2018 15:09:58 +0000 (08:09 -0700)]
Docs: be less specific about python versions (GH-6985)

CPython 3.5 is old now, and we don't bump this version often,
so lets avoid using specific versions.
(cherry picked from commit 9572132ab3c2edddb8087a0112116da866373f79)

Co-authored-by: Eitan Adler <grimreaper@users.noreply.github.com>
6 years ago[3.6] bpo-33584: Fix several minor bugs in asyncio. (GH-7003) (#7006)
Serhiy Storchaka [Sun, 20 May 2018 14:33:55 +0000 (17:33 +0300)]
[3.6] bpo-33584: Fix several minor bugs in asyncio. (GH-7003) (#7006)

* repr() was called for a borrowed link.
* str() was used instead of repr() in formatting one error message.
(cherry picked from commit 6655354afcd116c27486bb5ba1dfa50b369d8d85)

6 years agobpo-23722: Fix docs for future __classcell__ changes. (GH-6999)
Miss Islington (bot) [Sun, 20 May 2018 05:47:05 +0000 (22:47 -0700)]
bpo-23722: Fix docs for future __classcell__ changes. (GH-6999)

(cherry picked from commit 8ae8e6af37f29163ee263e293570cb892dc5b5d5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years ago[3.6] bpo-30928: Update idlelib/NEWS.txt. (GH-6995) (GH-6997)
Terry Jan Reedy [Sun, 20 May 2018 03:50:21 +0000 (23:50 -0400)]
[3.6] bpo-30928: Update idlelib/NEWS.txt. (GH-6995) (GH-6997)

(cherry picked from commit 6b0d09b)

6 years agobpo-32831: IDLE: Add docstrings and tests for codecontext (GH-5638)
Miss Islington (bot) [Sat, 19 May 2018 20:17:18 +0000 (13:17 -0700)]
bpo-32831: IDLE: Add docstrings and tests for codecontext (GH-5638)

(cherry picked from commit 654038d896d78a8373b60184f335acd516215acd)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years ago[3.6] Fix typos '.::' should typically just be '::'. (GH-6165). (GH-6895)
Julien Palard [Sat, 19 May 2018 07:28:28 +0000 (09:28 +0200)]
[3.6] Fix typos '.::' should typically just be '::'. (GH-6165). (GH-6895)

(cherry picked from commit 78553138be3b38d361bded8e641a2a4fd65a9d16)

6 years agobpo-19950: Clarify unittest TestCase instance use. (GH-6875) (GH-6939)
Miss Islington (bot) [Sat, 19 May 2018 00:55:05 +0000 (17:55 -0700)]
bpo-19950: Clarify unittest TestCase instance use. (GH-6875) (GH-6939)

(cherry picked from commit dff46758f267ad6c13096c69c4e1dee17f9969aa)

Co-authored-by: Gregory P. Smith <greg@krypto.org> Google
6 years ago[3.6] bpo-33518: Add PEP entry to documentation glossary (GH-6860) (#6935)
Andrés Delfino [Fri, 18 May 2018 23:44:21 +0000 (20:44 -0300)]
[3.6] bpo-33518: Add PEP entry to documentation glossary (GH-6860) (#6935)

(cherry picked from commit d5f144260886959c1fe06bc4506a23fd10f92348)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33556: Remove reference to thread module from docstring (GH-6963)
Miss Islington (bot) [Fri, 18 May 2018 19:32:12 +0000 (12:32 -0700)]
bpo-33556: Remove reference to thread module from docstring (GH-6963)

(cherry picked from commit 5634331a76dfe9fbe4b76475e11307a0922d6a15)

Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
6 years agobpo-32282: Remove unnecessary check for `VersionHelpers.h` in `socketmodule.c` on...
Miss Islington (bot) [Fri, 18 May 2018 17:38:19 +0000 (10:38 -0700)]
bpo-32282: Remove unnecessary check for `VersionHelpers.h` in `socketmodule.c` on Windows (GH-5120)

(cherry picked from commit af11a15c586e980a157c04ee60b6e33dc7228f3f)

6 years agoFix C API docs: PyCapsule_Import always set an exception on failure. (GH-6967)
Miss Islington (bot) [Fri, 18 May 2018 13:53:42 +0000 (06:53 -0700)]
Fix C API docs: PyCapsule_Import always set an exception on failure. (GH-6967)

(cherry picked from commit bde3e0bf096219234321ca9898fc3d3aed598453)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33564: Add async to IDLE's code context block openers. (GH-6960)
Miss Islington (bot) [Fri, 18 May 2018 01:25:25 +0000 (18:25 -0700)]
bpo-33564: Add async to IDLE's code context block openers. (GH-6960)

(cherry picked from commit d89ca94847d943b883ebcc68e4f0a18cb042ed0d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agoDisable multissltests.py under VSTS (GH-6955)
Steve Dower [Thu, 17 May 2018 20:12:20 +0000 (16:12 -0400)]
Disable multissltests.py under VSTS (GH-6955)

6 years agoOnly upload docs for CI build and not pull requests (GH-6945) (GH-6948)
Miss Islington (bot) [Thu, 17 May 2018 18:30:09 +0000 (11:30 -0700)]
Only upload docs for CI build and not pull requests (GH-6945) (GH-6948)

(cherry picked from commit 48b1f3773cecb0aec2b14d972bf8453e4e8f807f)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-33522: Enable CI builds on Visual Studio Team Services (GH-6865) (GH-6925)
Steve Dower [Thu, 17 May 2018 13:46:00 +0000 (09:46 -0400)]
bpo-33522: Enable CI builds on Visual Studio Team Services (GH-6865) (GH-6925)

6 years ago[3.6] bpo-33503: Fix the broken pypi link in the source and the documentation (GH...
Stéphane Wirtel [Wed, 16 May 2018 14:08:23 +0000 (16:08 +0200)]
[3.6] bpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814) (GH-6885)

(cherry picked from commit 19177fbd5d6d9b29ccc302d65f9d9417ece082ce)

Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
6 years agobpo-32384: Skip test when _testcapi isn't available (GH-4940)
Miss Islington (bot) [Wed, 16 May 2018 09:17:25 +0000 (02:17 -0700)]
bpo-32384: Skip test when _testcapi isn't available (GH-4940)

(cherry picked from commit 4cc3eb48e1e8289df5153db1c701cae263a1ef86)

Co-authored-by: Isaiah Peng <isaiah@users.noreply.github.com>
6 years agobpo-30928: update idlelib/NEWS.txt for 3.6. (#6888)
Terry Jan Reedy [Wed, 16 May 2018 06:39:13 +0000 (02:39 -0400)]
bpo-30928: update idlelib/NEWS.txt for 3.6. (#6888)

6 years agobpo-30928: Update idlelib/NEWS.txt to 2018-05-14. (GH-6873)
Miss Islington (bot) [Wed, 16 May 2018 01:14:51 +0000 (18:14 -0700)]
bpo-30928: Update idlelib/NEWS.txt to 2018-05-14. (GH-6873)

(cherry picked from commit 038b21f2caaed0f02fee524277cc61e2c6ae0e9a)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years ago[3.6] bpo-29706: IDLE now colors async and await as keywords in 3.6. (#6879)
Terry Jan Reedy [Wed, 16 May 2018 00:10:46 +0000 (20:10 -0400)]
[3.6] bpo-29706: IDLE now colors async and await as keywords in 3.6. (#6879)

They become full keywords in 3.7.

6 years agobpo-29706: Test that IDLE colors async/await as keywords. (GH-6846)
Miss Islington (bot) [Tue, 15 May 2018 20:48:14 +0000 (13:48 -0700)]
bpo-29706: Test that IDLE colors async/await as keywords. (GH-6846)

Added to the eye-verified htest, not to the unittests.
Also remove some stray leftover comments.
(cherry picked from commit 389a48ede92bf7965889d554d2cd17b50d6e3d86)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6864)
Petr Viktorin [Tue, 15 May 2018 17:31:47 +0000 (13:31 -0400)]
bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6864)

This is a backport of the documentation part of GH-6862

Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
6 years agobpo-31947: remove None default for names param in Enum._create_ GH-4288 (GH-6485)
Miss Islington (bot) [Tue, 15 May 2018 15:19:50 +0000 (08:19 -0700)]
bpo-31947: remove None default for names param in Enum._create_ GH-4288 (GH-6485)

(cherry picked from commit b8e21f12891382bc0aac5ccd13dcb4a990d65e0a)

Co-authored-by: anentropic <ego@anentropic.com>
6 years agobpo-16865: Support arrays >=2GB in ctypes. (GH-3006)
Miss Islington (bot) [Tue, 15 May 2018 05:55:52 +0000 (22:55 -0700)]
bpo-16865: Support arrays >=2GB in ctypes. (GH-3006)

(cherry picked from commit 735abadd5bd91db4a9e6f4311969b0afacca0a1a)

Co-authored-by: Segev Finer <segev208@gmail.com>
6 years agoAdd AsyncContextManager to typing module documentation. (GH-6823)
Travis DePrato [Tue, 15 May 2018 02:07:21 +0000 (22:07 -0400)]
Add AsyncContextManager to typing module documentation. (GH-6823)

6 years ago[3.7] bpo-32861: urllib.robotparser fix incomplete __str__ methods. (GH-5711) (GH...
Miss Islington (bot) [Mon, 14 May 2018 22:03:56 +0000 (15:03 -0700)]
[3.7] bpo-32861: urllib.robotparser fix incomplete __str__ methods. (GH-5711) (GH-6795) (GH-6818)

The urllib.robotparser's __str__ representation now includes wildcard
entries and the "Crawl-delay" and "Request-rate" fields.
(cherry picked from commit c3fa1f2b93fa4bf96a8aadc74ee196384cefa31e)

Co-authored-by: Michael Lazar <lazar.michael22@gmail.com>
6 years agoAdd versionchanged in create_datagram_endpoint doc (GH-4697)
Miss Islington (bot) [Mon, 14 May 2018 20:12:47 +0000 (13:12 -0700)]
Add versionchanged in create_datagram_endpoint doc (GH-4697)

Most of the parameters were added in 3.4.4 (b9bf913ab32), but this
change was not documented
(cherry picked from commit 0ded580403d470651a963b0915c7a52de627c45e)

Co-authored-by: Romuald Brunet <romuald@chivil.com>
6 years agobpo-22069: Update TextIO documentation (GH-6609)
Miss Islington (bot) [Mon, 14 May 2018 16:18:07 +0000 (09:18 -0700)]
bpo-22069: Update TextIO documentation (GH-6609)

Clarify that flush is implied when the call to write contains a newline character.
(cherry picked from commit 7ffd4c58fae08b29259eebd6cbcd2287820b14e8)

Co-authored-by: Elena Oat <oat.elena@gmail.com>
6 years agobpo-32601: Let test_expanduser use the same user if no others found. (GH-5246)
Miss Islington (bot) [Mon, 14 May 2018 14:45:34 +0000 (07:45 -0700)]
bpo-32601: Let test_expanduser use the same user if no others found. (GH-5246)

This happens in the NixOS build sandbox, for example, where the only
other user is nobody with home directory /.
(cherry picked from commit 5c0d462689e1a69537eaeba6ab94e3ff3524fc31)

Co-authored-by: Anders Kaseorg <andersk@mit.edu>
6 years agobpo-28055: Fix unaligned accesses in siphash24(). (GH-6123)
Miss Islington (bot) [Sun, 13 May 2018 11:40:03 +0000 (04:40 -0700)]
bpo-28055: Fix unaligned accesses in siphash24(). (GH-6123)

The hash implementation casts the input pointer to uint64_t* and directly reads
from this, which may cause unaligned accesses. Use memcpy() instead so this code
will not crash with SIGBUS on sparc.

https://bugs.gentoo.org/show_bug.cgi?id=636400
(cherry picked from commit 1e2ec8a996daec65d8d5a3d43b66a9909c6d0653)

Co-authored-by: Rolf Eike Beer <eike@sf-mail.de>
6 years agoBackport recent typing updates (GH-6759)
Ivan Levkivskyi [Fri, 11 May 2018 03:15:14 +0000 (23:15 -0400)]
Backport recent typing updates (GH-6759)

6 years agobpo-26701: Tweak the documentation for special methods in int(). (GH-6741)
Miss Islington (bot) [Thu, 10 May 2018 14:38:20 +0000 (07:38 -0700)]
bpo-26701: Tweak the documentation for special methods in int(). (GH-6741)

(cherry picked from commit df00f048250b9a07195b0e3b1c5c0161fdcc9db8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-21983: Fix a crash in ctypes.cast() when passed a ctypes structured data type...
Miss Islington (bot) [Wed, 9 May 2018 22:27:59 +0000 (15:27 -0700)]
bpo-21983: Fix a crash in ctypes.cast() when passed a ctypes structured data type (GH-3859)

(cherry picked from commit d518d8bc8d5dac1a1270612f424d33e0e5afc2b5)

Co-authored-by: Oren Milman <orenmn@gmail.com>
6 years agobpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738)
Miss Islington (bot) [Wed, 9 May 2018 09:00:13 +0000 (02:00 -0700)]
bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738)

(cherry picked from commit ddb6215a55b0218b621d5cb755e9dfac8dab231a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agoFix superfluous if in documentation. (GH-6728)
Miss Islington (bot) [Wed, 9 May 2018 08:10:12 +0000 (01:10 -0700)]
Fix superfluous if in documentation. (GH-6728)

(cherry picked from commit b3c369861b22268dac003eb995951726c972e5ee)

Co-authored-by: Julien Palard <julien@palard.fr>
6 years agoFix typo in __mul__ and __rmul__ docstring (GH-6674)
Miss Islington (bot) [Wed, 9 May 2018 05:49:57 +0000 (22:49 -0700)]
Fix typo in __mul__ and __rmul__ docstring (GH-6674)

(cherry picked from commit 0904f766e116c269675317e11368a4d29eef0bc6)

Co-authored-by: Grant Jenks <grant.jenks@gmail.com>
6 years agocloses bpo-33445: fail properly in test_cprofile() (GH-6727)
Miss Islington (bot) [Wed, 9 May 2018 04:59:50 +0000 (21:59 -0700)]
closes bpo-33445: fail properly in test_cprofile() (GH-6727)

(cherry picked from commit ac9240b9be31d073d1b2e50ce53481ff0fc9ed23)

Co-authored-by: jdemeyer <jdemeyer@cage.ugent.be>
6 years ago[3.6] bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. ...
Miss Islington (bot) [Sun, 6 May 2018 07:20:42 +0000 (00:20 -0700)]
[3.6] bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. (GH-6708) (GH-6714)

(cherry picked from commit cedc9b74202d8c1ae39bca261cbb45d42ed54d45)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33422: Fix quotation marks getting deleted when looking up byte/string literals...
Miss Islington (bot) [Sat, 5 May 2018 17:12:19 +0000 (10:12 -0700)]
bpo-33422: Fix quotation marks getting deleted when looking up byte/string literals on pydoc. (GH-6701)

Also update the list of string prefixes.
(cherry picked from commit b2043bbe6034b53f5ad337887f4741b74b70b00d)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33400: Clarified documentation to indicate no strict adherence to ISO 8601. ...
Miss Islington (bot) [Fri, 4 May 2018 22:02:48 +0000 (15:02 -0700)]
bpo-33400: Clarified documentation to indicate no strict adherence to ISO 8601. (GH-6703)

(cherry picked from commit c4994dc00d9828a99510f3851da93b0e1c18361d)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
6 years agobpo-33391: Fix refleak in set_symmetric_difference (GH-6670)
Miss Islington (bot) [Wed, 2 May 2018 10:12:18 +0000 (03:12 -0700)]
bpo-33391: Fix refleak in set_symmetric_difference (GH-6670)

(cherry picked from commit 491bbedc209fea314a04cb3015da68fb0aa63238)

Co-authored-by: lekma <lekmalek@gmail.com>
6 years agoMitigate macOS race condition in installer build (GH-6686) (GH-6688)
Miss Islington (bot) [Wed, 2 May 2018 05:49:03 +0000 (22:49 -0700)]
Mitigate macOS race condition in installer build (GH-6686) (GH-6688)

(cherry picked from commit fc6aa28bfd0502d994cec30bd3679b7def3be2af)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-33290: Have macOS installer remove "pip" alias (GH-6683) (GH-6685)
Miss Islington (bot) [Wed, 2 May 2018 05:48:11 +0000 (22:48 -0700)]
bpo-33290: Have macOS installer remove "pip" alias (GH-6683) (GH-6685)

Currently, "pip3 install --upgrade pip" unconditionally installs a
"pip" alias even for Python 3.  If a user has an existing Python 3.x
installed from a python.org macOS installer and then subsequently
manually updates to a new version of pip, there may now be a stray
"pip" alias in the Python 3.x framework bin directory which can cause
confusion if the user has both a Python 2.7 and 3.x installed;
if the Python 3.x fw bin directory appears early on $PATH, "pip"
might invoke the pip3 for the Python 3.x rather than the pip for
Python 2.7.  To try to mitigate this, the macOS installer script
for the ensurepip option will unconditionally remove "pip" from
the 3.x framework bin directory being updated / installed.  (The
ambiguity can be avoided by using "pythonx.y -m pip".)
(cherry picked from commit 0dd80709b5dc03756e7f4510761ae60236bb9f6d)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-33378: Add Korean to the language switcher. (GH-6627)
Miss Islington (bot) [Tue, 1 May 2018 09:47:17 +0000 (02:47 -0700)]
bpo-33378: Add Korean to the language switcher. (GH-6627)

(cherry picked from commit 577948329976985ea9bef23d9a6c3dd7108211bf)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
6 years agobpo-31908: Fix output of cover files for trace module command-line tool. (GH-4205)
Miss Islington (bot) [Tue, 1 May 2018 05:03:29 +0000 (22:03 -0700)]
bpo-31908: Fix output of cover files for trace module command-line tool. (GH-4205)

Previously emitted cover files only when --missing option was used.
(cherry picked from commit 47ab15470d72367694d7758004067313ae022f0e)

Co-authored-by: Michael Selik <mike@selik.org>
6 years agobpo-21474: Update IDLE word/identifier definition from ascii to unicode. (GH-6643)
Miss Islington (bot) [Mon, 30 Apr 2018 07:48:16 +0000 (00:48 -0700)]
bpo-21474: Update IDLE word/identifier definition from ascii to unicode. (GH-6643)

In text and entry boxes, this affects selection by double-click,
movement left/right by control-left/right, and deletion left/right
by control-BACKSPACE/DEL.
(cherry picked from commit 5ff3a161c8a6b525c5e5b3e36e9c43f5a95bda60)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223)
Miss Islington (bot) [Sun, 29 Apr 2018 19:11:01 +0000 (12:11 -0700)]
bpo-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223)

(cherry picked from commit 9f3535c9cde8813ce631d6ebe4d790682f594828)

Co-authored-by: Bo Bayles <bbayles@gmail.com>
6 years agobpo-33256: Replace angle brackets around python object repr to display it in html...
Miss Islington (bot) [Sun, 29 Apr 2018 19:10:39 +0000 (12:10 -0700)]
bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442)

(cherry picked from commit 7d68bfa82654ba01d860b8a772ff63bf0bd183ee)

Co-authored-by: sblondon <sblondon@users.noreply.github.com>
6 years agobpo-31026: Fix test_dbm if dbm.ndbm is build with Berkeley DB. (GH-6632)
Miss Islington (bot) [Sun, 29 Apr 2018 13:47:39 +0000 (06:47 -0700)]
bpo-31026: Fix test_dbm if dbm.ndbm is build with Berkeley DB. (GH-6632)

(cherry picked from commit 70af06cdc4e8fbee0b9d7d46bdc193097d4bc71f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years ago[3.6] bpo-33383: Fix crash in get() of the dbm.ndbm database object. (GH-6630). ...
Serhiy Storchaka [Sun, 29 Apr 2018 12:44:16 +0000 (15:44 +0300)]
[3.6] bpo-33383: Fix crash in get() of the dbm.ndbm database object. (GH-6630). (GH-6633)

(cherry picked from commit 2e38cc39330bd7f3003652869b644110a97a78d8)

6 years ago[3.6] bpo-33280: Reorganize external Tcl/Tk references. (GH-6473). (#6602)
Andrés Delfino [Thu, 26 Apr 2018 14:10:10 +0000 (11:10 -0300)]
[3.6] bpo-33280: Reorganize external Tcl/Tk references. (GH-6473). (#6602)

(cherry picked from commit 67a8f4fed3169e1b8c947c10f6e06863e399ae32)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
6 years ago[3.6] bpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564). (GH-6604)
Serhiy Storchaka [Thu, 26 Apr 2018 00:27:51 +0000 (03:27 +0300)]
[3.6] bpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564). (GH-6604)

(cherry picked from commit e9d9494d6b2a5e0c2d48d22c7f0d5e95504b4f7e)

6 years agoMention both relevant PEPs in function annotations tutorial (GH-6304)
Miss Islington (bot) [Wed, 25 Apr 2018 18:02:07 +0000 (11:02 -0700)]
Mention both relevant PEPs in function annotations tutorial (GH-6304)

Patch by Neeraj Badlani.
(cherry picked from commit 643ff711faf417fc3428897dc7d36250ad2cb0e5)

Co-authored-by: Neeraj Badlani <neerajbadlani@gmail.com>
6 years agotravis: Use -O3 option (GH-5599)
INADA Naoki [Wed, 25 Apr 2018 01:27:18 +0000 (10:27 +0900)]
travis: Use -O3 option (GH-5599)

We don't use debugger on Travis..
(cherry picked from commit 8ff53564730f7ba503f5ad94418c309c48e8516d)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
6 years ago[3.6] bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) (GH-6582)
Antoine Pitrou [Mon, 23 Apr 2018 20:22:49 +0000 (22:22 +0200)]
[3.6] bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) (GH-6582)

Starting with glibc 2.27.9000-xxx, sigaddset() can return EINVAL for some
reserved signal numbers between 1 and NSIG.  The `range(1, NSIG)` idiom
is commonly used to select all signals for blocking with `pthread_sigmask`.
So we ignore the sigaddset() return value until we expose sigfillset()
to provide a better idiom.
(cherry picked from commit 25038ecfb665bef641abf8cb61afff7505b0e008)

6 years agobpo-991266: Fix quoting of Comment attribute of SimpleCookie (GH-6555)
Miss Islington (bot) [Mon, 23 Apr 2018 00:58:51 +0000 (17:58 -0700)]
bpo-991266: Fix quoting of Comment attribute of SimpleCookie (GH-6555)

(cherry picked from commit d5a2377c3d70e4143bcbee4a765b3434e21f683a)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
6 years agobpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters (GH-4044...
Miss Islington (bot) [Sun, 22 Apr 2018 22:00:30 +0000 (15:00 -0700)]
bpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters (GH-4044) (#6568)

This used to be the case on Python 2.  Commit
212b590e118e3650b596917021ed9612a918180b changed the implementation for Python
3, making the `log()` method of LogAdapter call `logger._log()` directly.  This
makes nested log adapters not execute their ``process()`` method.  This patch
fixes the issue.

Also, now proxying `name`, too, to make `repr()` work with nested log adapters.

New tests added.
(cherry picked from commit ce9e62544571e7ade7186697d5dd065fb4c5243f)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
6 years agobpo-33297: Mention Pillow to work with more image formats. (GH-6505)
Miss Islington (bot) [Sat, 21 Apr 2018 13:04:08 +0000 (06:04 -0700)]
bpo-33297: Mention Pillow to work with more image formats. (GH-6505)

Also update PIL doc references to Pillow.
(cherry picked from commit b81ca28b378c8b29204a37f8bd433a3379f53f7d)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
6 years ago[3.6] Spelling fixes to docs, docstrings, and comments (GH-6374) (#6558)
Terry Jan Reedy [Sat, 21 Apr 2018 00:49:07 +0000 (20:49 -0400)]
[3.6] Spelling fixes to docs, docstrings, and comments (GH-6374) (#6558)

(cherry picked from commit 61f82e0e337f971da57f8f513abfe693edf95aa5)

6 years agoClarify that __path__ can't be just any value (GH-6554)
Miss Islington (bot) [Fri, 20 Apr 2018 23:49:58 +0000 (16:49 -0700)]
Clarify that __path__ can't be just any value (GH-6554)

(cherry picked from commit 441d945eb33f8dc130b268ebfa11315b98a2433c)

Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
6 years agobpo-33131: Upgrade ensurepip to bundle pip 10.0.1 (GH-6546)
Miss Islington (bot) [Fri, 20 Apr 2018 22:02:53 +0000 (15:02 -0700)]
bpo-33131: Upgrade ensurepip to bundle pip 10.0.1 (GH-6546)

Upgrade ensurepip to bundle pip 10.0.1
(cherry picked from commit 0399cf9b5e370516e3d0aed6a63ff74aff5eadb5)

Co-authored-by: Paul Moore <p.f.moore@gmail.com>
6 years agoClean up the readme text around PGO a bit. (GH-6538) (#6540)
Miss Islington (bot) [Fri, 20 Apr 2018 17:15:20 +0000 (10:15 -0700)]
Clean up the readme text around PGO a bit. (GH-6538) (#6540)

(cherry picked from commit b87c1c92fc93c5733cd3d8606ab2301ca6ba208f)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 years agobpo-33189: pygettext.py now accepts only literal strings (GH-6364)
Miss Islington (bot) [Thu, 19 Apr 2018 07:34:20 +0000 (00:34 -0700)]
bpo-33189: pygettext.py now accepts only literal strings (GH-6364)

as docstrings and translatable strings, and rejects
bytes literals and f-string expressions.
(cherry picked from commit 69524821a87251b7aee966f6e46b3810ff5aaa64)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33308: Fix a crash in the parser module when convert an ST object. (GH-6519)
Miss Islington (bot) [Thu, 19 Apr 2018 05:11:05 +0000 (22:11 -0700)]
bpo-33308: Fix a crash in the parser module when convert an ST object. (GH-6519)

Converting with line_info=False and col_info=True crashed before.
(cherry picked from commit e5362eaa75a154c6e91c5b1c47719d0a0f5ca48b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-31583: Fix 2to3 for using with --add-suffix option (GH-3758) (GH-6529)
Miss Islington (bot) [Thu, 19 Apr 2018 05:09:51 +0000 (22:09 -0700)]
bpo-31583: Fix 2to3 for using with --add-suffix option (GH-3758) (GH-6529)

(cherry picked from commit e3a523a0fa16aec880880928303bfcbd1fb74bc2)

Co-authored-by: Denis Osipov <osipov_d@list.ru>
6 years agoFix spelling typo (GH-6443) (#6508)
Miss Islington (bot) [Tue, 17 Apr 2018 15:41:51 +0000 (08:41 -0700)]
Fix spelling typo (GH-6443) (#6508)

(cherry picked from commit 28e8b66d6c632552765b5fb4573b7f3c9decc3c1)

Co-authored-by: jdemeyer <jdemeyer@cage.ugent.be>
6 years agobpo-33295: Skip test using missing external site (GH-6504) (GH-6511)
Miss Islington (bot) [Tue, 17 Apr 2018 15:36:30 +0000 (08:36 -0700)]
bpo-33295: Skip test using missing external site (GH-6504) (GH-6511)

`test_urllib2net.OtherNetworkTests.test_sites_no_connection_close`
used `http://www.imdb.com/` but it is moved to https so the test is
not valid anymore.  Skip test for the moment to allow CI to proceed.
(cherry picked from commit 36d56ea826caffbeac0fc0c6d90248b80516e33c)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
6 years agobpo-33283: Mention PNG as a supported format by Tcl/Tk. (GH-6479)
Miss Islington (bot) [Tue, 17 Apr 2018 10:10:39 +0000 (03:10 -0700)]
bpo-33283: Mention PNG as a supported format by Tcl/Tk. (GH-6479)

(cherry picked from commit 4b685bf7192fff48c8effeeae4f4d64f9420ec0f)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
6 years agofix pydoc-topics to work with Sphinx 1.7 (GH-6475)
Miss Islington (bot) [Tue, 17 Apr 2018 06:38:06 +0000 (23:38 -0700)]
fix pydoc-topics to work with Sphinx 1.7 (GH-6475)

In fact, we now require a newer Sphinx version because APIs have moved around.
(cherry picked from commit acfb087f9f5590e5174a30eced3c2fe911f49d70)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years agoRevert 725476222a3c1f2f93162d75a540e6bcdeaa36fd (GH-6494) (GH-6496)
Miss Islington (bot) [Tue, 17 Apr 2018 03:35:13 +0000 (20:35 -0700)]
Revert 725476222a3c1f2f93162d75a540e6bcdeaa36fd (GH-6494) (GH-6496)

This note in documentation was never true.
(cherry picked from commit a00d440edb4ccf36c83673a0fb172b29c76a66e6)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
6 years agoRemove to-be-deprecated urllib.request.urlretrieve function reference (GH-6454)
Miss Islington (bot) [Mon, 16 Apr 2018 14:21:57 +0000 (07:21 -0700)]
Remove to-be-deprecated urllib.request.urlretrieve function reference (GH-6454)

(cherry picked from commit c89b22175807d64c47b598163b804b5dc005d1bb)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>