]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Tue, 19 Jul 2022 17:04:47 +0000 (10:04 -0700)]
GH-91153: Handle mutating __index__ methods in bytearray item assignment (GH-94891)
(cherry picked from commit
f36589510b8708fa224d799d5b328deab558aa4e )
Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
Shantanu [Tue, 19 Jul 2022 06:24:48 +0000 (23:24 -0700)]
[3.10] gh-94949: Disallow parsing parenthesised ctx mgr with old feature_version (GH-94950) (#94990)
(cherry picked from commit
0daba822212cd5d6c63384a27f390f0945330c2b )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Tue, 19 Jul 2022 02:38:05 +0000 (19:38 -0700)]
test_concurrent_futures: Fix unneeded/confusing format call (GH-93119)
Added in
339fd46cb764277cbbdc3e78dcc5b45b156bb6ae - but as noted in a comment, the test only tests ThreadPoolExecutor.
(cherry picked from commit
3f2dd0a7c0b1a5112f2164dce78fcfaa0c4b39c7 )
Co-authored-by: Florian Bruhin <me@the-compiler.org>
Shantanu [Mon, 18 Jul 2022 19:43:23 +0000 (12:43 -0700)]
[3.10] gh-94947: Disallow parsing walrus with feature_version < (3, 8) (GH-94948) (#94969)
* gh-94947: Disallow parsing walrus with feature_version < (3, 8)
* oops, commit the parser
* 📜🤖 Added by blurb_it.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>.
(cherry picked from commit
ae0be5a53bb4caee3de4888341addd9c94133f2d )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Mon, 18 Jul 2022 17:33:47 +0000 (10:33 -0700)]
Fix incorrect double indent in ast doc (GH-94976)
Warning directive indent was 4 rather than 3 spaces.
(cherry picked from commit
a25a803c4c452c70da11be3e80004b47646bff4c )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 18 Jul 2022 16:45:09 +0000 (09:45 -0700)]
In ast doc, update 'below' to 'above' (GH-94967)
The included asdl file was moved from 'below' to 'above' in 3.9.
(cherry picked from commit
7b617be4ab6df871cfa9d2127908cb1373578dc0 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 17 Jul 2022 15:39:30 +0000 (08:39 -0700)]
gh-94821: Fix autobind of empty unix domain address (GH-94826)
When binding a unix socket to an empty address on Linux, the socket is
automatically bound to an available address in the abstract namespace.
>>> s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
>>> s.bind("")
>>> s.getsockname()
b'\x0075499'
Since python 3.9, the socket is bound to the one address:
>>> s.getsockname()
b'\x00'
And trying to bind multiple sockets will fail with:
Traceback (most recent call last):
File "/home/nsoffer/src/cpython/Lib/test/test_socket.py", line 5553, in testAutobind
s2.bind("")
OSError: [Errno 98] Address already in use
Added 2 tests:
- Auto binding empty address on Linux
- Failing to bind an empty address on other platforms
Fixes
f6b3a07b7df6 (bpo-44493: Add missing terminated NUL in sockaddr_un's length (GH-26866)
(cherry picked from commit
c22f134211743cd5ad14cec1dd4f527bee542b4c )
Co-authored-by: Nir Soffer <nsoffer@redhat.com>
Miss Islington (bot) [Sun, 17 Jul 2022 05:46:43 +0000 (22:46 -0700)]
gh-94864: Fix PyArg_Parse* with deprecated format units "u" and "Z" (GH-94902)
It returned 1 (success) when warnings are turned into exceptions.
(cherry picked from commit
107c21c5d56682320b38c01b5575c1604a429239 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 16 Jul 2022 21:06:33 +0000 (14:06 -0700)]
gh-94869: Fix the location in some expressions for multi-line f-string ast nodes (GH-94895) (#94911)
(cherry picked from commit
2e9da8e3522764d09f1d6054a2be567e91a30812 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Sat, 16 Jul 2022 17:07:39 +0000 (10:07 -0700)]
gh-90844: Allow virtual environments to correctly launch when they have spaces in the path (GH-94903)
(cherry picked from commit
4b4439daed3992a5c5a83b86596d6e00ac3c1203 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Fri, 15 Jul 2022 22:16:45 +0000 (15:16 -0700)]
Add additional pointers to pathlib's mapping to os.path functions (GH-94828)
* Add additional pointers to pathlib's mapping to os.path functions
os.path.splitext has a somewhat quirky signature since it mixes the path and filename components but I wanted the documentation to mention `PurePath.stem` as the natural counterpart to `PurePath.suffix` for the common use of `os.path.splitext` to turn "file.py" into "file" and "py".
Technically this could have some discussion of how to handle the parent directory hierarchy but that seems a bit out of keeping with the spirit of this table so I omitted mentioning `PurePath.parents` here.
* Update Doc/library/pathlib.rst
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit
3789c635772fbdeb5d0fc32aa811fd6b1d935a60 )
Co-authored-by: Chris Adams <chris@improbable.org>
Miss Islington (bot) [Fri, 15 Jul 2022 07:18:30 +0000 (00:18 -0700)]
[3.10] [doc] Update cookbook example and add information about queue types. (GH-94854) (GH-94872)
(cherry picked from commit
dc54193095e8ac8d73489f7ab133e016a5556256 )
Neil Schemenauer [Fri, 15 Jul 2022 00:26:40 +0000 (17:26 -0700)]
[3.10] gh-94841: Ensure arena_map_get() is inlined in PyObject_Free() (GH-94842)
Need to define ALWAYS_INLINE macro for 3.10.
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Miss Islington (bot) [Thu, 14 Jul 2022 21:58:14 +0000 (14:58 -0700)]
Docs: fix typo in sqlite3.rst (GH-94798)
Colum -> Column
(cherry picked from commit
9ea72e9d8d9c7ff7c0cec4bacf6071ff4f1f6238 )
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
Miss Islington (bot) [Thu, 14 Jul 2022 01:27:20 +0000 (18:27 -0700)]
idlelib: replace 'while 1' with 'while True' (GH-94827)
(cherry picked from commit
6a15f918b5a6fb5113d5332ebf27df1d5360e66c )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Thu, 14 Jul 2022 00:51:03 +0000 (17:51 -0700)]
gh-90359: Unify documentation style for datetime.rst (gh-94836)
(cherry picked from commit
967da5febbc77b36a5b14863e61db3a2d441a940 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Thu, 14 Jul 2022 00:16:44 +0000 (17:16 -0700)]
gh-90359: Update documentation to follow PEP 495. (gh-94800)
(cherry picked from commit
07374cce52abb7fd39729dc1b646ca3029b64c64 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Wed, 13 Jul 2022 16:39:56 +0000 (09:39 -0700)]
gh-90815: Fix test_embed for Windows PGO build with mimalloc (GH-94790)
Fixes the failure of PGO building with `mimalloc` on Windows, ensuring that `test_bpo20891` does not break profiling data (`python31*.pgc`).
(cherry picked from commit
4a6bb30eb600e3b18f4a84c1be922c07758c613f )
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Miss Islington (bot) [Mon, 11 Jul 2022 16:14:57 +0000 (09:14 -0700)]
[3.10] GH-94736: mark SemLock test as linux only (GH-94750) (#94753)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
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>
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>
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)
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)
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
Ł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 )
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 )
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 )
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>
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>
Ł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>
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>
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)
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>
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>
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>
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>
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>
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>
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>
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>
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 )
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>
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
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>
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
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>
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)
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>
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>
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 )
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>
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>
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>
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>
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>
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>
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 )
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>
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>
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>
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>
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>
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 )
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)
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>
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>
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>
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)
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>
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>
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>
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>
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>
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>
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)
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>
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>
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>
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>
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>
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>
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>
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)
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>
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>
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>
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>
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>
Ł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>
Ł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>