]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 years agobpo-23819: Get rid of assert statements in test_asyncio (GH-30212) (GH-30213)
Miss Islington (bot) [Mon, 20 Dec 2021 12:50:45 +0000 (04:50 -0800)] 
bpo-23819: Get rid of assert statements in test_asyncio (GH-30212) (GH-30213)

To keep checks even if run tests with optimized Python.

Either use special assertion methods like assertEqual() or
raise an AssertionError explicitly.
(cherry picked from commit 6ca78affc8023bc5023189d64d8050857662042a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years ago[3.10] bpo-46104: Fix example broken by GH-30148 (GH-30203) (GH-30209)
Miss Islington (bot) [Mon, 20 Dec 2021 06:01:51 +0000 (22:01 -0800)] 
[3.10] bpo-46104: Fix example broken by GH-30148 (GH-30203) (GH-30209)

See discussion in GH-30179.
(cherry picked from commit 7c5c3f7254d78babcaf7a2ec187fd6ec53b8403c)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:Fidget-Spinner
3 years agobpo-46076: Improve documentation for per-attribute docstrings with `__slots__` (GH...
Miss Islington (bot) [Sun, 19 Dec 2021 21:11:12 +0000 (13:11 -0800)] 
bpo-46076: Improve documentation for per-attribute docstrings with `__slots__` (GH-30109) (GH-30206)

3 years ago[3.10] bpo-46129: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase (GH-30198...
Andrew Svetlov [Sun, 19 Dec 2021 15:17:40 +0000 (17:17 +0200)] 
[3.10] bpo-46129: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase (GH-30198) (GH-30202)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>.
(cherry picked from commit 9c06fd89514a9a2865e2adcc472095f6949cecb2)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
3 years agobpo-46130: [docs] Add anchor for whatsnew/3.10 type hint section (GH-30199)
Miss Islington (bot) [Sun, 19 Dec 2021 14:32:49 +0000 (06:32 -0800)] 
bpo-46130: [docs] Add anchor for whatsnew/3.10 type hint section (GH-30199)

This allows the title to be translated to other languages without linking problems.
(cherry picked from commit 3d3615f41f4ea73fe6707eb3673dfab482cb6a2b)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
3 years agobpo-46113: Minor fixes in stdtypes documentation (GH-30167) (GH-30186)
Miss Islington (bot) [Sat, 18 Dec 2021 14:12:30 +0000 (06:12 -0800)] 
bpo-46113: Minor fixes in stdtypes documentation (GH-30167) (GH-30186)

* Fix-1 - isidentifier() function output

* Fix-2 Update the str.splitlines() function parameter

* Fix-3 Removed unwanted full stop for str and bytes types double quotes examples.

* Fix-4 Updated class dict from **kwarg to **kwargs
(cherry picked from commit 6f2df4295123f8b961d49474b7668f7564a534a4)

Co-authored-by: Vivek Vashist <vivekvashist@gmail.com>
3 years agobpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140) (GH-30183)
Miss Islington (bot) [Sat, 18 Dec 2021 13:49:01 +0000 (05:49 -0800)] 
bpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140) (GH-30183)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
(cherry picked from commit 427a490c495cde8a152e938c6f02be65620e3e59)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
3 years ago[3.10] bpo-46104: Reduce use of pre-PEP 526 syntax in typing docs (GH-30148) (GH...
Miss Islington (bot) [Sat, 18 Dec 2021 12:14:25 +0000 (04:14 -0800)] 
[3.10] bpo-46104: Reduce use of pre-PEP 526 syntax in typing docs (GH-30148) (GH-30179)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
(cherry picked from commit 6ada013df170b0afb6b61a0d942388c6fd81cbc9)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
3 years ago[3.10] bpo-46044: Annotate deprecated sdists formats (GH-30043) (#30154)
Miss Islington (bot) [Fri, 17 Dec 2021 23:32:02 +0000 (15:32 -0800)] 
[3.10] bpo-46044: Annotate deprecated sdists formats (GH-30043) (#30154)

(cherry picked from commit ecdc0ccede5f9ac4042ff56f295d81df2f428950)

Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Éric <merwok@netwok.org>
3 years agobpo-46114: Fix OpenSSL version check for 3.0.1 (GH-30170)
Miss Islington (bot) [Fri, 17 Dec 2021 15:38:11 +0000 (07:38 -0800)] 
bpo-46114: Fix OpenSSL version check for 3.0.1 (GH-30170)

(cherry picked from commit 2985feac4e02d590bb78bcce9e30864be53280ac)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agobpo-45755: [typing] Reveal class attributes of generic in generic aliases in `dir...
Miss Islington (bot) [Fri, 17 Dec 2021 11:33:07 +0000 (03:33 -0800)] 
bpo-45755: [typing] Reveal class attributes of generic in generic aliases in `dir()` (GH-29962)

(cherry picked from commit d6e13747161d7b634b47d2d3d212ed3be4a21fab)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
3 years agobpo-46111: Fix unittest tests in optimized mode (GH-30163)
Miss Islington (bot) [Fri, 17 Dec 2021 09:29:54 +0000 (01:29 -0800)] 
bpo-46111: Fix unittest tests in optimized mode (GH-30163)

(cherry picked from commit 95a922b3bb3af247ec141d73fcdfbf68bb1d32a5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agoFix a typo in the message from make_ssl_certs. (GH-30152) (GH-30161)
Miss Islington (bot) [Fri, 17 Dec 2021 05:51:11 +0000 (21:51 -0800)] 
Fix a typo in the message from make_ssl_certs. (GH-30152) (GH-30161)

The file is utils.py not util.py.

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

Co-authored-by: Yilei "Dolee" Yang <yileiyang9@gmail.com>
3 years agobpo-46105: Honor spec when generating requirement specs with urls and extras. (GH...
Miss Islington (bot) [Thu, 16 Dec 2021 21:19:14 +0000 (13:19 -0800)] 
bpo-46105: Honor spec when generating requirement specs with urls and extras. (GH-30151)

(cherry picked from commit 109d96602199a91e94eb14b8cb3720841f22ded7)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
3 years agobpo-28816: [doc] clarify that zipimport invokes importers only for python files ...
Miss Islington (bot) [Thu, 16 Dec 2021 12:23:41 +0000 (04:23 -0800)] 
bpo-28816: [doc] clarify that zipimport invokes importers only for python files (GH-30060) (GH-30133)

(cherry picked from commit a951c95a13c3555ac8fb1c8ee615ba3930ccc6f7)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
3 years agoFix the output of built-in iter() function example in Iterators (Section 9.8) of...
Miss Islington (bot) [Thu, 16 Dec 2021 11:00:58 +0000 (03:00 -0800)] 
Fix the output of built-in iter() function example in Iterators (Section 9.8) of The Python Tutorial (GH-30110)

Updated the output for it=iter(s) from <iterator object at 0x00A1DB50> to <str_iterator object at 0x10c90e650>
(cherry picked from commit c5d18a5014f649368b5a4bca94e9ec7d2908b481)

Co-authored-by: Vivek Vashist <vivekvashist@gmail.com>
3 years agoAdd Positional only arguments forward slash (/) to sorted() function in Built-in...
Miss Islington (bot) [Wed, 15 Dec 2021 12:59:01 +0000 (04:59 -0800)] 
Add Positional only arguments forward slash (/) to sorted() function in Built-in Functions document (GH-30113)

sorted() function is missing forward slash (/) in Built-in Functions documentation page.

Automerge-Triggered-By: GH:asvetlov
(cherry picked from commit f025ae63dccf96c4a1d781a6438bd9ed1502f0a1)

Co-authored-by: Vivek Vashist <vivekvashist@gmail.com>
3 years agobpo-26952: [argparse] clearer error when formatting an empty mutually… (GH-30099...
Miss Islington (bot) [Wed, 15 Dec 2021 12:20:04 +0000 (04:20 -0800)] 
bpo-26952: [argparse] clearer error when formatting an empty mutually… (GH-30099) (GH-30114)

(cherry picked from commit 86de99588db3beff964137f4fe27dd1077a09b35)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
3 years ago[3.10] bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103) (GH...
Miss Islington (bot) [Tue, 14 Dec 2021 17:27:00 +0000 (09:27 -0800)] 
[3.10] bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103) (GH-30104)

3 years agobpo-46059: Clarify pattern-matching example in "control flow" docs (GH-30079)
Miss Islington (bot) [Tue, 14 Dec 2021 15:25:32 +0000 (07:25 -0800)] 
bpo-46059: Clarify pattern-matching example in "control flow" docs (GH-30079)

The "Color" example in the pattern-matching section of the "control flow" documentation is not immediately runnable, leading to confusion.

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

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
3 years ago[3.10] bpo-46063: Improve algorithm for computing which rolled-over log file… (GH...
Miss Islington (bot) [Tue, 14 Dec 2021 01:17:56 +0000 (17:17 -0800)] 
[3.10] bpo-46063: Improve algorithm for computing which rolled-over log file… (GH-30093) (GH-30094)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
3 years agoClarify new_event_loop return value. (GH-30078) (GH-30088)
Miss Islington (bot) [Mon, 13 Dec 2021 13:24:50 +0000 (05:24 -0800)] 
Clarify new_event_loop return value. (GH-30078) (GH-30088)

(cherry picked from commit e09705f58fc2ff3cc2720c6337ae3f48bb7cb090)

Co-authored-by: Paul Bryan <pbryan@anode.ca>
3 years ago[3.10] bpo-37602: Clarify that the lib2to3 nonzero fixer changes only definitions...
Irit Katriel [Mon, 13 Dec 2021 10:47:38 +0000 (10:47 +0000)] 
[3.10] bpo-37602: Clarify that the lib2to3 nonzero fixer changes only definitions (GH-30075) (GH-30085)

(cherry picked from commit 481f3ffdbe40bd19677a1ba0ac2e7cece8949b47)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
3 years ago[3.10] bpo-27718: Fix help for the signal module (GH-30063) (GH-30080)
Serhiy Storchaka [Mon, 13 Dec 2021 10:14:51 +0000 (12:14 +0200)] 
[3.10] bpo-27718: Fix help for the signal module (GH-30063) (GH-30080)

Functions signal(), getsignal(), pthread_sigmask(), sigpending(),
sigwait() and valid_signals() were omitted.

If __all__ is not defined all non-builtin functions should have
correct __module__.
(cherry picked from commit e08c0d8eec528f1d7a282ee19bcadb9aae9ec123)

3 years agobpo-45840: Improve cross-references in the data model documentation (GH-29633) (GH...
Alex Waygood [Mon, 13 Dec 2021 09:20:21 +0000 (09:20 +0000)] 
bpo-45840: Improve cross-references in the data model documentation (GH-29633) (GH-30077)

(cherry picked from commit c0521fe49fd75e794a38a216813658ab40185834)

3 years agobpo-46054: Fix parsing error when parsing non-utf8 characters in source files (GH...
Miss Islington (bot) [Sun, 12 Dec 2021 16:52:49 +0000 (08:52 -0800)] 
bpo-46054: Fix parsing error when parsing non-utf8 characters in source files (GH-30068) (GH-30069)

(cherry picked from commit 4325a766f5f603ef6dfb8c4d5798e5e73cb5efd5)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years agobpo-46042: Improve SyntaxError locations in the symbol table (GH-30059) (GH-30064)
Miss Islington (bot) [Sun, 12 Dec 2021 01:24:12 +0000 (17:24 -0800)] 
bpo-46042: Improve SyntaxError locations in the symbol table (GH-30059) (GH-30064)

(cherry picked from commit 59435eea08d30796174552c0ca03c59b41adf8a5)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years ago[3.10] bpo-46040: Fix removal text for @asyncio.coroutine (GH-30061)
Andrew Svetlov [Sat, 11 Dec 2021 18:27:47 +0000 (20:27 +0200)] 
[3.10] bpo-46040: Fix removal text for @asyncio.coroutine (GH-30061)

3 years agobpo-19737: Improved the documentation for globals (GH-29823) (GH-30041)
Miss Islington (bot) [Sat, 11 Dec 2021 00:32:13 +0000 (16:32 -0800)] 
bpo-19737: Improved the documentation for globals (GH-29823) (GH-30041)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 4fe5585240f64c3d14eb635ff82b163f92074b3a)

Co-authored-by: 180909 <734461790@qq.com>
3 years agoFix markup buglet in Doc/howto/annotations.rst (GH-29802) (GH-29805)
Miss Islington (bot) [Sat, 11 Dec 2021 00:03:55 +0000 (16:03 -0800)] 
Fix markup buglet in Doc/howto/annotations.rst (GH-29802) (GH-29805)

(cherry picked from commit 94daf39b2f7e9b50e7ae7a16caeef804f8e37ae3)

Co-authored-by: Guido van Rossum <guido@python.org>
3 years agobpo-45822: Minor cleanups to the test_Py_CompileString test (GH-29750) (GH-29758)
Miss Islington (bot) [Sat, 11 Dec 2021 00:02:56 +0000 (16:02 -0800)] 
bpo-45822: Minor cleanups to the test_Py_CompileString test (GH-29750) (GH-29758)

(cherry picked from commit abfc794bbf2c6a0939ddd81b6e700c46944ba87a)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years ago[doc] Clarify MRO precedence in descriptor super binding section (GH-29539) (GH-29669)
Miss Islington (bot) [Sat, 11 Dec 2021 00:01:16 +0000 (16:01 -0800)] 
[doc] Clarify MRO precedence in descriptor super binding section (GH-29539) (GH-29669)

A similar sentence is present in the 'Invocation from super' section of
the descriptor HOWTO, where it is already correct.
(cherry picked from commit ee49484c0f0d0d79e8fc40835da10b78f89ae503)

Co-authored-by: Jouke Witteveen <j.witteveen@gmail.com>
3 years ago[3.10] bpo-13236: Flush the output stream more often in unittest (GH-29864) (GH-29929)
Serhiy Storchaka [Fri, 10 Dec 2021 23:36:15 +0000 (01:36 +0200)] 
[3.10] bpo-13236: Flush the output stream more often in unittest (GH-29864) (GH-29929)

It can prevent some losses when output to buffered stream..
(cherry picked from commit f42a06ba279c916fb67289e47f9bc60dc5dee4ee)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agobpo-42114: ctypes documentation: fix winmode parameter default value (GH-29976) ...
Miss Islington (bot) [Fri, 10 Dec 2021 23:29:46 +0000 (15:29 -0800)] 
bpo-42114: ctypes documentation: fix winmode parameter default value (GH-29976) (GH-30037)

Signed-off-by: Louis Sautier <sautier.louis@gmail.com>
(cherry picked from commit c1051e08b3c6d9045322763876a4b0aea98d79f9)

Co-authored-by: Louis Sautier <sautier.louis@gmail.com>
3 years ago[3.10] bpo-43749: Ensure current exe is copied when using venv on windows (GH-25216...
Miss Islington (bot) [Fri, 10 Dec 2021 17:51:42 +0000 (09:51 -0800)] 
[3.10] bpo-43749: Ensure current exe is copied when using venv on windows (GH-25216) (GH-30034)

Co-authored-by: Ian Norton <inorton@gmail.com>
3 years agobpo-46000: Improve NetBSD curses compatibility (GH-29947)
Miss Islington (bot) [Fri, 10 Dec 2021 10:29:23 +0000 (02:29 -0800)] 
bpo-46000: Improve NetBSD curses compatibility (GH-29947)

(cherry picked from commit 2fb797e93c6bbd44dfcbe23f63acfa240a87e48a)

Co-authored-by: Thomas Klausner <tk@giga.or.at>
3 years agobpo-42182: stdtypes doc - update and fix links to several dunder methods (GH-27384)
Miss Islington (bot) [Fri, 10 Dec 2021 10:02:14 +0000 (02:02 -0800)] 
bpo-42182: stdtypes doc - update and fix links to several dunder methods  (GH-27384)

(cherry picked from commit 8c74713d0e349c27518080945d5f040dfd52a56e)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
3 years agobpo-46018: Ensure that math.expm1 does not raise on underflow (GH-29997)
Miss Islington (bot) [Thu, 9 Dec 2021 19:37:06 +0000 (11:37 -0800)] 
bpo-46018: Ensure that math.expm1 does not raise on underflow (GH-29997)

(cherry picked from commit 3363e1cb05d0d19ed172ea63606d8cb6268747fc)

Co-authored-by: Steve Dower <steve.dower@python.org>
3 years agobpo-46025: Fix a crash in the atexit module for auto-unregistering functions (GH...
Miss Islington (bot) [Thu, 9 Dec 2021 15:16:09 +0000 (07:16 -0800)] 
bpo-46025: Fix a crash in the atexit module for auto-unregistering functions (GH-30002) (GH-30005)

(cherry picked from commit f0d290d25cad66e615ada68ba190b8a23ac1deaa)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years agobpo-45391: mark UnionType as a class in documentation (GH-28757)
Miss Islington (bot) [Thu, 9 Dec 2021 13:17:36 +0000 (05:17 -0800)] 
bpo-45391: mark UnionType as a class in documentation (GH-28757)

Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
(cherry picked from commit e2cfc89e099b8fad5d8d5bd7f59dadffb6078778)

Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
3 years ago[3.10] bpo-46009: Do not exhaust generator when send() method raises (GH-29986)....
Mark Shannon [Wed, 8 Dec 2021 14:46:32 +0000 (14:46 +0000)] 
[3.10] bpo-46009: Do not exhaust generator when send() method raises (GH-29986). (GH-29988)

* [3.10] bpo-46009: Do not exhaust generator when send() method raises (GH-29986).
(cherry picked from commit 69806b9516dbe092381f3ef884c7c64bb9b8414a)

Co-authored-by: Mark Shannon <mark@hotpy.org>
* Rename variable after cherry-pick.

* Add NULL check.

3 years agodoc: Add link issue 44010 (GH-29454)
Miss Islington (bot) [Wed, 8 Dec 2021 11:18:33 +0000 (03:18 -0800)] 
doc: Add link issue 44010 (GH-29454)

(cherry picked from commit 3e0f13b9e48eec8c54a185e4180bfca4e5e685f6)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
3 years agoFix double-space in exception message (GH-29955)
Miss Islington (bot) [Wed, 8 Dec 2021 11:07:27 +0000 (03:07 -0800)] 
Fix double-space in exception message (GH-29955)

(cherry picked from commit c602c1be439e295fed9ebab47e895ef1d9df28be)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
3 years ago[3.10] bpo-35821: Fix restructuredtext code formatting in logging.rst (GH-29963)...
Miss Islington (bot) [Tue, 7 Dec 2021 15:47:31 +0000 (07:47 -0800)] 
[3.10] bpo-35821: Fix restructuredtext code formatting in logging.rst (GH-29963) (GH-29965)

(cherry picked from commit c7e7a4b969b5728d4b4f3c59bf98e1e830d5c6d6)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Automerge-Triggered-By: GH:Fidget-Spinner
3 years ago[3.10] bpo-46004: Fix error location for loops with invalid targets (GH-29959). ...
Pablo Galindo Salgado [Tue, 7 Dec 2021 15:23:33 +0000 (15:23 +0000)] 
[3.10] bpo-46004: Fix error location for loops with invalid targets (GH-29959). (GH-29961)

(cherry picked from commit 1c7a1c3be08ee911d347fffd2716f3911ba751f9)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years ago[3.10] bpo-35821: Add an example to Logger.propagate documentation. (GH-29841) (GH...
Miss Islington (bot) [Tue, 7 Dec 2021 11:45:13 +0000 (03:45 -0800)] 
[3.10] bpo-35821: Add an example to Logger.propagate documentation. (GH-29841) (GH-29957)

3 years agobpo-46001: Change OverflowError to RecursionError in JSON library docstrings (GH...
Miss Islington (bot) [Tue, 7 Dec 2021 10:20:10 +0000 (02:20 -0800)] 
bpo-46001: Change OverflowError to RecursionError in JSON library docstrings (GH-29943)

(cherry picked from commit 8db06528cacc94e67eb1fb2e4c2acc061a515671)

Co-authored-by: James Gerity <snoopjedi@gmail.com>
3 years agoPost 3.10.1
Pablo Galindo [Mon, 6 Dec 2021 18:52:20 +0000 (18:52 +0000)] 
Post 3.10.1

3 years agoPython 3.10.1 v3.10.1
Pablo Galindo [Mon, 6 Dec 2021 17:56:39 +0000 (17:56 +0000)] 
Python 3.10.1

3 years ago[3.10] bpo-44035: Check autoconf files thoroughly (GH-29935) (GH-29937)
Miss Islington (bot) [Mon, 6 Dec 2021 12:47:42 +0000 (04:47 -0800)] 
[3.10] bpo-44035: Check autoconf files thoroughly (GH-29935) (GH-29937)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agobpo-45732: Update python.org macOS installer to use Tcl/Tk 8.6.12. (GH-29932)
Ned Deily [Mon, 6 Dec 2021 07:39:11 +0000 (02:39 -0500)] 
bpo-45732: Update python.org macOS installer to use Tcl/Tk 8.6.12. (GH-29932)

3 years agobpo-45664: Fix resolve_bases() and new_class() for GenericAlias instance as a base...
Miss Islington (bot) [Sun, 5 Dec 2021 21:26:37 +0000 (13:26 -0800)] 
bpo-45664: Fix resolve_bases() and new_class() for GenericAlias instance as a base (GH-29298)

(cherry picked from commit 2b318ce1c988b7b6e3caf293d55f289e066b6e0f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agobpo-45663: Fix is_dataclass() for dataclasses which are subclasses of types.GenericAl...
Miss Islington (bot) [Sun, 5 Dec 2021 21:04:29 +0000 (13:04 -0800)] 
bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of types.GenericAlias (GH-29294)

(cherry picked from commit 446be166861b2f08f87f74018113dd98ca5fca02)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agobpo-45662: Fix the repr of InitVar with a type alias to the built-in class (GH-29291)
Miss Islington (bot) [Sun, 5 Dec 2021 21:02:47 +0000 (13:02 -0800)] 
bpo-45662: Fix the repr of InitVar with a type alias to the built-in class (GH-29291)

For example, InitVar[list[int]].
(cherry picked from commit 1fd4de5bddbbf2a97cdbac4d298c89e1156bdc6c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agobpo-27946: Fix possible crash in ElementTree.Element (GH-29915)
Miss Islington (bot) [Sun, 5 Dec 2021 19:04:52 +0000 (11:04 -0800)] 
bpo-27946: Fix possible crash in ElementTree.Element (GH-29915)

Getting an attribute via attrib.get() simultaneously with replacing
the attrib dict can lead to access to deallocated dict.
(cherry picked from commit d15cdb2f32f572ce56d7120135da24b9fdce4c99)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agobpo-45916: Use HTTPS link for The Perils of Floating Point (GH-29896)
Miss Islington (bot) [Thu, 2 Dec 2021 20:45:09 +0000 (12:45 -0800)] 
bpo-45916: Use HTTPS link for The Perils of Floating Point (GH-29896)

(cherry picked from commit 9f2f7e42269db74a89fc8cd74d82a875787f01d7)

Co-authored-by: Zachary Ware <zach@python.org>
3 years agodocs: Improve example for urlparse() (GH-29816) (GH-29888)
Miss Islington (bot) [Thu, 2 Dec 2021 10:25:13 +0000 (02:25 -0800)] 
docs: Improve example for urlparse() (GH-29816) (GH-29888)

(cherry picked from commit 226d22ff2d209495621550eb78e81ed4c0fe0152)

Co-authored-by: Christian Clauss <cclauss@me.com>
3 years agobpo-45896: Fix docs default asyncio event loop on Windows (GH-29857) (GH-29877)
Miss Islington (bot) [Wed, 1 Dec 2021 15:44:09 +0000 (07:44 -0800)] 
bpo-45896: Fix docs default asyncio event loop on Windows (GH-29857) (GH-29877)

(cherry picked from commit f27bef30438d2f07f19de91e021f34b77ccc4b20)

Co-authored-by: Rob <r4226@pm.me>
3 years agobpo-33381: [doc] strftime's %f option may pad zeros on the left or the right (GH...
Miss Islington (bot) [Tue, 30 Nov 2021 11:49:59 +0000 (03:49 -0800)] 
bpo-33381: [doc] strftime's %f option may pad zeros on the left or the right (GH-29801) (GH-29862)

(cherry picked from commit f97ec09baf8431494fd2ef5133090c7b0afd0551)

Co-authored-by: Vishal Pandey <vishalpandeyviptsk@gmail.com>
3 years agobpo-45931: Prevent Directory.Build.props/targets from leaking from directories above...
Miss Islington (bot) [Mon, 29 Nov 2021 23:08:33 +0000 (15:08 -0800)] 
bpo-45931: Prevent Directory.Build.props/targets from leaking from directories above the repo when building on Windows (GH-29854)

(cherry picked from commit 734ed3538314c9651ae64d5e2e0e98aae3aec17b)

Co-authored-by: David Federman <david.federman@outlook.com>
3 years agobpo-43905: Expand dataclasses.astuple() and asdict() docs (GH-26154)
Miss Islington (bot) [Mon, 29 Nov 2021 18:32:56 +0000 (10:32 -0800)] 
bpo-43905: Expand dataclasses.astuple() and asdict() docs (GH-26154)

Expanded ``astuple()`` docs, warning about deepcopy being applied
and providing a workaround.

Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit c1f93f0d378958dfae4f24aad0c0088e3e04e403)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
3 years ago[3.10] bpo-44391: Remove unused argument from a varargs call. (GH-29843) (GH-29849)
Miss Islington (bot) [Mon, 29 Nov 2021 18:00:31 +0000 (10:00 -0800)] 
[3.10] bpo-44391: Remove unused argument from a varargs call. (GH-29843) (GH-29849)

3 years ago[3.10] [Doc] Add info to logging cookbook about running logging socket listeners...
Miss Islington (bot) [Mon, 29 Nov 2021 13:28:05 +0000 (05:28 -0800)] 
[3.10] [Doc] Add info to logging cookbook about running logging socket listeners i… (GH-29838) (GH-29839)

3 years agobpo-43498: Fix dictionary iteration error in _ExecutorManagerThread (GH-24868)
Miss Islington (bot) [Mon, 29 Nov 2021 12:24:08 +0000 (04:24 -0800)] 
bpo-43498: Fix dictionary iteration error in _ExecutorManagerThread (GH-24868)

(cherry picked from commit 7431448b817d3bf87f71661cf8f3d537807ab2e2)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
3 years agobpo-45614: Fix traceback display for exceptions with invalid module name (GH-29726...
Irit Katriel [Mon, 29 Nov 2021 10:07:24 +0000 (10:07 +0000)] 
bpo-45614: Fix traceback display for exceptions with invalid module name (GH-29726) (GH-29826)

(cherry picked from commit 4dfae6f38e1720ddafcdd68043e476ecb41cb4d5)

3 years agobpo-37658: Actually return result in race condition (GH-29202)
Miss Islington (bot) [Mon, 29 Nov 2021 08:37:34 +0000 (00:37 -0800)] 
bpo-37658: Actually return result in race condition (GH-29202)

(cherry picked from commit 934a82623793e9d52b85f74d5395d65927a52205)

Co-authored-by: Sam Bull <aa6bs0@sambull.org>
3 years ago[3.10] bpo-42268: Fail the configure step if the selected compiler doesn't support...
Pablo Galindo Salgado [Sun, 28 Nov 2021 21:23:39 +0000 (21:23 +0000)] 
[3.10] bpo-42268: Fail the configure step if the selected compiler doesn't support memory sanitizer (GH-29806) (GH-29815)

(cherry picked from commit e71c12efcddc1076d5367461a5b416092267aa77)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years ago[3.10] bpo-19460: Add test for MIMENonMultipart (GH-29817) (GH-29818)
Miss Islington (bot) [Sun, 28 Nov 2021 10:57:10 +0000 (02:57 -0800)] 
[3.10] bpo-19460: Add test for MIMENonMultipart (GH-29817) (GH-29818)

Co-authored-by: 180909 <wjh180909@gmail.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
3 years ago[3.10] bpo-45881: Use CC from env first for cross building (GH-29752). (GH-29753)
Christian Heimes [Sat, 27 Nov 2021 20:14:05 +0000 (22:14 +0200)] 
[3.10] bpo-45881: Use CC from env first for cross building (GH-29752). (GH-29753)

Co-authored-by: Christian Heimes <christian@python.org>
3 years ago[3.10] bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29587...
Miss Islington (bot) [Sat, 27 Nov 2021 00:42:00 +0000 (16:42 -0800)] 
[3.10] bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29587) (GH-29811)

* Fix thread lock in zlib.Decompress.flush() may go wrong

Getting `.unconsumed_tail` before acquiring the thread lock may mix up decompress state.
(cherry picked from commit 7edb6270a78c695e4c2ae2432797dc18105374fc)

Co-authored-by: Ma Lin <animalize@users.noreply.github.com>
Automerge-Triggered-By: GH:gpshead
3 years agobpo-45901: Fixes argument passing when invoking .py files directly through the Store...
Miss Islington (bot) [Fri, 26 Nov 2021 23:30:39 +0000 (15:30 -0800)] 
bpo-45901: Fixes argument passing when invoking .py files directly through the Store package (GH-29799)

(cherry picked from commit 4841e694ee1686f8c933ddfcb8c854915867ce17)

Co-authored-by: Steve Dower <steve.dower@python.org>
3 years agobpo-45866: Fix typo in the NEWS entry (GH-29798)
Miss Islington (bot) [Fri, 26 Nov 2021 22:18:54 +0000 (14:18 -0800)] 
bpo-45866: Fix typo in the NEWS entry (GH-29798)

(cherry picked from commit 9a7611a7c4da6406383f8ffcea272ded6f890f1e)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 years agobpo-45866: pegen strips directory of "generated from" header (GH-29777) (GH-29792)
Victor Stinner [Fri, 26 Nov 2021 15:38:50 +0000 (16:38 +0100)] 
bpo-45866: pegen strips directory of "generated from" header (GH-29777) (GH-29792)

"make regen-all" now produces the same output when run from a
directory other than the source tree: when building Python out of the
source tree.

(cherry picked from commit 253b7a0a9fef1d72a4cb87b837885576e68e917c)

3 years agobpo-44353: Correct docstring for `NewType` (GH-29785)
Miss Islington (bot) [Fri, 26 Nov 2021 14:58:13 +0000 (06:58 -0800)] 
bpo-44353: Correct docstring for `NewType` (GH-29785)

The docstring for `typing.NewType` is no longer strictly accurate, now that `NewType` is a class, rather than a function
(cherry picked from commit 93c65df83cef71a4bc77d71afecdec8744c4f73a)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
3 years agobpo-45619: documentation of execution model: clarify and update binding summary ...
Miss Islington (bot) [Fri, 26 Nov 2021 05:36:37 +0000 (21:36 -0800)] 
bpo-45619: documentation of execution model: clarify and update binding summary (GH-29232)

This does two changes that are quite related.

0. it add that variable binding can occur in pattern matching, an update of 3.10
which seems to have been omitted from the list of bindings
1. Given how long the sentence already was, with even subcases in the middle of
the sentence, the commit breaks the sentence into an actual list.
(cherry picked from commit cd876c84932ecc2f7a6c41f3fc800a34d5b06b95)

Co-authored-by: Arthur Milchior <arthur@milchior.fr>
3 years ago[3.10] bpo-33393: Update config.guess and config.sub (GH-29781) (GH-29782)
Christian Heimes [Thu, 25 Nov 2021 21:52:02 +0000 (23:52 +0200)] 
[3.10] bpo-33393: Update config.guess and config.sub (GH-29781) (GH-29782)

Co-authored-by: Christian Heimes <christian@python.org>
3 years ago[3.10] bpo-45568: Actually use @asynccontextmanager in usage example (GH-29151) ...
Andrew Svetlov [Thu, 25 Nov 2021 17:20:17 +0000 (19:20 +0200)] 
[3.10] bpo-45568: Actually use @asynccontextmanager in usage example (GH-29151) (GH-29779)

Automerge-Triggered-By: GH:asvetlov
(cherry picked from commit 4dd82194f4a0e48a94191655e571b3aad1c4a22a)

Co-authored-by: Zbigniew Siciarz <zbigniew@siciarz.net>
Co-authored-by: Zbigniew Siciarz <zbigniew@siciarz.net>
3 years agobpo-39026: Fix Python.h when building with Xcode (GH-29488) (GH-29732)
Victor Stinner [Thu, 25 Nov 2021 12:35:22 +0000 (13:35 +0100)] 
bpo-39026: Fix Python.h when building with Xcode (GH-29488) (GH-29732)

Fix Python.h to build C extensions with Xcode: remove a relative
include from Include/cpython/pystate.h.

(cherry picked from commit 4ae26b9c1d0c33e3db92c6f305293f9240dea358)

3 years ago[3.10] bpo-41498: Fix build on platforms without sigset_t (GH-29770) (GH-29773)
Miss Islington (bot) [Thu, 25 Nov 2021 11:53:07 +0000 (03:53 -0800)] 
[3.10] bpo-41498: Fix build on platforms without sigset_t (GH-29770) (GH-29773)

(cherry picked from commit dc19e8698327cae3d6274b73c135375955f1d0d0)

Co-authored-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: GH:tiran
3 years ago[3.10] bpo-45727: Only trigger the 'did you forgot a comma' error suggestion if insid...
Pablo Galindo Salgado [Thu, 25 Nov 2021 01:01:40 +0000 (01:01 +0000)] 
[3.10] bpo-45727: Only trigger the 'did you forgot a comma' error suggestion if inside parentheses. (GH-29767)

Backport of GH-29757

Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
3 years agobpo-45893: Add missing extern C to initconfig.h (GH-29761)
Miss Islington (bot) [Wed, 24 Nov 2021 21:57:41 +0000 (13:57 -0800)] 
bpo-45893: Add missing extern C to initconfig.h (GH-29761)

Co-authored-by: Steve Dower <steve.dower@python.org>
(cherry picked from commit f4afc53bf68c8ded20b281cd1baa88a679b4a3fd)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agobpo-45693: Document `port` parameter to `loop.create_server` (GH-29760) (GH-29762)
Miss Islington (bot) [Wed, 24 Nov 2021 20:39:51 +0000 (12:39 -0800)] 
bpo-45693: Document `port` parameter to `loop.create_server` (GH-29760) (GH-29762)

Document the `port` parameter to `loop.create_server` in `asyncio`. In
particular, note that if `host` resolves to multiple network interfaces,
passing in `port=0` will result in a different random unused port being
used for each interface.

Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit d71c7bc7339eb82de493c66ebbbfa1cad250ac78)

Co-authored-by: Jim Crist-Harif <jcristharif@gmail.com>
Co-authored-by: Jim Crist-Harif <jcristharif@gmail.com>
3 years agobpo-45616: Let py.exe distinguish between v3.1 and v3.10 (GH-29731)
Miss Islington (bot) [Wed, 24 Nov 2021 05:02:32 +0000 (21:02 -0800)] 
bpo-45616: Let py.exe distinguish between v3.1 and v3.10 (GH-29731)

(cherry picked from commit f9de97aae5fe9dafb58a8099171f4a09c449f4e8)

Co-authored-by: Zachary Ware <zach@python.org>
3 years agobpo-45561: Run smelly.py tool from $(srcdir) (GH-29138)
Miss Islington (bot) [Tue, 23 Nov 2021 10:32:31 +0000 (02:32 -0800)] 
bpo-45561: Run smelly.py tool from $(srcdir) (GH-29138)

(cherry picked from commit 457e6a6e96b5afad403a0bc892508a77beef4d33)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
3 years ago[3.10] bpo-45250: fix docs regarding `__iter__` and iterators being inconsistently...
Brett Cannon [Mon, 22 Nov 2021 23:09:15 +0000 (15:09 -0800)] 
[3.10] bpo-45250: fix docs regarding `__iter__` and iterators being inconsistently required by CPython (GH-29170) (GH-29650)

It is now considered a historical accident that e.g. `for` loops and the `iter()` built-in function do not require the iterators they work with to define `__iter__`, only `__next__`.
(cherry picked from commit be36e0634060c7d5dee8e8876fb888bbb53d992a)

Co-authored-by: Brett Cannon <brett@python.org>
3 years agobpo-45859: Mark test_field_descriptor in test_collections as CPython-only (GH-29691...
Miss Islington (bot) [Mon, 22 Nov 2021 15:05:54 +0000 (07:05 -0800)] 
bpo-45859: Mark test_field_descriptor in test_collections as CPython-only (GH-29691) (GH-29708)

(cherry picked from commit 4fad314246399b69ef0c57ba8527d9efade99069)

Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
3 years agobpo-44649: Fix dataclasses(slots=True) with a field with a default, but init=False...
Miss Islington (bot) [Mon, 22 Nov 2021 13:47:41 +0000 (05:47 -0800)] 
bpo-44649: Fix dataclasses(slots=True) with a field with a default, but init=False (GH-29692)

Special handling is needed, because for non-slots dataclasses the instance attributes are not set: reading from a field just references the class's attribute of the same name, which contains the default value. But this doesn't work for classes using __slots__: they don't read the class's attribute. So in that case (and that case only), initialize the instance attribute. Handle this for both normal defaults, and for fields using default_factory.
(cherry picked from commit d3062f672c92855b7e9e962ad4bf1a67abd4589b)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
3 years agoFix out-of-tree build support for multissltest (GH-29694)
Miss Islington (bot) [Mon, 22 Nov 2021 10:14:28 +0000 (02:14 -0800)] 
Fix out-of-tree build support for multissltest (GH-29694)

(cherry picked from commit 512dbf6f56364d359e16988b3fd7e766edfaebf9)

Co-authored-by: Christian Heimes <christian@python.org>
3 years ago[3.10] Ensure the str member of the tokenizer is always initialised (GH-29681). ...
Pablo Galindo Salgado [Sun, 21 Nov 2021 04:15:22 +0000 (04:15 +0000)] 
[3.10] Ensure the str member of the tokenizer is always initialised (GH-29681). (GH-29683)

(cherry picked from commit 4f006a789a35f5d1a7ef142bd1304ce167392457)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years agobpo-45852: Fix the Counter/iter test for statistics.mode() (GH-29667) (GH-29671)
Miss Islington (bot) [Sun, 21 Nov 2021 00:27:44 +0000 (16:27 -0800)] 
bpo-45852:  Fix the Counter/iter test for statistics.mode() (GH-29667) (GH-29671)

Suggested by Stefan Pochmann.
(cherry picked from commit 48744db70ed519c1566c22bf123a0e1f5c69253f)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
3 years agoAdded kw_only parameter to make_dataclasses. (GH-29679)
Miss Islington (bot) [Sat, 20 Nov 2021 23:46:56 +0000 (15:46 -0800)] 
Added kw_only parameter to make_dataclasses. (GH-29679)

(cherry picked from commit f7638dd0f90b2afd9295ee179119f4a29859953a)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
3 years ago[3.10] bpo-45845: Change link for pyserial (GH-29675)
Miss Islington (bot) [Sat, 20 Nov 2021 20:51:24 +0000 (12:51 -0800)] 
[3.10] bpo-45845: Change link for pyserial (GH-29675)

(cherry picked from commit 123a3527ddd7774e8db325c778927e49172e01d4)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years agobpo-45845: Remove unresponsive web link (GH-29651) (GH-29674)
Miss Islington (bot) [Sat, 20 Nov 2021 18:50:24 +0000 (10:50 -0800)] 
bpo-45845: Remove unresponsive web link (GH-29651) (GH-29674)

Threading notes by Aahz from OSCON 2001.

(cherry picked from commit 985233914504c73f14a23af1c68a3709079e6913)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years agobpo-45494: Fix error location in EOF tokenizer errors (GH-29108)
Miss Islington (bot) [Sat, 20 Nov 2021 17:59:34 +0000 (09:59 -0800)] 
bpo-45494: Fix error location in EOF tokenizer errors (GH-29108)

(cherry picked from commit 79ff0d1687e3f823fb121a19f0297ad052871b1b)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years ago[3.10] bpo-45727: Make the syntax error for missing comma more consistent (GH-29427...
Pablo Galindo Salgado [Sat, 20 Nov 2021 17:39:17 +0000 (17:39 +0000)] 
[3.10] bpo-45727: Make the syntax error for missing comma more consistent (GH-29427) (GH-29647)

(cherry picked from commit 546cefcda75d7150b55c8bc1724bea35a1e12890)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years agobpo-45846: Fix capitalisation of Van Rossum at the start of sentence (GH-29641) ...
Miss Islington (bot) [Sat, 20 Nov 2021 15:57:16 +0000 (07:57 -0800)] 
bpo-45846: Fix capitalisation of Van Rossum at the start of sentence (GH-29641) (GH-29656)

(cherry picked from commit bc2bc0dbdb52498d009f9f9771452e6aa4faff2b)

Co-authored-by: JMcB <joel.mcbride1@live.com>
3 years ago[3.10] bpo-45848: Allow the parser to get error lines from encoded files (GH-29646...
Łukasz Langa [Sat, 20 Nov 2021 15:34:56 +0000 (16:34 +0100)] 
[3.10] bpo-45848: Allow the parser to get error lines from encoded files (GH-29646) (GH-29661)

(cherry picked from commit fdcc46d9554094994f78bedf6dc9220e5d5ee668)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years agobpo-19072: Classmethod can wrap other classmethod like descriptors (GH-29634) (GH...
Miss Islington (bot) [Fri, 19 Nov 2021 19:12:16 +0000 (11:12 -0800)] 
bpo-19072: Classmethod can wrap other classmethod like descriptors (GH-29634) (GH-29643)

staticmethod() also became callable in Python 3.10.

See: b83861f02.
(cherry picked from commit e34809e1c2a09478f4e0651d551c9c12d3c556ab)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
3 years agobpo-45837: Note tiltangle is not deprecated, it's really settiltangle (GH-29629)
Hugo van Kemenade [Fri, 19 Nov 2021 18:55:40 +0000 (20:55 +0200)] 
bpo-45837: Note tiltangle is not deprecated, it's really settiltangle (GH-29629)

3 years ago[3.10] bpo-45788: Link sys.prefix doc to 'Installation paths' (GH-29606)
Miss Islington (bot) [Thu, 18 Nov 2021 21:46:06 +0000 (13:46 -0800)] 
[3.10] bpo-45788: Link sys.prefix doc to 'Installation paths' (GH-29606)

... To the Installation paths section of the sysconfig doc.
(cherry picked from commit 4575c01b750cd26377e803247c38d65dad15e26a)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>