]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
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>
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>
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>
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>
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 .
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>
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>
Steve Dower [Wed, 22 Jul 2020 11:26:37 +0000 (12:26 +0100)]
bpo-41364: Reduce import overhead of uuid module (GH-21586)
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>
Łukasz Langa [Mon, 20 Jul 2020 17:25:23 +0000 (19:25 +0200)]
Post 3.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.
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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.
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>
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>
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
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>
Łukasz Langa [Mon, 13 Jul 2020 20:50:02 +0000 (22:50 +0200)]
Post 3.8.4
Ł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
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>
Łukasz Langa [Mon, 13 Jul 2020 12:11:53 +0000 (14:11 +0200)]
Python 3.8.4
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>
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>
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>
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>
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.
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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.
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>
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>
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>
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>
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>
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>
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 )
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)
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>
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>
Łukasz Langa [Tue, 30 Jun 2020 16:03:38 +0000 (18:03 +0200)]
Post 3.8.4rc1
Ł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
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>
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>
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>
Łukasz Langa [Mon, 29 Jun 2020 22:30:11 +0000 (00:30 +0200)]
Python 3.8.4rc1
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>
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>
Miss Islington (bot) [Mon, 29 Jun 2020 07:34:35 +0000 (00:34 -0700)]
Update ssl.rst
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>
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 )
Miss Islington (bot) [Sun, 28 Jun 2020 06:20:13 +0000 (23:20 -0700)]
bpo-41144: Fix IDLE open module error (GH-21182)
Could not open os.path.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit
8ab77c6f9fb6ef86af8f6b8722a2fcb37438edd0 )
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
Guido van Rossum [Sun, 28 Jun 2020 00:35:05 +0000 (17:35 -0700)]
[3.8] bpo-35975: Only use cf_feature_version if PyCF_ONLY_AST in cf_flags (#21023)
Lysandros Nikolaou [Sat, 27 Jun 2020 18:43:41 +0000 (21:43 +0300)]
[3.8] bpo-41132: Use pymalloc allocator in the f-string parser (GH-21173) (GH-21184)
Automerge-Triggered-By: @pablogsal
Miss Islington (bot) [Sat, 27 Jun 2020 08:52:50 +0000 (01:52 -0700)]
bpo-41100: clarify NEWS item about macOS 11 support (GH-21174)
(cherry picked from commit
2f168c6356f92c38ae7751d2faf2b266a9356229 )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Thu, 25 Jun 2020 15:15:06 +0000 (08:15 -0700)]
BPO-41100: Support macOS 11 when building (GH-21113)
(cherry picked from commit
8ea6353f60625c96ce96588c70ff24a77f8c71f9 )
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Christian Heimes [Thu, 25 Jun 2020 12:18:43 +0000 (14:18 +0200)]
[3.8] bpo-41009: fix requires_OS_version() class decorator (GH-20942) (GH-20948)
Signed-off-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: @tiran.
(cherry picked from commit
bb6ec14479f18c32e71e43f2785f177aa17aabbd )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Thu, 25 Jun 2020 12:04:56 +0000 (05:04 -0700)]
bpo-41113: Fix test_warnings on non-Western locales. (GH-21143)
(cherry picked from commit
0f8ec1fff01173803645ad6a8aea24997bf66fc1 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Ned Deily [Thu, 25 Jun 2020 11:44:14 +0000 (07:44 -0400)]
bpo-40204: Pin Sphinx version to 2.3.1 in ``Doc/Makefile``. (GH-21141) (GH-21147)
Miss Islington (bot) [Thu, 25 Jun 2020 11:37:38 +0000 (04:37 -0700)]
bpo-35773: Fix test_bdb on non-UTF-8 locales. (GH-21136)
(cherry picked from commit
94eee69e9b3a7e7d33142a47ffea560beb8f1596 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 25 Jun 2020 10:56:14 +0000 (03:56 -0700)]
bpo-39580: add check for CLI installation on macOS (GH-20271)
Adds a simple check for whether or not the package is being installed in the GUI or using installer on the command line. This addresses an issue where CLI-based software management tools (such as Munki) unexpectedly open Finder windows into a GUI session during installation runs.
(cherry picked from commit
5f190d2cc60cd82a604cbffb58b6ca8f40350a7a )
Co-authored-by: Rick Heil <rickheil@partnersandsimons.com>
Ned Deily [Thu, 25 Jun 2020 10:15:37 +0000 (06:15 -0400)]
Forward port macOS installer updates from 3.7 (GH-21132) (GH-21137)
- fix installer builds when using latest versions of Python 3
- fix installer builds on newer macOS releases with SIP
- Python Launcher app factory defaults now use python3
- 3.x installer now updates the Current symlink in framework
Miss Islington (bot) [Thu, 25 Jun 2020 09:12:41 +0000 (02:12 -0700)]
bpo-41074: Fix support of non-ASCII names and SQL in msilib. (GH-21126)
* Fix support of non-ASCII names in functions OpenDatabase()
and init_database().
* Fix support of non-ASCII SQL in method Database.OpenView().
(cherry picked from commit
55939b1708d6fc0d36d2be11ccdc6bf207e1bd41 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 24 Jun 2020 22:03:11 +0000 (15:03 -0700)]
bpo-40773: Fix rendering for 'retval' on the pdb page (GH-21081)
Automerge-Triggered-By: @merwok
(cherry picked from commit
cf18c9e9d4d44f6671a3fe6011bb53d8ee9bd92b )
Co-authored-by: Arisaka97 <solitaire2312@gmail.com>
Miss Islington (bot) [Wed, 24 Jun 2020 17:03:51 +0000 (10:03 -0700)]
bpo-41094: Additional fix for PYTHONSTARTUP. (GH-21119)
(cherry picked from commit
a7dc71470156680f1fd5243290c6d377824b7ef4 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 24 Jun 2020 16:45:38 +0000 (09:45 -0700)]
bpo-41094: Fix decoding errors with audit when open files. (GH-21095)
(cherry picked from commit
6c6810d98979add7a89391c3c38990d0859f7a29 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 24 Jun 2020 16:42:55 +0000 (09:42 -0700)]
bpo-41038: Fix non-ASCII string corruption in Win32 resource files (GH-20985)
In absence of explicit declaration, resource compiler uses system
codepage. When this codepage is DBCS or UTF-8, Python's copyright
string is corrupted, because it contains copyright sign encoded
as \xA9.
The fix is to explicitly declare codepage 1252.
(cherry picked from commit
33b79b11b891adea5a916df8e3779505b37aabe7 )
Co-authored-by: Nikita Nemkin <nikita@nemkin.ru>
Miss Islington (bot) [Wed, 24 Jun 2020 12:58:27 +0000 (05:58 -0700)]
bpo-41005: Fixed perrmission error (GH-20936) (GH-21052)
* fixed issue 41005: webbrowser fails when xdg-settings cannot be executed
Co-authored-by: KrishnaSai2020 <krishnasai.chivukula@gmal.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit
9e27bc0c1efc7478872f98729f87886e9333548f )
Co-authored-by: Krishna Chivukula <63070026+KrishnaSai2020@users.noreply.github.com>
Co-authored-by: Krishna Chivukula <63070026+KrishnaSai2020@users.noreply.github.com>
Miss Islington (bot) [Wed, 24 Jun 2020 11:14:10 +0000 (04:14 -0700)]
Fix typo in dataclasses module (GH-21109) (#21111)
Automerge-Triggered-By: @matrixise
(cherry picked from commit
80526f68411a9406a9067095fbf6a0f88047cac5 )
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Miss Islington (bot) [Wed, 24 Jun 2020 03:19:35 +0000 (20:19 -0700)]
bpo-40707: Document that Popen.communicate sets the returncode attribute (GH-20283)
(cherry picked from commit
bf2e515fa43406d4bd9c4c53ecc9364034d8f9f6 )
Co-authored-by: Gareth Rees <gdr@garethrees.org>
Anthony Sottile [Tue, 23 Jun 2020 22:17:02 +0000 (15:17 -0700)]
[3.8] bpo-31938: Fix default-value signatures of several functions in the select module (GH-21066) (GH-21098)
(cherry picked from commit
d051801052211b533c46a593b1c1bccf649a171c )
Automerge-Triggered-By: @vstinner
Ammar Askar [Tue, 23 Jun 2020 18:28:25 +0000 (11:28 -0700)]
bpo-39699: Remove accidentally committed test change (GH-21089)
Miss Islington (bot) [Tue, 23 Jun 2020 13:40:47 +0000 (06:40 -0700)]
bpo-41085: Fix array.array.index() on 64-bit Windows (GH-21071)
Fix integer overflow in the :meth:`array.array.index` method on 64-bit Windows
for index larger than ``2**31``.
(cherry picked from commit
1d3dad5f96ed445b958ec53dfa0d46812f2162d9 )
Co-authored-by: WildCard65 <WildCard65@users.noreply.github.com>
Miss Islington (bot) [Tue, 23 Jun 2020 02:23:49 +0000 (19:23 -0700)]
Improve asyncio.loop.call_soon() documentation (GH-20883)
* Add a glossary entry for the term "callback"
* Link to it in loop.call_soon() and in the "Concurrency and Multithreading" section
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit
a16d6970496cae5ecab5aaea2b416a4b77527cc2 )
Co-authored-by: Roger Iyengar <ri@rogeriyengar.com>
Miss Islington (bot) [Mon, 22 Jun 2020 08:40:05 +0000 (01:40 -0700)]
bpo-41068: Fix read after write in zipfile for non-ASCII files names. (GH-21040)
(cherry picked from commit
36ff513f82e372ed3cea0bf7cbdf15a1ef6dab9e )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 22 Jun 2020 08:21:04 +0000 (01:21 -0700)]
bpo-40824: Do not mask errors in __iter__ in "in" and the operator module. (GH-20537)
Unexpected errors in calling the __iter__ method are no longer
masked by TypeError in the "in" operator and functions
operator.contains(), operator.indexOf() and operator.countOf().
(cherry picked from commit
cafe1b6e9d3594a34aba50e872d4198296ffaadf )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 22 Jun 2020 07:43:41 +0000 (00:43 -0700)]
bpo-41056: Fix reference to deallocated stack in pathconfig (Coverity) (GH-21013)
Reported by Coverity. (CID
1457554 RETURN_LOCAL)
path0 is assigned as a pointer to this right before it goes out of scope.
(cherry picked from commit
81328f30703bd7225e7e73aedb0994a7293ce190 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Sun, 21 Jun 2020 19:36:23 +0000 (12:36 -0700)]
bpo-41058: Use source file encoding in pdb.find_function(). (GH-21010)
(cherry picked from commit
19fcffa92773e008e4f5efb80047420a0cfafeec )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 21 Jun 2020 19:11:29 +0000 (12:11 -0700)]
bpo-41056: Fix a NULL pointer dereference on MemoryError within the ssl module. (GH-21009)
Detected by Coverity.
(cherry picked from commit
eb0d5c38de7f970d8cd8524f4163d831c7720f51 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Sat, 20 Jun 2020 21:12:27 +0000 (14:12 -0700)]
Add link to .pypirc specification (GH-20680) (#21019)
Related to https://github.com/pypa/twine/issues/638 and https://github.com/pypa/packaging.python.org/issues/730, I wrote a spec based on the one that was removed in https://github.com/python/cpython/pull/13087. However, a Google search for "pypirc" turned up at least one [blog post](https://truveris.github.io/articles/configuring-pypirc/) that links to https://docs.python.org/3/distutils/packageindex.htmlGH-the-pypirc-file, which now just links to this document. So, I thought a link to the spec would be handy.
Automerge-Triggered-By: @jaraco
(cherry picked from commit
af157fad286c00ff204e86d8556648cbb53ba99e )
Co-authored-by: Brian Rutledge <brian@bhrutledge.com>
Co-authored-by: Brian Rutledge <brian@bhrutledge.com>
Miss Islington (bot) [Fri, 19 Jun 2020 21:25:25 +0000 (14:25 -0700)]
bpo-41040: Fix test_modulefinder. (GH-20991)
(cherry picked from commit
a041e116db5f1e78222cbf2c22aae96457372680 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 19 Jun 2020 16:19:38 +0000 (09:19 -0700)]
bpo-38377: Fix skip_if_broken_multiprocessing_synchronize() on macOS (GH-20984)
skip_if_broken_multiprocessing_synchronize() only attempts for create
a semaphore on Linux to fix multiprocessing
test_resource_tracker_reused() on macOS.
(cherry picked from commit
3358da4054b9b0b045eb47dc74dee3d58bfbb1d5 )
Co-authored-by: Victor Stinner <vstinner@python.org>