Commit Graph

103675 Commits

Author SHA1 Message Date
Ned Deily 0814411ea6
Update macOS installer ReadMe for 3.7.7. (GH-18775) 2020-03-04 12:32:09 -05:00
Ned Deily 7daf398d8c
Post release updates 2020-03-04 05:01:39 -05:00
Ned Deily 93b7677f9c
3.7.7rc1 2020-03-04 02:37:27 -05:00
Miss Islington (bot) 12c45efe82
[3.7] bpo-39389: gzip: fix compression level metadata (GH-18077) (GH-18101)
* 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 eab3b3f1c6)

Co-authored-by: William Chargin <wchargin@gmail.com>
2020-03-04 02:06:19 -05:00
Ryan Rowe 3eff46fc7d
bpo-37953: Fix ForwardRef hash and equality checks (GH-15400) (GH-18751)
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>
2020-03-03 17:29:40 -05:00
Miss Islington (bot) f8f163c38f
Fix misleading statement about mixed-type numeric comparisons (GH-18615) (GH-18737)
(cherry picked from commit 9f1cb1bb49)

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2020-03-03 11:22:56 -05:00
Stefan Krah 852aee69f4
bpo-39776: Lock ++interp->tstate_next_unique_id (GH-18746)
- Threads created by PyGILState_Ensure() could have a duplicate tstate->id.

(cherry picked from commit b3b9ade4a3)
2020-03-03 09:19:58 +01:00
Miss Islington (bot) 72fff60d76
bpo-39778: Add clarification about tp_traverse and ownership (GH-18754)
Automerge-Triggered-By: @pablogsal
(cherry picked from commit 6df421fe87)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-03-02 19:03:56 -08:00
Pablo Galindo 499c926fbe
[3.7] bpo-39831: Fix a reference leak in PyErr_WarnEx(). (GH-18750). (GH-18760)
(cherry picked from commit 2d2f85517f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-03-03 01:13:24 +00:00
Steve Dower 8a5f7ad5e4
[3.7] bpo-38597: Never statically link extension initialization code on Windows (GH-18724) (GH-18759)
Automerge-Triggered-By: @zooba
2020-03-02 16:26:26 -08:00
Miss Islington (bot) 69ded3944c
bpo-39778: Don't traverse weak-reference lists OrderedDict's tp_traverse and 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 0c2b509f9d)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-03-02 15:53:03 -08:00
Miss Islington (bot) 7ca251bd85
bpo-38380: Update macOS & Windows builds to SQLite v3.31.1 (GH-18678)
Automerge-Triggered-By: @zooba
(cherry picked from commit 1382c3289b)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2020-03-02 07:02:08 -08:00
Miss Islington (bot) f4d709f4a3
bpo-38971: Open file in codecs.open() closes if exception raised. (GH-17666)
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 2565edec2c)

Co-authored-by: Chris A <christopher.aporta@gmail.com>
2020-03-02 00:02:16 -08:00
Miss Islington (bot) d3c2435089
bpo-39378: partial of PickleState struct should be traversed. (GH-18046)
(cherry picked from commit 1f577ce363)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
2020-03-01 22:46:59 -08:00
Gregory P. Smith 7c64726ced
[3.7] bpo-39769: Fix compileall ddir for subpkgs. (GH-18676) (GH-18718) (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 02673352b5, 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 ce720d3e06)

Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
2020-03-01 11:06:54 -08:00
Stefan Krah c4ca1f8f24
[3.7] bpo-39794: Add --without-decimal-contextvar (GH-18702)
* bpo-39794: Add --without-decimal-contextvar (#18702)

(cherry picked from commit 815280eb16)
2020-02-29 23:10:26 +01:00
Miss Islington (bot) cf347f3089
bpo-39548: Fix handling of 'WWW-Authenticate' header for Digest Auth (GH-18338)
* 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 5e260e0fde)

Co-authored-by: Stephen Balousek <sbalousek@users.noreply.github.com>
2020-02-29 12:49:20 -08:00
Miss Islington (bot) 5157506e04
bpo-13790: Change 'string' to 'specification' in format doc (GH-18690)
(cherry picked from commit 916895f939)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-02-28 12:04:19 -08:00
Miss Islington (bot) f4198aee4c
bpo-39781: Do not jump when select in IDLE codecontext (GH-18683)
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 c705fd1e89)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-02-28 10:41:17 -08:00
Steve Dower 3bf9de2fb9
bpo-39699: Don't silence make on Azure and Github CIs (GH-18583)
Doc tests remain disabled for 3.7

Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
2020-02-26 22:08:10 +00:00
Miss Islington (bot) 0ef328abe3
Doc: int -> int or Py_ssize_t (GH-18663)
(cherry picked from commit 57c7a0bdf4)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2020-02-25 22:10:17 -08:00
Miss Islington (bot) 55be9a6c09
bpo-30566: Fix IndexError when using punycode codec (GH-18632)
Trying to decode an invalid string with the punycode codec
shoud raise UnicodeError.

(cherry picked from commit ba22e8f174)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
2020-02-25 06:43:46 +03:00
Miss Islington (bot) e349e83826
Give proper credit for figuring out and writing PEP-3118 tests. (GH-18644) (#18645)
(cherry picked from commit b942ba03b8)

Authored-by: Stefan Krah <skrah@bytereef.org>
2020-02-24 12:44:40 +01:00
Miss Islington (bot) 3dc6961681
Give proper credits for the memoryview implementation. (GH-18626) (#18643)
(cherry picked from commit ee3bac4cba)

Authored-by: Stefan Krah <skrah@bytereef.org>
2020-02-24 11:51:40 +01:00
Miss Islington (bot) 097612a3f7
bpo-39649: Remove obsolete check for `__args__` in 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 4015d1cda3)

Co-authored-by: Daniel Hahler <git@thequod.de>
2020-02-23 19:32:50 -08:00
Miss Islington (bot) d57f99929a
bpo-39654: Update pyclbr doc to reflect additional information returned (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 aea045adb8)

Co-authored-by: Hakan Çelik <hakancelik96@outlook.com>
2020-02-23 18:07:50 -08:00
Pablo Galindo 333b9899fc
[3.7] bpo-39427: Document -X opt options in the CLI --help and the man page (GH-18131) (#18134)
https://bugs.python.org/issue39427

Automerge-Triggered-By: @pablogsal.
(cherry picked from commit 41f0ef6abb)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-02-23 20:48:30 +00:00
Miss Islington (bot) 24c570bbb8
bpo-39576: Clarify the word size for the 32-bit build. (GH-18616) (#18617)
(cherry picked from commit b76518d43f)

Authored-by: Stefan Krah <skrah@bytereef.org>
2020-02-23 14:42:57 +01:00
Miss Islington (bot) 36a120d343
bpo-17422: Language reference should specify restrictions on class namespace (GH-18559)
The language reference now specifies restrictions on class namespaces.  Adapted from a patch by Ethan Furman.
(cherry picked from commit fbe2e0bb8a)

Co-authored-by: ananthan-123 <ananthakrishnan15.2001@gmail.com>
2020-02-22 13:16:43 -08:00
Miss Islington (bot) 43a0137c87
bpo-39382: Avoid dangling object use in abstract_issubclass() (GH-18530)
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 1c56f8ffad)

Co-authored-by: Yonatan Goldschmidt <yon.goldschmidt@gmail.com>
2020-02-22 05:32:36 -08:00
Miss Islington (bot) 00e45877e3
bpo-39576: docs: set context for decimal arbitrary precision arithmetic (GH-18594) (#18596)
(cherry picked from commit a025d4ca99)

Authored-by: Stefan Krah <skrah@bytereef.org>
2020-02-21 21:36:02 +01:00
Miss Islington (bot) 50ce89071d
fix(doc): set correct RST syntax for c:function (GH-18589)
The current content is not rendered since the syntax is not correct.
(cherry picked from commit d4d17fd2cf)

Co-authored-by: Julien Danjou <julien@danjou.info>
2020-02-21 06:09:24 -08:00
Miss Islington (bot) 09db1da63f
bpo-38657: Clarify numeric padding behaviour in string formatting (GH-17036)
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 424e5686d8)

Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
2020-02-20 22:05:58 -08:00
Miss Islington (bot) c6f95543b4
bpo-39576: Prevent memory error for overly optimistic precisions (GH-18581) (#18585)
(cherry picked from commit 90930e6545)

Authored-by: Stefan Krah <skrah@bytereef.org>
2020-02-21 02:15:41 +01:00
Miss Islington (bot) 736e0eaf5b
Valgrind no longer supports --db-attach=yes. (GH-18568) (#18578)
(cherry picked from commit c0cb8beb38)

Co-authored-by: Stefan Krah <skrah@bytereef.org>

Co-authored-by: Stefan Krah <skrah@bytereef.org>
2020-02-20 19:54:37 +01:00
Miss Islington (bot) a3c2c5f15b
Use the new recommended number of repetitions in the refleak tests. (GH-18569) (#18575)
(cherry picked from commit 1246d89203)

Co-authored-by: Stefan Krah <skrah@bytereef.org>

Co-authored-by: Stefan Krah <skrah@bytereef.org>
2020-02-20 19:37:23 +01:00
Miss Islington (bot) 25749101ad
Update runall.bat to the latest Windows build system. (GH-18571) (#18572)
(cherry picked from commit 9b833e00e4)

Co-authored-by: Stefan Krah <skrah@bytereef.org>

Co-authored-by: Stefan Krah <skrah@bytereef.org>
2020-02-20 19:30:00 +01:00
Miss Islington (bot) fde0041089
bpo-39663: IDLE: Add additional tests for pyparse (GH-18536)
Test when find_good_parse_start should return 0.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit ffda25f6b8)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2020-02-17 19:05:14 -08:00
Miss Islington (bot) 3c57ca6999
[3.8] bpo-39453: Fix contains method of list to hold strong references (GH-18204)
(cherry picked from commit f64abd1056)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
2020-02-17 01:30:44 -08:00
Senthil Kumaran 505b6015a1
Revert "bpo-27657: Fix urlparse() with numeric paths (GH-661)" (#18526)
This reverts commit 82b5f6b16e.

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.
2020-02-16 13:07:25 -08:00
Miss Islington (bot) 46cf4fc8a5
bpo-39545: Document changes in the support of await in f-strings. (GH-18456)
https://bugs.python.org/issue39545
(cherry picked from commit f632736023)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-02-13 16:03:12 -08:00
Nathaniel J. Smith f464edf323
bpo-39606: allow closing async generators that are already closed (GH-18475) (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 925dc7fb1d)
2020-02-13 01:33:35 -08:00
Miss Islington (bot) ca133e53fa
bpo-21016: pydoc and trace use sysconfig (GH-18476)
bpo-21016, bpo-1294959: The pydoc and trace modules now use the
sysconfig module to get the path to the Python standard library, to
support uncommon installation path like /usr/lib64/python3.9/ on
Fedora.

Co-Authored-By: Jan Matějek <jmatejek@suse.com>
(cherry picked from commit 4fac7ed43e)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-02-12 04:32:46 -08:00
Miss Islington (bot) a933f74aba
docs: macos - change "versiona" to "versions" (GH-18467) (GH-18470)
(cherry picked from commit 029e8401b7)

Co-authored-by: @RandyMcMillan <randy.lee.mcmillan@gmail.com>
2020-02-11 20:40:39 -05:00
Miss Islington (bot) fcfc3c8fbe
bpo-38374: Remove weakref.ReferenceError from docs (GH-18452)
Reflecting changes to the code, removed weakref.ReferenceError from weakref.rst and exceptions.rst.

Issue submitter provided evidence that the `weakref.ReferenceError` alias for `ReferenceError` was removed from the code in 2007.  Working with @gvanrossum at PyCascades CPython sprint we looked at the code and confirmed that `weakref.ReferenceError` was no longer in `weakref.py`.

Based on that analysis I removed references `weakref.ReferenceError` from the two documents where it was still being referenced: `weakref.rst` and `exceptions.rst`.

https://bugs.python.org/issue38374
(cherry picked from commit 4eb9f4313c)

Co-authored-by: Roger Hurwitz <rogerhurwitz@gmail.com>
2020-02-10 23:01:23 -08:00
Miss Islington (bot) 32c88407d2
bpo-39600: Adjust code, add idlelib/NEWS item (GH-18449)
Complete previous patch.
(cherry picked from commit 96ce227067)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-02-10 17:28:03 -08:00
Miss Islington (bot) 78982f94fa
bpo-13826: Clarify Popen constructor example (GH-18438)
Clarifies that the use of `shlex.split` is more instructive than
normative, and provides a simpler example.

https://bugs.python.org/issue13826
(cherry picked from commit 95d024d585)

Co-authored-by: Tim D. Smith <github@tim-smith.us>
2020-02-10 14:56:14 -08:00
Miss Islington (bot) a12effde34
bpo-39594: Fix typo in os.times documentation (GH-18443)
There was an extra space in the url markup, causing the documentation not rendered properly.

https://bugs.python.org/issue39594
(cherry picked from commit 37c55b2b49)

Co-authored-by: Roger Hurwitz <rogerhurwitz@gmail.com>
2020-02-10 14:55:35 -08:00
Miss Islington (bot) 1365736832
Improve grammar in the import system reference documentation (GH-18209)
Replaced the period with a comma.

Automerge-Triggered-By: @Mariatta
(cherry picked from commit d47d0c8e9f)

Co-authored-by: Bonifacio de Oliveira <bonifacio.segundo@gmail.com>
2020-02-10 14:36:58 -08:00
Miss Islington (bot) 2e8097d1c7
bpo-39600, IDLE: Remove duplicated font names (GH-18430)
In the font configuration window, remove duplicated font names.
(cherry picked from commit ed335cf53b)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-02-10 13:39:43 -08:00