summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 3.7.0 finalv3.7.0Ned Deily2018-06-2755-2578/+9671
|
* Sync the importlib magic number in test_importlib for 3.7.0Ned Deily2018-06-271-1/+1
|
* bpo-29514: Make magic number test work for candidatesNed Deily2018-06-271-1/+1
|
* bpo-33932: Calling Py_Initialize() twice does nothing (GH-7845)Miss Islington (bot)2018-06-274-0/+30
| | | | | | | Calling Py_Initialize() twice does nothing, instead of failing with a fatal error: restore the Python 3.6 behaviour. (cherry picked from commit 209abf746985526bce255e2fba97d3246924885d) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-33851: Fix ast.get_docstring() for a node that lacks a docstring. (GH-7682)Miss Islington (bot)2018-06-263-2/+34
| | | | | (cherry picked from commit 08f127a3cad8ce4eb281d30d9488c91b0fd7cfed) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Fix nested list in 3.7 What's New (GH-7659) (GH-7660)Miss Islington (bot)2018-06-261-0/+1
| | | | | (cherry picked from commit 5a9820918077a65db90f24733edc8935c3e2130e) Co-authored-by: Ned Deily <nad@python.org>
* 3.7.0rc1v3.7.0rc1Ned Deily2018-06-1232-64/+312
|
* bpo-25612: Add minimal What's New in 3.7 entry (GH-7656) (GH-7658)Miss Islington (bot)2018-06-121-0/+5
| | | | | (cherry picked from commit 04290cb9945eca1a97f6924495256c15f29fab41) Co-authored-by: Ned Deily <nad@python.org>
* bpo-33582: Remove duplicate space in inspect.formatargspec() deprecation ↵Miss Islington (bot)2018-06-121-1/+1
| | | | | | | warning (GH-7655) (GH-7657) (cherry picked from commit 41254ebd5e4f40a2e095d8aaea60bf3973de4647) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* Update macOS installer Welcome and ReadMe files for 3.7.0. (GH-7653)Miss Islington (bot)2018-06-122-18/+8
| | | | | (cherry picked from commit 378edcd0006ce61f9255e7aeaa8755441225a380) Co-authored-by: Ned Deily <nad@python.org>
* bpo-31432: Revert unrelated code changes to _ssl.c and test_ssl (GH-7650) ↵Miss Islington (bot)2018-06-122-5/+3
| | | | | | | (GH-7651) (cherry picked from commit 4531ec74c4a9c8e15ee2bdec11b12796ce000f6f) Co-authored-by: Ned Deily <nad@python.org>
* bpo-31432: Clarify ssl CERT_NONE/OPTIONAL/REQUIRED docs. (GH-3530) (GH-7649)Miss Islington (bot)2018-06-114-16/+32
| | | | | | | | | | | 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>
* bpo-33656: Mention color in idlelib/NEWS.txt entry. (GH-7646) (GH-7647)Miss Islington (bot)2018-06-111-4/+5
| | | | | (cherry picked from commit 4b704f29f5a0b6f6d7bd67468ed004bd3a96855d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33582: Emit deprecation warning for `formatargspec` (GH-6994)Miss Islington (bot)2018-06-113-6/+21
| | | | | (cherry picked from commit 46c5cd0f6e22bdfbdd3f0b18f1d01eda754e7e11) Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
* bpo-33656: Add enum name for argument of Windows call. (GH-7642)Miss Islington (bot)2018-06-111-1/+4
| | | | | | 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>
* bpo-33656: Add entry to What's New 3.7. (GH-7638)Miss Islington (bot)2018-06-111-0/+6
| | | | | | 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>
* bpo-33656: On Windows, add API call saying that tk scales for DPI (GH-7137)Miss Islington (bot)2018-06-115-3/+30
| | | | | | | | | | | | | | 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>
* bpo-33831: Make htmlview run again (GH-7628)Miss Islington (bot)2018-06-111-1/+1
| | | | | (cherry picked from commit 0e5f901508dea6437dc9ee89b434feca721d45be) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-30820: Remove incorrect docs for email.contentmanager.raw_data_manager ↵Miss Islington (bot)2018-06-111-9/+0
| | | | | | | | | (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>
* bpo-23404: Update/sync What's New files for 3.6/3.5/2.7 (GH-7620) (GH-7621)Miss Islington (bot)2018-06-113-0/+268
| | | | | (cherry picked from commit 9d6171ded5c56679bc295bacffc718472bcb706b) Co-authored-by: Ned Deily <nad@python.org>
* pypi.python.org -> pypi.org (GH-7613) (GH-7614)Miss Islington (bot)2018-06-115-6/+6
| | | | | (cherry picked from commit 9d6d06e8065d45f375f4a80e2d7e13b032da1f5b) Co-authored-by: Ned Deily <nad@python.org>
* bpo-33745: Add What's New for empty function docstring change. (GH-7611)Miss Islington (bot)2018-06-111-0/+5
| | | | | (cherry picked from commit 12c6cdf4d16078aa09de32a39193c8161177b39d) Co-authored-by: Ned Deily <nad@python.org>
* bpo-33109: Remove now-obsolete What's New entry for bpo-26510. (GH-7609) ↵Miss Islington (bot)2018-06-111-6/+0
| | | | | | | (GH-7610) (cherry picked from commit ef057bfb06cae0718e6d708061649d2e3983e2ef) Co-authored-by: Ned Deily <nad@python.org>
* bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. (GH-6731) ↵Miss Islington (bot)2018-06-113-2/+4
| | | | | | | | (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>
* bpo-33812: Corrected astimezone for naive datetimes. (GH-7578) (GH-7600)Miss Islington (bot)2018-06-105-14/+36
| | | | | | | | | | | | | | | | | | | | | 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>
* bpo-33748: fix tests altering sys.path and sys.modules (GH-7433) (#7604)Miss Islington (bot)2018-06-101-19/+20
| | | | | (cherry picked from commit 4ab4695388fb9ec03a14d93e90ce50d832a920ec) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-33770: improve base64 exception message for encoded inputs of invalid ↵Miss Islington (bot)2018-06-103-1/+41
| | | | | | | length (GH-7416) (GH-7602) (cherry picked from commit 1b85c71a2136d3fa6a1da05b27b1fe4e4b8ee45e) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-33610: Update IDLE Code Context doc entry (GH-7597)Miss Islington (bot)2018-06-102-203/+208
| | | | | | Users can now click on context lines. (cherry picked from commit af4b0130d44bf8a1ff4f7b46195d1dc79add444a) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33820: Fix IDLE What's New typo (GH-7594)Miss Islington (bot)2018-06-101-1/+1
| | | | | (cherry picked from commit 820c53ac612e9c4b3cb3e831537a15d5e953bbc0) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Fix spaces added after hyphens in news entries. (GH-7579) (GH-7582)Miss Islington (bot)2018-06-105-7/+7
| | | | | | Seems they were added by double applying blurb. (cherry picked from commit 98a0e466cd94d4635769cfdfd397c43c07384595) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-33821: Update idlelib subsection of What's New 3.7 (GH-7590)Miss Islington (bot)2018-06-101-2/+10
| | | | | (cherry picked from commit 222f7f40339238b3d2c803849c75e682725449d7) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33820: Update idlelib subsection of What's New 3.6 (GH-7589)Miss Islington (bot)2018-06-101-0/+37
| | | | | (cherry picked from commit e226eb71575ad22a6779b02941377665831cfff2) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Remove hyphens from phrase "picks up where it left off" (GH-7410)Miss Islington (bot)2018-06-101-3/+3
| | | | | (cherry picked from commit d689f976199d2e211a97d526b57cfa9871cc578d) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* Fix typo in object.__getnewargs__() documentation (GH-7554)Miss Islington (bot)2018-06-101-1/+1
| | | | | (cherry picked from commit 0e0534c4024c181aa47a300142c59eeeee71db46) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-33766: Document that end of file or string is a newline (GH-7383)Miss Islington (bot)2018-06-101-5/+6
| | | | | (cherry picked from commit 0aa17ee6a76df0946d42e7657a501f1862065a22) Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
* doc: Fix typo in asyncio-eventloop.rst (GH-7345)Miss Islington (bot)2018-06-091-2/+2
| | | | | | This is a fixup to 19a44f63c738388ef3c8515348b4ffc061dfd627 (cherry picked from commit 7e0d882a98169e6d8d1507224b83ff0264c2afee) Co-authored-by: MarcoFalke <falke.marco@gmail.com>
* bpo-32493: Correct test for uuid_enc_be availability in configure.ac. (GH-7511)Michael Felt2018-06-093-6/+4
|
* bpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521)Miss Islington (bot)2018-06-092-7/+44
| | | | | | | | | 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>
* bpo-33409: Clarify PEP 538/540 relationship (GH-7534)Miss Islington (bot)2018-06-093-24/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Datetime test coverage (GH-7544) (GH-7551)Miss Islington (bot)2018-06-091-3/+9
| | | | | | | | | | | | | | | | * 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>
* bpo-30805: Avoid race condition with debug logging (GH-7545)Miss Islington (bot)2018-06-082-2/+5
| | | | | | Supersedes https://github.com/python/cpython/pull/2490 (cherry picked from commit 12f482e0ae33021c04264294f33fa6baa9617cec) Co-authored-by: Yury Selivanov <yury@magic.io>
* bpo-33801: Remove non-ordered dict comment from plistlib doc (GH-7495) (GH-7546)Miss Islington (bot)2018-06-081-3/+1
| | | | | (cherry picked from commit 1cbdb2208aa309cf288ee0b53f0ecd85279bb934) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-33800: Fix default argument for parameter dict_type of ↵Miss Islington (bot)2018-06-081-2/+9
| | | | | | | ConfigParser/RawConfigParser (GH-7494) (GH-7542) (cherry picked from commit 3b0b90c8c3b8161f0ae9005b83b9b6449d4a8476) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* [3.7] Update version in '.github/PULL_REQUEST_TEMPLATE.md' (GH-7537)Suriyaa ✌️️2018-06-081-1/+1
|
* bpo-33799: Remove non-ordered dicts comments from FAQ (GH-7520)Miss Islington (bot)2018-06-082-10/+1
| | | | | (cherry picked from commit 396ecb9c3e7fb150eace7bfc733d5b9d0263d697) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-33807: Add Python 3.7 buildbot link to '.github/CONTRIBUTING.rst' (GH-7532)Miss Islington (bot)2018-06-081-0/+4
| | | | | (cherry picked from commit 9e6685ea7b749ee34466e71b22d99e5112d71a95) Co-authored-by: Suriyaa ✌️️ <isc.suriyaa@gmail.com>
* bpo-33736: Improve the documentation of asyncio stream APIs (GH-7326)Miss Islington (bot)2018-06-084-35/+75
| | | | | (cherry picked from commit c0d062f523b16331444ff910e4596ee5608c8170) Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
* bpo-33802: Do not interpolate in ConfigParser while reading defaults (GH-7524)Miss Islington (bot)2018-06-082-2/+53
| | | | | | 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>
* bpo-33798: Update csv document about dict order (GH-7490)Miss Islington (bot)2018-06-081-3/+1
| | | | | (cherry picked from commit 6860629d87d0f6728ff7430453d4900b695adf7b) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)Miss Islington (bot)2018-06-083-10/+40
| | | | | | | | - 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>