]>
granicus.if.org Git - python/log
Miss Islington (bot) [Mon, 18 Jun 2018 04:49:43 +0000 (21:49 -0700)]
bpo-33892: Doc: Use gender neutral words (GH-7770)
(cherry picked from commit
5092439c2cb32112a5869b138011d38491db90a9 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Sat, 16 Jun 2018 21:37:55 +0000 (14:37 -0700)]
bpo-33856: Add "help" to the welcome message of IDLE (GH-7755)
Make it the same as when one runs 'python'.
(cherry picked from commit
9d49f85064c388e2dddb9f8cb4ae1f486bc8d357 )
Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
Miss Islington (bot) [Sat, 16 Jun 2018 10:57:50 +0000 (03:57 -0700)]
bpo-33861: Minor improvements of tests for os.path. (GH-7715)
* Test exists(), lexists(), isdir(), isfile(), islink(), ismount()
with bytes paths.
* Remove unneeded silencing DeprecationWarning for ismount() with
bytes path.
* Test common functions with unencodable and undecodable paths.
* Minor clean up and refactoring.
(cherry picked from commit
17a0088e2680e12ce2c5f2ffc6b71766299e38d5 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 16 Jun 2018 05:26:34 +0000 (22:26 -0700)]
bpo-33859: Fix spelling mistakes in docs. (GH-7691)
(cherry picked from commit
c151f7846d6d900c22edaaa77f5f7771b529099e )
Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
Miss Islington (bot) [Sat, 16 Jun 2018 04:03:20 +0000 (21:03 -0700)]
bpo-33571: Improve the glossary description for '...' prompt (GH-6971)
Mention that it can be triggered by triple quotes and after specifying decorators.
(cherry picked from commit
68680035143a3a6398faa88f067f244c74691d19 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Sat, 16 Jun 2018 03:46:30 +0000 (20:46 -0700)]
bpo-33836: Recommend keyword-only param for memoization in FAQ (GH-7687)
Update the the signature in the code example to make `_cache` a keyword-only parameter.
(cherry picked from commit
2707e41a5c7ede30349cc7dbd66f8be564965d7c )
Co-authored-by: Noah Haasis <haasis_noah@yahoo.de>
Miss Islington (bot) [Sat, 16 Jun 2018 03:00:36 +0000 (20:00 -0700)]
Improve the grammar in the glossary item for `list`
" ... access to elements is O(1)."
(cherry picked from commit
7469ff5017ec315a81e35913f19a32f0dbdf712e )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Fri, 15 Jun 2018 23:00:24 +0000 (16:00 -0700)]
Add missing va_end() calls in PC/launcher.c (GH-7690)
(cherry picked from commit
3a6d752e35ad17fc00bc77b85364b1c599f4e0fe )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Fri, 15 Jun 2018 22:38:35 +0000 (15:38 -0700)]
bpo-33855: Minimally test all IDLE modules. (GH-7689)
Create a template for minimally testing a tkinter-using module by importing it and instantiating its class(es). Add a test file for all non-startup IDLE modules. Edit existing files and update coverage. This is part 1 of 3, covering the 21 autocomplete to help modules and touching 33 idlelib files.
(cherry picked from commit
ee5ef309c7e2daef1248730145408f700732c42e )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 15 Jun 2018 22:26:29 +0000 (15:26 -0700)]
bpo-33824, bpo-32030: Fix pymain_read_conf() (GH-7712)
Fix "LC_ALL=C python3.7 -V": reset properly the command line parser
when the encoding changes after reading the Python configuration.
Fix pymain_read_conf(): use memset(0) to reset properly cmdline.
(cherry picked from commit
6c5a4b315664f21bffc36ff6987fb4c4d1590897 )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Victor Stinner [Fri, 15 Jun 2018 21:37:33 +0000 (23:37 +0200)]
Revert "bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (GH-6754)" (#7724)
This reverts commit
9b7c74ca32d1bec7128d550a9ab1b2ddc7046287 .
Miss Islington (bot) [Fri, 15 Jun 2018 20:14:32 +0000 (13:14 -0700)]
bpo-33854: Add PEP 461 title to 'See also' note (GH-7688) (#7719)
(cherry picked from commit
a9d0b34a5c5d4fdc12bba4f9c1e314e6e132cc65 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Fri, 15 Jun 2018 19:42:30 +0000 (12:42 -0700)]
bpo-33847: Add '@' operator entry to index (GH-7669)
(cherry picked from commit
695118600fecaa7b95634e168ad7cbbc561fd1ec )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Fri, 15 Jun 2018 18:45:37 +0000 (11:45 -0700)]
bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672)
'expresson list' refers to the grammar term 'expression_list' in the subscription production.
(cherry picked from commit
4fddd4e4069aad9efad999d8d9ce3cd9fb523a5c )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Victor Stinner [Fri, 15 Jun 2018 17:11:45 +0000 (19:11 +0200)]
[3.7] bpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7710)
* bpo-32962: python-gdb catchs ValueError on read_var() (GH-7692)
python-gdb now catchs ValueError on read_var(): when Python has no
debug symbols for example.
(cherry picked from commit
019d33b7a447e78057842332fb5d3bad01922122 )
* bpo-32962: python-gdb catchs UnicodeDecodeError (GH-7693)
python-gdb now catchs UnicodeDecodeError exceptions when calling
string().
(cherry picked from commit
d22fc0bc7de7882da204abe50884bbde2da4f9e7 )
* bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (GH-6754)
When Python is built with the intel control-flow protection flags,
-mcet -fcf-protection, gdb is not able to read the stack without
actually jumping inside the function. This means an extra
'next' command is required to make the $pc (program counter)
enter the function and make the stack of the function exposed to gdb.
(cherry picked from commit
9b7c74ca32d1bec7128d550a9ab1b2ddc7046287 )
Miss Islington (bot) [Fri, 15 Jun 2018 16:04:46 +0000 (09:04 -0700)]
gitattribute: Mark generated files (GH-7619)
Marked files are collapsed by default in Github pull request.
https://github.com/github/linguistGH-generated-code
(cherry picked from commit
c1897eda3d47b182977459a1e9fed4b3854a10a0 )
Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
Miss Islington (bot) [Fri, 15 Jun 2018 12:21:55 +0000 (05:21 -0700)]
bpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958)
Hangul composition check boundaries are wrong for the second character
([0x1161, 0x1176) instead of [0x1161, 0x1176]) and third character ((0x11A7, 0x11C3)
instead of [0x11A7, 0x11C3]).
(cherry picked from commit
d134809cd3764c6a634eab7bb8995e3e2eff14d5 )
Co-authored-by: Wonsup Yoon <pusnow@me.com>
Miss Islington (bot) [Fri, 15 Jun 2018 08:25:13 +0000 (01:25 -0700)]
bpo-33851: Fix ast.get_docstring() for a node that lacks a docstring. (GH-7682)
(cherry picked from commit
08f127a3cad8ce4eb281d30d9488c91b0fd7cfed )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 13 Jun 2018 09:28:48 +0000 (02:28 -0700)]
bpo-31378: Document sqlite3.OperationalError exception (GH-7677)
(cherry picked from commit
71ede00f140fa6b67a8ac17df68b80079efa8dc2 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Wed, 13 Jun 2018 02:10:51 +0000 (19:10 -0700)]
bpo-33828: Add missing versionchanged note for string.Formatter. (GH-7668)
string.Formatter auto-numbering feature was added in 3.4 and there
is no versionchanged note in its documentation, making the documentation
ambiguous about which version the feature is available.
(cherry picked from commit
b9d8ad5130e0f77be28a3dec6d468e6470835573 )
Co-authored-by: Xiang Zhang <angwerzx@126.com>
Miss Islington (bot) [Tue, 12 Jun 2018 13:46:11 +0000 (06:46 -0700)]
bpo-27397: Make email module properly handle invalid-length base64 strings (GH-7583) (GH-7664)
When attempting to base64-decode a payload of invalid length (1 mod 4),
properly recognize and handle it. The given data will be returned as-is,
i.e. not decoded, along with a new defect, InvalidBase64LengthDefect.
(cherry picked from commit
c3f55be7dd012b7e92901627d0b31c21e983ccb4 )
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Miss Islington (bot) [Tue, 12 Jun 2018 09:02:53 +0000 (02:02 -0700)]
Fix nested list in 3.7 What's New (GH-7659) (GH-7660)
(cherry picked from commit
5a9820918077a65db90f24733edc8935c3e2130e )
Co-authored-by: Ned Deily <nad@python.org>
Ned Deily [Tue, 12 Jun 2018 07:10:51 +0000 (03:10 -0400)]
post 3.7.0rc1
Ned Deily [Tue, 12 Jun 2018 04:46:50 +0000 (00:46 -0400)]
3.7.0rc1
Miss Islington (bot) [Tue, 12 Jun 2018 04:26:30 +0000 (21:26 -0700)]
bpo-25612: Add minimal What's New in 3.7 entry (GH-7656) (GH-7658)
(cherry picked from commit
04290cb9945eca1a97f6924495256c15f29fab41 )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Tue, 12 Jun 2018 04:25:31 +0000 (21:25 -0700)]
bpo-33582: Remove duplicate space in inspect.formatargspec() deprecation warning (GH-7655) (GH-7657)
(cherry picked from commit
41254ebd5e4f40a2e095d8aaea60bf3973de4647 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Tue, 12 Jun 2018 02:54:16 +0000 (19:54 -0700)]
Update macOS installer Welcome and ReadMe files for 3.7.0. (GH-7653)
(cherry picked from commit
378edcd0006ce61f9255e7aeaa8755441225a380 )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Tue, 12 Jun 2018 00:58:06 +0000 (17:58 -0700)]
bpo-31432: Revert unrelated code changes to _ssl.c and test_ssl (GH-7650) (GH-7651)
(cherry picked from commit
4531ec74c4a9c8e15ee2bdec11b12796ce000f6f )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Mon, 11 Jun 2018 23:20:24 +0000 (16:20 -0700)]
bpo-31432: Clarify ssl CERT_NONE/OPTIONAL/REQUIRED docs. (GH-3530) (GH-7649)
The documentation for CERT_NONE, CERT_OPTIONAL, and CERT_REQUIRED were
misleading and partly wrong. It fails to explain that OpenSSL behaves
differently in client and server mode. Also OpenSSL does validate the
cert chain everytime. With SSL_VERIFY_NONE a validation error is not
fatal in client mode and does not request a client cert in server mode.
Also discourage people from using CERT_OPTIONAL in client mode.
(cherry picked from commit
ef24b6c54d40e7820456873a6eab6ef57d2bd0db )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Mon, 11 Jun 2018 21:08:19 +0000 (14:08 -0700)]
bpo-33656: Mention color in idlelib/NEWS.txt entry. (GH-7646) (GH-7647)
(cherry picked from commit
4b704f29f5a0b6f6d7bd67468ed004bd3a96855d )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 11 Jun 2018 20:44:16 +0000 (13:44 -0700)]
bpo-33582: Emit deprecation warning for `formatargspec` (GH-6994)
(cherry picked from commit
46c5cd0f6e22bdfbdd3f0b18f1d01eda754e7e11 )
Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
Miss Islington (bot) [Mon, 11 Jun 2018 20:06:36 +0000 (13:06 -0700)]
bpo-33656: Add enum name for argument of Windows call. (GH-7642)
Change suggested by Eryk Sun in a comment on PR 7137 after it was merged.
(cherry picked from commit
fd88f319a4f40682b989b63f0b6378d69465fda4 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 11 Jun 2018 18:45:49 +0000 (11:45 -0700)]
bpo-33656: Add entry to What's New 3.7. (GH-7638)
This is a separate PR because this does not backport to 3.6.
(cherry picked from commit
8a05f559ce5064df68c8d4ebd7d4ed28381d9971 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 11 Jun 2018 18:35:13 +0000 (11:35 -0700)]
bpo-33656: On Windows, add API call saying that tk scales for DPI (GH-7137)
On Windows 8.1+ or 10, with DPI compatibility properties of the Python binary
unchanged, and a monitor resolution greater than 96 DPI, this should
make text and lines sharper. It should otherwise have no effect.
Using a magnifier, I determined that the improvement comes from horizontal and
lines being better lined up with the monitor pixels. I checked that this call causes
no problem on any Windows buildbot, including the Win7 buildbots. Unlike most
IDLE patches, this one can be easily reverted by users by removing a few lines,
at the top of idlelib/pyshell.py.
(cherry picked from commit
800415e3df69f494afe9f95a8563ce17609fe1da )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 11 Jun 2018 17:16:03 +0000 (10:16 -0700)]
bpo-33831: Make htmlview run again (GH-7628)
(cherry picked from commit
0e5f901508dea6437dc9ee89b434feca721d45be )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Mon, 11 Jun 2018 16:11:22 +0000 (09:11 -0700)]
bpo-30820: Remove incorrect docs for email.contentmanager.raw_data_manager (GH-7631) (#7633)
The docs claimed that a list of EmailMessage objects could be
passed to set_content(), but this was never implemented.
(cherry picked from commit
2c071cebe67f517f191f4074757a79b0f597d886 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Mon, 11 Jun 2018 08:18:49 +0000 (01:18 -0700)]
bpo-23404: Update/sync What's New files for 3.6/3.5/2.7 (GH-7620) (GH-7621)
(cherry picked from commit
9d6171ded5c56679bc295bacffc718472bcb706b )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Mon, 11 Jun 2018 05:05:22 +0000 (22:05 -0700)]
pypi.python.org -> pypi.org (GH-7613) (GH-7614)
(cherry picked from commit
9d6d06e8065d45f375f4a80e2d7e13b032da1f5b )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Mon, 11 Jun 2018 03:00:17 +0000 (20:00 -0700)]
bpo-33745: Add What's New for empty function docstring change. (GH-7611)
(cherry picked from commit
12c6cdf4d16078aa09de32a39193c8161177b39d )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Mon, 11 Jun 2018 02:30:57 +0000 (19:30 -0700)]
bpo-33109: Remove now-obsolete What's New entry for bpo-26510. (GH-7609) (GH-7610)
(cherry picked from commit
ef057bfb06cae0718e6d708061649d2e3983e2ef )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Mon, 11 Jun 2018 01:21:35 +0000 (18:21 -0700)]
bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. (GH-6731) (GH-7606)
Before Python 3.6, os.path.abspath(None) used to report an AttributeError which was properly caught inside site.abs_paths, making it ignore __main__, one of sys.modules, which has __file__ and __cached__ set to None. With 3.6, os.path.abspath(None) raises TypeError instead which site.abs_path was not expecting. This resulted in an uncaught exception if a user had PYTHONSTARTUP set and the application called site.main() which a number of third-party programs do.
(cherry picked from commit
2487f30d5529948ace26559e274d7cac6abcd1a8 )
Co-authored-by: Steve Weber <steverweber@gmail.com>
Miss Islington (bot) [Sun, 10 Jun 2018 22:02:24 +0000 (15:02 -0700)]
bpo-33812: Corrected astimezone for naive datetimes. (GH-7578) (GH-7600)
A datetime object d is aware if d.tzinfo is not None and
d.tzinfo.utcoffset(d) does not return None. If d.tzinfo is None,
or if d.tzinfo is not None but d.tzinfo.utcoffset(d) returns None,
d is naive.
This commit ensures that instances with non-None d.tzinfo, but
d.tzinfo.utcoffset(d) returning None are treated as naive.
In addition, C acceleration code will raise TypeError if
d.tzinfo.utcoffset(d) returns an object with the type other than
timedelta.
* Updated the documentation.
Assume that the term "naive" is defined elsewhere and remove the
not entirely correct clarification. Thanks, Tim.
(cherry picked from commit
877b23202b7e7d4f57b58504fd0eb886e8c0b377 )
Co-authored-by: Alexander Belopolsky <abalkin@users.noreply.github.com>
Miss Islington (bot) [Sun, 10 Jun 2018 21:45:19 +0000 (14:45 -0700)]
bpo-33748: fix tests altering sys.path and sys.modules (GH-7433) (#7604)
(cherry picked from commit
4ab4695388fb9ec03a14d93e90ce50d832a920ec )
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Miss Islington (bot) [Sun, 10 Jun 2018 21:37:14 +0000 (14:37 -0700)]
bpo-33770: improve base64 exception message for encoded inputs of invalid length (GH-7416) (GH-7602)
(cherry picked from commit
1b85c71a2136d3fa6a1da05b27b1fe4e4b8ee45e )
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Miss Islington (bot) [Sun, 10 Jun 2018 20:07:24 +0000 (13:07 -0700)]
bpo-33610: Update IDLE Code Context doc entry (GH-7597)
Users can now click on context lines.
(cherry picked from commit
af4b0130d44bf8a1ff4f7b46195d1dc79add444a )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 10 Jun 2018 19:26:44 +0000 (12:26 -0700)]
bpo-33820: Fix IDLE What's New typo (GH-7594)
(cherry picked from commit
820c53ac612e9c4b3cb3e831537a15d5e953bbc0 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 10 Jun 2018 18:53:21 +0000 (11:53 -0700)]
Fix spaces added after hyphens in news entries. (GH-7579) (GH-7582)
Seems they were added by double applying blurb.
(cherry picked from commit
98a0e466cd94d4635769cfdfd397c43c07384595 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 10 Jun 2018 18:35:22 +0000 (11:35 -0700)]
bpo-33821: Update idlelib subsection of What's New 3.7 (GH-7590)
(cherry picked from commit
222f7f40339238b3d2c803849c75e682725449d7 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 10 Jun 2018 18:30:28 +0000 (11:30 -0700)]
bpo-33820: Update idlelib subsection of What's New 3.6 (GH-7589)
(cherry picked from commit
e226eb71575ad22a6779b02941377665831cfff2 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 10 Jun 2018 02:00:36 +0000 (19:00 -0700)]
Remove hyphens from phrase "picks up where it left off" (GH-7410)
(cherry picked from commit
d689f976199d2e211a97d526b57cfa9871cc578d )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Sun, 10 Jun 2018 01:01:36 +0000 (18:01 -0700)]
Fix typo in object.__getnewargs__() documentation (GH-7554)
(cherry picked from commit
0e0534c4024c181aa47a300142c59eeeee71db46 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Sun, 10 Jun 2018 00:05:49 +0000 (17:05 -0700)]
bpo-33766: Document that end of file or string is a newline (GH-7383)
(cherry picked from commit
0aa17ee6a76df0946d42e7657a501f1862065a22 )
Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
Miss Islington (bot) [Sat, 9 Jun 2018 23:30:16 +0000 (16:30 -0700)]
doc: Fix typo in asyncio-eventloop.rst (GH-7345)
This is a fixup to
19a44f63c738388ef3c8515348b4ffc061dfd627
(cherry picked from commit
7e0d882a98169e6d8d1507224b83ff0264c2afee )
Co-authored-by: MarcoFalke <falke.marco@gmail.com>
Michael Felt [Sat, 9 Jun 2018 21:59:02 +0000 (15:59 -0600)]
bpo-32493: Correct test for uuid_enc_be availability in configure.ac. (GH-7511)
Miss Islington (bot) [Sat, 9 Jun 2018 16:33:24 +0000 (09:33 -0700)]
bpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521)
If tests are re-run, use "xxx then yyy" result format (ex: "FAILURE
then SUCCESS") to show that some failing tests have been re-run.
Add also test_regrtest.test_rerun_fail() test.
(cherry picked from commit
c45fc7673e23f911639d10d3771ffef7be870c7a )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Sat, 9 Jun 2018 07:13:53 +0000 (00:13 -0700)]
bpo-33409: Clarify PEP 538/540 relationship (GH-7534)
While locale coercion and UTF-8 mode turned out to
be complementary ideas rather than competing ones,
it isn't immediately obvious why it's useful to
have both, or how they interact at runtime.
This updates both the Python 3.7 What's New doc
and the PYTHONCOERCECLOCALE and PYTHONUTF8
documentation in an attempt to clarify that
relationship:
- in the respective What's New sections, add a closing paragraph
explaining which problem each one solves, and pointing to the
other PEP's section for the specific aspects it relies on the other
PEP to solve
- use "locale-aware mode" as a more descriptive term for the
default non-UTF-8 mode
- improve wording conistenccy between the PYTHONCOERCECLOCALE
and PYTHONUTF8 docs when they cover the same thing (mostly
related to legacy locale detection and setting the standard
stream error handler)
- improve the description of the locale coercion trigger conditions
(including pointing out that setting LC_ALL turns off locale coercion)
- port the full description of the UTF-8 mode behaviour changes
from PEP 540 into the PYTHONUTF8 documentation
- be explicit that PYTHONIOENCODING still overrides the settings
for the standard streams
- mention concrete examples of things that do and don't get their
text encoding assumptions adjusted by the two text encoding
assumption override techniques
(cherry picked from commit
1bcb8a636857e3383d65aaf196f93edb949f2e79 )
Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
Miss Islington (bot) [Sat, 9 Jun 2018 03:11:23 +0000 (20:11 -0700)]
Datetime test coverage (GH-7544) (GH-7551)
* Added a test case for strftime("%z").
The added test checks a case with UTC offest expressed in an integer
number of seconds.
* Added a test comparing naive and aware datetimes.
Check that a greater than comparison of a naive datetime instance with
an aware one raises a TypeError.
* Test datetime in fold or in gap comparison both ways.
(cherry picked from commit
4c3e39f61c6a759aa1370497ea3597f3564f9da0 )
Co-authored-by: Alexander Belopolsky <abalkin@users.noreply.github.com>
Miss Islington (bot) [Fri, 8 Jun 2018 22:42:07 +0000 (15:42 -0700)]
bpo-30805: Avoid race condition with debug logging (GH-7545)
Supersedes https://github.com/python/cpython/pull/2490
(cherry picked from commit
12f482e0ae33021c04264294f33fa6baa9617cec )
Co-authored-by: Yury Selivanov <yury@magic.io>
Miss Islington (bot) [Fri, 8 Jun 2018 21:57:43 +0000 (14:57 -0700)]
bpo-33801: Remove non-ordered dict comment from plistlib doc (GH-7495) (GH-7546)
(cherry picked from commit
1cbdb2208aa309cf288ee0b53f0ecd85279bb934 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Fri, 8 Jun 2018 19:26:07 +0000 (12:26 -0700)]
bpo-33800: Fix default argument for parameter dict_type of ConfigParser/RawConfigParser (GH-7494) (GH-7542)
(cherry picked from commit
3b0b90c8c3b8161f0ae9005b83b9b6449d4a8476 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Suriyaa ✌️️ [Fri, 8 Jun 2018 18:46:27 +0000 (20:46 +0200)]
[3.7] Update version in '.github/PULL_REQUEST_TEMPLATE.md' (GH-7537)
Miss Islington (bot) [Fri, 8 Jun 2018 18:43:14 +0000 (11:43 -0700)]
bpo-33799: Remove non-ordered dicts comments from FAQ (GH-7520)
(cherry picked from commit
396ecb9c3e7fb150eace7bfc733d5b9d0263d697 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Fri, 8 Jun 2018 16:05:06 +0000 (09:05 -0700)]
bpo-33807: Add Python 3.7 buildbot link to '.github/CONTRIBUTING.rst' (GH-7532)
(cherry picked from commit
9e6685ea7b749ee34466e71b22d99e5112d71a95 )
Co-authored-by: Suriyaa ✌️️ <isc.suriyaa@gmail.com>
Miss Islington (bot) [Fri, 8 Jun 2018 15:54:31 +0000 (08:54 -0700)]
bpo-33736: Improve the documentation of asyncio stream APIs (GH-7326)
(cherry picked from commit
c0d062f523b16331444ff910e4596ee5608c8170 )
Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
Miss Islington (bot) [Fri, 8 Jun 2018 14:01:56 +0000 (07:01 -0700)]
bpo-33802: Do not interpolate in ConfigParser while reading defaults (GH-7524)
This solves a regression in logging config due to changes in BPO-23835.
(cherry picked from commit
214f18e49feb6a9d6c05aa09a4bb304905e81334 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Fri, 8 Jun 2018 13:33:32 +0000 (06:33 -0700)]
bpo-33798: Update csv document about dict order (GH-7490)
(cherry picked from commit
6860629d87d0f6728ff7430453d4900b695adf7b )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Fri, 8 Jun 2018 11:33:50 +0000 (04:33 -0700)]
bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)
- bugfix and test for fragile metavar handling in argparse (see
bpo-24089, bpo-14046, bpo-25058, bpo-11874)
- also fixes some incorrect tests that did not make 1-element tuples correctly
(cherry picked from commit
66f02aa32f1e4adb9f24cf186f8c495399d5ce9b )
Co-authored-by: wim glenn <wim.glenn@gmail.com>
Miss Islington (bot) [Fri, 8 Jun 2018 10:22:40 +0000 (03:22 -0700)]
bpo-31215: Add version changed notes for OpenSSL 1.1.0 compatibility (GH-7346)
(cherry picked from commit
9ef1b0690b90c526798b6b3125b0fa7ae98319a2 )
Co-authored-by: Mayank Singhal <17mayank.singhal@gmail.com>
Miss Islington (bot) [Fri, 8 Jun 2018 08:48:50 +0000 (01:48 -0700)]
bpo-33694: Fix typo in helper function name (GH-7522)
_feed_data_to_bufferred_proto() renamed to
_feed_data_to_buffered_proto() ("bufferred" => "buffered").
Typo spotted by Nathaniel J. Smith.
(cherry picked from commit
ff6c07729211fb98431a2793e074d07a21e0650a )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Fri, 8 Jun 2018 06:47:12 +0000 (23:47 -0700)]
Update idlelib/NEWS.txt to 2018 Jun 8 am. (GH-7517)
(cherry picked from commit
b1f690294d9bf948d148df3ca0d20ca462d902b3 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 8 Jun 2018 05:50:36 +0000 (22:50 -0700)]
bpo-33768: IDLE: Clicking on code context line moves it to top of editor (GH-7411)
(cherry picked from commit
041272b657867f5bec925b19aabf23944125d49b )
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Miss Islington (bot) [Fri, 8 Jun 2018 02:51:28 +0000 (19:51 -0700)]
bpo-33791: Update README for macOS users (GH-7471)
(cherry picked from commit
ee994d7443a7e2809a5d49bd3679fc9c451a411b )
Co-authored-by: atg7000 <38963069+atg7000@users.noreply.github.com>
Miss Islington (bot) [Fri, 8 Jun 2018 01:31:50 +0000 (18:31 -0700)]
bpo-33792: Add selector and proactor windows policies (GH-7487)
(cherry picked from commit
8f4042964d5b0ddf5cdf87862db962ba64e3f64a )
Co-authored-by: Yury Selivanov <yury@magic.io>
Miss Islington (bot) [Fri, 8 Jun 2018 00:44:09 +0000 (17:44 -0700)]
bpo-33803: Fix a crash in hamt.c (GH-7504) (GH-7505)
(cherry picked from commit
378c53cc3187dba57c7560ccc2557f516c8a7bc8 )
Co-authored-by: Yury Selivanov <yury@magic.io>
Miss Islington (bot) [Fri, 8 Jun 2018 00:38:22 +0000 (17:38 -0700)]
bpo-33609: small wording fixes to dict ordering docs (#7497)
A few wording improvements to dict ordering documentation.
(cherry picked from commit
d3ed67d14ed401dfe2b5d07b6941adc3ecacb268 )
Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Miss Islington (bot) [Thu, 7 Jun 2018 23:30:19 +0000 (16:30 -0700)]
bpo-33642 and bpo-33679: Revise and condense blurbs (GH-7500)
(cherry picked from commit
bed523ba03c4525c9c79a6df700284b6c43024b3 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Thu, 7 Jun 2018 22:49:34 +0000 (15:49 -0700)]
bpo-33694: Fix race condition in asyncio proactor (GH-7498) (GH-7499)
The cancellation of an overlapped WSARecv() has a race condition
which causes data loss because of the current implementation of
proactor in asyncio.
No longer cancel overlapped WSARecv() in _ProactorReadPipeTransport
to work around the race condition.
Remove the optimized recv_into() implementation to get simple
implementation of pause_reading() using the single _pending_data
attribute.
Move _feed_data_to_bufferred_proto() to protocols.py.
Remove set_protocol() method which became useless.
(cherry picked from commit
79790bc35fe722a49977b52647f9b5fe1deda2b7 )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Thu, 7 Jun 2018 20:15:23 +0000 (13:15 -0700)]
bpo-33796: Ignore ClassVar for dataclasses.replace(). (GH-7488)
(cherry picked from commit
e7adf2ba41832404100313f9ac9d9f7fabedc1fd )
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Miss Islington (bot) [Thu, 7 Jun 2018 17:31:41 +0000 (10:31 -0700)]
Improve the subprocess restore_signals=True test. (GH-7414) (GH-7437)
It wasn't testing functionality. Now it is (on Linux anyways).
(cherry picked from commit
5f3d04fa4e9b3c3b0e4807f8516de9365bfed467 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Thu, 7 Jun 2018 14:50:33 +0000 (07:50 -0700)]
update 3.7 whatsnew entry about Unicode version (GH-7480)
Followup to
4705ea38c900f068fd262aca02943896d1123544 and bpo-33778.
(cherry picked from commit
34b734699b19d826f861b604dd77e82beed95f17 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Victor Stinner [Thu, 7 Jun 2018 14:19:00 +0000 (16:19 +0200)]
[3.7] bpo-33789: Backport test_asyncio fixes from master (GH-7478)
* bpo-33789: test_asyncio: Fix ResourceWarning (GH-7460)
* Close sockets and streams to fix ResourceWarning warnings
* Catch also OSError to hide a traceback on an expected handshake
error
(cherry picked from commit
0eba7c39132614a5730cda6b340e18dfb2d30d14 )
* bpo-33789, test_asyncio: Hide PendingDeprecationWarning (GH-7461)
Hide PendingDeprecationWarning in test__register_task_3().
(cherry picked from commit
7ed61e9431ee2c191aeeeb26f86a71bb90ab99fd )
* bpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() (GH-7462)
Fix "<CoroWrapper ...> was never yielded from" warning in
PyTask_PyFuture_Tests.test_error_in_call_soon() of
test_asyncio.test_tasks.
Close manually the coroutine on error.
(cherry picked from commit
9f04f0df6fdb27190690bda949d213893d14e807 )
Miss Islington (bot) [Thu, 7 Jun 2018 10:17:15 +0000 (03:17 -0700)]
bpo-17909: Document that json.load can accept a binary IO (GH-7366)
(cherry picked from commit
bb6366bd7570ff3b74bc66095540bea78f31504e )
Co-authored-by: Anthony Sottile <asottile@umich.edu>
Miss Islington (bot) [Thu, 7 Jun 2018 07:36:22 +0000 (00:36 -0700)]
update to Unicode 11.0.0 (closes bpo-33778) (GH-7439) (GH-7470)
Also, standardize indentation of generated tables.
(cherry picked from commit
7c69c1c0fba8c1c8ff3969bce4c1135736a4cc58 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Miss Islington (bot) [Thu, 7 Jun 2018 06:21:43 +0000 (23:21 -0700)]
bpo-30436: Add missing space in importlib.util.find_spec() error message (GH-7385)
(cherry picked from commit
fffeb6f3d66f1c844a9327ffe6e2ad8eae8aeb14 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Wed, 6 Jun 2018 17:05:46 +0000 (10:05 -0700)]
bpo-28240: timeit: Update repeat() doc (GH-7419) (GH-7457)
Document that the default value of repeat changed from 3 to 5 in
Python 3.7.
(cherry picked from commit
3ef769fcd378a7f1cda19c0dfec2e79613d79e48 )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Wed, 6 Jun 2018 15:57:20 +0000 (08:57 -0700)]
bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421)
Substract one because listdir() opens internally a file
descriptor to list the content of the /proc/self/fd/ directory.
Add test_support.test_fd_count().
Move also MAXFD code before msvcrt.CrtSetReportMode(), to make sure
that the report mode is always restored on failure.
(cherry picked from commit
492d6424a7ca907c8ec1df21e51062e8f3d88e32 )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Wed, 6 Jun 2018 14:33:05 +0000 (07:33 -0700)]
bpo-33781: audioop: enhance rounding double as int (GH-7447)
Move the floor() call into fbound() to call floor() on a double
rather than an int. The change should enhance the rounding.
Document also (int)double rounding mode.
(cherry picked from commit
45e4efba7fa2abe61d25e4f8b5bf482e19ff1280 )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Wed, 6 Jun 2018 05:56:31 +0000 (22:56 -0700)]
remove hg support from patchcheck (GH-7440)
(cherry picked from commit
b8c0845fee9277b1106ceecbf7592f8806c73ec8 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Miss Islington (bot) [Wed, 6 Jun 2018 00:12:06 +0000 (17:12 -0700)]
bpo-5755: Move -Wstrict-prototypes to CFLAGS_NODIST (GH-7395)
(cherry picked from commit
e33648484775fa533fc8f1e5cc45f60061d29d54 )
Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
Miss Islington (bot) [Tue, 5 Jun 2018 19:11:40 +0000 (12:11 -0700)]
bpo-33755: Fix importlib.resources isolation tests (GH-7412) (#7434)
(cherry picked from commit
ac1ee1badade69d5cd6d8b9112281f121183e7c0 )
Co-authored-by: Barry Warsaw <barry@python.org>
Miss Islington (bot) [Tue, 5 Jun 2018 17:50:53 +0000 (10:50 -0700)]
bpo-33751: Fix test_file. (GH-7378)
testModeStrings and testTruncateOnWindows were depended on
a file leaked in other tests.
Also improve cleaning up after tests.
(cherry picked from commit
c2745d2d05546d76f655ab450eb23d1af39e0b1c )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 5 Jun 2018 14:18:20 +0000 (07:18 -0700)]
bpo-33769: start_tls: Fix error message; cancel callbacks on error (GH-7403) (GH-7428)
In addition to that, mark SSLTransport as "closed" in its "abort()" method to prevent bogus warnings.
(cherry picked from commit
415bc46a78e785f357c8960ae70f18a6b6cccbb6 )
Co-authored-by: Yury Selivanov <yury@magic.io>
Miss Islington (bot) [Tue, 5 Jun 2018 13:50:56 +0000 (06:50 -0700)]
bpo-33752: Fix a file leak in test_dbm. (GH-7376)
With addCleanup() f.close() was executed after tearDown().
(cherry picked from commit
6592d7fe11477f8f974d2d4a85c3382a1ad05217 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 5 Jun 2018 13:21:04 +0000 (06:21 -0700)]
bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)
Raise TypeError instead of SystemError for unsupported operations.
(cherry picked from commit
e9e397605789b2a67b67558fbbe756b7b88934f5 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Tue, 5 Jun 2018 12:03:02 +0000 (05:03 -0700)]
bpo-32392: Document env keyword argument of subprocess.run() (GH-7289)
(cherry picked from commit
af1ec97a6d1dde68b2dc0ee9b78965eb219061a8 )
Co-authored-by: Tobias Kunze <r@rixx.de>
Miss Islington (bot) [Tue, 5 Jun 2018 10:13:28 +0000 (03:13 -0700)]
bpo-33753: Refactor creating temporary files in test_fileinput. (GH-7377)
(cherry picked from commit
5f48e2644dcfb47f0bbc0fcdc2b103a19bdec288 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 4 Jun 2018 22:25:12 +0000 (15:25 -0700)]
bpo-33609: Document dict insertion order guarantee as of 3.7 (GH-7093)
(cherry picked from commit
f822549653d8d09bffff5b7dcddfdf12679a787c )
Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
Miss Islington (bot) [Mon, 4 Jun 2018 20:41:49 +0000 (13:41 -0700)]
bpo-33720: Reduces maximum marshal recursion depth on release builds. (GH-7401)
(cherry picked from commit
2a4a62ba4ae770bbc7b7fdec0760031c83fe1f7b )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Miss Islington (bot) [Mon, 4 Jun 2018 17:31:07 +0000 (10:31 -0700)]
bpo-31849: Fix warning in pyhash.c (GH-6799)
(cherry picked from commit
a8eb58546b37a7cd5f332f019bb07388f5212c2d )
Co-authored-by: A. Jesse Jiryu Davis <jesse@emptysquare.net>
Miss Islington (bot) [Mon, 4 Jun 2018 17:25:37 +0000 (10:25 -0700)]
bpo-27902: Add compatibility note to Profile docs (GH-7295)
(cherry picked from commit
f7745e1dcb8e8473cc86112a0213b3f244a07230 )
Co-authored-by: Tobias Kunze <r@rixx.de>