]> granicus.if.org Git - python/log
python
6 years agobpo-33564: Add async to IDLE's code context block openers. (GH-6960) (#6961)
Miss Islington (bot) [Fri, 18 May 2018 02:04:23 +0000 (19:04 -0700)]
bpo-33564: Add async to IDLE's code context block openers. (GH-6960) (#6961)

(cherry picked from commit d89ca94847d943b883ebcc68e4f0a18cb042ed0d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33559: Attribute changed repr of exceptions (GH-6954)
Miss Islington (bot) [Thu, 17 May 2018 20:09:57 +0000 (13:09 -0700)]
bpo-33559: Attribute changed repr of exceptions (GH-6954)

(cherry picked from commit fb9dd8915314d857161de89fcbbb041f2b49fc22)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
6 years agoFix Windows build of Python for latest WinSDK. (GH-6874) (GH-6952)
Miss Islington (bot) [Thu, 17 May 2018 19:35:27 +0000 (12:35 -0700)]
Fix Windows build of Python for latest WinSDK. (GH-6874) (GH-6952)

(cherry picked from commit c0ee341b29bd7d978b49272a2c0e2dcfa77404d5)

Co-authored-by: Carl Meyer <carl@oddbird.net>
6 years agoasyncio/docs: Mark asyncio.run() as provisional in 3.7. (GH-6946) (GH-6949)
Miss Islington (bot) [Thu, 17 May 2018 19:10:56 +0000 (12:10 -0700)]
asyncio/docs: Mark asyncio.run() as provisional in 3.7. (GH-6946) (GH-6949)

(cherry picked from commit d8d715f5148d0c10e93a79bc4172fbd9c5b3a86e)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-33559: Document changed repr of exceptions (GH-6943) (GH-6950)
Miss Islington (bot) [Thu, 17 May 2018 18:41:07 +0000 (11:41 -0700)]
bpo-33559: Document changed repr of exceptions (GH-6943) (GH-6950)

(cherry picked from commit 631753fcc5e88bbbad402933e77295675cfe1fee)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
6 years agoOnly upload docs for CI build and not pull requests (GH-6945)
Miss Islington (bot) [Thu, 17 May 2018 18:06:03 +0000 (11:06 -0700)]
Only upload docs for CI build and not pull requests (GH-6945)

(cherry picked from commit 48b1f3773cecb0aec2b14d972bf8453e4e8f807f)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agoProvide a little better debug output (GH-6940) (#6942)
Miss Islington (bot) [Thu, 17 May 2018 16:53:24 +0000 (09:53 -0700)]
Provide a little better debug output (GH-6940) (#6942)

(cherry picked from commit 273f51f5ca9dd0420d327c95281b24078f8feeef)

Co-authored-by: Barry Warsaw <barry@python.org>
6 years agobpo-33537: Add an __all__ to importlib.resources (GH-6920) (#6941)
Miss Islington (bot) [Thu, 17 May 2018 16:27:49 +0000 (09:27 -0700)]
bpo-33537: Add an __all__ to importlib.resources (GH-6920) (#6941)

(cherry picked from commit 0ed66df5242138fc599b4735749e55f953d9a1e4)

Co-authored-by: Barry Warsaw <barry@python.org>
6 years agobpo-33522: Enable CI builds on Visual Studio Team Services (GH-6865) (GH-6926)
Miss Islington (bot) [Thu, 17 May 2018 12:49:01 +0000 (05:49 -0700)]
bpo-33522: Enable CI builds on Visual Studio Team Services (GH-6865) (GH-6926)

(cherry picked from commit e5f41d2f1e0b8b8e61d5fa427c19bd1ea90fd9a3)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agoUpdate Python Folder.icns icon file to match new macOS look (GH-1780) (GH-6930)
Miss Islington (bot) [Thu, 17 May 2018 09:17:35 +0000 (02:17 -0700)]
Update Python Folder.icns icon file to match new macOS look (GH-1780) (GH-6930)

(cherry picked from commit 74fc9c0c09ba72de39f9b71a61ac8506304b6266)

Co-authored-by: Thomas Jones <thomas@tomtecsolutions.com>
6 years agobpo-33549: Remove shim and deprecation warning to access DocumentLS.async. (GH-6924...
Miss Islington (bot) [Thu, 17 May 2018 09:01:02 +0000 (02:01 -0700)]
bpo-33549: Remove shim and deprecation warning to access DocumentLS.async. (GH-6924) (GH-6929)

`obj.async` is now a syntax error, so the warning/shim is
quasi-unnecessary.
(cherry picked from commit f90f5d5c1d95721e0ca0b1c302e3d13ed34753a8)

Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
6 years agobpo-13631: Fix the order of initialization for readline libedit on macOS. (GH-6915...
Miss Islington (bot) [Thu, 17 May 2018 07:27:33 +0000 (00:27 -0700)]
bpo-13631: Fix the order of initialization for readline libedit on macOS. (GH-6915) (GH-6928)

The editline emulation needs to be initialized *after* the name is
defined. This fixes the long open issue.
(cherry picked from commit c2f082e9d164acfa8f96de9526f0f47ae92c426a)

Co-authored-by: Zvezdan Petkovic <zpetkovic@acm.org>
6 years agoFix ClassVar as string fails when getting type hints (GH-6824) (#6912)
Miss Islington (bot) [Wed, 16 May 2018 22:04:39 +0000 (15:04 -0700)]
Fix ClassVar as string fails when getting type hints (GH-6824) (#6912)

(cherry picked from commit 2d2d3b170bdebc085900bfa2a3bc81b5d132d0a8)

Co-authored-by: Nina Zakharenko <nzakharenko@gmail.com>
6 years agobpo-32216: Update dataclasses documentation (GH-6913) (#6918)
Miss Islington (bot) [Wed, 16 May 2018 20:37:14 +0000 (13:37 -0700)]
bpo-32216: Update dataclasses documentation (GH-6913) (#6918)

(cherry picked from commit 713a9367366c88662c39ed20dd6bce22399299f1)

Co-authored-by: Barry Warsaw <barry@python.org>
6 years agobpo-24318: Rewrite the README PGO section. (GH-6863)
Miss Islington (bot) [Wed, 16 May 2018 16:34:57 +0000 (09:34 -0700)]
bpo-24318: Rewrite the README PGO section. (GH-6863)

* bpo-24318: Rewrite the README PGO section.

Merged from a phone on an airplane. :)
(cherry picked from commit 93f9a8a5afb58b1d2e4f27bb46d3d4e0fa8c08f0)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 years agobpo-33536: Validate make_dataclass() field names. (GH-6906)
Miss Islington (bot) [Wed, 16 May 2018 16:28:22 +0000 (09:28 -0700)]
bpo-33536: Validate make_dataclass() field names. (GH-6906)

(cherry picked from commit 4e81296b1874829912c687eba4d39361ab51e145)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
6 years ago[3.7] bpo-32257: Add ssl.OP_NO_RENEGOTIATION (GH-5904) (#6877)
Miss Islington (bot) [Wed, 16 May 2018 14:26:19 +0000 (07:26 -0700)]
[3.7] bpo-32257: Add ssl.OP_NO_RENEGOTIATION (GH-5904) (#6877)

The ssl module now contains OP_NO_RENEGOTIATION constant, available with
OpenSSL 1.1.0h or 1.1.1.

Note, OpenSSL 1.1.0h hasn't been released yet.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 67c48016638aac9a15afe6fd6754d53d2bdd6b76)

Co-authored-by: Christian Heimes <christian@python.org>
6 years agobpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814...
Miss Islington (bot) [Wed, 16 May 2018 14:05:46 +0000 (07:05 -0700)]
bpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814) (GH-6872)

(cherry picked from commit 19177fbd5d6d9b29ccc302d65f9d9417ece082ce)

Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
6 years agoMinor tweaks to dataclasses docs. (GH-6903)
Miss Islington (bot) [Wed, 16 May 2018 13:47:59 +0000 (06:47 -0700)]
Minor tweaks to dataclasses docs. (GH-6903)

(cherry picked from commit 7a1c02750171d9895754da5d560700aaba93da56)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
6 years agobpo-33534: Remove unneeded test. (GH-6897)
Miss Islington (bot) [Wed, 16 May 2018 11:46:32 +0000 (04:46 -0700)]
bpo-33534: Remove unneeded test. (GH-6897)

This condition as already tested before this code is called.
(cherry picked from commit 9285835a05ad0319acef111340266c0f85ed549c)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
6 years agoReflow dataclasses comments (GH-6893)
Miss Islington (bot) [Wed, 16 May 2018 09:49:29 +0000 (02:49 -0700)]
Reflow dataclasses comments (GH-6893)

To be more consistent with other code (and so people stop hassling me!), reflow the dataclasses comments to not use a single space indentation when continuing a paragraph of text.
(cherry picked from commit f8e7549490d61c92b34bf2de3e03ba2f7b0ac6e1)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
6 years agobpo-32216: Add documentation for dataclasses (GH-6886)
Miss Islington (bot) [Wed, 16 May 2018 09:17:03 +0000 (02:17 -0700)]
bpo-32216: Add documentation for dataclasses (GH-6886)

This is an initial version that likely requires much polishing. I'm adding it lay out the structure and so we have something to start working from.
(cherry picked from commit 98d50cb8f57eb227c373cb94b8680b12ec8aade5)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
6 years agobpo-32384: Skip test when _testcapi isn't available (GH-4940)
Miss Islington (bot) [Wed, 16 May 2018 08:35:06 +0000 (01:35 -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-33453: Handle string type annotations in dataclasses. (GH-6768)
Miss Islington (bot) [Wed, 16 May 2018 04:22:13 +0000 (21:22 -0700)]
bpo-33453: Handle string type annotations in dataclasses. (GH-6768)

(cherry picked from commit 2a7bacbd913cf2bf568b3c0f85a758946d3cf4e9)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
6 years agobpo-30928: Update idlelib/NEWS.txt to 2018-05-14. (GH-6873)
Miss Islington (bot) [Wed, 16 May 2018 00:48:17 +0000 (17:48 -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 agobpo-33465: Use an unlikely to be built-in C extension in a test (GH-6797) (#6869)
Miss Islington (bot) [Tue, 15 May 2018 21:24:26 +0000 (14:24 -0700)]
bpo-33465: Use an unlikely to be built-in C extension in a test (GH-6797) (#6869)

(cherry picked from commit 8709b236fc997077d24b4802320db287640f82e2)

Co-authored-by: Barry Warsaw <barry@python.org>
6 years agobpo-33509: Fix _warnings for module_globals=None (GH-6833)
Miss Islington (bot) [Tue, 15 May 2018 20:56:28 +0000 (13:56 -0700)]
bpo-33509: Fix _warnings for module_globals=None (GH-6833)

Don't crash on warnings.warn_explicit() if module_globals is not a dict.
(cherry picked from commit b056562860c227bad2e0ba7cd3130e115c007768)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-29706: Test that IDLE colors async/await as keywords. (GH-6846)
Miss Islington (bot) [Tue, 15 May 2018 19:57:13 +0000 (12:57 -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-6669) (GH-6862)
Miss Islington (bot) [Tue, 15 May 2018 17:30:06 +0000 (10:30 -0700)]
bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6669) (GH-6862)

Also bump PendingDeprecationWarning to DeprecationWarning.
(cherry picked from commit 9eb40bc38de83e6ad3fad1931bba1cd36ae88c24)

Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
6 years agobpo-32604: Remove xid registry. (#6813)
Eric Snow [Tue, 15 May 2018 13:56:18 +0000 (09:56 -0400)]
bpo-32604: Remove xid registry. (#6813)

Remove the interpreters testing helper (and xid registry).

6 years agobpo-33517: dataclasses: Add the field type to Field repr (GH-6858)
Miss Islington (bot) [Tue, 15 May 2018 13:01:51 +0000 (06:01 -0700)]
bpo-33517: dataclasses: Add the field type to Field repr (GH-6858)

(cherry picked from commit 01abc6ec3a61769c55ee86834a432fb97801d28f)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
6 years agoRemove accidentally checked in files. (GH-6835) (GH-6844)
Miss Islington (bot) [Tue, 15 May 2018 08:48:07 +0000 (01:48 -0700)]
Remove accidentally checked in files. (GH-6835) (GH-6844)

(cherry picked from commit 046d311654eb15ccc8f471290334f7ac6aad5f15)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
6 years agobpo-16865: Support arrays >=2GB in ctypes. (GH-3006)
Miss Islington (bot) [Tue, 15 May 2018 05:40:27 +0000 (22:40 -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-6822)
Miss Islington (bot) [Tue, 15 May 2018 01:10:47 +0000 (18:10 -0700)]
Add AsyncContextManager to typing module documentation. (GH-6822)

(cherry picked from commit b7b493e2fb00414e4766e1455cfd26ef15c4e5b8)

Co-authored-by: Travis DePrato <773453+travigd@users.noreply.github.com>
6 years agobpo-33502: dataclass._Dataclassparams repr: use repr of each member. (GH-6812)
Miss Islington (bot) [Mon, 14 May 2018 23:57:30 +0000 (16:57 -0700)]
bpo-33502: dataclass._Dataclassparams repr: use repr of each member. (GH-6812)

(cherry picked from commit 3059042410dce69806b94be72d5c8055d616f3a3)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
6 years agoFixed an unused variable warning introduced in GH-6800 (GH-6816)
Miss Islington (bot) [Mon, 14 May 2018 23:42:30 +0000 (16:42 -0700)]
Fixed an unused variable warning introduced in GH-6800 (GH-6816)

(cherry picked from commit 00717a46a120dd8c8c74970fd75d201a5f42ab18)

Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
6 years agobpo-33497: Add NEWS and ACKS entries. (GH-6838) (GH-6840)
Miss Islington (bot) [Mon, 14 May 2018 22:21:10 +0000 (15:21 -0700)]
bpo-33497: Add NEWS and ACKS entries. (GH-6838) (GH-6840)

(cherry picked from commit d063b84d9ee435e9ae981c18faccaff5562792c3)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-33497: Add errors param to cgi.parse_multipart and make an encoding in FieldStora...
Miss Islington (bot) [Mon, 14 May 2018 22:20:06 +0000 (15:20 -0700)]
bpo-33497: Add errors param to cgi.parse_multipart and make an encoding in FieldStorage use the given errors (GH-6804) (GH-6837)

(cherry picked from commit 545c955be997efd6b3827b981024e6b9945d82d1)

Co-authored-by: Amber Brown <hawkowl@atleastfornow.net>
6 years agobpo-20104: Remove posix_spawn from 3.7 (GH-6794)
Pablo Galindo [Mon, 14 May 2018 21:52:43 +0000 (17:52 -0400)]
bpo-20104: Remove posix_spawn from 3.7 (GH-6794)

Remove os.posix_spawn, the API isn't complete and we're still figuring out how it should look. wait for 3.8.

6 years agoAdd versionchanged in create_datagram_endpoint doc (GH-4697)
Miss Islington (bot) [Mon, 14 May 2018 20:12:38 +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 ago[3.7] bpo-32861: urllib.robotparser fix incomplete __str__ methods. (GH-5711) (GH...
Miss Islington (bot) [Mon, 14 May 2018 18:14:30 +0000 (11:14 -0700)]
[3.7] bpo-32861: urllib.robotparser fix incomplete __str__ methods. (GH-5711) (GH-6795)

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

Co-authored-by: Michael Lazar <lazar.michael22@gmail.com>
6 years agoRemove `ifdef` check for an OpenSSL version (0.9.6) we don't support (GH-6807)
Miss Islington (bot) [Mon, 14 May 2018 17:45:45 +0000 (10:45 -0700)]
Remove `ifdef` check for an OpenSSL version (0.9.6) we don't support (GH-6807)

(cherry picked from commit f04224210d93212bd9ad17d67ef5e1c70171a13e)

Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
6 years agobpo-33494: Change dataclasses.Fields repr to use the repr of each of its members...
Miss Islington (bot) [Mon, 14 May 2018 17:31:10 +0000 (10:31 -0700)]
bpo-33494: Change dataclasses.Fields repr to use the repr of each of its members (GH-6798)

(cherry picked from commit 2473eea65d592a80a5362a00362738a33196aba1)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
6 years agobpo-22069: Update TextIO documentation (GH-6609)
Miss Islington (bot) [Mon, 14 May 2018 16:08:53 +0000 (09:08 -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:22:05 +0000 (07:22 -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 ago[3.7] bpo-33488: Satisfy markdownlint for the pull request template. (GH-6786)
Benjamin Peterson [Mon, 14 May 2018 01:26:58 +0000 (18:26 -0700)]
[3.7] bpo-33488: Satisfy markdownlint for the pull request template. (GH-6786)

./.github/PULL_REQUEST_TEMPLATE.md:8: MD031 Fenced code blocks should be
surrounded by blank lines
./.github/PULL_REQUEST_TEMPLATE.md:10: MD031 Fenced code blocks should
be surrounded by blank lines
./.github/PULL_REQUEST_TEMPLATE.md:19: MD031 Fenced code blocks should
be surrounded by blank lines
./.github/PULL_REQUEST_TEMPLATE.md:21: MD031 Fenced code blocks should
be surrounded by blank lines.
(cherry picked from commit 5cd22cf2097a6dd209999cf97858d54564a3be87)

Co-authored-by: Eitan Adler <grimreaper@users.noreply.github.com>
6 years agobpo-28055: Fix unaligned accesses in siphash24(). (GH-6123)
Miss Islington (bot) [Sun, 13 May 2018 11:17:07 +0000 (04:17 -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 agobpo-33455: Pass os.environ in test_posix::test_specify_environment. (GH-6753)
Miss Islington (bot) [Fri, 11 May 2018 06:01:44 +0000 (23:01 -0700)]
bpo-33455: Pass os.environ in test_posix::test_specify_environment. (GH-6753)

Pass os.environ's copy to new process created at test_posix:
test_specify_environment. Otherwise important variables such as
LD_LIBRARY_PATH are not set and the child process might not work at all
in an environment where such variables are required for Python to function.
(cherry picked from commit 7ec8f28656ea9d84048e9b5655375c6a74a59f53)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
6 years agoFix a bug in Generic.__new__ (GH-6758)
Miss Islington (bot) [Fri, 11 May 2018 03:30:47 +0000 (20:30 -0700)]
Fix a bug in Generic.__new__ (GH-6758)

(cherry picked from commit b551e9f0ff25018a5606465003e2c51c04f693a3)

Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
6 years agobpo-26701: Tweak the documentation for special methods in int(). (GH-6741)
Miss Islington (bot) [Thu, 10 May 2018 14:38:06 +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-13525: Fix incorrect encoding name in the tutorial example. (GH-6738)
Miss Islington (bot) [Wed, 9 May 2018 08:54:38 +0000 (01:54 -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:02 +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:47 +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:38:00 +0000 (21:38 -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 agobpo-28556: Minor fixes for typing module (GH-6732)
Miss Islington (bot) [Wed, 9 May 2018 01:44:09 +0000 (18:44 -0700)]
bpo-28556: Minor fixes for typing module (GH-6732)

This also fixes https://bugs.python.org/issue33420
(cherry picked from commit 43d12a6bd82bd09ac189069fe1eb40cdbc10a58c)

Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
6 years agobpo-32717: Document PEP 560 (GH-6726)
Miss Islington (bot) [Tue, 8 May 2018 18:52:36 +0000 (11:52 -0700)]
bpo-32717: Document PEP 560 (GH-6726)

(cherry picked from commit bd5f96581bf23f6d05fc106996428a8043b6b084)

Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
6 years ago[3.7] bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. ...
Miss Islington (bot) [Sun, 6 May 2018 07:20:12 +0000 (00:20 -0700)]
[3.7] bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. (GH-6708) (GH-6713)

(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 16:42:56 +0000 (09:42 -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-33391: Fix refleak in set_symmetric_difference (GH-6670)
Miss Islington (bot) [Wed, 2 May 2018 09:50:48 +0000 (02:50 -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 agobump to 3.7.0b4+
Ned Deily [Wed, 2 May 2018 09:01:31 +0000 (05:01 -0400)]
bump to 3.7.0b4+

6 years ago3.7.0b4 v3.7.0b4
Ned Deily [Wed, 2 May 2018 07:41:45 +0000 (03:41 -0400)]
3.7.0b4

6 years agoEnable the verbose build for extension modules with GNU make (GH-6659) (#6662)
Miss Islington (bot) [Wed, 2 May 2018 06:57:24 +0000 (23:57 -0700)]
Enable the verbose build for extension modules with GNU make (GH-6659) (#6662)

(cherry picked from commit 10f715d71218ece737f990fa55027b8e1120cc3a)

Co-authored-by: Matthias Klose <doko42@users.noreply.github.com>
6 years agobpo-33393: Update config.guess and config.sub files (GH-6658) (#6661)
Miss Islington (bot) [Wed, 2 May 2018 06:54:51 +0000 (23:54 -0700)]
bpo-33393: Update config.guess and config.sub files (GH-6658) (#6661)

(cherry picked from commit 7e3545c70cdecd86ffa8fcbffd79b4f78560679f)

Co-authored-by: Matthias Klose <doko42@users.noreply.github.com>
6 years agoMitigate macOS race condition in installer build (GH-6686) (GH-6687)
Miss Islington (bot) [Wed, 2 May 2018 05:45:59 +0000 (22:45 -0700)]
Mitigate macOS race condition in installer build (GH-6686) (GH-6687)

(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-6684)
Miss Islington (bot) [Wed, 2 May 2018 05:43:59 +0000 (22:43 -0700)]
bpo-33290: Have macOS installer remove "pip" alias (GH-6683) (GH-6684)

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-33281: NEWS and ACK (GH-6681) (GH-6682)
Miss Islington (bot) [Wed, 2 May 2018 02:52:42 +0000 (19:52 -0700)]
bpo-33281: NEWS and ACK (GH-6681) (GH-6682)

(cherry picked from commit 69a013ec189f93a0dea97cfdbb3adc348648a666)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-33281: Fix ctypes.util.find_library regression on macOS (GH-6625) (GH-6680)
Miss Islington (bot) [Wed, 2 May 2018 02:51:31 +0000 (19:51 -0700)]
bpo-33281:  Fix ctypes.util.find_library regression on macOS (GH-6625) (GH-6680)

(cherry picked from commit d06d345f04b3f7e5b318df69b1d179328a64ca9c)

Co-authored-by: Ray Donnelly <mingw.android@gmail.com>
6 years agobpo-33377: add triplets for mips-r6 and riscv (GH-6655) (GH-6660)
Miss Islington (bot) [Tue, 1 May 2018 14:40:17 +0000 (07:40 -0700)]
bpo-33377: add triplets for mips-r6 and riscv (GH-6655) (GH-6660)

(cherry picked from commit ddbe976964933cb943c6383a776e800cc7e0f47d)

Co-authored-by: Matthias Klose <doko42@users.noreply.github.com>
6 years agobpo-20104: Improve error handling and fix a reference leak in os.posix_spawn(). ...
Miss Islington (bot) [Tue, 1 May 2018 14:18:44 +0000 (07:18 -0700)]
bpo-20104: Improve error handling and fix a reference leak in os.posix_spawn(). (GH-6332)

(cherry picked from commit ef347535f289baad22c0601e12a36b2dcd155c3a)

Co-authored-by: Serhiy Storchaka <storchaka@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 04:06:00 +0000 (21:06 -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-33352: Skip test_regrtest test if rt.bat does not exist (GH-6654) (#6656)
Miss Islington (bot) [Mon, 30 Apr 2018 20:36:49 +0000 (13:36 -0700)]
bpo-33352: Skip test_regrtest test if rt.bat does not exist (GH-6654) (#6656)

(cherry picked from commit c3b7a6dfb9c7e69093c9fe78ab587e14743e5152)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33254: do not return an empty list when asking for the contents of a namespace...
Miss Islington (bot) [Mon, 30 Apr 2018 19:30:26 +0000 (12:30 -0700)]
bpo-33254: do not return an empty list when asking for the contents of a namespace package (GH-6467)

(cherry picked from commit 3ab9365dca8438f89b2060cd3eebe00606133dc4)

Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
6 years agobpo-21474: Update IDLE word/identifier definition from ascii to unicode. (GH-6643)
Miss Islington (bot) [Mon, 30 Apr 2018 07:27:50 +0000 (00:27 -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-33256: Replace angle brackets around python object repr to display it in html...
Miss Islington (bot) [Sun, 29 Apr 2018 19:10:12 +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-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223)
Miss Islington (bot) [Sun, 29 Apr 2018 19:09:34 +0000 (12:09 -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-31026: Fix test_dbm if dbm.ndbm is build with Berkeley DB. (GH-6632)
Miss Islington (bot) [Sun, 29 Apr 2018 13:37:21 +0000 (06:37 -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.7] bpo-33383: Fix crash in get() of the dbm.ndbm database object. (GH-6630) (GH...
Miss Islington (bot) [Sun, 29 Apr 2018 11:50:26 +0000 (04:50 -0700)]
[3.7] bpo-33383: Fix crash in get() of the dbm.ndbm database object. (GH-6630) (GH-6631)

(cherry picked from commit 2e38cc39330bd7f3003652869b644110a97a78d8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33378: Add Korean to the language switcher. (GH-6627)
Miss Islington (bot) [Sat, 28 Apr 2018 20:23:45 +0000 (13:23 -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 agoChange "non-local state" to "content-local state". (GH-6617)
Miss Islington (bot) [Fri, 27 Apr 2018 22:57:59 +0000 (15:57 -0700)]
Change "non-local state" to "content-local state". (GH-6617)

The wording here seems wrong, as per https://bugs.python.org/msg315792
(cherry picked from commit e022bbc169ca1428dc3017187012de17ce6e0bc7)

Co-authored-by: Tom Christie <tom@tomchristie.com>
6 years ago[3.7] bpo-33363: raise SyntaxError for async for/with outside async functions (GH...
Zsolt Dollenstein [Fri, 27 Apr 2018 22:33:37 +0000 (15:33 -0700)]
[3.7] bpo-33363: raise SyntaxError for async for/with outside async functions (GH-6616). (GH-6619)

6 years agobpo-33358: Fix test_embed.test_pre_initialization_sys_options (GH-6612)
Miss Islington (bot) [Fri, 27 Apr 2018 12:41:25 +0000 (05:41 -0700)]
bpo-33358: Fix test_embed.test_pre_initialization_sys_options (GH-6612)

Fix test_embed.test_pre_initialization_sys_options() when building with --enable-shared
(cherry picked from commit 4114846265536344538ae44cb8ffd8ce2903faf7)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agobpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564)
Miss Islington (bot) [Wed, 25 Apr 2018 18:32:52 +0000 (11:32 -0700)]
bpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564)

(cherry picked from commit e9d9494d6b2a5e0c2d48d22c7f0d5e95504b4f7e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33280: Reorganize external Tcl/Tk references. (GH-6473)
Miss Islington (bot) [Wed, 25 Apr 2018 18:30:58 +0000 (11:30 -0700)]
bpo-33280: Reorganize external Tcl/Tk references. (GH-6473)

(cherry picked from commit 67a8f4fed3169e1b8c947c10f6e06863e399ae32)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
6 years agobpo-33314: Fix rendering issues in the documentation for the os module (GH-6525)...
Miss Islington (bot) [Wed, 25 Apr 2018 18:30:43 +0000 (11:30 -0700)]
bpo-33314: Fix rendering issues in the documentation for the os module (GH-6525) (GH-6597)

(cherry picked from commit d6ef6db9ff780efb2cd502a54ca208afbe84af9c)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agoMention both relevant PEPs in function annotations tutorial (GH-6304)
Miss Islington (bot) [Wed, 25 Apr 2018 18:04:49 +0000 (11:04 -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 agobpo-33128 Fix duplicated call to importlib._install_external_importers (GH-6273)
Miss Islington (bot) [Wed, 25 Apr 2018 02:48:04 +0000 (19:48 -0700)]
bpo-33128 Fix duplicated call to importlib._install_external_importers  (GH-6273)

External importers were being added in both phases of the import
system initialisation.

They're only supposed to be added in the second phase, after the
import machinery has been appropriately configured.
(cherry picked from commit 0977091dca59709864b14cfc129388f1f0de7bf7)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agobpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) (GH-6579)
Miss Islington (bot) [Mon, 23 Apr 2018 19:42:26 +0000 (12:42 -0700)]
bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) (GH-6579)

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)

Co-authored-by: Antoine Pitrou <pitrou@free.fr>
6 years agobpo-991266: Fix quoting of Comment attribute of SimpleCookie (GH-6555)
Miss Islington (bot) [Mon, 23 Apr 2018 00:58:23 +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-33297: Mention Pillow to work with more image formats. (GH-6505)
Miss Islington (bot) [Sat, 21 Apr 2018 13:03:49 +0000 (06:03 -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 agoClarify that __path__ can't be just any value (GH-6554)
Miss Islington (bot) [Fri, 20 Apr 2018 23:45:14 +0000 (16:45 -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 agoSpelling fixes to docs, docstrings, and comments (GH-6374)
Miss Islington (bot) [Fri, 20 Apr 2018 21:00:41 +0000 (14:00 -0700)]
Spelling fixes to docs, docstrings, and comments (GH-6374)

(cherry picked from commit 61f82e0e337f971da57f8f513abfe693edf95aa5)

Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
6 years agobpo-33131: Upgrade ensurepip to bundle pip 10.0.1 (GH-6546)
Miss Islington (bot) [Fri, 20 Apr 2018 20:47:44 +0000 (13:47 -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 agobpo-33312: update Tools/gdb/libpython.py to match. (GH-6549)
Miss Islington (bot) [Fri, 20 Apr 2018 20:02:30 +0000 (13:02 -0700)]
bpo-33312: update Tools/gdb/libpython.py to match. (GH-6549)

(cherry picked from commit 53f67d401df40486fd0fb8fbcf9da725cd37290c)

6 years agobpo-33312: Fix clang ubsan out of bounds warnings in dict. (GH-6537) (GH-6543)
Miss Islington (bot) [Fri, 20 Apr 2018 17:06:21 +0000 (10:06 -0700)]
bpo-33312: Fix clang ubsan out of bounds warnings in dict. (GH-6537) (GH-6543)

Fix clang ubsan (undefined behavior sanitizer) warnings in dictobject.c by
adjusting how the internal struct _dictkeysobject shared keys structure is
declared.

This remains ABI compatible.  We get rid of the union at the end of the
struct being used for conveinence to avoid typecasting in favor of char[]
variable length array at the end of a struct. This is known to clang to be
used for variable sized objects and will not cause an undefined behavior
problem.  Similarly, char arrays do not have strict aliasing undefined
behavior when cast.

PEP-007 does not currently list variable length arrays (VLAs) as allowed
in our subset of C99.  If this turns out to be a problem, the fix to this is
to change the char `dk_indices[]` into `dk_indices[1]` and restore the
three size computation subtractions this change removes:
  `- Py_MEMBER_SIZE(PyDictKeysObject, dk_indices)`

If this works as is I'll make a separate PR to update PEP-007.
(cherry picked from commit 397f1b28c4a12e3b3ed59a89599eabc457412649)

6 years agobpo-32232: by default, Setup modules are no longer built with -DPy_BUILD_CORE (GH...
Miss Islington (bot) [Fri, 20 Apr 2018 15:39:18 +0000 (08:39 -0700)]
bpo-32232: by default, Setup modules are no longer built with -DPy_BUILD_CORE (GH-6489)

Setup modules are no longer built with -DPy_BUILD_CORE by default,
as using that flag may now require including additional internal-only header files.

Instead, only the modules that specifically need it use that setting.
(cherry picked from commit 063db62aab4041ac47798e7e48b27b2f2bef21c5)

Co-authored-by: xdegaye <xdegaye@gmail.com>
6 years agoClean up the readme text around PGO a bit. (GH-6538) (GH-6539)
Miss Islington (bot) [Thu, 19 Apr 2018 16:14:36 +0000 (09:14 -0700)]
Clean up the readme text around PGO a bit. (GH-6538) (GH-6539)

(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 06:49:15 +0000 (23:49 -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 agoUpdate What's new in 3.7 to reference preadv, pwritev and posix_spawn (GH-6524)
Miss Islington (bot) [Thu, 19 Apr 2018 05:26:41 +0000 (22:26 -0700)]
Update What's new in 3.7 to reference preadv, pwritev and posix_spawn (GH-6524)

(cherry picked from commit 9009f3e389123c5f94d4d12f1f51b0a88531c37c)

Co-authored-by: Pablo Galindo <Pablogsal@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:10:36 +0000 (22:10 -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) (#6528)
Miss Islington (bot) [Thu, 19 Apr 2018 00:15:09 +0000 (17:15 -0700)]
bpo-31583: Fix 2to3 for using with --add-suffix option (GH-3758) (#6528)

(cherry picked from commit e3a523a0fa16aec880880928303bfcbd1fb74bc2)

Co-authored-by: Denis Osipov <osipov_d@list.ru>