]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 years ago[3.9] bpo-41520: Fix second codeop regression (GH-21848)
Miss Islington (bot) [Thu, 13 Aug 2020 18:38:55 +0000 (11:38 -0700)] 
[3.9] bpo-41520: Fix second codeop regression (GH-21848)

Fix the repression introduced by the initial regression fix.

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

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-41520: codeop no longer ignores SyntaxWarning (GH-21838)
Miss Islington (bot) [Wed, 12 Aug 2020 13:12:05 +0000 (06:12 -0700)] 
bpo-41520: codeop no longer ignores SyntaxWarning (GH-21838)

(cherry picked from commit 369a1cbdee14d9f27356fb3a8bb21e4fde289d25)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-41475: Fix note in "What's new in 3.7" (GH-21733) (GH-21833)
Miss Islington (bot) [Wed, 12 Aug 2020 10:38:37 +0000 (03:38 -0700)] 
bpo-41475: Fix note in "What's new in 3.7" (GH-21733) (GH-21833)

(cherry picked from commit 76643c10ede2813ca921464fe839e81caee21a84)

Co-authored-by: Ram Rachum <ram@rachum.com>
5 years ago[3.8] bpo-41504: Add links to asttokens, leoAst, LibCST and parso to ast docs (GH...
Miss Islington (bot) [Tue, 11 Aug 2020 14:45:25 +0000 (07:45 -0700)] 
[3.8] bpo-41504: Add links to asttokens, leoAst, LibCST and parso to ast docs (GH-21773) (GH-21829)

(cherry picked from commit e3c971ccfa58afcb2656b71b95e10b9703f2ad32)

Co-authored-by: Edward K. Ream <edreamleo@gmail.com>
https://bugs.python.org/issue41504

5 years agobpo-40548: Fix "Check for source changes (pull_request)" GH Action job (GH-21806)
Miss Islington (bot) [Mon, 10 Aug 2020 17:06:11 +0000 (10:06 -0700)] 
bpo-40548: Fix "Check for source changes (pull_request)" GH Action job (GH-21806)

On Git 2.28, "git diff master..." (3 dots) no longer works when
"fetch --depth=1" is used, whereas it works on Git 2.26.

Replace "..." (3 dots) with ".." (2 dots) in the "git diff" command
computing the list of modified files between the base branch and the
PR branch.
(cherry picked from commit eaa551702d80fd67219c48ee6a13ffb571ca360b)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-41514: Fix buggy IDLE test (GH-21808)
Miss Islington (bot) [Mon, 10 Aug 2020 14:01:14 +0000 (07:01 -0700)] 
bpo-41514: Fix buggy IDLE test (GH-21808)

test_run method test_fatal_error failed when run twice, as with
python -m test -m test_fatal_error test_idle test_idle
because func.called was not reinitialized to 0.
This bug caused a failure on a refleak buildbot.
(cherry picked from commit 416f0b71ba84fe83ee2ba4399b8a28712702980b)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-41468: Improve and test IDLE run error exit (GH-21798)
Miss Islington (bot) [Sun, 9 Aug 2020 20:26:37 +0000 (13:26 -0700)] 
bpo-41468: Improve and test IDLE run error exit  (GH-21798)

A message box pops up when an unexpected error stops the run process.  Tell users it is likely a random glitch, but report it if not.
(cherry picked from commit f2e161c27964a59bc5ab20d96f87ba5862c6222d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years ago[3.8] Doc: Add output to example code in programming FAQ (GH-21346) (GH-21791)
Miss Islington (bot) [Sun, 9 Aug 2020 18:54:33 +0000 (11:54 -0700)] 
[3.8] Doc: Add output to example code in programming FAQ (GH-21346) (GH-21791)

Add output hint to document, part faq/programming, section [How do I write a function with output parameters (call by reference)?](https://docs.python.org/3/faq/programming.htmlGH-how-do-i-write-a-function-with-output-parameters-call-by-reference).

This patch make the output hint just like prefix code block.
(cherry picked from commit 67acf74c4eaf64a860cc1bcda6efe6e9cb01f89b)

Co-authored-by: Jiajie Zhong <zhongjiajie955@hotmail.com>
Automerge-Triggered-By: @merwok
5 years agoImprove renamed test_run.RecursionLimitTest (GH-21794)
Miss Islington (bot) [Sun, 9 Aug 2020 17:35:59 +0000 (10:35 -0700)] 
Improve renamed test_run.RecursionLimitTest (GH-21794)

PEP 8 style and new comments.
(cherry picked from commit 8b67bf907c51846853127176cbb2982d102a2c2d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-41455: Provide a link to how the third generation is collected in the GC docs...
Miss Islington (bot) [Sat, 8 Aug 2020 18:55:45 +0000 (11:55 -0700)] 
bpo-41455: Provide a link to how the third generation is collected in the GC docs (GH-21703)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
(cherry picked from commit 82ca8fada15b121866530f2cdac1b7055be4a244)

Co-authored-by: Yaroslav Pankovych <31005942+P-Alban@users.noreply.github.com>
5 years agobpo-41497: Fix potential UnicodeDecodeError in dis CLI (GH-21757)
Miss Islington (bot) [Sat, 8 Aug 2020 03:21:33 +0000 (20:21 -0700)] 
bpo-41497: Fix potential UnicodeDecodeError in dis CLI (GH-21757)

(cherry picked from commit a4084b9d1e40c1c9259372263d1fe8c8a562b093)

Co-authored-by: Konge <zkonge@outlook.com>
5 years agoDoc: Add a link to tutorial page from `open()` doc (GH-21737)
Miss Islington (bot) [Sat, 8 Aug 2020 03:05:04 +0000 (20:05 -0700)] 
Doc: Add a link to tutorial page from `open()` doc (GH-21737)

Adds a link to the "Reading and Writing Files" page so users can
more easily discover how file handles are handled with the `with`
context manager vs without it.
(cherry picked from commit 705f14556545699ab615ec98f707b438f9603767)

Co-authored-by: Benjamin Kane <bbkane@users.noreply.github.com>
5 years agoUpdate Azure Pipelines build to use Ubuntu 18.04 and move triggers into YAML files...
Miss Islington (bot) [Fri, 7 Aug 2020 23:01:37 +0000 (16:01 -0700)] 
Update Azure Pipelines build to use Ubuntu 18.04 and move triggers into YAML files (GH-21776)

(cherry picked from commit 102b4988b1a10d5a61034381aea15521d17c210c)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-41490: Update ensurepip to install pip 20.2.1 and setuptools 49.2.1 (GH-21775)
Steve Dower [Fri, 7 Aug 2020 22:10:32 +0000 (23:10 +0100)] 
bpo-41490: Update ensurepip to install pip 20.2.1 and setuptools 49.2.1 (GH-21775)

5 years agobpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)
Miss Islington (bot) [Fri, 7 Aug 2020 16:15:37 +0000 (09:15 -0700)] 
bpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)

gdb 9.2 on Fedora Rawhide is not reliable, see:

* https://bugs.python.org/issue41473
* https://bugzilla.redhat.com/show_bug.cgi?id=1866884
(cherry picked from commit e27a51c11e10d5df79b3e48dc3e7bfedfad5a794)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-41098: Doc: Add missing deprecated directives (GH-21162)
Miss Islington (bot) [Fri, 7 Aug 2020 07:49:46 +0000 (00:49 -0700)] 
bpo-41098: Doc: Add missing deprecated directives (GH-21162)

PyUnicodeEncodeError_Create has been deprecated with
`Py_DEPRECATED` macro. But it was not documented.
(cherry picked from commit 46e19b61d31ba99f049258efa4ff1334856a3643)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
5 years agobpo-41492: Fixes the description appearing in UAC prompts on Windows (GH-21754)
Miss Islington (bot) [Thu, 6 Aug 2020 16:52:57 +0000 (09:52 -0700)] 
bpo-41492: Fixes the description appearing in UAC prompts on Windows (GH-21754)

(cherry picked from commit 777b611c8c5676b80898a429f71d28e59bddc49d)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-41482: Fix error in ipaddress.IPv4Network docstring (GH-21736)
Miss Islington (bot) [Wed, 5 Aug 2020 21:43:16 +0000 (14:43 -0700)] 
bpo-41482: Fix error in ipaddress.IPv4Network docstring (GH-21736)

(cherry picked from commit 52f98424a55e14f05dfa7483cc0faf634a61c9ff)

Co-authored-by: Eric L. Frederich <eric.frederich@gmail.com>
5 years ago[3.8] bpo-40726: handle uninitalized end_lineno on ast.increment_lineno (GH-21745)
Batuhan Taskaya [Wed, 5 Aug 2020 18:37:19 +0000 (21:37 +0300)] 
[3.8] bpo-40726: handle uninitalized end_lineno on ast.increment_lineno (GH-21745)

…no (GH-20312).

(cherry picked from commit 8f4380d2f5839a321475104765221a7394a9d649)

Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
Automerge-Triggered-By: @pablogsal
5 years agobpo-36346: Doc: Update removal schedule of legacy Unicode (GH-21479)
Miss Islington (bot) [Wed, 5 Aug 2020 01:57:10 +0000 (18:57 -0700)] 
bpo-36346: Doc: Update removal schedule of legacy Unicode (GH-21479)

See PEP 623 for detail.
(cherry picked from commit 270b4ad4df795783d417ba15080da8f95e598689)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
5 years agobpo-38156: Fix compiler warning in PyOS_StdioReadline() (GH-21721)
Miss Islington (bot) [Tue, 4 Aug 2020 00:59:02 +0000 (17:59 -0700)] 
bpo-38156: Fix compiler warning in PyOS_StdioReadline() (GH-21721)

incr cannot be larger than INT_MAX: downcast to int explicitly.
(cherry picked from commit bde48fd8110cc5f128d5db44810d17811e328a24)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-41467: Fix asyncio recv_into() on Windows (GH-21720)
Miss Islington (bot) [Tue, 4 Aug 2020 00:58:06 +0000 (17:58 -0700)] 
bpo-41467: Fix asyncio recv_into() on Windows (GH-21720)

On Windows, fix asyncio recv_into() return value when the socket/pipe
is closed (BrokenPipeError): return 0 rather than an empty byte
string (b'').
(cherry picked from commit 602a971a2af3a685d625c912c400cadd452718b1)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-41425: Make tkinter doc example runnable (GH-21706)
Miss Islington (bot) [Mon, 3 Aug 2020 04:25:04 +0000 (21:25 -0700)] 
bpo-41425: Make tkinter doc example runnable (GH-21706)

Co-authored-by: Ankit Chandawala <achandaw@amazon.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit c36dbac588e1d99975f285a874bb20e9f5040af4)

5 years agobpo-41424: Remove extra words in Tkinter-Packer documentation (GH-21707)
Miss Islington (bot) [Mon, 3 Aug 2020 03:18:59 +0000 (20:18 -0700)] 
bpo-41424: Remove extra words in Tkinter-Packer documentation (GH-21707)

(cherry picked from commit ecaf949cc487887883c14dff7a96e09ac9404994)

Co-authored-by: Nathan M <nathanmaynes@gmail.com>
5 years agobpo-41426 Fix grammar in curses.getmouse() documentation (GH-21677)
Miss Islington (bot) [Wed, 29 Jul 2020 18:44:50 +0000 (11:44 -0700)] 
bpo-41426 Fix grammar in curses.getmouse() documentation (GH-21677)

Automerge-Triggered-By: @brettcannon
(cherry picked from commit ba18c0b13ba3c08077ea3db6658328523823a33f)

Co-authored-by: Sebastien Williams-Wynn <s.williamswynn.mail@gmail.com>
5 years agoRemove incorrect mention of method.__class__ in descriptor docs (GH-21665) (GH-21668)
Miss Islington (bot) [Wed, 29 Jul 2020 01:39:43 +0000 (18:39 -0700)] 
Remove incorrect mention of method.__class__ in descriptor docs (GH-21665) (GH-21668)

5 years agocloses bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH-21569)
Miss Islington (bot) [Wed, 29 Jul 2020 01:16:19 +0000 (18:16 -0700)] 
closes bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH-21569)

This consolidates the handling of my_fgets return values, so that interrupts are always handled, even if they come after EOF.

 I believe PyOS_StdioReadline is still buggy in that I/O errors will not result in a proper Python exception being set. However, that is a separate issue.
(cherry picked from commit a74eea238f5baba15797e2e8b570d153bc8690a7)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
5 years agoFix `List_Append` description, list is extracted at TOS1[-i] (GH-21465)
Miss Islington (bot) [Tue, 28 Jul 2020 16:59:18 +0000 (09:59 -0700)] 
Fix `List_Append` description, list is extracted at TOS1[-i] (GH-21465)

(cherry picked from commit 34cd3e9f6a87f9c50edac893b0d5ae46c4e48ee3)

Co-authored-by: Xiang Zhang <angwerzx@126.com>
5 years agobpo-41328: Replace mention of Hudson CI with Travis CI and AppVeyor (GH-21653)
Miss Islington (bot) [Tue, 28 Jul 2020 14:57:11 +0000 (07:57 -0700)] 
bpo-41328: Replace mention of Hudson CI with Travis CI and AppVeyor (GH-21653)

(cherry picked from commit 5e3826785dcc64f8e1a8a7bde11b88fbb40943be)

Co-authored-by: Dmytro Litvinov <litvinov.dmytro.it@gmail.com>
5 years ago[3.8] bpo-41045: Document debug feature of f-strings ('=') (GH-21509) (#21647)
Guido van Rossum [Mon, 27 Jul 2020 23:22:16 +0000 (16:22 -0700)] 
[3.8] bpo-41045: Document debug feature of f-strings ('=') (GH-21509) (#21647)

Co-Authored-By: Rishi <rishi93dev@gmail.com>
(cherry picked from commit 13efaec)

Co-authored-by: amaajemyfren <32741226+amaajemyfren@users.noreply.github.com>
5 years agobpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601)
Miss Islington (bot) [Mon, 27 Jul 2020 02:14:49 +0000 (19:14 -0700)] 
bpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601)

... when an unknown option is passed.  TypeError was being raised because a 2to3 fix was missing.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit f1d40f941a6483b1d4ea10f1051ace7b426fb8e7)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
5 years agobpo-41385: Fix test_executable_without_cwd on Windows (GH-21608)
Miss Islington (bot) [Sun, 26 Jul 2020 07:38:48 +0000 (00:38 -0700)] 
bpo-41385: Fix test_executable_without_cwd on Windows (GH-21608)

(cherry picked from commit b1a87300a06324c9fc7d6553906ed914489465aa)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-39868: Add documentation for Assignment Expressions (walrus, PEP 572) (GH-18851)
Miss Islington (bot) [Sat, 25 Jul 2020 23:41:20 +0000 (16:41 -0700)] 
bpo-39868: Add documentation for Assignment Expressions (walrus, PEP 572) (GH-18851)

(cherry picked from commit f117cef25b5ffc4db9fbe373ddb65e14f59f0397)

Co-authored-by: Shankar Jha <shankarj67@gmail.com>
5 years agobpo-41314: fixed annotations __future__ version (GH-21616)
Miss Islington (bot) [Sat, 25 Jul 2020 22:00:17 +0000 (15:00 -0700)] 
bpo-41314: fixed annotations __future__ version (GH-21616)

PEP 563 was updated to change the release where `from __future__ import annotations` becomes the default (and only) behavior from 4.0 to 3.10. Update `__future__.py` and its docs to reflect this.
(cherry picked from commit 0028c14073109595e7532ec00bb1e8bf39ecfb4d)

Co-authored-by: YoSTEALTH <35307184+YoSTEALTH@users.noreply.github.com>
5 years agobpo-38731: Fix NameError in command-line interface of py_compile (GH-21617)
Miss Islington (bot) [Sat, 25 Jul 2020 21:03:50 +0000 (14:03 -0700)] 
bpo-38731: Fix NameError in command-line interface of py_compile (GH-21617)

(cherry picked from commit 2024d7aca100c3faa9c6730aba3de5f0528750be)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
5 years ago[3.8] bpo-37309: NEWS for #41373 (GH-21612)
Terry Jan Reedy [Sat, 25 Jul 2020 04:33:01 +0000 (00:33 -0400)] 
[3.8] bpo-37309: NEWS for #41373 (GH-21612)

Cherry-picked from  af08db7.

5 years agobpo-41373: IDLE: Fix saving files loaded with no newlines or mixed newlines (GH-21597)
Miss Islington (bot) [Sat, 25 Jul 2020 03:38:46 +0000 (20:38 -0700)] 
bpo-41373: IDLE: Fix saving files loaded with no newlines or mixed newlines (GH-21597)

Fixes regression in 3.8.4 and 3.9.0b4.

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

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years ago [3.8] bpo-4630: Fix errors in Lib/idlelib/NEWS.txt (GH-21594)
Terry Jan Reedy [Thu, 23 Jul 2020 08:18:03 +0000 (04:18 -0400)] 
 [3.8] bpo-4630: Fix errors in Lib/idlelib/NEWS.txt (GH-21594)

Also one in news log.

(cherry picked from commit 592527f3ee59616eca2bd1da771f7c14cee808d5)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-41364: Reduce import overhead of uuid module (GH-21586)
Steve Dower [Wed, 22 Jul 2020 11:26:37 +0000 (12:26 +0100)] 
bpo-41364: Reduce import overhead of uuid module (GH-21586)

5 years agobpo-40741: Update Windows build to include SQLite 3.32.3 (GH-21570)
Miss Islington (bot) [Tue, 21 Jul 2020 00:09:51 +0000 (17:09 -0700)] 
bpo-40741: Update Windows build to include SQLite 3.32.3 (GH-21570)

(cherry picked from commit 84761c3cc4bac31d471e371c53a338686d4b0241)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agoPost 3.8.5
Łukasz Langa [Mon, 20 Jul 2020 17:25:23 +0000 (19:25 +0200)] 
Post 3.8.5

5 years agoPython 3.8.5 v3.8.5
Łukasz Langa [Mon, 20 Jul 2020 13:01:32 +0000 (15:01 +0200)] 
Python 3.8.5

Contains security fixes for CVE-2019-20907, CVE-2020-15801, and BPO-39603.

5 years agoSimple Documentation fix: Missing link to return type class. (GH-21291)
Miss Islington (bot) [Mon, 20 Jul 2020 11:35:11 +0000 (04:35 -0700)] 
Simple Documentation fix: Missing link to return type class. (GH-21291)

Just a simple documentation fix: apply_async and map_async return a "multiprocessing.pool.AsyncResult Object", not a "result object".
(cherry picked from commit f9bf0157999cb4adbcfd7e9bf526bfa48601e128)

Co-authored-by: Volker-Weissmann <39418860+Volker-Weissmann@users.noreply.github.com>
5 years agobpo-37703: improve asyncio.gather documentation regarding cancellation (GH-15312)
Miss Islington (bot) [Mon, 20 Jul 2020 09:00:51 +0000 (02:00 -0700)] 
bpo-37703: improve asyncio.gather documentation regarding cancellation (GH-15312)

These changes updates the doc to comprehensively mention the behaviour of gather.cancel()

Automerge-Triggered-By: @asvetlov
(cherry picked from commit d42528a3a2c7d79fd2e6c9f2a02f3ce12d44c8cc)

Co-authored-by: Vinay Sharma <vinay04sharma@icloud.com>
5 years agobpo-40741: Update macOS installer to use SQLite 3.32.3 (GH-20979)
Miss Islington (bot) [Mon, 20 Jul 2020 06:37:57 +0000 (23:37 -0700)] 
bpo-40741: Update macOS installer to use SQLite 3.32.3 (GH-20979)

(cherry picked from commit 7cf1cb36ecafabff363790d245f809d3894fbbaf)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
5 years agobpo-41205: Document Decimal power 0 to the 0 (GH-21386)
Miss Islington (bot) [Sun, 19 Jul 2020 11:10:47 +0000 (04:10 -0700)] 
bpo-41205: Document Decimal power 0 to the 0 (GH-21386)

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
(cherry picked from commit 10e466448f67850ed7bb2e2a4e7f017f2b050cad)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
5 years agobpo-32528: Document the change in inheritance of asyncio.CancelledError (GH-21474)
Miss Islington (bot) [Sun, 19 Jul 2020 07:50:54 +0000 (00:50 -0700)] 
bpo-32528: Document the change in inheritance of asyncio.CancelledError (GH-21474)

GH-msg373510

[bpo-32528]()/GH-13528 changed `asyncio.CancelledError` such that it no longer inherits from `concurrent.futures.CancelledError`. As this affects existing code, specifically when catching the latter instead of the former in exception handling, it should be documented in the "What's new in 3.8?" document.

Automerge-Triggered-By: @1st1
(cherry picked from commit 2a5181829af394b82e8e8c917183c709ee72a2b7)

Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
5 years agobpo-41295: Reimplement the Carlo Verre "hackcheck" (GH-21528)
Miss Islington (bot) [Sat, 18 Jul 2020 21:37:43 +0000 (14:37 -0700)] 
bpo-41295: Reimplement the Carlo Verre "hackcheck" (GH-21528)

Walk down the MRO backwards to find the type that originally defined the final `tp_setattro`, then make sure we are not jumping over intermediate C-level bases with the Python-level call.

Automerge-Triggered-By: @gvanrossum
(cherry picked from commit c53b310e5926266ce267c44a168165cacd786d6e)

Co-authored-by: scoder <stefan_ml@behnel.de>
5 years agobpo-39603: Prevent header injection in http methods (GH-18485)
Miss Islington (bot) [Sat, 18 Jul 2020 20:39:12 +0000 (13:39 -0700)] 
bpo-39603: Prevent header injection in http methods (GH-18485)

reject control chars in http method in http.client.putrequest to prevent http header injection
(cherry picked from commit 8ca8a2e8fb068863c1138f07e3098478ef8be12e)

Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
5 years agobpo-41325: Add version note for args and kwargs property in call object (GH-21525)
Miss Islington (bot) [Sat, 18 Jul 2020 13:13:21 +0000 (06:13 -0700)] 
bpo-41325: Add version note for args and kwargs property in call object (GH-21525)

(cherry picked from commit 9b01c598ca2576a1056816e85dd84bf5f9c74688)

Co-authored-by: Jordan Speicher <uSpike@users.noreply.github.com>
5 years agobpo-41304: Update NEWS to include CVE-2020-15801 reference (GH-21521)
Miss Islington (bot) [Fri, 17 Jul 2020 16:54:11 +0000 (09:54 -0700)] 
bpo-41304: Update NEWS to include CVE-2020-15801 reference (GH-21521)

(cherry picked from commit 164b04c47e61bd35d55e61bc74f9fd646eba81bb)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years ago[3.8] bpo-41300: IDLE - save files with non-ascii chars (GH-21512)
Miss Islington (bot) [Thu, 16 Jul 2020 22:47:52 +0000 (15:47 -0700)] 
[3.8] bpo-41300: IDLE - save files with non-ascii chars  (GH-21512)

Fix regression released in 3.9.0b4 and 3.8.4.
(cherry picked from commit 38d3864efe914fda64553e2ec75c9ec15574483f)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agoRemove unnecessary spaces in code blocks in urllib.parse.rst (GH-21500)
Miss Islington (bot) [Thu, 16 Jul 2020 11:29:45 +0000 (04:29 -0700)] 
Remove unnecessary spaces in code blocks in urllib.parse.rst (GH-21500)

This should also fix the syntax highlighting for these code blocks

Automerge-Triggered-By: @csabella
(cherry picked from commit 5e5c0f98667c9280c6d27b3db98a6cad2cc89077)

Co-authored-by: Christopher Yeh <chrisyeh96@users.noreply.github.com>
5 years agobpo-41304: Ensure python3x._pth is loaded on Windows (GH-21495)
Miss Islington (bot) [Wed, 15 Jul 2020 22:15:37 +0000 (15:15 -0700)] 
bpo-41304: Ensure python3x._pth is loaded on Windows (GH-21495)

(cherry picked from commit 936a66094591dc0e67d4a60c170148bb700ec016)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years ago[3.8] bpo-41302: Support system libmpdec 2.5 for Python 3.8 (GH-21488)
Felix Yan [Wed, 15 Jul 2020 20:22:23 +0000 (04:22 +0800)] 
[3.8] bpo-41302: Support system libmpdec 2.5 for Python 3.8 (GH-21488)

Define UNUSED only when mpdecimal.h doesn't define it. This would support
building with system libmpdec 2.5 while retaining compatibility with system
libmpdec 2.4 or the vendored copy.

Tested to build fine with either system libmpdec or the vendored one.

5 years agobpo-40150: Fix mismatched argument in RegisterWaitForSingleObject() call (GH-19686)
Miss Islington (bot) [Wed, 15 Jul 2020 19:25:49 +0000 (12:25 -0700)] 
bpo-40150: Fix mismatched argument in RegisterWaitForSingleObject() call (GH-19686)

(cherry picked from commit af4eda46d1538b1da700a86588bdb94b0a4d1ff2)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agoFix -Wstrict-prototypes warning in thread_pthread.h. (GH-21477)
Miss Islington (bot) [Wed, 15 Jul 2020 19:04:59 +0000 (12:04 -0700)] 
Fix -Wstrict-prototypes warning in thread_pthread.h. (GH-21477)

(cherry picked from commit ea62a4bd54421693ed6b24a1bbd18ebed3bdb8f8)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
5 years ago[3.8] bpo-39017: Avoid infinite loop in the tarfile module (GH-21454) (GH-21483)
Miss Islington (bot) [Wed, 15 Jul 2020 12:30:53 +0000 (05:30 -0700)] 
[3.8] bpo-39017: Avoid infinite loop in the tarfile module (GH-21454) (GH-21483)

Avoid infinite loop when reading specially crafted TAR files using the tarfile module
(CVE-2019-20907).
(cherry picked from commit 5a8d121a1f3ef5ad7c105ee378cc79a3eac0c7d4)

Co-authored-by: Rishi <rishi_devan@mail.com>
Automerge-Triggered-By: @encukou
5 years agoFix repeated words in Classes tutorial (GH-21455)
Miss Islington (bot) [Tue, 14 Jul 2020 01:49:44 +0000 (18:49 -0700)] 
Fix repeated words in Classes tutorial (GH-21455)

The phrase "At any time during execution," was repeated twice.

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

Co-authored-by: Paul McMillan <paul@mcmillan.ws>
5 years agoPost 3.8.4
Łukasz Langa [Mon, 13 Jul 2020 20:50:02 +0000 (22:50 +0200)] 
Post 3.8.4

5 years agoMerge tag 'v3.8.4' into 3.8
Łukasz Langa [Mon, 13 Jul 2020 20:49:45 +0000 (22:49 +0200)] 
Merge tag 'v3.8.4' into 3.8

Python 3.8.4

5 years agobpo-41288: Fix a crash in unpickling invalid NEWOBJ_EX. (GH-21458)
Miss Islington (bot) [Mon, 13 Jul 2020 13:05:44 +0000 (06:05 -0700)] 
bpo-41288: Fix a crash in unpickling invalid NEWOBJ_EX. (GH-21458)

Automerge-Triggered-By: @tiran
(cherry picked from commit 4f309abf55f0e6f8950ac13d6ec83c22b8d47bf8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agoPython 3.8.4 v3.8.4
Łukasz Langa [Mon, 13 Jul 2020 12:11:53 +0000 (14:11 +0200)] 
Python 3.8.4

5 years agobpo-41228: Fix /a/are/ in monthcalendar() descripton (GH-21372)
Miss Islington (bot) [Sat, 11 Jul 2020 02:09:07 +0000 (19:09 -0700)] 
bpo-41228: Fix /a/are/ in monthcalendar() descripton (GH-21372)

(cherry picked from commit 344dce312a0cf86d5a5772d54843cc179acaf6e3)

Co-authored-by: Nima Dini <nima.dini@gmail.com>
5 years agoFix typo in docs: 'created by th' -> 'created by the' (GH-21384)
Miss Islington (bot) [Fri, 10 Jul 2020 15:51:31 +0000 (08:51 -0700)] 
Fix typo in docs: 'created by th' -> 'created by the' (GH-21384)

(cherry picked from commit 6fc732a2116e2c42b0431bb7e2a21719351af755)

Co-authored-by: marload <rladhkstn8@gmail.com>
5 years agobpo-41175: Guard against a NULL pointer dereference within bytearrayobject (GH-21240)
Miss Islington (bot) [Fri, 10 Jul 2020 10:15:59 +0000 (03:15 -0700)] 
bpo-41175: Guard against a NULL pointer dereference within bytearrayobject (GH-21240)

The issue is triggered by the bytearray() + bytearray() operation.

Detected by GCC 10 static analysis tool.
(cherry picked from commit 61fc23ca106bc82955b0e59d1ab42285b94899e2)

Co-authored-by: stratakis <cstratak@redhat.com>
5 years agobpo-37765: Add keywords to IDLE tab completions (GH-15138)
Miss Islington (bot) [Thu, 9 Jul 2020 22:54:44 +0000 (15:54 -0700)] 
bpo-37765: Add keywords to IDLE tab completions (GH-15138)

Keywords are present in the main module tab completion lists generated by rlcompleter, which is used by REPLs on *nix. Add all keywords to IDLE's main module name list except those already added from builtins (True, False, and None) . This list may also be used by Show Completions on the Edit menu, and its hot key.

Rewrite Completions doc.

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
(cherry picked from commit bce2eb4646021910aa4074d86f44a09b32d0b2b2)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-41247: asyncio.set_running_loop() cache running loop holder (#21406)
Tony Solomonik [Thu, 9 Jul 2020 17:38:46 +0000 (20:38 +0300)] 
bpo-41247: asyncio.set_running_loop() cache running loop holder (#21406)

The running loop holder cache variable was always set to NULL when
calling set_running_loop.

Now set_running_loop saves the newly created running loop holder in the
cache variable for faster access in get_running_loop.

5 years agobpo-41199: Docstring convention not followed for dataclasses documentation page ...
Miss Islington (bot) [Thu, 9 Jul 2020 12:21:11 +0000 (05:21 -0700)] 
bpo-41199: Docstring convention not followed for dataclasses documentation page (GH-21413)

Automerge-Triggered-By: @ericvsmith
(cherry picked from commit 61bb24a270d15106decb1c7983bf4c2831671a75)

Co-authored-by: marload <rladhkstn8@gmail.com>
5 years agobpo-41252: Fix incorrect refcounting in _ssl.c's _servername_callback() (GH-21407)
Miss Islington (bot) [Thu, 9 Jul 2020 10:15:36 +0000 (03:15 -0700)] 
bpo-41252: Fix incorrect refcounting in _ssl.c's _servername_callback() (GH-21407)

(cherry picked from commit ee96f32ca24779656d3c8736d26671fc3689f0a3)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-40597: Allow email.contextmanager set_content() to set a null string. (GH-20542)
Miss Islington (bot) [Wed, 8 Jul 2020 21:18:38 +0000 (14:18 -0700)] 
bpo-40597: Allow email.contextmanager set_content() to set a null string. (GH-20542)

(cherry picked from commit 4fa61a7732923f92de0f7830c12da48c4cec937f)

Co-authored-by: Mark Sapiro <mark@msapiro.net>
5 years agocloses bpo-41235: Fix the error handling in SSLContext.load_dh_params() (GH-21385)
Miss Islington (bot) [Wed, 8 Jul 2020 04:37:50 +0000 (21:37 -0700)] 
closes bpo-41235: Fix the error handling in SSLContext.load_dh_params() (GH-21385)

(cherry picked from commit aebc0495572c5bb85d2bd97d27cf93ab038b5a6a)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-39417: Fix broken link to guide to building venvs (GH-18432)
Miss Islington (bot) [Tue, 7 Jul 2020 23:47:09 +0000 (16:47 -0700)] 
bpo-39417: Fix broken link to guide to building venvs (GH-18432)

(cherry picked from commit c4a65ed7fe342bd18b5a5b0eea3470dc4fc31160)

Co-authored-by: Ogi Moore <ognyan.moore@jacobs.ucsd.edu>
5 years agobpo-41218: Improve the test cases for test_compile_top_level_await_no_coro (GH-21363)
Miss Islington (bot) [Mon, 6 Jul 2020 23:30:46 +0000 (16:30 -0700)] 
bpo-41218: Improve the test cases for test_compile_top_level_await_no_coro (GH-21363)

(cherry picked from commit c2c1f1f906cdeb40576880d4b6a4f8fcbc016eb8)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-41218: Only mark async code with CO_COROUTINE. (GH-21357)
Miss Islington (bot) [Mon, 6 Jul 2020 21:44:16 +0000 (14:44 -0700)] 
bpo-41218: Only mark async code with CO_COROUTINE. (GH-21357)

3.8.3 had a regression where compiling with
ast.PyCF_ALLOW_TOP_LEVEL_AWAIT woudl agressively mark things are
coroutine even if there were not.
(cherry picked from commit bd46174a5a09a54e5ae1077909f923f56a7cf710)

Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
5 years agobpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedde...
Miss Islington (bot) [Mon, 6 Jul 2020 17:12:16 +0000 (10:12 -0700)] 
bpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedded (GH-21297) (GH-21352)

Also enables using debug build of `python3_d.dll`
Reference: CVE-2020-15523
(cherry picked from commit dcbaa1b49cd9062fb9ba2b9d49555ac6cd8c60b5)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-28681: Clarify multiple function names in the tutorial (GH-21340) (GH-21344)
Miss Islington (bot) [Mon, 6 Jul 2020 02:07:59 +0000 (19:07 -0700)] 
bpo-28681: Clarify multiple function names in the tutorial (GH-21340) (GH-21344)

* improve control flow docs

* Add also

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

Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
5 years agobpo-26205: Specify the number of nested scopes (GH-21324) (GH-21342)
Miss Islington (bot) [Mon, 6 Jul 2020 01:53:40 +0000 (18:53 -0700)] 
bpo-26205: Specify the number of nested scopes (GH-21324) (GH-21342)

* Clarify number of scopes

* Indicate 3 or 4

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

Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
5 years agobpo-39960: Allow heap types in the "Carlo Verre" hack check that override "tp_setattr...
scoder [Sun, 5 Jul 2020 20:12:04 +0000 (22:12 +0200)] 
bpo-39960: Allow heap types in the "Carlo Verre" hack check that override "tp_setattro()" (GH-21092) (GH-21339)

Backport to Py3.8.

5 years agobpo-41211: Doc: Fix PyLong_FromUnicode (GH-21331)
Miss Islington (bot) [Sun, 5 Jul 2020 05:35:58 +0000 (22:35 -0700)] 
bpo-41211: Doc: Fix PyLong_FromUnicode (GH-21331)

PyUnicode_EncodeDecimal is not used actually.
(cherry picked from commit 16f451744b7f4653ca9db4b4bedbb6fc5c0de154)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
5 years agobpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)
Miss Islington (bot) [Sun, 5 Jul 2020 04:09:18 +0000 (21:09 -0700)] 
bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)

It doesn't use PyUnicode_EncodeDecimal. It uses a private API instead.
(cherry picked from commit 9c8441712230660fedac818ed50e7cdd89e4c51d)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
5 years agobpo-33864: Clarify the docs for typing.ByteString (GH-21311)
Miss Islington (bot) [Sat, 4 Jul 2020 04:06:07 +0000 (21:06 -0700)] 
bpo-33864: Clarify the docs for typing.ByteString (GH-21311)

(cherry picked from commit b40e434386cd94a367d4a256e3364771140160e7)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-41162: Clear audit hooks later during finalization (GH-21222)
Steve Dower [Fri, 3 Jul 2020 23:04:22 +0000 (00:04 +0100)] 
bpo-41162: Clear audit hooks later during finalization (GH-21222)

Co-authored-by: Konge <zkonge@outlook.com>
5 years agobpo-41180: Audit code.__new__ when unmarshalling (GH-21271)
Miss Islington (bot) [Fri, 3 Jul 2020 21:13:29 +0000 (14:13 -0700)] 
bpo-41180: Audit code.__new__ when unmarshalling (GH-21271)

(cherry picked from commit d160e0f8e283d0a8737644588b38e8c6a07c134f)

Co-authored-by: tkmikan <36260601+tkmikan@users.noreply.github.com>
5 years agobpo-41193: Ignore OSError in readline write_history() (GH-21279)
Miss Islington (bot) [Thu, 2 Jul 2020 11:02:08 +0000 (04:02 -0700)] 
bpo-41193: Ignore OSError in readline write_history() (GH-21279)

The write_history() atexit function of the readline completer now
ignores any OSError to ignore error if the filesystem is read-only,
instead of only ignoring FileNotFoundError and PermissionError.
(cherry picked from commit 0ab917e07ed64c6bfde6f6e791f9b28acc97b510)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years ago[3.8] bpo-41043: Escape literal part of the path for glob(). (GH-20994). (GH-21277)
Serhiy Storchaka [Thu, 2 Jul 2020 07:05:35 +0000 (10:05 +0300)] 
[3.8] bpo-41043: Escape literal part of the path for glob(). (GH-20994). (GH-21277)

(cherry picked from commit 935586845815f5b4c7814794413f6a812d4bd45f)

5 years ago3.8.3 -> 3.8.4 in macOS installer ReadMe (GH-21274)
Ned Deily [Thu, 2 Jul 2020 05:58:31 +0000 (01:58 -0400)] 
3.8.3 -> 3.8.4 in macOS installer ReadMe (GH-21274)

5 years agobpo-41158: IDLE: rewrite the code for handling file encoding (GH-21215)
Miss Islington (bot) [Wed, 1 Jul 2020 18:22:45 +0000 (11:22 -0700)] 
bpo-41158: IDLE: rewrite the code for handling file encoding (GH-21215)

(cherry picked from commit 694d31e714074176f0c324f95948b75dc768c091)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agoDoc: Minor fix to init config C API documentation (GH-21198)
Miss Islington (bot) [Wed, 1 Jul 2020 09:40:55 +0000 (02:40 -0700)] 
Doc: Minor fix to init config C API documentation (GH-21198)

Co-authored-by: Tomer Vromen <tomer.vromen@intel.com>
(cherry picked from commit 741008a57bdc95090b8be6ded5a9fd3f17f7bf21)

Co-authored-by: tomerv <tomerv@gmail.com>
5 years agoPost 3.8.4rc1
Łukasz Langa [Tue, 30 Jun 2020 16:03:38 +0000 (18:03 +0200)] 
Post 3.8.4rc1

5 years agoMerge tag 'v3.8.4rc1' into 3.8
Łukasz Langa [Tue, 30 Jun 2020 16:03:07 +0000 (18:03 +0200)] 
Merge tag 'v3.8.4rc1' into 3.8

Python 3.8.4rc1

5 years agoUpdate FAQ release schedule and estimated users (GH-21180)
Miss Islington (bot) [Tue, 30 Jun 2020 09:51:21 +0000 (02:51 -0700)] 
Update FAQ release schedule and estimated users (GH-21180)

Update FAQ to include:
* The new yearly release schedule from PEP 602
* Estimated users from "tens of thousands" to "millions"
(cherry picked from commit 3fa4799c3f9d9de7cac30e5db3627e9e125b9ce5)

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
5 years agobpo-41123: Remove PyUnicode_AsUnicodeCopy in 3.10 (GH-21227)
Miss Islington (bot) [Tue, 30 Jun 2020 08:49:09 +0000 (01:49 -0700)] 
bpo-41123: Remove PyUnicode_AsUnicodeCopy in 3.10 (GH-21227)

(cherry picked from commit 2ea6a9928e4fa135888cc8f4733c28d93e642301)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
5 years agobpo-41152: IDLE: always use UTF-8 for standard IO streams (GH-21214)
Miss Islington (bot) [Tue, 30 Jun 2020 00:39:02 +0000 (17:39 -0700)] 
bpo-41152: IDLE: always use UTF-8 for standard IO streams (GH-21214)

(cherry picked from commit 2515a28230b1a011205f30263da6b01c6bd167a3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agoPython 3.8.4rc1 v3.8.4rc1
Łukasz Langa [Mon, 29 Jun 2020 22:30:11 +0000 (00:30 +0200)] 
Python 3.8.4rc1

5 years agobpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface (GH-21033)
Miss Islington (bot) [Mon, 29 Jun 2020 18:12:50 +0000 (11:12 -0700)] 
bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface (GH-21033)

The __hash__() methods of classes IPv4Interface and IPv6Interface had issue
of generating constant hash values of 32 and 128 respectively causing hash collisions.
The fix uses the hash() function to generate hash values for the objects
instead of XOR operation
(cherry picked from commit b30ee26e366bf509b7538d79bfec6c6d38d53f28)

Co-authored-by: Ravi Teja P <rvteja92@gmail.com>
5 years agobpo-41048: mimetypes should read the rule file using UTF-8, not the locale encoding...
Miss Islington (bot) [Mon, 29 Jun 2020 12:07:41 +0000 (05:07 -0700)] 
bpo-41048: mimetypes should read the rule file using UTF-8, not the locale encoding (GH-20998)

(cherry picked from commit 7f569c9bc0079906012b3034d30fe8abc742e7fc)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
5 years agoUpdate ssl.rst
Miss Islington (bot) [Mon, 29 Jun 2020 07:34:35 +0000 (00:34 -0700)] 
Update ssl.rst

5 years agobpo-41123: Doc: PyLong_FromUnicode will be removed in 3.10 (GH-21205)
Miss Islington (bot) [Mon, 29 Jun 2020 05:36:04 +0000 (22:36 -0700)] 
bpo-41123: Doc: PyLong_FromUnicode will be removed in 3.10 (GH-21205)

(cherry picked from commit 02134dae448c7885c9c07adfc6970f878db33372)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
5 years ago[3.8] bpo-41138: Fix trace CLI for non-UTF-8 files. (GH-21177) (GH-21200)
Serhiy Storchaka [Sun, 28 Jun 2020 14:30:08 +0000 (17:30 +0300)] 
[3.8] bpo-41138: Fix trace CLI for non-UTF-8 files. (GH-21177) (GH-21200)

Fix also a resource warning when store counts and module info.
(cherry picked from commit 04cdeb7a5617c48102f45b965e683b12cdf934f8)