summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 3.7.7v3.7.7Ned Deily2020-03-106-12/+26
|
* fix typo: add space (GH-18853)Miss Islington (bot)2020-03-101-2/+2
| | | | | | | Fix typo in cmdline.rst Add space between the `-m` option and the module name (`timeit`). (cherry picked from commit c580981ba01c4d9f721dbdd88208ba37704e0217) Co-authored-by: Julin S <48789920+ju-sh@users.noreply.github.com>
* bpo-39837: Disable macOS tests on Azure Pipelines (GH-18818)Miss Islington (bot)2020-03-102-2/+6
| | | | | (cherry picked from commit 31350f9af09dcff7cf6ff4b0a0a7ea595942372e) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-17422: slightly more precise language (GH-18682)Miss Islington (bot)2020-03-102-1/+3
| | | | | (cherry picked from commit e59334ebc9308b0f3ad048ef293c6b49e6456d1a) Co-authored-by: Caleb Donovick <cdonovick@users.noreply.github.com>
* IDLE doc: improve Startup failure subsection. (GH-18771)Miss Islington (bot)2020-03-101-7/+10
| | | | | | | | Eliminate repeat of 'Options', reported by Jules Lasne, and improve wording elsewhere. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit ce305d641074931e4e790f7a83e28f74910644e5) Co-authored-by: Jules Lasne (jlasne) <jules.lasne@gmail.com>
* bpo-13487: Use sys.modules.copy() in inspect.getmodule() for thread safety. ↵Miss Islington (bot)2020-03-102-1/+4
| | | | | | | | | | | (GH-18786) `list(sys.modules.items())` was apparently not immune to "dictionary changed size during iteration" errors. Tested internally using an integration test that has run into this a couple of times in the past two years. With this patch applied, the test is no longer flaky. (cherry picked from commit 85cf1d514b84dc9a4bcb40e20a12e1d82ff19f20) Co-authored-by: Gregory P. Smith <gps@google.com>
* [3.7] bpo-39808: Improve docs for pathlib.Path.stat() (GH-18719) (GH-18782)Miss Islington (bot)2020-03-101-1/+1
| | | | | | | | (cherry picked from commit 67152d0ed670227b61b5df683655b196ab04ca1a) Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com> Automerge-Triggered-By: @brettcannon
* Allow python_uwp.vcxproj to build with toolset v142 if present (GH-18777)Steve Dower2020-03-102-0/+2
|
* Update macOS installer ReadMe for 3.7.7. (GH-18775)Ned Deily2020-03-101-21/+12
|
* Post release updatesNed Deily2020-03-102-3/+3
|
* 3.7.7rc1v3.7.7rc1Ned Deily2020-03-0470-151/+696
|
* [3.7] bpo-39389: gzip: fix compression level metadata (GH-18077) (GH-18101)Miss Islington (bot)2020-03-043-3/+36
| | | | | | | | | | | | * bpo-39389: gzip: fix compression level metadata (GH-18077) As described in RFC 1952, section 2.3.1, the XFL (eXtra FLags) byte of a gzip member header should indicate whether the DEFLATE algorithm was tuned for speed or compression ratio. Prior to this patch, archives emitted by the `gzip` module always indicated maximum compression. (cherry picked from commit eab3b3f1c60afecfb4db3c3619109684cb04bd60) Co-authored-by: William Chargin <wchargin@gmail.com>
* bpo-37953: Fix ForwardRef hash and equality checks (GH-15400) (GH-18751)Ryan Rowe2020-03-033-3/+123
| | | | | | | | | Ideally if we stick a ForwardRef in a dictionary we would like to reliably be able to get it out again. https://bugs.python.org/issue37953 (cherry picked from commit e082e7c) Co-authored-by: plokmijnuhby <39633434+plokmijnuhby@users.noreply.github.com>
* Fix misleading statement about mixed-type numeric comparisons (GH-18615) ↵Miss Islington (bot)2020-03-032-2/+5
| | | | | | | | (GH-18737) (cherry picked from commit 9f1cb1bb49476246de5d9ed5fe680301cf7f7571) Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
* bpo-39776: Lock ++interp->tstate_next_unique_id (GH-18746)Stefan Krah2020-03-032-1/+7
| | | | | - Threads created by PyGILState_Ensure() could have a duplicate tstate->id. (cherry picked from commit b3b9ade4a3d3fe00d933bcd8fc5c5c755d1024f9)
* bpo-39778: Add clarification about tp_traverse and ownership (GH-18754)Miss Islington (bot)2020-03-031-1/+13
| | | | | | Automerge-Triggered-By: @pablogsal (cherry picked from commit 6df421fe87a9418d6c59f89dbc5d5573b6826855) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* [3.7] bpo-39831: Fix a reference leak in PyErr_WarnEx(). (GH-18750). (GH-18760)Pablo Galindo2020-03-031-1/+2
| | | | | (cherry picked from commit 2d2f85517f8216146a2f888d1ad4d765b3be2339) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.7] bpo-38597: Never statically link extension initialization code on ↵Steve Dower2020-03-034-99/+13
| | | | | Windows (GH-18724) (GH-18759) Automerge-Triggered-By: @zooba
* bpo-39778: Don't traverse weak-reference lists OrderedDict's tp_traverse and ↵Miss Islington (bot)2020-03-023-2/+22
| | | | | | | | | tp_clear (GH-18749) Objects do not own weak references to them directly through the __weakref__ list so these do not need to be traversed by the GC. (cherry picked from commit 0c2b509f9d1d3a9065bc62c2407e1dc2ed70e9c2) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-38380: Update macOS & Windows builds to SQLite v3.31.1 (GH-18678)Miss Islington (bot)2020-03-026-6/+8
| | | | | | Automerge-Triggered-By: @zooba (cherry picked from commit 1382c3289bcfd34ac6811fdf9aa5bc09ca8c320e) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-38971: Open file in codecs.open() closes if exception raised. (GH-17666)Miss Islington (bot)2020-03-023-5/+22
| | | | | | | | Open issue in the BPO indicated a desire to make the implementation of codecs.open() at parity with io.open(), which implements a try/except to assure file stream gets closed before an exception is raised. (cherry picked from commit 2565edec2c974b2acca03b4cc5025e83f903ddd7) Co-authored-by: Chris A <christopher.aporta@gmail.com>
* bpo-39378: partial of PickleState struct should be traversed. (GH-18046)Miss Islington (bot)2020-03-021-0/+1
| | | | | (cherry picked from commit 1f577ce363121d590b51abf5c41d1bcf3d751436) Co-authored-by: Hai Shi <shihai1992@gmail.com>
* [3.7] bpo-39769: Fix compileall ddir for subpkgs. (GH-18676) (GH-18718) ↵Gregory P. Smith2020-03-014-12/+73
| | | | | | | | | | | | | | | | | | | | | | (GH-18725) Fix compileall.compile_dir() ddir= behavior on sub-packages. Fixes compileall.compile_dir's ddir parameter and compileall command line flag `-d` to no longer write the wrong pathname to the generated pyc file for submodules beneath the root of the directory tree being compiled. This fixes a regression introduced with Python 3.5. Tests backported from GH 02673352b5db6ca4d3dc804965facbedfe66425d, the implementation is different due to intervening code changes. But still quiet simple. Why was the bug ever introduced? The refactoring to add parallel execution kept the ddir -> dfile computations but discarded the results instead of sending them to compile_file(). This fixes that. Lack of tests meant this went unnoticed.. (cherry picked from commit ce720d3e0674d6ac6f1b950c20a89be4cfde7853) Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
* [3.7] bpo-39794: Add --without-decimal-contextvar (GH-18702)Stefan Krah2020-02-2911-37/+249
| | | | | | | * bpo-39794: Add --without-decimal-contextvar (#18702) (cherry picked from commit 815280eb160af637e1347213659f9236adf78f80)
* bpo-39548: Fix handling of 'WWW-Authenticate' header for Digest Auth (GH-18338)Miss Islington (bot)2020-02-292-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | * bpo-39548: Fix handling of 'WWW-Authenticate' header for Digest authentication - The 'qop' value in the 'WWW-Authenticate' header is optional. The presence of 'qop' in the header should be checked before its value is parsed with 'split'. Signed-off-by: Stephen Balousek <stephen@balousek.net> * bpo-39548: Fix handling of 'WWW-Authenticate' header for Digest authentication - Add NEWS item Signed-off-by: Stephen Balousek <stephen@balousek.net> * Update Misc/NEWS.d/next/Library/2020-02-06-05-33-52.bpo-39548.DF4FFe.rst Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com> Co-authored-by: Brandt Bucher <brandtbucher@gmail.com> (cherry picked from commit 5e260e0fde211829fcb67060cfd602f4b679f802) Co-authored-by: Stephen Balousek <sbalousek@users.noreply.github.com>
* bpo-13790: Change 'string' to 'specification' in format doc (GH-18690)Miss Islington (bot)2020-02-282-2/+3
| | | | | (cherry picked from commit 916895f93905f8b8dad677cceff501833f5a633a) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-39781: Do not jump when select in IDLE codecontext (GH-18683)Miss Islington (bot)2020-02-284-19/+36
| | | | | | | Previously, the button-up part of selecting with a mouse was treated as a click that meant 'jump' to this line, which modified the context and undid the selection (cherry picked from commit c705fd1e89ccb8f6d414ec817b4616546147d877) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-39699: Don't silence make on Azure and Github CIs (GH-18583)Steve Dower2020-02-265-14/+14
| | | | | | Doc tests remain disabled for 3.7 Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
* Doc: int -> int or Py_ssize_t (GH-18663)Miss Islington (bot)2020-02-261-11/+11
| | | | | (cherry picked from commit 57c7a0bdf4f7da8cf47f797f075950f6b8c98b99) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* bpo-30566: Fix IndexError when using punycode codec (GH-18632)Miss Islington (bot)2020-02-253-1/+15
| | | | | | | | | Trying to decode an invalid string with the punycode codec shoud raise UnicodeError. (cherry picked from commit ba22e8f174309979d90047c5dc64fcb63bc2c32e) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
* Give proper credit for figuring out and writing PEP-3118 tests. (GH-18644) ↵Miss Islington (bot)2020-02-241-0/+2
| | | | | | | (#18645) (cherry picked from commit b942ba03b8530f26240d4e36567d2ff42d701420) Authored-by: Stefan Krah <skrah@bytereef.org>
* Give proper credits for the memoryview implementation. (GH-18626) (#18643)Miss Islington (bot)2020-02-241-1/+11
| | | | | | (cherry picked from commit ee3bac4cba56b51ce924f13d77b97131eec1a865) Authored-by: Stefan Krah <skrah@bytereef.org>
* bpo-39649: Remove obsolete check for `__args__` in ↵Miss Islington (bot)2020-02-242-8/+2
| | | | | | | | | | bdb.Bdb.format_stack_entry (GH-18531) Appears to be obsolete since 75bb54c3d8. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 4015d1cda3cdba869103779eb6ff32ad798ff885) Co-authored-by: Daniel Hahler <git@thequod.de>
* bpo-39654: Update pyclbr doc to reflect additional information returned ↵Miss Islington (bot)2020-02-242-3/+8
| | | | | | | | | | | (GH-18528) Full nested function and class info makes it a module browser. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit aea045adb8c90394264908670cbc495c5a41b65e) Co-authored-by: Hakan Çelik <hakancelik96@outlook.com>
* [3.7] bpo-39427: Document -X opt options in the CLI --help and the man page ↵Pablo Galindo2020-02-233-2/+67
| | | | | | | | | | (GH-18131) (#18134) https://bugs.python.org/issue39427 Automerge-Triggered-By: @pablogsal. (cherry picked from commit 41f0ef6abbd304409c55612a08788cdd59fbc8a3) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-39576: Clarify the word size for the 32-bit build. (GH-18616) (#18617)Miss Islington (bot)2020-02-231-2/+2
| | | | | | | (cherry picked from commit b76518d43fb82ed9e5d27025d18c90a23d525c90) Authored-by: Stefan Krah <skrah@bytereef.org>
* bpo-17422: Language reference should specify restrictions on class namespace ↵Miss Islington (bot)2020-02-222-2/+5
| | | | | | | | (GH-18559) The language reference now specifies restrictions on class namespaces. Adapted from a patch by Ethan Furman. (cherry picked from commit fbe2e0bb8a7ee75d0f9d57682436dac7d69e202e) Co-authored-by: ananthan-123 <ananthakrishnan15.2001@gmail.com>
* bpo-39382: Avoid dangling object use in abstract_issubclass() (GH-18530)Miss Islington (bot)2020-02-224-3/+34
| | | | | | | Hold reference of __bases__ tuple until tuple item is done with, because by dropping the reference the item may be destroyed. (cherry picked from commit 1c56f8ffad44478b4214a2bf8eb7cf51c28a347a) Co-authored-by: Yonatan Goldschmidt <yon.goldschmidt@gmail.com>
* bpo-39576: docs: set context for decimal arbitrary precision arithmetic ↵Miss Islington (bot)2020-02-211-8/+58
| | | | | | | (GH-18594) (#18596) (cherry picked from commit a025d4ca99fb4c652465368e0b4eb03cf4b316b9) Authored-by: Stefan Krah <skrah@bytereef.org>
* fix(doc): set correct RST syntax for c:function (GH-18589)Miss Islington (bot)2020-02-211-2/+2
| | | | | | The current content is not rendered since the syntax is not correct. (cherry picked from commit d4d17fd2cf69e7c8f4cd03fbf2d575370945b952) Co-authored-by: Julien Danjou <julien@danjou.info>
* bpo-38657: Clarify numeric padding behaviour in string formatting (GH-17036)Miss Islington (bot)2020-02-211-2/+3
| | | | | | | | | | | Make the definition of the width more explicit that it includes any extra signs added by other options. https://bugs.python.org/issue38657 Automerge-Triggered-By: @Mariatta (cherry picked from commit 424e5686d82235e08f8108b8bbe034bc91421689) Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
* bpo-39576: Prevent memory error for overly optimistic precisions (GH-18581) ↵Miss Islington (bot)2020-02-213-6/+245
| | | | | | | | (#18585) (cherry picked from commit 90930e65455f60216f09d175586139242dbba260) Authored-by: Stefan Krah <skrah@bytereef.org>
* Valgrind no longer supports --db-attach=yes. (GH-18568) (#18578)Miss Islington (bot)2020-02-201-1/+1
| | | | | | | | (cherry picked from commit c0cb8beb389da3ba67ad31b1ecc95e100b6292ab) Co-authored-by: Stefan Krah <skrah@bytereef.org> Co-authored-by: Stefan Krah <skrah@bytereef.org>
* Use the new recommended number of repetitions in the refleak tests. ↵Miss Islington (bot)2020-02-201-1/+1
| | | | | | | | | | (GH-18569) (#18575) (cherry picked from commit 1246d892038a693304549f8574e6c2784b91589a) Co-authored-by: Stefan Krah <skrah@bytereef.org> Co-authored-by: Stefan Krah <skrah@bytereef.org>
* Update runall.bat to the latest Windows build system. (GH-18571) (#18572)Miss Islington (bot)2020-02-201-41/+59
| | | | | | | | (cherry picked from commit 9b833e00e447a3b8b6966686bff701f549c66263) Co-authored-by: Stefan Krah <skrah@bytereef.org> Co-authored-by: Stefan Krah <skrah@bytereef.org>
* bpo-39663: IDLE: Add additional tests for pyparse (GH-18536)Miss Islington (bot)2020-02-183-2/+17
| | | | | | | | Test when find_good_parse_start should return 0. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit ffda25f6b825f3dee493b6f0746266a4dd6989f0) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* [3.8] bpo-39453: Fix contains method of list to hold strong references ↵Miss Islington (bot)2020-02-173-3/+16
| | | | | | | (GH-18204) (cherry picked from commit f64abd10563c25a94011f9e3335fd8a1cf47c205) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* Revert "bpo-27657: Fix urlparse() with numeric paths (GH-661)" (#18526)Senthil Kumaran2020-02-163-7/+30
| | | | | | | | | | | | | | | | | | | | | This reverts commit 82b5f6b16e051f8a2ac6e87ba86b082fa1c4a77f. The change broke the backwards compatibility of parsing behavior in a patch release of Python (3.7.6). A decision was taken to revert this patch in 3.7.7. In https://bugs.python.org/issue27657 it was decided that the previous behavior like >>> urlparse('localhost:8080') ParseResult(scheme='', netloc='', path='localhost:8080', params='', query='', fragment='') >>> urlparse('undefined:8080') ParseResult(scheme='', netloc='', path='undefined:8080', params='', query='', fragment='') needs to be preserved in patch releases as number of users rely upon it. Explicitly mention the releases involved with the revert in NEWS. Adopt the wording suggested by @ned-deily.
* bpo-39545: Document changes in the support of await in f-strings. (GH-18456)Miss Islington (bot)2020-02-142-0/+10
| | | | | | https://bugs.python.org/issue39545 (cherry picked from commit f632736023502816f2e6bd714d1b48c81aa2ccc1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-39606: allow closing async generators that are already closed (GH-18475) ↵Nathaniel J. Smith2020-02-133-4/+39
| | | | | | | | | | | | | | | | (GH-18502) The fix for [bpo-39386](https://bugs.python.org/issue39386) attempted to make it so you couldn't reuse a agen.aclose() coroutine object. It accidentally also prevented you from calling aclose() at all on an async generator that was already closed or exhausted. This commit fixes it so we're only blocking the actually illegal cases, while allowing the legal cases. The new tests failed before this patch. Also confirmed that this fixes the test failures we were seeing in Trio with Python dev builds: https://github.com/python-trio/trio/pull/1396 https://bugs.python.org/issue39606 (cherry picked from commit 925dc7fb1d0db85dc137afa4cd14211bf0d67414)