]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 years agobpo-45924: Fix asyncio incorrect traceback when future's exception is raised multiple...
Miss Islington (bot) [Mon, 11 Jul 2022 14:38:27 +0000 (07:38 -0700)] 
bpo-45924: Fix asyncio incorrect traceback when future's exception is raised multiple times (GH-30274) (#94748)

(cherry picked from commit 86c1df18727568758cc329baddc1836e45664023)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years agoGH-94736: Fix _multiprocessing.SemLock subclassing (GH-94738)
Miss Islington (bot) [Mon, 11 Jul 2022 12:39:09 +0000 (05:39 -0700)] 
GH-94736: Fix _multiprocessing.SemLock subclassing (GH-94738)

* fix allocator and deallocator

* 📜🤖 Added by blurb_it.

* code review

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit f5b76330cfb93e1ad1a77c71dafe719f6a808cec)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years ago[3.10] GH-94329: Don't raise on excessive stack consumption (GH-94421) (#94448)
Mark Shannon [Mon, 11 Jul 2022 12:21:17 +0000 (13:21 +0100)] 
[3.10] GH-94329: Don't raise on excessive stack consumption (GH-94421) (#94448)

3 years agoGH-77265: Document NaN handling in statistics functions that sort or count (GH-94676...
Miss Islington (bot) [Sun, 10 Jul 2022 17:36:01 +0000 (10:36 -0700)] 
GH-77265: Document NaN handling in statistics functions that sort or count (GH-94676) (#94725)

3 years agogh-94637: Release GIL in SSLContext.set_default_verify_paths (GH-94658)
Miss Islington (bot) [Sat, 9 Jul 2022 16:35:54 +0000 (09:35 -0700)] 
gh-94637: Release GIL in SSLContext.set_default_verify_paths (GH-94658)

(cherry picked from commit 78307c7dc2352b6633138466debd4c10fae32970)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agoUse mdash-es consistently in the library docs index (GH-92762)
Miss Islington (bot) [Fri, 8 Jul 2022 14:50:56 +0000 (07:50 -0700)] 
Use mdash-es consistently in the library docs index (GH-92762)

(cherry picked from commit efb20a97c491821acb03564f526afaf9eed47eef)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
3 years ago[3.10] gh-94622: Add more references to the sqlite3 types anchor (GH-94623). (#94679)
Erlend Egeberg Aasland [Fri, 8 Jul 2022 00:50:12 +0000 (02:50 +0200)] 
[3.10] gh-94622: Add more references to the sqlite3 types anchor (GH-94623). (#94679)

(cherry picked from commit e5b841a4037d1c2ce3d12a584facf800ae36332a)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years ago[3.10] gh-94321: Document sqlite3.PrepareProtocol (GH-94620) (#94671)
Erlend Egeberg Aasland [Thu, 7 Jul 2022 23:44:09 +0000 (01:44 +0200)] 
[3.10] gh-94321: Document sqlite3.PrepareProtocol (GH-94620) (#94671)

(cherry picked from commit fb6dccae348b954d9f625031b54711a9a33da525)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agogh-92743: Remove copyright sign next to "Raymond Hettinger" (#94665)
Guy Yagev [Thu, 7 Jul 2022 21:31:39 +0000 (00:31 +0300)] 
gh-92743: Remove copyright sign next to "Raymond Hettinger" (#94665)

Closes GH-92743

3 years agoGH-94644: fix test_curses ref leak (GH-94647)
Miss Islington (bot) [Thu, 7 Jul 2022 11:41:06 +0000 (04:41 -0700)] 
GH-94644: fix test_curses ref leak (GH-94647)

(cherry picked from commit 277f55cb04409ccdf651d43df5eb9dcb3ee3128c)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years ago[3.10] gh-94430: Allow params named `module` or `self` with custom C names in AC...
Erlend Egeberg Aasland [Thu, 7 Jul 2022 11:26:21 +0000 (13:26 +0200)] 
[3.10] gh-94430: Allow params named `module` or `self` with custom C names in AC (GH-94431) (#94650)

(cherry picked from commit 8bbd70b4d130f060f87e3f53810dc747a49fa369)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years ago[3.10] gh-94628: Add explicit parameter list to sqlite3.connect docs (GH-94629) ...
Erlend Egeberg Aasland [Thu, 7 Jul 2022 08:46:29 +0000 (10:46 +0200)] 
[3.10] gh-94628: Add explicit parameter list to sqlite3.connect docs (GH-94629) (#94646)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>.
(cherry picked from commit 3eb2b9634fdc6826a558fa5aa820dc6e69b7800e)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agogh-94630: Update sqlite3 docs with positional-only and keyword-only symbols (GH-94631)
Miss Islington (bot) [Wed, 6 Jul 2022 23:21:05 +0000 (16:21 -0700)] 
gh-94630: Update sqlite3 docs with positional-only and keyword-only symbols (GH-94631)

(cherry picked from commit 94988603f3c934f95220f09aefffd50c0a5d3367)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agogh-94017: Improve clarity of sqlite3 transaction handling docs (GH-94320)
Miss Islington (bot) [Wed, 6 Jul 2022 21:07:36 +0000 (14:07 -0700)] 
gh-94017: Improve clarity of sqlite3 transaction handling docs (GH-94320)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit 760b8cf0c887fbc5191611a7e7d4b8c0c4f15edc)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
3 years ago[3.10] gh-94510: Raise on re-entrant calls to sys.setprofile and syssettrace (GH...
Pablo Galindo Salgado [Tue, 5 Jul 2022 18:52:33 +0000 (19:52 +0100)] 
[3.10] gh-94510: Raise on re-entrant calls to sys.setprofile and syssettrace (GH-94511) (#94579)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>.
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years ago[3.10] gh-91330: Tests and docs for dataclass descriptor-typed fields (GH-94424)...
Łukasz Langa [Tue, 5 Jul 2022 18:45:02 +0000 (20:45 +0200)] 
[3.10] gh-91330: Tests and docs for dataclass descriptor-typed fields (GH-94424) (GH-94577)

Co-authored-by: Erik De Bonte <erikd@microsoft.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 5f319308a820f49fec66fc3ade50bbaa9fe2105d)

3 years ago[3.10] gh-94360: Fix a tokenizer crash when reading encoded files with syntax errors...
Pablo Galindo Salgado [Tue, 5 Jul 2022 18:14:28 +0000 (19:14 +0100)] 
[3.10] gh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from stdin (GH-94386) (GH-94574)

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 36fcde61ba48c4e918830691ecf4092e4e3b9b99)

3 years agogh-90355: Add isolated flag if currently isolated (GH-92857) (GH-94569)
Miss Islington (bot) [Tue, 5 Jul 2022 15:58:28 +0000 (08:58 -0700)] 
gh-90355: Add isolated flag if currently isolated (GH-92857) (GH-94569)

Co-authored-by: Carter Dodd <carter.dodd@gmail.com>
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit c8556bcf6c0b05ac46bd74880626a2853e7c99a1)

3 years ago[3.10] bpo-46755: Don't log stack info twice in QueueHandler (GH-31355) (GH-94565)
Vinay Sajip [Tue, 5 Jul 2022 15:04:29 +0000 (16:04 +0100)] 
[3.10] bpo-46755: Don't log stack info twice in QueueHandler (GH-31355) (GH-94565)

Co-authored-by: Erik Montnemery <erik@montnemery.com>
3 years agogh-94538: Fix Argument Clinic output to custom file (GH-94539) (GH-94556)
Miss Islington (bot) [Tue, 5 Jul 2022 12:33:23 +0000 (05:33 -0700)] 
gh-94538: Fix Argument Clinic output to custom file (GH-94539) (GH-94556)

(cherry picked from commit 2b8ed4d3d4741811da31fc774a202d535755c0a9)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years ago[3.10] Docs: remove redundant "adverb-adjective" hyphens from compound modifiers...
Łukasz Langa [Tue, 5 Jul 2022 12:30:37 +0000 (14:30 +0200)] 
[3.10] Docs: remove redundant "adverb-adjective" hyphens from compound modifiers (GH-94551) (GH-94558)

Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021
(cherry picked from commit 3440d197a55800ecceea3e115e44b4262411359c)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
3 years agogh-84753: Clarify change made to `inspect` functions (GH-94554) (GH-94559)
Miss Islington (bot) [Tue, 5 Jul 2022 12:24:25 +0000 (05:24 -0700)] 
gh-84753: Clarify change made to `inspect` functions (GH-94554) (GH-94559)

(cherry picked from commit a2a3f2c541290fc8f0720d1abdc12d564b856c28)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years ago[3.10] Update logging documentation: change cross-reference and add webapp r… (GH...
Vinay Sajip [Mon, 4 Jul 2022 08:10:13 +0000 (09:10 +0100)] 
[3.10] Update logging documentation: change cross-reference and add webapp r… (GH-94542)

3 years agoIDLE doc: Tweek RESTART and Windows console start (GH-94530)
Miss Islington (bot) [Sun, 3 Jul 2022 17:39:20 +0000 (10:39 -0700)] 
IDLE doc: Tweek RESTART and Windows console start (GH-94530)

(cherry picked from commit 39c29f753e6d6f390dce5a36613c1e03f43d28ea)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years agogh-81054: Document that SimpleHTTPRequestHandler follows symbolic links (GH-94416...
Miss Islington (bot) [Fri, 1 Jul 2022 16:41:40 +0000 (09:41 -0700)] 
gh-81054: Document that SimpleHTTPRequestHandler follows symbolic links (GH-94416) (GH-94493)

(cherry picked from commit 80aaeabb8bd1e6b49598a7e23e0f8d99b3fcecaf)

Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
3 years agogh-75372: Specify major version in README for installation (GH-92759) (GH-94488)
Miss Islington (bot) [Fri, 1 Jul 2022 16:22:28 +0000 (09:22 -0700)] 
gh-75372: Specify major version in README for installation (GH-92759) (GH-94488)

(cherry picked from commit 3abda7a38a2a6803d4dbf70c6ae097ad5b59c58d)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
3 years agoUpdate code sample when importing modules in queue doc (GH-94244) (GH-94491)
Miss Islington (bot) [Fri, 1 Jul 2022 16:15:06 +0000 (09:15 -0700)] 
Update code sample when importing modules in queue doc (GH-94244) (GH-94491)

In the queue documentation, the code snippet shows the import to be not PEP 8 compliant.

Since people typically copy-paste from such code samples, I think it's important to show best-practices here.
(cherry picked from commit ad55147c1d5dbfc23d2ec4554f5e82c18984158c)

Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
3 years ago[3.10] gh-93975: Provide nicer error reporting from subprocesses in test_venv.EnsureP...
Jason R. Coombs [Fri, 1 Jul 2022 15:34:11 +0000 (11:34 -0400)] 
[3.10] gh-93975: Provide nicer error reporting from subprocesses in test_venv.EnsurePipTest.test_with_pip (GH-93959) (GH-94004)

This change does three things:

1. Extract a function for trapping output in subprocesses.
2. Emit both stdout and stderr when encountering an error.
3. Apply the change to `ensurepip._uninstall` check.
(cherry picked from commit 6066f450b91f1cbebf33a245c14e660052ccd90a)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
3 years agomultiprocessing.spawn doc: Capitalize the p in "Python" (gh-94462)
Miss Islington (bot) [Thu, 30 Jun 2022 18:22:58 +0000 (11:22 -0700)] 
multiprocessing.spawn doc: Capitalize the p in "Python" (gh-94462)

(cherry picked from commit 62bb7a3b50150495e215d7bd32f633eef81b3bc2)

Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
3 years agogh-84753: Make inspect.iscoroutinefunction() work with AsyncMock (GH-94050) (GH-94461)
Miss Islington (bot) [Thu, 30 Jun 2022 18:02:15 +0000 (11:02 -0700)] 
gh-84753: Make inspect.iscoroutinefunction() work with AsyncMock (GH-94050) (GH-94461)

The inspect version was not working with unittest.mock.AsyncMock.

The fix introduces special-casing of AsyncMock in
`inspect.iscoroutinefunction` equivalent to the one
performed in `asyncio.iscoroutinefunction`.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 4261b6bffc0b8bb5c6d4d80578a81b7520f4aefc)

Co-authored-by: Mehdi ABAAKOUK <sileht@sileht.net>
3 years agoxml.dom.minidom docs: fix typo (GH-93437)
Miss Islington (bot) [Thu, 30 Jun 2022 17:16:06 +0000 (10:16 -0700)] 
xml.dom.minidom docs: fix typo (GH-93437)

(cherry picked from commit 639e35108bc8b2b880225862d3571277ad57648b)

Co-authored-by: Jean-Christophe Helary <jean.christophe.helary@traduction-libre.org>
3 years agogh-94332: make it safe to call assemble_free when assemble_init has not been called...
Irit Katriel [Thu, 30 Jun 2022 15:40:37 +0000 (16:40 +0100)] 
gh-94332: make it safe to call assemble_free when assemble_init has not been called (GH-94389) (GH-94443)

(cherry picked from commit be82d26570343dafc8a89be5a1a0e2f58d51a904)

3 years agogh-89038: [doc] update dis.findlinestarts documentation for changes related to PEP...
Miss Islington (bot) [Thu, 30 Jun 2022 15:39:48 +0000 (08:39 -0700)] 
gh-89038: [doc] update dis.findlinestarts documentation for changes related to PEP-626 (GH-94247) (GH-94449)

(cherry picked from commit d68f2d27bbf85f3573a08fc7554889e1733a30f0)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
3 years ago[3.10] GH-77403: Fix tests which fail when PYTHONUSERBASE is not normalized (GH-93917...
Miss Islington (bot) [Thu, 30 Jun 2022 09:48:13 +0000 (02:48 -0700)] 
[3.10] GH-77403: Fix tests which fail when PYTHONUSERBASE is not normalized (GH-93917) (GH-93970)

(cherry picked from commit b1ae4af5e82e7275cebcfb383690b816a388a785)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Automerge-Triggered-By: GH:iritkatriel
3 years agogh-92336: linecache.getline should not raise exceptions on decoding errors (GH-94410)
Miss Islington (bot) [Thu, 30 Jun 2022 09:46:27 +0000 (02:46 -0700)] 
gh-92336: linecache.getline should not raise exceptions on decoding errors (GH-94410)

(cherry picked from commit 21cbdae90ffdac047d27d1b83a5442fabcf89f7c)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
3 years ago[3.10] bpo-92336: [doc] clarify that the dfile is read by the traceback display code...
Miss Islington (bot) [Wed, 29 Jun 2022 20:54:44 +0000 (13:54 -0700)] 
[3.10] bpo-92336: [doc] clarify that the dfile is read by the traceback display code (GH-94409) (GH-94429)

(cherry picked from commit 68fb03249f3b17146db42b00a75718b823a2280c)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Automerge-Triggered-By: GH:iritkatriel
3 years agoDocs: Update SyntaxError message in REPL example for list comprehension (GH-93901...
Miss Islington (bot) [Wed, 29 Jun 2022 17:22:22 +0000 (10:22 -0700)] 
Docs: Update SyntaxError message in REPL example for list comprehension (GH-93901) (GH-94426)

(cherry picked from commit 22b783aba05bcc3a21af9e5ae308ffbb98ff6a12)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
3 years ago[3.10] GH-89988: Fix memory leak in pickle.Pickler dispatch_table lookup (GH-94298...
Kumar Aditya [Tue, 28 Jun 2022 16:14:47 +0000 (21:44 +0530)] 
[3.10] GH-89988: Fix memory leak in pickle.Pickler dispatch_table lookup (GH-94298) (#94385)

3 years ago[3.11] Backport ABI regeneration script (GH-94376)
Miss Islington (bot) [Tue, 28 Jun 2022 14:10:04 +0000 (07:10 -0700)] 
[3.11] Backport ABI regeneration script (GH-94376)

(cherry picked from commit 648469299d9102bcc165baace67c6758e244eec1)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years ago[3.10] gh-82006: IDLE doc improvements (GH-94349) (GH-94358)
Miss Islington (bot) [Tue, 28 Jun 2022 10:50:58 +0000 (03:50 -0700)] 
[3.10] gh-82006: IDLE doc improvements (GH-94349) (GH-94358)

0. Update text start and stop conditions.
1. Title-case sections but not subsections.
2. Edit Shell Window sections: title, execute, restart.
(cherry picked from commit e6391e08bff775a3c10707fd2cfce6963e6ae429)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agogh-61585: Clarify import scope in modules tutorial (GH-93455) (GH-94374)
Miss Islington (bot) [Tue, 28 Jun 2022 10:30:09 +0000 (03:30 -0700)] 
gh-61585: Clarify import scope in modules tutorial (GH-93455) (GH-94374)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
(cherry picked from commit 4b854b746650214eddadb2440efd9e1544d08ccb)

3 years agogh-92841: Fix asyncio's RuntimeError: Event loop is closed (GH-92842) (GH-92904)
Miss Islington (bot) [Tue, 28 Jun 2022 09:43:14 +0000 (02:43 -0700)] 
gh-92841: Fix asyncio's RuntimeError: Event loop is closed (GH-92842) (GH-92904)

(cherry picked from commit 33880b4b1c60f54aa9e7fa02698a3c82eafe3dc7)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
3 years agogh-94208: Add more TLS version/protocol checks for FreeBSD (GH-94347)
Miss Islington (bot) [Tue, 28 Jun 2022 07:53:23 +0000 (00:53 -0700)] 
gh-94208: Add more TLS version/protocol checks for FreeBSD (GH-94347)

Three test cases were failing on FreeBSD with latest OpenSSL.
(cherry picked from commit 1bc86c26253befa006c0f52eebb6ed633c7d1e5c)

Co-authored-by: Christian Heimes <christian@python.org>
3 years ago[3.10] gh-94192: Fix error for dictionary literals with invalid expression as value...
wookie184 [Mon, 27 Jun 2022 18:21:42 +0000 (19:21 +0100)] 
[3.10] gh-94192: Fix error for dictionary literals with invalid expression as value. (GH-94304) (#94344)

Co-authored-by: wookie184 <wookie1840@gmail.com>
3 years ago[3.11] gh-84623: Remove unused imports in stdlib (GH-94313)
Miss Islington (bot) [Mon, 27 Jun 2022 04:13:49 +0000 (21:13 -0700)] 
[3.11] gh-84623: Remove unused imports in stdlib (GH-94313)

GH-93773

Backport only for 2 idlelib files.
Cherrypicked from  259dd71c32a42708a2800c72898e2664a33fda9c
(cherry picked from commit bc8d81a8febd26e7d02e26f46532aeb7ecbd55be)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years agogh-85023: [doc] clarify parameters vs arguments explanation in FAQ (GH-94282)
Miss Islington (bot) [Sun, 26 Jun 2022 22:05:23 +0000 (15:05 -0700)] 
gh-85023: [doc] clarify parameters vs arguments explanation in FAQ (GH-94282)

(cherry picked from commit d71f5adc41569c2d626552269797e0545fc9122c)

Co-authored-by: Arun Mani J <49952138+arun-mani-j@users.noreply.github.com>
3 years agoGH-94254: Make _struct module types immutable (GH-94269)
Miss Islington (bot) [Sun, 26 Jun 2022 10:45:00 +0000 (03:45 -0700)] 
GH-94254: Make _struct module types immutable (GH-94269)

(cherry picked from commit 17ed560fcd0a1442485f9bd48884bbe412f35abc)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years agoRun Tools/scripts/reindent.py (#94225) (#94291)
Victor Stinner [Sun, 26 Jun 2022 10:39:16 +0000 (12:39 +0200)] 
Run Tools/scripts/reindent.py (#94225) (#94291)

Reindent files which were not properly formatted (PEP 8: 4 spaces).

Remove also some trailing spaces.

(cherry picked from commit e87ada48a9e5d9d03f9759138869216df0d7383a)

3 years ago[doc] fix typo in reference to tp_descr_get and tp_descr_set (GH-94140)
Miss Islington (bot) [Sun, 26 Jun 2022 10:11:43 +0000 (03:11 -0700)] 
[doc] fix typo in reference to tp_descr_get and tp_descr_set (GH-94140)

(cherry picked from commit 32d595fdcd4be8e1f41dcfe84ccf4de89fea3c3f)

Co-authored-by: Max Bachmann <kontakt@maxbachmann.de>
3 years agogh-83499: Fix closing file descriptors in tempfile (GH-93874)
Miss Islington (bot) [Sun, 26 Jun 2022 08:17:19 +0000 (01:17 -0700)] 
gh-83499: Fix closing file descriptors in tempfile (GH-93874)

(cherry picked from commit d4792ce916b94d090b6c7bce8b0f973e840c9e4e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agogh-94245: Test pickling and copying of typing.Tuple[()] (GH-94259) (GH-94268)
Miss Islington (bot) [Sun, 26 Jun 2022 06:01:07 +0000 (23:01 -0700)] 
gh-94245: Test pickling and copying of typing.Tuple[()] (GH-94259) (GH-94268)

(cherry picked from commit 75cb3abc3bf10c7be3b374bfb4c060c36d251411)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agogh-70474: [doc] fix wording of GET_ANEXT doc (GH-94048)
Miss Islington (bot) [Sat, 25 Jun 2022 22:52:06 +0000 (15:52 -0700)] 
gh-70474: [doc] fix wording of GET_ANEXT doc (GH-94048)

(cherry picked from commit 9af6b75298d066e89646acf8df1704bef183a6f8)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
3 years agobpo-39971: Change examples to be runnable (GH-32172)
Miss Islington (bot) [Sat, 25 Jun 2022 20:58:27 +0000 (13:58 -0700)] 
bpo-39971: Change examples to be runnable (GH-32172)

(cherry picked from commit c57a1c76d71075b14f6524b4681f29a3f1e88cb2)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
3 years ago[3.10] gh-90016: Reword sqlite3 adapter/converter docs (GH-93095) (#94273)
Erlend Egeberg Aasland [Sat, 25 Jun 2022 20:55:38 +0000 (22:55 +0200)] 
[3.10] gh-90016: Reword sqlite3 adapter/converter docs (GH-93095) (#94273)

Also add adapters and converter recipes.

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com.
(cherry picked from commit bd3c1c187e0e4fde5aec6835d180e9eddde8ceb6)

3 years ago[3.10] gh-94245: Fix pickling and copying of typing.Tuple[()] (GH-94260)
Serhiy Storchaka [Sat, 25 Jun 2022 15:45:46 +0000 (18:45 +0300)] 
[3.10] gh-94245: Fix pickling and copying of typing.Tuple[()] (GH-94260)

3 years ago[3.10] gh-94207: Fix struct module leak (GH-94239) (GH-94266)
Miss Islington (bot) [Sat, 25 Jun 2022 15:05:06 +0000 (08:05 -0700)] 
[3.10] gh-94207: Fix struct module leak (GH-94239) (GH-94266)

* gh-94207: Fix struct module leak (GH-94239)

Make _struct.Struct a GC type

This fixes a memory leak in the _struct module, where as soon
as a Struct object is stored in the cache, there's a cycle from
the _struct module to the cache to Struct objects to the Struct
type back to the module. If _struct.Struct is not gc-tracked, that
cycle is never collected.

This PR makes _struct.Struct GC-tracked, and adds a regression test.
(cherry picked from commit 6b865349aae47b90f9ef0b98f3fe3720c2f05601)

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
3 years agoIDLE: replace if statement with expression (GH-94228)
Miss Islington (bot) [Fri, 24 Jun 2022 17:30:55 +0000 (10:30 -0700)] 
IDLE: replace if statement with expression (GH-94228)

(cherry picked from commit 91f9947f231cce2c72a3fb7b5c8e8cf49cc2c10f)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years agoDocs: Remove `Provides [...]` from `multiprocessing.shared_memory` description (GH...
Miss Islington (bot) [Fri, 24 Jun 2022 17:16:54 +0000 (10:16 -0700)] 
Docs: Remove `Provides [...]` from `multiprocessing.shared_memory` description (GH-92761)

(cherry picked from commit a91ffcf3fa15ce3884f620c799566aa734412f9d)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
3 years agogh-94205: Ensures all required DLLs are copied on Windows for underpth tests (GH...
Steve Dower [Fri, 24 Jun 2022 11:39:22 +0000 (12:39 +0100)] 
gh-94205: Ensures all required DLLs are copied on Windows for underpth tests (GH-94206)

3 years agogh-93692: remove "build finished successfully" message from setup.py (GH-93693)
Miss Islington (bot) [Fri, 24 Jun 2022 11:03:35 +0000 (04:03 -0700)] 
gh-93692: remove "build finished successfully" message from setup.py (GH-93693)

The message was only emitted when the build succeeded _and_ there were
missing modules.
(cherry picked from commit ab077d1e17032f84514292ae3fb8dee9bcfd2ce9)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agobpo-45816: Support building with VS 2022 (v143 toolset) on Windows (GH-29577)
Miss Islington (bot) [Thu, 23 Jun 2022 19:50:36 +0000 (12:50 -0700)] 
bpo-45816: Support building with VS 2022 (v143 toolset) on Windows (GH-29577)

(cherry picked from commit d9301703fb1086cafbd730c17e3d450a192485d6)

Co-authored-by: Crowthebird <78076854+thatbirdguythatuknownot@users.noreply.github.com>
3 years ago[3.10] gh-92858: Improve error message for some suites with syntax error before ...
Pablo Galindo Salgado [Thu, 23 Jun 2022 17:37:53 +0000 (18:37 +0100)] 
[3.10] gh-92858: Improve error message for some suites with syntax error before ':' (GH-92894). (#94183)

(cherry picked from commit 2fc83ac3afa161578200dbf8d823a20e0801c0c0)

Co-authored-by: wookie184 <wookie1840@gmail.com>
Co-authored-by: wookie184 <wookie1840@gmail.com>
3 years agogh-84623: Remove unused imports in idlelib (GH-94143) (#94148)
Miss Islington (bot) [Thu, 23 Jun 2022 11:21:08 +0000 (04:21 -0700)] 
gh-84623: Remove unused imports in idlelib (GH-94143) (#94148)

Remove commented code in test_debugger_r.py.

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

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
3 years agogh-92888: Fix memoryview bad `__index__` use after free (GH-92946) (GH-93950)
Ken Jin [Thu, 23 Jun 2022 10:10:14 +0000 (18:10 +0800)] 
gh-92888: Fix memoryview bad `__index__` use after free (GH-92946) (GH-93950)

(cherry picked from commit 11190c4ad0d3722b8d263758ac802985131a5462)

Co-authored-by: chilaxan <35645806+chilaxan@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <3659035+serhiy-storchaka@users.noreply.github.com>
3 years agoCloses gh-94152: Update pyvideo.org URL (GH-94075)
Miss Islington (bot) [Thu, 23 Jun 2022 03:43:15 +0000 (20:43 -0700)] 
Closes gh-94152: Update pyvideo.org URL (GH-94075)

The URL is now https://pyvideo.org, which uses HTTPS and avoids a redirect.
(cherry picked from commit 7c439dca13435085efb2fddf9ac75e5305db7ada)

Co-authored-by: partev <petrosyan@gmail.com>
3 years ago[3.10] Add an error message to the ABI-dump file check (#94131)
Pablo Galindo Salgado [Wed, 22 Jun 2022 21:22:24 +0000 (22:22 +0100)] 
[3.10] Add an error message to the ABI-dump file check (#94131)

3 years agogh-94114: Remove obsolete reference to python.org mirrors (GH-94115)
Miss Islington (bot) [Wed, 22 Jun 2022 17:03:37 +0000 (10:03 -0700)] 
gh-94114: Remove obsolete reference to python.org mirrors (GH-94115)

* gh-94114
(cherry picked from commit 8661c5053fbe3e246289d77e49a813470b3a16f7)

Co-authored-by: partev <petrosyan@gmail.com>
3 years agogh-91172: Create a workflow for verifying bundled pip and setuptools (GH-31885) ... 94130/head
Miss Islington (bot) [Wed, 22 Jun 2022 14:04:06 +0000 (07:04 -0700)] 
gh-91172: Create a workflow for verifying bundled pip and setuptools (GH-31885) (GH-94122)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
(cherry picked from commit d36954b7ead06daead3dcf9b0dd9f8002eab508f)

Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
3 years agogh-93951: In test_bdb.StateTestCase.test_skip, avoid including auxiliary importers...
Miss Islington (bot) [Wed, 22 Jun 2022 12:46:01 +0000 (05:46 -0700)] 
gh-93951: In test_bdb.StateTestCase.test_skip, avoid including auxiliary importers. (GH-93962) (GH-94119)

Co-authored-by: Brett Cannon <brett@python.org>
(cherry picked from commit c029b552f39200977325d4351803bdd13ddccc4f)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
3 years agoFix typo in _io.TextIOWrapper Clinic input (GH-94037) (GH-94117)
Miss Islington (bot) [Wed, 22 Jun 2022 12:22:46 +0000 (05:22 -0700)] 
Fix typo in _io.TextIOWrapper Clinic input (GH-94037) (GH-94117)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit ca308c13daa722f3669a14f1613da768086beb6a)

Co-authored-by: fikotta <81991278+fikotta@users.noreply.github.com>
3 years agogh-94101 Disallow instantiation of SSLSession objects (GH-94102)
Miss Islington (bot) [Wed, 22 Jun 2022 10:50:03 +0000 (03:50 -0700)] 
gh-94101 Disallow instantiation of SSLSession objects (GH-94102)

Fixes GH-94101

Automerge-Triggered-By: GH:tiran
(cherry picked from commit dc8e1d0390e16e90b2f74f6bd6417324a357bc23)

Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
3 years agogh-74696: Do not change the current working directory in shutil.make_archive() if...
Miss Islington (bot) [Wed, 22 Jun 2022 09:18:37 +0000 (02:18 -0700)] 
gh-74696: Do not change the current working directory in shutil.make_archive() if possible (GH-93160) (GH-94106)

It is no longer changed when create a zip or tar archive.

It is still changed for custom archivers registered with shutil.register_archive_format()
if root_dir is not None.

Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit fda4b2f06364ae5ef91ecd9c09e2af380c8b0b4c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agoDOC: correct bytesarray -> bytearray in comments (GH-92410) (GH-94090)
Miss Islington (bot) [Wed, 22 Jun 2022 08:48:14 +0000 (01:48 -0700)] 
DOC: correct bytesarray -> bytearray in comments (GH-92410) (GH-94090)

(cherry picked from commit 0709586744ec58dd60492e16b08fff6dc1149a0a)

Co-authored-by: Thomas A Caswell <tcaswell@gmail.com>
3 years ago[3.10] GH-93964: Harden overflow checks before _PyBytes_Resize in compile.c (GH-94045)
Dennis Sweeney [Wed, 22 Jun 2022 08:37:56 +0000 (04:37 -0400)] 
[3.10] GH-93964: Harden overflow checks before _PyBytes_Resize in compile.c (GH-94045)

3 years agobpo-30535: [doc] state that sys.meta_path is not empty by default (GH-94098) (GH...
Miss Islington (bot) [Tue, 21 Jun 2022 22:05:08 +0000 (15:05 -0700)] 
bpo-30535: [doc] state that sys.meta_path is not empty by default (GH-94098) (GH-94100)

Co-authored-by: Windson yang <wiwindson@outlook.com>
(cherry picked from commit 6575841266b83f3121c188695c7513e551ade034)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
3 years agogh-87389: Fix an open redirection vulnerability in http.server. (GH-93879)
Miss Islington (bot) [Tue, 21 Jun 2022 21:36:55 +0000 (14:36 -0700)] 
gh-87389: Fix an open redirection vulnerability in http.server. (GH-93879)

Fix an open redirection vulnerability in the `http.server` module when
an URI path starts with `//` that could produce a 301 Location header
with a misleading target.  Vulnerability discovered, and logic fix
proposed, by Hamza Avvan (@hamzaavvan).

Test and comments authored by Gregory P. Smith [Google].
(cherry picked from commit 4abab6b603dd38bec1168e9a37c40a48ec89508e)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
3 years agogh-93021: Fix __text_signature__ for __get__ (GH-93023) (GH-94086)
Miss Islington (bot) [Tue, 21 Jun 2022 20:32:24 +0000 (13:32 -0700)] 
gh-93021: Fix __text_signature__ for __get__ (GH-93023) (GH-94086)

Because of the way wrap_descr_get is written, the second argument
to __get__ methods implemented through the wrapper is always
optional.
(cherry picked from commit 4e08fbcfdfa57ea94091aabdd09413708e3fb2bf)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agoTutorial: specify match cases don't fall through (GH-93615) (GH-94084)
Miss Islington (bot) [Tue, 21 Jun 2022 19:53:07 +0000 (12:53 -0700)] 
Tutorial: specify match cases don't fall through (GH-93615) (GH-94084)

(cherry picked from commit dd5cf84f245abf84405833320b8f25dbc43b24d2)

Co-authored-by: max <36980911+pr2502@users.noreply.github.com>
3 years agogh-93240: clarify wording in IO tutorial (GH-93276) (GH-94081)
Miss Islington (bot) [Tue, 21 Jun 2022 19:51:34 +0000 (12:51 -0700)] 
gh-93240: clarify wording in IO tutorial (GH-93276) (GH-94081)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
(cherry picked from commit 51d673176ac90f2144e3e7a492e5b3ea53bdba2e)

Co-authored-by: paulreece <96156234+paulreece@users.noreply.github.com>
3 years ago[3.10] gh-93675: Fix typos in `Doc/` (GH-93676) (GH-94080)
Łukasz Langa [Tue, 21 Jun 2022 19:39:08 +0000 (21:39 +0200)] 
[3.10] gh-93675: Fix typos in `Doc/` (GH-93676) (GH-94080)

Closes GH-93675
(cherry picked from commit 830513754d081619b2d72db17770627312072fa5)

Co-authored-by: luzpaz <luzpaz@users.noreply.github.com>
3 years ago[3.10] gh-93851: Fix all broken links in Doc/ (GH-93853) (GH-94078)
Łukasz Langa [Tue, 21 Jun 2022 19:37:09 +0000 (21:37 +0200)] 
[3.10] gh-93851: Fix all broken links in Doc/ (GH-93853) (GH-94078)

(cherry picked from commit f62ff97f31a775cc7956adeae32c14e7c85bdc15)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
3 years ago[3.10] gh-79512: Fixed names and __module__ value of weakref classes (GH-93719) ...
Serhiy Storchaka [Tue, 21 Jun 2022 19:36:09 +0000 (22:36 +0300)] 
[3.10] gh-79512: Fixed names and __module__ value of weakref classes (GH-93719) (GH-94071)

Classes ReferenceType, ProxyType and CallableProxyType have now correct
atrtributes __module__, __name__ and __qualname__.
It makes them (types, not instances) pickleable.
(cherry picked from commit 8352e322e87ba39c71e578b65ad8ae156ca3e0c7)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agogh-91387: Strip trailing slash from tarfile longname directories (GH-32423)
Miss Islington (bot) [Tue, 21 Jun 2022 18:09:55 +0000 (11:09 -0700)] 
gh-91387: Strip trailing slash from tarfile longname directories (GH-32423)

Co-authored-by: Brett Cannon <brett@python.org>
(cherry picked from commit c1e19421c23d1261ecbbe7375316adc1c24f0a87)

Co-authored-by: Chris Fernald <chrisf671@gmail.com>
3 years agogh-86986: Drop compatibility support for Sphinx 2 (GH-93737)
Miss Islington (bot) [Tue, 21 Jun 2022 17:51:23 +0000 (10:51 -0700)] 
gh-86986: Drop compatibility support for Sphinx 2 (GH-93737)

* Revert "bpo-42843: Keep Sphinx 1.8 and Sphinx 2 compatibility (GH-24282)"

This reverts commit 5c1f15b4b1024cbf0acc85832f0c623d1a4605fd

* Revert "bpo-42579: Make workaround for various versions of Sphinx more robust (GH-23662)"

This reverts commit b63a620014b67a6e63d10783149c41baaf59def8.
(cherry picked from commit 0efe3a1636c143fe0694a8e4d25d6eae19e0d618)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
3 years agogh-90539: doc: Expand on what should not go into CFLAGS, LDFLAGS (GH-92754)
Miss Islington (bot) [Mon, 20 Jun 2022 14:14:51 +0000 (07:14 -0700)] 
gh-90539: doc: Expand on what should not go into CFLAGS, LDFLAGS (GH-92754)

(cherry picked from commit 61f24e7885bed096b5d7f75aff13c1001994b35a)

Co-authored-by: Matthias Köppe <mkoeppe@math.ucdavis.edu>
3 years agogh-84461: Silence some compiler warnings on WASM (GH-93978) (#94025)
Victor Stinner [Mon, 20 Jun 2022 14:09:55 +0000 (16:09 +0200)] 
gh-84461: Silence some compiler warnings on WASM (GH-93978) (#94025)

(cherry picked from commit 774ef28814d0d9d57ec813cb31b0a7af6c476127)

Co-authored-by: Christian Heimes <christian@python.org>
3 years ago[3.10] gh-79009: sqlite3.iterdump now correctly handles tables with autoincrement...
Miss Islington (bot) [Mon, 20 Jun 2022 00:14:57 +0000 (17:14 -0700)] 
[3.10] gh-79009: sqlite3.iterdump now correctly handles tables with autoincrement (GH-9621) (#94015)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
(cherry picked from commit affa9f22cfd1e83a5fb413e5ce2feef9ea1a49ac)

Co-authored-by: itssme <itssme3000@gmail.com>
3 years agogh-61162: Clarify sqlite3 connection context manager docs (GH-93890)
Miss Islington (bot) [Sun, 19 Jun 2022 20:25:55 +0000 (13:25 -0700)] 
gh-61162: Clarify sqlite3 connection context manager docs (GH-93890)

Explicitly note that transactions are only closed if there is an open
transation at `__exit__`, and that transactions are not implicitly
opened during `__enter__`.

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Automerge-Triggered-By: GH:erlend-aasland
(cherry picked from commit 8e0897814109765a9e463676413fff016875217b)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years ago[3.10] gh-93925: Improve clarity of sqlite3 commit/rollback, and close docs (GH-93926...
Erlend Egeberg Aasland [Sun, 19 Jun 2022 19:43:03 +0000 (21:43 +0200)] 
[3.10] gh-93925: Improve clarity of sqlite3 commit/rollback, and close docs (GH-93926) (#94011)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>.
(cherry picked from commit 6446592c89b0c581c00e170ae6278291e940755c)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
3 years agoGH-93990: fix refcounting bug in `add_subclass` in `typeobject.c` (GH-93989) (GH...
Kumar Aditya [Sun, 19 Jun 2022 11:26:13 +0000 (16:56 +0530)] 
GH-93990: fix refcounting bug in `add_subclass` in `typeobject.c` (GH-93989) (GH-93999)

(cherry picked from commit 726448ebe15cd78e180c29c9858cb6c10a581524)

3 years agoWhat's new in 3.10: fix link to issue (GH-93968)
Miss Islington (bot) [Sun, 19 Jun 2022 09:14:21 +0000 (02:14 -0700)] 
What's new in 3.10: fix link to issue (GH-93968)

* What's new in 3.10: fix link to issue

* What's new in 3.10: fix link to GH issue

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit 59c1b33805fe553fe6a157ae9b346153b96f7ff1)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
3 years agoGH-83658: make multiprocessing.Pool raise an exception if maxtasksperchild is not...
Miss Islington (bot) [Fri, 17 Jun 2022 22:32:15 +0000 (15:32 -0700)] 
GH-83658: make multiprocessing.Pool raise an exception if maxtasksperchild is not None or a positive int (GH-93364) (GH-93924)

Closes GH-83658.
(cherry picked from commit e37a158725dec561f234b81864363d55f05c7b4e)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
3 years agotest_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920)
Miss Islington (bot) [Fri, 17 Jun 2022 09:44:03 +0000 (02:44 -0700)] 
test_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920)

(cherry picked from commit 538f28921f67e36617272faa662375d305d9284c)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 years agogh-91877: Fix WriteTransport.get_write_buffer_{limits,size} docs (#92338) (#93805)
Kumar Aditya [Thu, 16 Jun 2022 16:19:17 +0000 (21:49 +0530)] 
gh-91877: Fix WriteTransport.get_write_buffer_{limits,size} docs (#92338) (#93805)

- Amend docs for WriteTransport.get_write_buffer_limits
- Add docs for WriteTransport.get_write_buffer_size

Co-authored-by: Sanket Shanbhag <TechieBoy@users.noreply.github.com>
3 years agogh-91810: Fix regression with writing an XML declaration with encoding='unicode'...
Miss Islington (bot) [Thu, 16 Jun 2022 16:16:42 +0000 (09:16 -0700)] 
gh-91810: Fix regression with writing an XML declaration with encoding='unicode' (GH-93426) (GH-93790)

Suppress writing an XML declaration in open files in ElementTree.write()
with encoding='unicode' and xml_declaration=None.

If file patch is passed to ElementTree.write() with encoding='unicode',
always open a new file in UTF-8.
(cherry picked from commit d7db9dc3cc5b44d0b4ce000571fecf58089a01ec)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agogh-91577: SharedMemory move imports out of methods (GH-91579)
Miss Islington (bot) [Thu, 16 Jun 2022 14:07:30 +0000 (07:07 -0700)] 
gh-91577: SharedMemory move imports out of methods (GH-91579)

SharedMemory.unlink() uses the unregister() function from resource_tracker. Previously it was imported in the method, but this can fail if the method is called during interpreter shutdown, for example when unlink is part of a __del__() method.

Moving the import to the top of the file, means that the unregister() method is available during interpreter shutdown.

The register call in SharedMemory.__init__() can also use this imported resource_tracker.
(cherry picked from commit 9a458befdd68625d088f4fea7df135a57d147deb)

Co-authored-by: samtygier <samtygier@yahoo.co.uk>
3 years ago[3.10] gh-93735: Split Docs CI to speed-up the build (GH-93736) (GH-93833)
Adam Turner [Thu, 16 Jun 2022 10:17:10 +0000 (11:17 +0100)] 
[3.10] gh-93735: Split Docs CI to speed-up the build (GH-93736) (GH-93833)

(cherry picked from commit 4f26963526f386bba84de8e14962163bfd5da955)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
3 years ago[3.11] gh-93741: Add private C API _PyImport_GetModuleAttrString() (GH-93742) (GH...
Miss Islington (bot) [Thu, 16 Jun 2022 07:19:29 +0000 (00:19 -0700)] 
[3.11] gh-93741: Add private C API _PyImport_GetModuleAttrString() (GH-93742) (GH-93792)

It combines PyImport_ImportModule() and PyObject_GetAttrString()
and saves 4-6 lines of code on every use.

Add also _PyImport_GetModuleAttr() which takes Python strings as arguments.
(cherry picked from commit 6fd4c8ec7740523bb81191c013118d9d6959bc9d)
(cherry picked from commit d42b3689f4a14694f5b1ff75c155141102aa2557)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agogh-93857: Fix broken audit-event targets in sqlite3 docs (GH-93859)
Miss Islington (bot) [Wed, 15 Jun 2022 14:24:50 +0000 (07:24 -0700)] 
gh-93857: Fix broken audit-event targets in sqlite3 docs (GH-93859)

Corrected targets for the following audit-events:

- sqlite3.enable_load_extension => sqlite3.Connection.enable_load_extension
- sqlite3.load_extension => sqlite3.Connection.load_extension
(cherry picked from commit ce4d11f98b30ec62f56a0653a212f0f78ca08b59)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agogh-87260: Update sqlite3 signature docs to reflect actual implementation (GH-93840)
Miss Islington (bot) [Wed, 15 Jun 2022 10:46:33 +0000 (03:46 -0700)] 
gh-87260: Update sqlite3 signature docs to reflect actual implementation (GH-93840)

Align the docs for the following methods with the actual implementation:

- sqlite3.complete_statement()
- sqlite3.Connection.create_function()
- sqlite3.Connection.create_aggregate()
- sqlite3.Connection.set_progress_handler()
(cherry picked from commit d31834688bccb41fc136f780db83ffa12bef8cbd)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>