]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 years agobpo-44180: Report generic syntax errors in the furthest position reached in the first...
Miss Islington (bot) [Fri, 21 May 2021 15:29:58 +0000 (08:29 -0700)] 
bpo-44180: Report generic syntax errors in the furthest position reached in the first parser pass (GH-26253) (GH-26281)

(cherry picked from commit b51081c1a8cf01b92ba0692173e1b9274a57f455)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years ago[3.10] bpo-43882 - Mention urllib.parse changes in Whats new section. (GH-26275)
Senthil Kumaran [Fri, 21 May 2021 12:29:24 +0000 (05:29 -0700)] 
[3.10] bpo-43882 - Mention urllib.parse changes in Whats new section. (GH-26275)

* [3.10] bpo-43882 - Mention urllib.parse changes in Whats new section.

* escape the \n chars, ReSTify :rfc:, urllib.parse is a :mod:

* minor formatting.

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years ago[3.10] bpo-38671: Add test that `pathlib.Path.resolve()` returns an absolute path...
Barney Gale [Fri, 21 May 2021 11:54:56 +0000 (12:54 +0100)] 
[3.10] bpo-38671: Add test that `pathlib.Path.resolve()` returns an absolute path. (GH-26184) (GH-26270)

Issue should be fixed in [bpo-43757]()

Co-Authored-by: Tzu-ping Chung <uranusjr@gmail.com>
(cherry picked from commit 18f41c04ff4161531f4d08631059fd3ed37c0218)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Automerge-Triggered-By: GH:encukou
4 years agobpo-38820: Test with OpenSSL 3.0.0-alpha17 (GH-26266)
Miss Islington (bot) [Thu, 20 May 2021 15:10:52 +0000 (08:10 -0700)] 
bpo-38820: Test with OpenSSL 3.0.0-alpha17 (GH-26266)

(cherry picked from commit 7109624d45bcf28fbb46a53354785dc5ff953a16)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agobpo-36160: Fix test_site so that it can run independently of other tests (GH-12131...
Miss Islington (bot) [Thu, 20 May 2021 10:42:00 +0000 (03:42 -0700)] 
bpo-36160: Fix test_site so that it can run independently of other tests (GH-12131) (GH-26262)

(cherry picked from commit 1270ad6ec8fe1f71e7d88086474f96f99670ac3a)

Co-authored-by: native-api <vano@mail.mipt.ru>
4 years agoUpdate link in SECURITY.md (GH-21320) (GH-26259)
Miss Islington (bot) [Thu, 20 May 2021 02:06:17 +0000 (19:06 -0700)] 
Update link in SECURITY.md (GH-21320) (GH-26259)

(cherry picked from commit 4d396e7d79bd1152f991147718dc5f094a3cc957)

Co-authored-by: Marcono1234 <Marcono1234@users.noreply.github.com>
4 years ago[doc] Fix typo in asyncio-eventloop documentation (GH-22311) (GH-26256)
Miss Islington (bot) [Wed, 19 May 2021 21:19:53 +0000 (14:19 -0700)] 
[doc] Fix typo in asyncio-eventloop documentation (GH-22311) (GH-26256)

(cherry picked from commit b66a03a49157076cb15a002aaf44a011cc79be3b)

Co-authored-by: Bruno <brunogeninatti@gmail.com>
4 years agobpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as coroutine...
Miss Islington (bot) [Wed, 19 May 2021 20:37:32 +0000 (13:37 -0700)] 
bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as coroutine methods (GH-20870) (GH-26254)

(cherry picked from commit c054e8f78f53035e06d6dc58c423d76c8a5fa39a)

Co-authored-by: naglis <naglis@users.noreply.github.com>
4 years agoFix compiler warning for misleading guarding in the tkinter (GH-26244) (GH-26251)
Miss Islington (bot) [Wed, 19 May 2021 18:46:45 +0000 (11:46 -0700)] 
Fix compiler warning for misleading guarding in the tkinter (GH-26244) (GH-26251)

The newest gcc emmits this warning:

```
/Modules/_tkinter.c:272:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  272 |         if(tcl_lock)PyThread_acquire_lock(tcl_lock, 1); tcl_tstate = tstate; }
      |         ^~
/Modules/_tkinter.c:2869:5: note: in expansion of macro ‘LEAVE_PYTHON’
 2869 |     LEAVE_PYTHON
      |     ^~~~~~~~~~~~
/Modules/_tkinter.c:243:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  243 |     (*(PyThreadState**)Tcl_GetThreadData(&state_key, sizeof(PyThreadState*)))
      |     ^
/Modules/_tkinter.c:272:57: note: in expansion of macro ‘tcl_tstate’
  272 |         if(tcl_lock)PyThread_acquire_lock(tcl_lock, 1); tcl_tstate = tstate; }
      |                                                         ^~~~~~~~~~
/Modules/_tkinter.c:2869:5: note: in expansion of macro ‘LEAVE_PYTHON’
 2869 |     LEAVE_PYTHON

```

that's because the macro packs together two statements at the same level
as the "if". The warning is misleading but is very noisy so it makes
sense to fix it.
(cherry picked from commit 95d04710c5fb0df5393b5add2c5c2de2412673eb)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years agobpo-44168: Fix error message in the parser for keyword arguments for invalid expressi...
Miss Islington (bot) [Wed, 19 May 2021 18:28:31 +0000 (11:28 -0700)] 
bpo-44168: Fix error message in the parser for keyword arguments for invalid expressions (GH-26210) (GH-26247)

(cherry picked from commit 33c0c90dea06fda1df99482521559ebef7210bea)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years agoFix compiler warning in the xml module (GH-26245) (GH-26249)
Miss Islington (bot) [Wed, 19 May 2021 18:21:19 +0000 (11:21 -0700)] 
Fix compiler warning in the xml module (GH-26245) (GH-26249)

The newest version of gcc complains about passing un-initialized arrays
as constant pointers:

```
/Modules/expat/xmltok_ns.c: In function ‘findEncodingNS’:
/Modules/expat/xmltok.h:272:10: warning: ‘buf’ may be used uninitialized [-Wmaybe-uninitialized]
  272 |   (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim))
      |   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Modules/expat/xmltok_ns.c:95:3: note: in expansion of macro ‘XmlUtf8Convert’
   95 |   XmlUtf8Convert(enc, &ptr, end, &p, p + ENCODING_MAX - 1);
      |   ^~~~~~~~~~~~~~
/Modules/expat/xmltok.h:272:10: note: by argument 5 of type ‘const char *’ to ‘enum XML_Convert_Result(const ENCODING *, const char **, const char *, char **, const char *)’ {aka ‘enum XML_Convert_Result(const struct encoding *, const char **, const char *, char **, const char *)’}
  272 |   (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim))
      |   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Modules/expat/xmltok_ns.c:95:3: note: in expansion of macro ‘XmlUtf8Convert’
   95 |   XmlUtf8Convert(enc, &ptr, end, &p, p + ENCODING_MAX - 1);
      |   ^~~~~~~~~~~~~~
In file included from /Modules/expat/xmltok.c:1657:
/Modules/expat/xmltok_ns.c:92:8: note: ‘buf’ declared here
   92 |   char buf[ENCODING_MAX];

```
(cherry picked from commit be93f81e58ba3742589259ef84325a95b547e424)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years agobpo-44010: IDLE: colorize pattern-matching soft keywords (GH-25851)
Miss Islington (bot) [Wed, 19 May 2021 09:44:14 +0000 (02:44 -0700)] 
bpo-44010: IDLE: colorize pattern-matching soft keywords (GH-25851)

(cherry picked from commit 60d343a81679ea90ae0e08fadcd132c16906a51a)

Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
4 years agobpo-35765: Clarify references to "object x" in the JSON tutorial (GH-22411) (GH-26218)
Miss Islington (bot) [Wed, 19 May 2021 08:59:23 +0000 (01:59 -0700)] 
bpo-35765: Clarify references to "object x" in the JSON tutorial (GH-22411) (GH-26218)

(cherry picked from commit 4fdcc39f711e1b586a94e2c5088fdd7e78fd9f58)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-44106: Purge unused sqlite3 doc includes (GH-26234)
Miss Islington (bot) [Wed, 19 May 2021 08:17:19 +0000 (01:17 -0700)] 
bpo-44106: Purge unused sqlite3 doc includes (GH-26234)

(cherry picked from commit d798acc8733b605f7fc9c3c1a85cd14ee2a56add)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-44106: Improve sqlite3 example database contents (GH-26027)
Miss Islington (bot) [Wed, 19 May 2021 07:44:00 +0000 (00:44 -0700)] 
bpo-44106: Improve sqlite3 example database contents (GH-26027)

(cherry picked from commit 92d1064727d6b7f4136f9c09ab52ae15e3676afe)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-30593: Doc'ed that executescript() disregards isolation level (GH-26220)
Miss Islington (bot) [Wed, 19 May 2021 07:37:33 +0000 (00:37 -0700)] 
bpo-30593: Doc'ed that executescript() disregards isolation level (GH-26220)

(cherry picked from commit 901443757333a66ff2b5c85eba30dc1c48eac321)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years ago[3.10] bpo-41963: document that ConfigParser strips off comments (GH-26197) (GH-26214)
Łukasz Langa [Tue, 18 May 2021 17:03:09 +0000 (19:03 +0200)] 
[3.10] bpo-41963: document that ConfigParser strips off comments (GH-26197) (GH-26214)

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Laura Gutierrez Funderburk <58710704+lgfunderburk@users.noreply.github.com>
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
(cherry picked from commit 02ee8191263848f8c8999f72286148946b83e5c9)

4 years ago[3.10] bpo-25872: Add unit tests for linecache and threading (GH-25913) (GH-26212)
Irit Katriel [Tue, 18 May 2021 13:53:57 +0000 (14:53 +0100)] 
[3.10] bpo-25872: Add unit tests for linecache and threading (GH-25913) (GH-26212)

(cherry picked from commit 115dea9e2602b96b63390f00cc880e90c433efa2)

Co-authored-by: uniocto <serit142sa33go@gmail.com>
4 years agobpo-33433 Fix private address checking for IPv4 mapped IPv6. (GH-26172)
Miss Islington (bot) [Mon, 17 May 2021 19:42:08 +0000 (12:42 -0700)] 
bpo-33433 Fix private address checking for IPv4 mapped IPv6. (GH-26172)

For IPv4 mapped IPv6 addresses, defer privacy check to the mapped IPv4 address. Solves bug where public mapped IPv4 addresses are considered private by the IPv6 check.

Automerge-Triggered-By: GH:gpshead
(cherry picked from commit 83f0f8d62f279f846a92fede2244beaa0149b9d8)

Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
4 years agobpo-43650: Fix MemoryError on zip.read in shutil._unpack_zipfile for large files...
Miss Islington (bot) [Mon, 17 May 2021 17:35:30 +0000 (10:35 -0700)] 
bpo-43650: Fix MemoryError on zip.read in shutil._unpack_zipfile for large files (GH-25058) (GH-26190)

`shutil.unpack_archive()` tries to read the whole file into memory, making no use of any kind of smaller buffer. Process crashes for really large files: I.e. archive: ~1.7G, unpacked: ~10G. Before the crash it can easily take away all available RAM on smaller systems. Had to pull the code form `zipfile.Zipfile.extractall()` to fix this

Automerge-Triggered-By: GH:gpshead
(cherry picked from commit f32c7950e0077b6d9a8e217c2796fc582f18ca08)

Co-authored-by: Igor Bolshakov <ibolsch@gmail.com>
4 years agobpo-44145: Release the GIL around HMAC_Update. (GH-26157)
Miss Islington (bot) [Mon, 17 May 2021 08:03:57 +0000 (01:03 -0700)] 
bpo-44145: Release the GIL around HMAC_Update. (GH-26157)

It was always meant to be released for parallelization.
This now matches the other similar code in the module.

Thanks michaelforney for noticing!
(cherry picked from commit c10392e7ddb3eafbd11e9ffe335c07648426715f)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years agoApply edits from Allen Downey's review of the linear_regression docs. (GH-26176)...
Miss Islington (bot) [Mon, 17 May 2021 02:47:57 +0000 (19:47 -0700)] 
Apply edits from Allen Downey's review of the linear_regression docs. (GH-26176) (GH-26185)

4 years ago[doc] Fix typo in os module (GH-24464)
Miss Islington (bot) [Sun, 16 May 2021 23:59:12 +0000 (16:59 -0700)] 
[doc] Fix typo in os module (GH-24464)

Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit fdc7e52f5f1853e350407c472ae031339ac7f60c)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
4 years agofix docstring typo in bdb.py (GH-22323) (#26179)
Miss Islington (bot) [Sun, 16 May 2021 23:42:56 +0000 (16:42 -0700)] 
fix docstring typo in bdb.py (GH-22323) (#26179)

(cherry picked from commit be54fb5ae73db507a0cdb1884d553aca5966f0e6)

Co-authored-by: flizzywine <1041958497@qq.com>
4 years agoFix a typo/error in a news entry (bidst_wheel -> bdist_wheel) (GH-24284) (#26181)
Miss Islington (bot) [Sun, 16 May 2021 23:41:05 +0000 (16:41 -0700)] 
Fix a typo/error in a news entry (bidst_wheel -> bdist_wheel) (GH-24284) (#26181)

Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit 56df20d7014bfe2df9cd46dece93271b516c50f6)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-39950: Fix deprecation warning in test for `pathlib.Path.link_to()` (GH-26155...
Miss Islington (bot) [Sun, 16 May 2021 22:35:44 +0000 (15:35 -0700)] 
bpo-39950: Fix deprecation warning in test for `pathlib.Path.link_to()` (GH-26155) (GH-26178)

(cherry picked from commit 1a08c5ac49b748d5e4e4b508d22d3804e3cd4dcc)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
4 years ago[3.10] Fix typo in comment (GH-26162) (GH-26164)
Miss Islington (bot) [Sun, 16 May 2021 18:08:57 +0000 (11:08 -0700)] 
[3.10] Fix typo in comment (GH-26162) (GH-26164)

(cherry picked from commit de367378f67d7e90e4015100b19277685a3c9bb3)

Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
Automerge-Triggered-By: GH:iritkatriel
4 years ago[3.10] Remove a redundant assignment in Tools/unittestgui/unittestgui.py (GH-21438...
Irit Katriel [Sun, 16 May 2021 16:56:15 +0000 (17:56 +0100)] 
[3.10] Remove a redundant assignment in Tools/unittestgui/unittestgui.py (GH-21438) (GH-26171)

(cherry picked from commit a42d98ed91cd1f08b2e9734ca6ca136dd10dff5d)

Co-authored-by: Serhii Hidenko <shidenko97@gmail.com>
4 years agobpo-44143: Fix crash in the parser when raising tokenizer errors with an exception...
Miss Islington (bot) [Sat, 15 May 2021 17:39:18 +0000 (10:39 -0700)] 
bpo-44143: Fix crash in the parser when raising tokenizer errors with an exception set (GH-26144) (GH-26148)

(cherry picked from commit 80b089179fa798c8ceaab2ff699c82499b2fcacd)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years agobpo-32133: Improve numbers docs (GH-26124) (GH-26149)
Miss Islington (bot) [Sat, 15 May 2021 17:28:55 +0000 (10:28 -0700)] 
bpo-32133: Improve numbers docs (GH-26124) (GH-26149)

4 years agobpo-44139: Use a more descriptive syntax error comprehension case in the What's New...
Miss Islington (bot) [Sat, 15 May 2021 16:56:28 +0000 (09:56 -0700)] 
bpo-44139: Use a more descriptive syntax error comprehension case in the What's New for 3.10 (GH-26145) (GH-26146)

(cherry picked from commit c5b833046d9dbb2063f776703fc513b71664b859)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years ago[3.10] bpo-37788: Fix reference leak when Thread is never joined (GH-26103) (GH-26138)
Miss Islington (bot) [Sat, 15 May 2021 09:24:44 +0000 (02:24 -0700)] 
[3.10] bpo-37788: Fix reference leak when Thread is never joined (GH-26103) (GH-26138)

When a Thread is not joined after it has stopped, its lock may remain in the _shutdown_locks set until interpreter shutdown.  If many threads are created this way, the _shutdown_locks set could therefore grow endlessly.  To avoid such a situation, purge expired locks each time a new one is added or removed.
(cherry picked from commit c10c2ec7a0e06975e8010c56c9c3270f8ea322ec)

Co-authored-by: Antoine Pitrou <antoine@python.org>
4 years agobpo-44072: fix Complex, Integral docs for `**` (GH-25986)
Miss Islington (bot) [Fri, 14 May 2021 22:22:45 +0000 (15:22 -0700)] 
bpo-44072: fix Complex, Integral docs for `**` (GH-25986)

In numbers module docstrings and docs.
(cherry picked from commit 4aa63d65a9971d14f1a2131b989dca0dab514a9d)

Co-authored-by: Rory Yorke <rory.yorke@gmail.com>
4 years agobpo-43729: Clarify comment in tutorial example (GH-25191) (#26136)
Miss Islington (bot) [Fri, 14 May 2021 20:06:09 +0000 (13:06 -0700)] 
bpo-43729: Clarify comment in tutorial example (GH-25191) (#26136)

(cherry picked from commit 07797121cc290ede0b3d3cf02068f3d993cddd15)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agoSubprocess Protocols Documentation (GH-20950) (GH-26133)
Miss Islington (bot) [Fri, 14 May 2021 17:22:55 +0000 (10:22 -0700)] 
Subprocess Protocols Documentation (GH-20950) (GH-26133)

4 years ago[3.10] [doc] Fix typos in cgi.rst (GH-24766) (GH-26132)
Irit Katriel [Fri, 14 May 2021 17:12:33 +0000 (18:12 +0100)] 
[3.10] [doc] Fix typos in cgi.rst (GH-24766) (GH-26132)

(cherry picked from commit 19d839ae20db9c6f740646e99df7f4601cb9f4dc)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
4 years agoUpdate doc as relative import can be used with star import (GH-25667) (GH-26121)
Miss Islington (bot) [Fri, 14 May 2021 14:26:40 +0000 (07:26 -0700)] 
Update doc as relative import can be used with star import (GH-25667) (GH-26121)

(cherry picked from commit 3d4b5f1019123a7d74801500eb18ec8fa12136bc)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
Co-authored-by: Saiyang Gou <gousaiyang@163.com>
4 years agoReword paragraph on specific value for Py_LIMITED_API (GH-26101) (GH-26123)
Miss Islington (bot) [Fri, 14 May 2021 12:28:08 +0000 (05:28 -0700)] 
Reword paragraph on specific value for Py_LIMITED_API (GH-26101) (GH-26123)

(cherry picked from commit ddd30b2dd207c3c963874f0644cdff2ee5989575)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 years agobpo-44108: sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032) (GH-26125)
Miss Islington (bot) [Fri, 14 May 2021 11:07:24 +0000 (04:07 -0700)] 
bpo-44108: sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032) (GH-26125)

(cherry picked from commit be7e467bcf5e419302d887904ef3e8fd310c68e7)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agoUpdated code example for asyncio.gather (GH-20604) (GH-26119)
Miss Islington (bot) [Fri, 14 May 2021 06:07:20 +0000 (23:07 -0700)] 
Updated code example for asyncio.gather (GH-20604) (GH-26119)

The previous example did not fully showcase the interest of using gather.

Here the example showcases "the result is an aggregate list of returned values".
(cherry picked from commit 56b8ea65d28bd865e2363e10e9f1c2ca3433ffc2)

Co-authored-by: josephernest <nouvellecollection@gmail.com>
Co-authored-by: josephernest <nouvellecollection@gmail.com>
4 years agobpo-43977: Update pattern matching language reference docs (GH-25917) (GH-26117)
Miss Islington (bot) [Fri, 14 May 2021 05:55:41 +0000 (22:55 -0700)] 
bpo-43977: Update pattern matching language reference docs (GH-25917) (GH-26117)

* Update patma language reference with new changes to sequence and mapping

* update 3.10 whatsnew too
(cherry picked from commit 53c91ac5253bf1cb3cb20e1345e798a53f4c3517)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
4 years agobpo-43795: PEP 652 user documentation (GH-25668) (GH-26034)
Miss Islington (bot) [Fri, 14 May 2021 05:29:09 +0000 (22:29 -0700)] 
bpo-43795: PEP 652 user documentation (GH-25668) (GH-26034)

- Reformat the C API and ABI Versioning page (and extend/clarify a bit)
- Rewrite the stable ABI docs into a general text on C API Compatibility
- Add a list of Limited API contents, and notes for the individual items.
- Replace `Include/README.rst` with a link to a devguide page with the same info
(cherry picked from commit b05955d6f5f149523b5855a335444b7c6324bdb7)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 years agobpo-43757: Document os.path.realpath(strict=True) in 3.10 whatsnew. (GH-26090) (...
Miss Islington (bot) [Fri, 14 May 2021 05:24:13 +0000 (22:24 -0700)] 
bpo-43757: Document os.path.realpath(strict=True) in 3.10 whatsnew. (GH-26090) (#26099)

(cherry picked from commit d1560d2429dff8e7d397801786e966dd33bb1bd7)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Barney Gale <barney.gale@gmail.com>
4 years ago[3.10] bpo-43908: Add What's New entry for Py_TPFLAGS_IMMUTABLETYPE flag (GH-25816...
Miss Islington (bot) [Thu, 13 May 2021 23:04:15 +0000 (16:04 -0700)] 
[3.10] bpo-43908: Add What's New entry for Py_TPFLAGS_IMMUTABLETYPE flag (GH-25816) (GH-26115)

(cherry picked from commit a09fc9c63f1b5980c62ff2712f67500bacb92b04)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Automerge-Triggered-By: GH:gvanrossum
4 years agobpo-28146: Fix a confusing error message in str.format() (GH-24213)
Miss Islington (bot) [Thu, 13 May 2021 21:24:49 +0000 (14:24 -0700)] 
bpo-28146: Fix a confusing error message in str.format() (GH-24213)

Automerge-Triggered-By: GH:pitrou
(cherry picked from commit 4aeee0b47b3a2b604bbac37040320ffc88c291f2)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agobpo-44114: Remove redundant cast. (GH-26098)
Miss Islington (bot) [Thu, 13 May 2021 21:07:31 +0000 (14:07 -0700)] 
bpo-44114: Remove redundant cast. (GH-26098)

(cherry picked from commit e0c614e5fd017ca43cab55a9f8490133750c704f)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
4 years agobpo-44125: Fix "make patchcheck" on non-English locale (GH-26102)
Miss Islington (bot) [Thu, 13 May 2021 18:42:31 +0000 (11:42 -0700)] 
bpo-44125: Fix "make patchcheck" on non-English locale (GH-26102)

The patch from [bpo-44074]() does not account for a possibly non-English locale and blindly greps for "HEAD branch" in a possibly localized text.

Automerge-Triggered-By: GH:pitrou
(cherry picked from commit 1aa3530314d339725519f4ad95b7dea4b00b657e)

Co-authored-by: Antoine Pitrou <antoine@python.org>
4 years agobpo-44098: Drop ParamSpec from most ``__parameters__`` in typing generics (GH-26013...
Miss Islington (bot) [Thu, 13 May 2021 17:19:24 +0000 (10:19 -0700)] 
bpo-44098: Drop ParamSpec from most ``__parameters__`` in typing generics (GH-26013) (#26091)

Added two new attributes to ``_GenericAlias``:
* ``_typevar_types``, a single type or tuple of types indicating what types are treated as a ``TypeVar``. Used for ``isinstance`` checks.
* ``_paramspec_tvars ``, a boolean flag which guards special behavior for dealing with ``ParamSpec``. Setting it to ``True`` means this  class deals with ``ParamSpec``.

Automerge-Triggered-By: GH:gvanrossum
(cherry picked from commit b2f3f8e3d81b0bb0ba18f563d82c28ba133c0790)

4 years ago[3.10] bpo-43933: Force RETURN_VALUE bytecodes to have line numbers (GH-26061)
Mark Shannon [Thu, 13 May 2021 13:11:41 +0000 (14:11 +0100)] 
[3.10] bpo-43933: Force RETURN_VALUE bytecodes to have line numbers (GH-26061)

* Guarantee that line number is set for returns.

4 years agobpo-39906: Document new follow_symlinks argument to pathlib.Path.stat() and chmod...
Miss Islington (bot) [Thu, 13 May 2021 12:35:01 +0000 (05:35 -0700)] 
bpo-39906: Document new follow_symlinks argument to pathlib.Path.stat() and chmod() in 3.10 whatsnew. (GH-26089)

(cherry picked from commit 366c69f3f63a2a1cce57dabe8f7c2e67d1df625d)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
4 years agobpo-44114: Fix dictkeys_reversed and dictvalues_reversed function signatures (GH...
Miss Islington (bot) [Thu, 13 May 2021 08:17:07 +0000 (01:17 -0700)] 
bpo-44114: Fix dictkeys_reversed and dictvalues_reversed function signatures (GH-26062)

These are passed and called as PyCFunction, however they are defined here without the (ignored) args parameter.

This works fine in some C compilers, but fails in webassembly or anything else that has strict function pointer call type checking.
(cherry picked from commit ab383eb6f03896b0ef6634ee3d776344fcb9e5b8)

Co-authored-by: Joe Marshall <joe.marshall@nottingham.ac.uk>
4 years agobpo-44030: Fix formatting error in exceptions docs (GH-25929) (GH-26086)
Miss Islington (bot) [Thu, 13 May 2021 00:27:08 +0000 (17:27 -0700)] 
bpo-44030: Fix formatting error in exceptions docs (GH-25929) (GH-26086)

(cherry picked from commit 8ea350ee9055435c4267834cdaf85f1a2d4a1ed1)

Co-authored-by: Miguel Brito <5544985+miguendes@users.noreply.github.com>
4 years agobpo-44116: Add GC support to _csv heap types (GH-26074) (GH-26081)
Miss Islington (bot) [Wed, 12 May 2021 18:56:19 +0000 (11:56 -0700)] 
bpo-44116: Add GC support to _csv heap types (GH-26074) (GH-26081)

(cherry picked from commit e5ba1fe995d4b4f3f6a089a7ec4dd186dd573830)

4 years agobpo-40645: Fix ref leaks in _hashopenssl (GH-26079)
Miss Islington (bot) [Wed, 12 May 2021 18:45:06 +0000 (11:45 -0700)] 
bpo-40645: Fix ref leaks in _hashopenssl (GH-26079)

(cherry picked from commit 504ffdae4e0cb7775f3e584c3b1d20c262fdfd7e)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-38908: Fix issue when non runtime_protocol failed to raise TypeError (GH-26067)
Miss Islington (bot) [Wed, 12 May 2021 16:09:04 +0000 (09:09 -0700)] 
bpo-38908: Fix issue when non runtime_protocol failed to raise TypeError (GH-26067)

(cherry picked from commit c40486a32d7e37b01ead94e701d69847f5b60e30)

Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
4 years ago[3.10] bpo-25479: add unit test for __subclasshook__ in test_abc.py (GH-24034) (GH...
Irit Katriel [Wed, 12 May 2021 14:06:34 +0000 (15:06 +0100)] 
[3.10] bpo-25479: add unit test for __subclasshook__ in test_abc.py (GH-24034) (GH-26065)

Co-authored-by: Szymon Trapp
(cherry picked from commit 5010c044c73ee55d0fd578cfecd3f4c3f01a4140)

Co-authored-by: Karl Dubost <karl+github@la-grange.net>
4 years agobpo-44089: Allow subclassing of ``csv.Error`` (GH-26008) (GH-26066)
Miss Islington (bot) [Wed, 12 May 2021 14:02:46 +0000 (07:02 -0700)] 
bpo-44089: Allow subclassing of ``csv.Error`` (GH-26008) (GH-26066)

* fix subclass error

* Update 2021-05-09-22-52-34.bpo-44089.IoANsN.rst
(cherry picked from commit 2b458c1dba4058c808fde25226bb2d91c5a909ca)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
4 years agobpo-40640: doc -- add missing ... in example of Continue (GH-26055) (GH-26057)
Miss Islington (bot) [Wed, 12 May 2021 10:25:54 +0000 (03:25 -0700)] 
bpo-40640: doc -- add missing ... in example of Continue (GH-26055) (GH-26057)

Co-authored-by: Chas Belov <59780179+ChasBelov@users.noreply.github.com>
(cherry picked from commit 6574334a68aa324394a6fd1f855ecbad20432b1e)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agoCorrect the changelog entry for the syntax error message for multiple exception types...
Miss Islington (bot) [Tue, 11 May 2021 23:58:18 +0000 (16:58 -0700)] 
Correct the changelog entry for the syntax error message for multiple exception types (GH-26038)

(cherry picked from commit c1df8808e054bbe4fe66f35ccc0f88d8b292778a)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
4 years agobpo-28528: Fix pdb.checkline() attribute error when 'curframe' is None. (GH-25438...
Miss Islington (bot) [Tue, 11 May 2021 23:48:05 +0000 (16:48 -0700)] 
bpo-28528: Fix pdb.checkline() attribute error when 'curframe' is None. (GH-25438) (#26050)

Co-authored-by: Thomas Kluyver <takowl@gmail.com>
(cherry picked from commit 8563a7052ccd98e6a381d361664ce567afd5eb6e)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agoFix import of HTTPError (GH-22304) (GH-26047)
Miss Islington (bot) [Tue, 11 May 2021 23:18:13 +0000 (16:18 -0700)] 
Fix import of HTTPError (GH-22304) (GH-26047)

Import HTTPError from urllib.error instead of urllib.request.
(cherry picked from commit 5fedf71439187f00c661b16b80d398b74b00390e)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
4 years agobpo-10548: expectedFailure does not apply to fixtures (GH-23201) (#26044)
Miss Islington (bot) [Tue, 11 May 2021 22:23:40 +0000 (15:23 -0700)] 
bpo-10548: expectedFailure does not apply to fixtures (GH-23201) (#26044)

(cherry picked from commit 23ae2c3bacc167f7bbfea1846bbbc9dde63a1bfd)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agobpo-23750: Document os-system, subprocess. Patch by Martin Panter. (GH-26016) (GH...
Miss Islington (bot) [Tue, 11 May 2021 20:55:15 +0000 (13:55 -0700)] 
bpo-23750: Document os-system, subprocess. Patch by Martin Panter. (GH-26016) (GH-26040)

* Document os-system, subprocess Patch

* Update Doc/library/os.rst

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 5f2eb87f2893c5e77ade4d662cebcce59d3f2c2f)

Co-authored-by: uniocto <serit142sa33go@gmail.com>
Co-authored-by: uniocto <serit142sa33go@gmail.com>
4 years agobpo-25821: Fix inaccuracy in threading.enumerate/is_alive documentation (GH-23192...
Miss Islington (bot) [Tue, 11 May 2021 18:19:27 +0000 (11:19 -0700)] 
bpo-25821: Fix inaccuracy in threading.enumerate/is_alive documentation (GH-23192) (#26035)

(cherry picked from commit 12e7d10dfd28d4e26304e2c06b2e41c7418ec6f3)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agoDoc: http.server: directory is not a class attribute, but an argument. (GH-26017)
Miss Islington (bot) [Tue, 11 May 2021 02:20:22 +0000 (19:20 -0700)] 
Doc: http.server: directory is not a class attribute, but an argument. (GH-26017)

* Doc: http.server: directory is not a class attribute, but an argument.
(cherry picked from commit d1b81574edd75e33ae85c525ac988ce772675a07)

Co-authored-by: Julien Palard <julien@palard.fr>
4 years agobpo-44074: let patchcheck infer the base branch name (GH-25991)
Miss Islington (bot) [Mon, 10 May 2021 18:58:42 +0000 (11:58 -0700)] 
bpo-44074: let patchcheck infer the base branch name (GH-25991)

(cherry picked from commit 21fbbb98bac8bfe56f8b931258c36750e84f9285)

Co-authored-by: Leonardo Lai <leonardo.lai@live.com>
4 years agobpo-43558: Add note about base class initialization to dataclasses doc (GH-25967...
Miss Islington (bot) [Mon, 10 May 2021 13:38:46 +0000 (06:38 -0700)] 
bpo-43558: Add note about base class initialization to dataclasses doc (GH-25967) (GH-26018)

(cherry picked from commit 2a031723eefcf6f1d678bbb4f6018610d43623c4)

Co-authored-by: dhoekstra2000 <douwe.hoekstra2512@gmail.com>
Co-authored-by: dhoekstra2000 <douwe.hoekstra2512@gmail.com>
4 years agobpo-43149: Correct the syntax error message for multiple exception types (GH-25996...
Miss Islington (bot) [Sun, 9 May 2021 21:13:50 +0000 (14:13 -0700)] 
bpo-43149: Correct the syntax error message for multiple exception types (GH-25996) GH-25997)

Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit 6692dc1ca99fb34a19d0a4b93cf8e10619490001)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years agoRevert test for Tix deprecation warning (GH-26005)
Miss Islington (bot) [Sun, 9 May 2021 07:19:43 +0000 (00:19 -0700)] 
Revert test for Tix deprecation warning (GH-26005)

Added in bpo-41730 (GH-22186), the test apparently causes refleaks.  The
test isn't worth hunting them down, so it's simply reverted.

This partially reverts commit 4a2d98a1e98de25c5114d11fcb0f9fedbb057e51.
(cherry picked from commit 8e8307d70bb9dc18cfeeed3277c076309b27515e)

Co-authored-by: Zachary Ware <zach@python.org>
4 years agoFix a word in dataclasses docs. (GH-26003) (GH-26004)
Miss Islington (bot) [Sun, 9 May 2021 02:22:48 +0000 (19:22 -0700)] 
Fix a word in dataclasses docs. (GH-26003) (GH-26004)

(cherry picked from commit 801497a1152504f3181b495c0271bb9ff99df3d1)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
4 years agobpo-32924: Fix the Show Source url in the documentation (GH-25994)
Pablo Galindo [Sat, 8 May 2021 16:15:01 +0000 (17:15 +0100)] 
bpo-32924: Fix the Show Source url in the documentation (GH-25994)

4 years agobpo-42725: mention the changes on what's new (GH-25974)
Miss Islington (bot) [Sat, 8 May 2021 12:20:48 +0000 (05:20 -0700)] 
bpo-42725: mention the changes on what's new (GH-25974)

(cherry picked from commit 17229ab4a2fd5db20d52ef0f3aca2a8b51869c43)

Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
4 years ago[3.10] bpo-31904: Correct error string in test_file_not_exists() for VxWorks (GH...
Miss Islington (bot) [Sat, 8 May 2021 09:09:29 +0000 (02:09 -0700)] 
[3.10] bpo-31904: Correct error string in test_file_not_exists() for VxWorks (GH-25965) (GH-25983)

The error string on VxWorks is "no such file or directory" for FileNotFoundError. That is, the 1st letter of the error string has lower case.
(cherry picked from commit b063b02eabf91bfd4edc0f3fde7ce8f0ebb392c4)

Co-authored-by: pxinwr <peixing.xin@windriver.com>
Automerge-Triggered-By: GH:gpshead
4 years agoFix make libainstall. (GH-25980)
Miss Islington (bot) [Sat, 8 May 2021 06:58:53 +0000 (23:58 -0700)] 
Fix make libainstall. (GH-25980)

Initial patch by Benno Leslie.
(cherry picked from commit 80d250d68cf3bb511fd862169c681b28028499c2)

Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
4 years agoUpdate the SOURCE_URI in pyspecific.py to point to the new branch (GH-25978)
Pablo Galindo [Sat, 8 May 2021 02:43:43 +0000 (03:43 +0100)] 
Update the SOURCE_URI in pyspecific.py to point to the new branch (GH-25978)

4 years agobpo-44026: Idle - display interpreter's 'did you mean' hints (GH-25912)
Miss Islington (bot) [Sat, 8 May 2021 00:35:25 +0000 (17:35 -0700)] 
bpo-44026: Idle - display interpreter's 'did you mean' hints (GH-25912)

A C function accessible by the default exception handler, but not by python code,
finds the existing name closest to the name causing a name or attribute error.  For
such errors, call the default handler after capturing stderr and retrieve its message line.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 092f9ddb5e85665552c8207972cd393d492f764e)
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
4 years agobpo-44063: set the missing end locations on the compiler (GH-25956) (#25972)
Miss Islington (bot) [Fri, 7 May 2021 20:40:09 +0000 (13:40 -0700)] 
bpo-44063: set the missing end locations on the compiler (GH-25956) (#25972)

(cherry picked from commit b2ec37a7224318d466e0877790ed740ce8b4867d)

Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
4 years agobpo-41730: Show deprecation warnings for tkinter.tix (GH-22186)
Miss Islington (bot) [Fri, 7 May 2021 16:14:48 +0000 (09:14 -0700)] 
bpo-41730: Show deprecation warnings for tkinter.tix (GH-22186)

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
Co-authored-by: Zachary Ware <zach@python.org>
(cherry picked from commit 4a2d98a1e98de25c5114d11fcb0f9fedbb057e51)

Co-authored-by: wyz23x2 <52805709+wyz23x2@users.noreply.github.com>
4 years agoSimple Enhancement. Add missing return statements in ftplib documentation. (GH-25968...
Miss Islington (bot) [Fri, 7 May 2021 14:13:15 +0000 (07:13 -0700)] 
Simple Enhancement. Add missing return statements in ftplib documentation. (GH-25968) (#25969)

(cherry picked from commit b32c8e97951db46484ba3b646b988bcdc4062199)

Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
4 years agobpo-40943: Fix skipitem() didn't raise SystemError (GH-25937)
Miss Islington (bot) [Fri, 7 May 2021 03:18:42 +0000 (20:18 -0700)] 
bpo-40943: Fix skipitem() didn't raise SystemError (GH-25937)

`convertitem()` raises `SystemError` when 'GH-' is used without `PY_SSIZE_T_CLEAN`.
This commit makes `skipitem()` raise it too.
(cherry picked from commit 4ebf4a6bfad4afcbab3baf9c0159c7767e2a64c0)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
4 years agoFix minor grammar problems in dataclasses documentation (GH-25948) (GH-25958)
Miss Islington (bot) [Thu, 6 May 2021 21:54:32 +0000 (14:54 -0700)] 
Fix minor grammar problems in dataclasses documentation (GH-25948) (GH-25958)

Some missing words; some odd word choices.
(cherry picked from commit ee8e7c2fa950f88ba2c33035bea7aed7aaf0cb77)

Co-authored-by: Scott Noyes <snoyes@gmail.com>
Co-authored-by: Scott Noyes <snoyes@gmail.com>
4 years agobpo-44059: Register the SerenityOS Browser in the webbrowser module (GH-25947) (GH...
Miss Islington (bot) [Thu, 6 May 2021 19:49:26 +0000 (12:49 -0700)] 
bpo-44059: Register the SerenityOS Browser in the webbrowser module (GH-25947) (GH-25950)

(cherry picked from commit 329a47f0524e9d3f43f1e28c4f9e7c088662c030)

Co-authored-by: Linus Groh <mail@linusgroh.de>
4 years agobpo-43972: Set content-length to 0 for http.server.SimpleHTTPRequestHandler 301s...
Miss Islington (bot) [Thu, 6 May 2021 19:48:36 +0000 (12:48 -0700)] 
bpo-43972: Set content-length to 0 for http.server.SimpleHTTPRequestHandler 301s (GH-25705)

* Set content-length for simple http server 301s

When http.server.SimpleHTTPRequestHandler sends a 301 (Moved
Permanently) due to a missing file, it does not set a Content-Length
of 0. Unfortunately, certain clients can be left waiting for the
connection to be closed in this circumstance, even though no body
will be sent. At time of writing, both curl and Firefox demonstrate
this behavior.

* Test Content-Length on simple http server redirect

When serving a redirect, the SimpleHTTPRequestHandler will now send
`Content-Length: 0`. Several tests for http.server already cover
various behaviors and checks including redirection. This change only
adds one check for the expected Content-Length on the simplest case
for a redirect.

* Add news entry for SimpleHTTPRequestHandler fix

* Clarify the specific kind of 301

Co-authored-by: Senthil Kumaran <skumaran@gatech.edu>
(cherry picked from commit fb427255614fc1f740e7785554c1da8ca39116c2)

Co-authored-by: Stephen Rosen <sirosen@globus.org>
4 years agodocs: clearly document that ":GH-X" string formatting results in "0X..." (GH-25941)
Miss Islington (bot) [Thu, 6 May 2021 19:46:08 +0000 (12:46 -0700)] 
docs: clearly document that ":GH-X" string formatting results in "0X..." (GH-25941)

* clearly document that ":GH-X" string formatting results in "0X..."

* put back the "serial comma"
(cherry picked from commit 92ceb1c8402422412fcbb98ca19448677c667c3c)

Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
4 years agoEliminate duplicated calculations and unnecessary work for linear regression (GH...
Miss Islington (bot) [Thu, 6 May 2021 15:26:55 +0000 (08:26 -0700)] 
Eliminate duplicated calculations and unnecessary work for linear regression (GH-25922) (GH-25945)

4 years agobpo-38820: Test with OpenSSL 3.0.0-alpha16 (GH-25942)
Miss Islington (bot) [Thu, 6 May 2021 14:53:11 +0000 (07:53 -0700)] 
bpo-38820: Test with OpenSSL 3.0.0-alpha16 (GH-25942)

Also use new make target to install FIPS provider.
(cherry picked from commit e8525567dd325527e00b3c4ce7c4ce31ff3f1a8c)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agoCorrect location for syntax error in try-except (GH-25939)
Mark Shannon [Thu, 6 May 2021 12:38:50 +0000 (13:38 +0100)] 
Correct location for syntax error in try-except (GH-25939)

4 years agobpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 Continue...
Miss Islington (bot) [Wed, 5 May 2021 23:14:28 +0000 (16:14 -0700)] 
bpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 Continue (GH-25916) (GH-25931)

Fixes http.client potential denial of service where it could get stuck reading lines from a malicious server after a 100 Continue response.

Co-authored-by: Gregory P. Smith <greg@krypto.org>
(cherry picked from commit 47895e31b6f626bc6ce47d175fe9d43c1098909d)

Co-authored-by: Gen Xu <xgbarry@gmail.com>
4 years agobpo-43882 Remove the newline, and tab early. From query and fragments. (GH-25936)
Miss Islington (bot) [Wed, 5 May 2021 23:04:38 +0000 (16:04 -0700)] 
bpo-43882 Remove the newline, and tab early. From query and fragments. (GH-25936)

(cherry picked from commit 985ac016373403e8ad41f8d563c4355ffa8d49ff)

4 years agobpo-36515: Disable unaligned memory access in _sha3 on ARM (GH-25927)
Miss Islington (bot) [Wed, 5 May 2021 22:05:22 +0000 (15:05 -0700)] 
bpo-36515: Disable unaligned memory access in _sha3 on ARM (GH-25927)

Contributed-By: Matthias Klose
Automerge-Triggered-By: GH:tiran
(cherry picked from commit da5c808fb50d34bc2e180d9481706072f33025da)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years agobpo-43795: Mark PyCodec_Unregister as a function, not data, in stable ABI (GH-25920)
Miss Islington (bot) [Wed, 5 May 2021 18:15:25 +0000 (11:15 -0700)] 
bpo-43795: Mark PyCodec_Unregister as a function, not data, in stable ABI (GH-25920)

(cherry picked from commit cf86996a8e5965ff587040d0c2831c3132081a21)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 years agobpo-35753: Fix crash in doctest with unwrap-able functions (GH-22981) (#25926)
Miss Islington (bot) [Wed, 5 May 2021 18:01:21 +0000 (11:01 -0700)] 
bpo-35753: Fix crash in doctest with unwrap-able functions (GH-22981) (#25926)

Ignore objects that inspect.unwrap throws due to
too many wrappers.  This is a very rare case, however
it can easily be surfaced when a module under doctest
imports unitest.mock.call into its namespace.

We simply skip any object that throws this exception.
This should handle the majority of cases.
(cherry picked from commit 565a31804c1139fe7886f38af3b3923653b0c1b3)

Co-authored-by: Alfred Perlstein <alfred@fb.com>
4 years agobpo-44040: Update broken link in pathlib source (GH-25905) (GH-25910)
Miss Islington (bot) [Wed, 5 May 2021 08:54:05 +0000 (01:54 -0700)] 
bpo-44040: Update broken link in pathlib source (GH-25905) (GH-25910)

(cherry picked from commit 96d5c7038b06e93d20822d28ed42a2183f876857)

Co-authored-by: Kevin Follstad <kfollstad@gmail.com>
4 years agoEliminate duplicated assignment in _randommodule.c (GH-25904) (GH-25909)
Miss Islington (bot) [Wed, 5 May 2021 04:39:09 +0000 (21:39 -0700)] 
Eliminate duplicated assignment in _randommodule.c (GH-25904) (GH-25909)

4 years agobpo-40297: Fix test_socket.CANTest.testSendFrame (GH-19548)
Miss Islington (bot) [Tue, 4 May 2021 21:01:42 +0000 (14:01 -0700)] 
bpo-40297: Fix test_socket.CANTest.testSendFrame (GH-19548)

The address tuple for CAN_RAW no longer returns the address family
after the introduction of CAN ISO-TP support in a30f6d45ac3. However,
updating test_socket.CANTest.testSendFrame was missed as part of the
change, so the test incorrectly attempts to index past the last tuple
item to retrieve the address family.

This removes the now-redundant check for equality against socket.AF_CAN,
as the tuple will not contain the address family.
(cherry picked from commit 355bae88822bee4de6092b63d69c5a5dad393a16)

Co-authored-by: karl ding <karlding@users.noreply.github.com>
4 years agoClarify rx parameter of compileall functions (GH-25857)
Miss Islington (bot) [Tue, 4 May 2021 19:57:35 +0000 (12:57 -0700)] 
Clarify rx parameter of compileall functions (GH-25857)

(cherry picked from commit 09490298d4485e9322edc6e1e8e15eb66c586164)

Co-authored-by: Jean-Abou-Samra <37271310+Jean-Abou-Samra@users.noreply.github.com>
4 years agoFix inconsistent fsum vs sum and fmean vs mean (GH-25898) (GH-25899)
Miss Islington (bot) [Tue, 4 May 2021 18:55:33 +0000 (11:55 -0700)] 
Fix inconsistent fsum vs sum and fmean vs mean (GH-25898) (GH-25899)

4 years agoFix typo in ast.py (GH-25740)
Miss Islington (bot) [Tue, 4 May 2021 13:39:16 +0000 (06:39 -0700)] 
Fix typo in ast.py (GH-25740)

parantheses -> parentheses
(cherry picked from commit 9ee8448243e776d2a07a9868e9795bbb2c828f9c)

Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
4 years agofix enum.property reference in docs (GH-25875) (#25876)
Miss Islington (bot) [Tue, 4 May 2021 13:24:46 +0000 (06:24 -0700)] 
fix enum.property reference in docs (GH-25875) (#25876)

(cherry picked from commit 6fee0835cb00677acd341751f831ca1af128f4c9)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
4 years agobpo-42686: Enable SQLite math functions in Windows build (GH-24053) (#25892)
Miss Islington (bot) [Tue, 4 May 2021 13:21:40 +0000 (06:21 -0700)] 
bpo-42686: Enable SQLite math functions in Windows build (GH-24053) (#25892)

(cherry picked from commit b451bc8d7e5e5a1df46fbecb6cf50af942cc401e)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>