Commit Graph

114521 Commits

Author SHA1 Message Date
Jelle Zijlstra 83c8df29dd
[3.11] GH-87390: Add remaining tests for PEP 646 (GH-98267) (#98667)
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>.
Co-authored-by: Matthew Rahtz <matthew.rahtz@gmail.com>

(cherry picked from commit cb95cc24ef)
2022-10-25 18:46:57 -07:00
Miss Islington (bot) 18b788c63a
gh-94808: Improve coverage of `unicode_find` and `unicode_rfind` (GH-98648)
(cherry picked from commit b1783bc124)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-10-25 17:04:01 -07:00
Miss Islington (bot) fa95b69856
fix a typo in whatsnew/3.11 (GH-98603)
(cherry picked from commit 45644905ea)

Co-authored-by: July Tikhonov <july.tikh@gmail.com>
2022-10-25 16:50:09 -07:00
Miss Islington (bot) 298364f794
Fix typos in deprecation section of 3.11 What's New (GH-98628)
(cherry picked from commit faea6a131a)

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
2022-10-25 16:44:18 -07:00
Miss Islington (bot) 08c3c91055
gh-95913: Fix, sort & expand pending removal sect in 3.11 WhatsNew (GH-98583)
* Fix names/references of pending removal APIs

* Sort list of APIs pending removal alphabetically

* Add missing modules/submodules pending removal in 3.12

* Add table of unittest deprecated aliases to 3.11 What's New

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
(cherry picked from commit e19c2b979f)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-25 16:41:51 -07:00
Miss Islington (bot) 4fc042f28f
gh-97937: dis docs: add adaptive=False (GH-97939)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
(cherry picked from commit 5d8bf2b106)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-10-25 16:06:08 -07:00
Miss Islington (bot) f7194cace0
gh-94328: Update Windows installer to use SQLite 3.39.4 (GH-98640)
(cherry picked from commit 0c84593275)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2022-10-25 14:51:32 -07:00
Miss Islington (bot) 4cd5ea62ac
gh-98602: [typing docs] Use quotes for forward reference in TypeVarTuple example (GH-98605)
(cherry picked from commit be0cf82ae4)

Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
2022-10-25 08:42:12 -07:00
Miss Islington (bot) abc1a8c61c
Use more precise exception types in `assertRaises` in typing tests (GH-98650)
(cherry picked from commit 45c89358b7)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-10-25 07:19:37 -07:00
Miss Islington (bot) 4b68e34a6c
gh-98623: Fix base classes in `typing.rst` (GH-98626)
(cherry picked from commit 5076108872)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-10-25 07:13:16 -07:00
Miss Islington (bot) 65f9c8e6dd
gh-93696: Locate frozen module source with __file__ (GH-93697)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
(cherry picked from commit d91de288e7)

Co-authored-by: James Gerity <snoopjedi@gmail.com>
2022-10-25 06:49:34 -07:00
Miss Islington (bot) c96c7630c5
gh-95913: Prepare Improved Modules in 3.11 WhatsNew for final edits (GH-98631)
* Add two line breaks and ref target labels to remaining subsections

* Fix a few out of order Improved Modules

* Fix a few minor textual formatting issues in sections

* Fix remaining Sphinx warnings in the Improved Modules section
(cherry picked from commit dd13b23e49)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-25 06:29:53 -07:00
Miss Islington (bot) febbb4b819
gh-94328: Update macOS installer to use SQLite 3.39.4. (GH-98639)
(cherry picked from commit 8aa1e994a5)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2022-10-25 04:18:01 -07:00
Miss Islington (bot) 8950689dce
[3.11] GH-89237: fix hang in proactor `subprocess.wait_closed()` (GH-98572) (#98620)
GH-89237: fix hang in proactor `subprocess.wait_closed()` (GH-98572)
(cherry picked from commit ad1dc3ebb6)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-10-24 20:34:08 -07:00
Dong-hee Na 5fb3b61114
[3.11] gh-98456: Replace deprecated `set-output` with up-to-date vers… (gh-98565)
[3.11] gh-98456: Replace deprecated `set-output` with up-to-date version (gh-98457).
(cherry picked from commit 1db2a0cb20)

Co-authored-by: Noam Cohen <noam@noam.me>

Co-authored-by: Noam Cohen <noam@noam.me>
2022-10-25 12:03:02 +09:00
Pablo Galindo Salgado b3cafb60af
[3.11] Fix v3.11.0 release merge problems (GH-98622)
When merging the v3.11.0 tag into 3.11, some files were incorrectly updated and some others were not properly deleted.

Automerge-Triggered-By: GH:pablogsal
2022-10-24 16:30:06 -07:00
Miss Islington (bot) 3a1eb81abf
GH-98407: fix `test_kill_issue43884` to not leak child processes (GH-98491)
(cherry picked from commit 3b2724abcf)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-10-24 12:41:10 -07:00
Pablo Galindo 69b6b56d85 Python 3.11.0
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEz9yiRbEEPPKl+Xhl/+h0BBaL2EcFAmNWzOwACgkQ/+h0BBaL
 2EcepxAAmZLGMrL4D7Zxzo6N2ezkuiuoQH4JvxIUaB7cjU5h0GSUFlmcJQCHhCwk
 AvToQrmH/7uuuEZKST1fomtUE83wudfHhX2t+CMBdbLG1hIwhTfLNMTqFhONturF
 XlkVUcva1i9XrYZPLl1pIcBf1Sjm6pPW5QZ4BP1ZHJ5C2pHEzaBRFX/q0lU5aF9O
 z5nBBpnga2gShUTqM1VkXucU4lKXsi4blbn/Z8giganMXY1SXIsEOoCaDZYN1Hh/
 xQiOpSrjy/uSz4vGSNuPwp9J2lRlw8n4RBd/P7om01CrJMAKotH+62OqwhlQ8ydB
 ywp0kygtPtMdSK7F1WKMWkYX4CXfLpYwN0+x3Z3iYFBFiuzOFrUCQYgqq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zf/NzJr0fs4QDYEVI95pfLjzk1tuJ5WR6zFNC0COK2
 qw8TTvXglsvHqVMnK8u73GVSTv1UGYqbQH9uAeEikAQYr3TTdZo=
 =dsZm
 -----END PGP SIGNATURE-----

Merge tag 'v3.11.0' into 3.11

Python 3.11.0
2022-10-24 20:29:24 +01:00
Miss Islington (bot) cdbfce121f
gh-98507: [typing docs] Rephrase "now supports `[]`" to "now supports subscripting" (GH-98508)
(cherry picked from commit e3b9dd8e87)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-10-24 11:16:58 -07:00
Miss Islington (bot) 36d25a4f7f
[3.11] GH-98543: Fix `asyncio.TaskGroup` to not keep reference to errors after raising ExceptionGroup (GH-98544) (#98550)
GH-98543: Fix `asyncio.TaskGroup`  to not keep reference to errors after raising ExceptionGroup  (GH-98544)
(cherry picked from commit f4a14941e6)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-10-24 11:08:22 -07:00
Miss Islington (bot) 032d1276ed
GH-91635: clarify docs about closing of transport in asyncio (GH-98563)
(cherry picked from commit 2fdcc6f2cb)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-10-24 11:00:18 -07:00
Miss Islington (bot) d9abd8a584
gh-98500: Fix typing docs for `*View` classes (GH-98511)
(cherry picked from commit 1a217f9ffc)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-10-24 10:55:11 -07:00
Pablo Galindo deaf509e8f
Python 3.11.0 2022-10-24 18:35:39 +01:00
Miss Islington (bot) 3f6cfc5678
gh-95913: Fix grammar for SpooledTemporaryFile 3.11 whatsnew entry (GH-98604)
Followup from GH-98312.
(cherry picked from commit c5a9d3f67f)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-10-24 09:53:15 -07:00
Miss Islington (bot) bd8b32b519
[3.11] GH-98539: fix ref cycle in `_SSLProtocolTransport` after close (GH-98540) (#98551)
GH-98539: fix ref cycle in `_SSLProtocolTransport` after close  (GH-98540)
(cherry picked from commit 62bf5d8d0a)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-10-24 09:26:32 -07:00
Miss Islington (bot) 981b509784
GH-90985: Revert "Deprecate passing a message into cancel()" (GH-97999)
Reason: we were too hasty in deprecating this.
We shouldn't deprecate it before we have a replacement.
(cherry picked from commit 09de8d7aaf)

Co-authored-by: Guido van Rossum <guido@python.org>
2022-10-24 17:09:41 +01:00
Miss Islington (bot) f0083923fa
gh-90908: Document asyncio.Task.cancelling() and asyncio.Task.uncancel() (GH-95253)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
(cherry picked from commit f00645d5db)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2022-10-24 17:09:37 +01:00
Miss Islington (bot) c184c6750e
gh-95913: Edit, link and sort 3.11 WhatsNew Build section (GH-98588)
(cherry picked from commit e81fad6b8a)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-24 16:45:46 +01:00
Miss Islington (bot) cde4cf9de4
gh-95913: Edit, sort & expand 3.11 WhatsNew Porting section (GH-98585)
(cherry picked from commit 43bef54a32)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-24 16:45:45 +01:00
Miss Islington (bot) 7cdea80d3b
gh-95913: Edit, xref & sort 3.11 WhatsNew Removed section (GH-98584)
(cherry picked from commit 8dbec4dbe5)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-24 16:45:44 +01:00
Miss Islington (bot) c2cb04ed9d
gh-95913 Add string section to Whatsnew with new Template methods (GH-98311)
(cherry picked from commit e2dc223004)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-24 16:45:43 +01:00
Miss Islington (bot) 965ce0d8f1
gh-95027: Fix regrtest stdout encoding on Windows (GH-98492)
On Windows, when the Python test suite is run with the -jN option,
the ANSI code page is now used as the encoding for the stdout
temporary file, rather than using UTF-8 which can lead to decoding
errors.
(cherry picked from commit ec1f6f5f13)

Co-authored-by: Victor Stinner <vstinner@python.org>
2022-10-24 16:45:42 +01:00
Steve Dower a1f4e42619
gh-90989: Clarify some installer text (GH-97668) 2022-10-24 16:45:41 +01:00
Miss Islington (bot) 38ade0d2ac
gh-97616: list_resize() checks for integer overflow (GH-97617)
Fix multiplying a list by an integer (list *= int): detect the
integer overflow when the new allocated length is close to the
maximum size.  Issue reported by Jordan Limor.

list_resize() now checks for integer overflow before multiplying the
new allocated length by the list item size (sizeof(PyObject*)).
(cherry picked from commit a5f092f3c4)

Co-authored-by: Victor Stinner <vstinner@python.org>
2022-10-24 16:45:40 +01:00
Miss Islington (bot) 9c80b55ad6
gh-97545: Make Semaphore run faster. (GH-97549)
(cherry picked from commit 68c46ae68b)

Co-authored-by: Cyker Way <cykerway@gmail.com>
2022-10-24 16:45:39 +01:00
Miss Islington (bot) 56145c6963
gh-90155: Fix bug in asyncio.Semaphore and strengthen FIFO guarantee (GH-93222)
The main problem was that an unluckily timed task cancellation could cause
the semaphore to be stuck. There were also doubts about strict FIFO ordering
of tasks allowed to pass.

The Semaphore implementation was rewritten to be more similar to Lock.
Many tests for edge cases (including cancellation) were added.
(cherry picked from commit 24e0379624)

Co-authored-by: Cyker Way <cykerway@gmail.com>
2022-10-24 16:45:38 +01:00
Miss Islington (bot) c4ad3fce66
gh-95913: Add io support for SpooledTemporaryFile in 3.11 Whatsnew (GH-98312)
(cherry picked from commit f3f8b6fca5)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-24 06:13:46 -07:00
Miss Islington (bot) 3aed2ac002
gh-95913: Edit & expand Deprecated section of 3.11 WhatsNew (GH-98581)
* Refine Sphinx syntax and grammar/phrasing in Deprecated section items
* Organize into lang/builtins, modules & stdlib sections
* Convert PEP 594 module list into a grid to not waste as much space
* Add importlib.resources deprecated functions to section
(cherry picked from commit dfb5d272e6)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-24 06:08:20 -07:00
Miss Islington (bot) 2a346b0d28
gh-95913: Edit, expand & format Bytecode sect in 3.11 WhatsNew (GH-98559)
(cherry picked from commit 22739a0e05)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-24 05:59:09 -07:00
Miss Islington (bot) 3e41c16846
gh-95913: Edit, link and sort 3.11 WhatsNew Build section (GH-98588)
(cherry picked from commit e81fad6b8a)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-24 05:41:47 -07:00
Miss Islington (bot) 2af406666e
gh-95913 Add string section to Whatsnew with new Template methods (GH-98311)
(cherry picked from commit e2dc223004)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-24 05:41:42 -07:00
Miss Islington (bot) 5288f66476
gh-95913: Edit, xref & sort 3.11 WhatsNew Removed section (GH-98584)
(cherry picked from commit 8dbec4dbe5)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-24 05:41:07 -07:00
Miss Islington (bot) 1beab508fb
gh-95913: Edit, sort & expand 3.11 WhatsNew Porting section (GH-98585)
(cherry picked from commit 43bef54a32)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-24 05:41:00 -07:00
Miss Islington (bot) ae68a45daa
gh-98561: Fix a typo in typing (GH-98562)
(cherry picked from commit b6d5d5b60a)

Co-authored-by: Omkaar <79257339+Infiniticity@users.noreply.github.com>
2022-10-23 07:13:25 -07:00
Miss Islington (bot) 67f5d24e44
gh-96848: Fix -X int_max_str_digits option parsing (GH-96988)
Fix command line parsing: reject "-X int_max_str_digits" option with
no value (invalid) when the PYTHONINTMAXSTRDIGITS environment
variable is set to a valid limit.
(cherry picked from commit 41351662bc)

Co-authored-by: Victor Stinner <vstinner@python.org>
2022-10-22 20:55:26 +01:00
Miss Islington (bot) 9e008fe351
gh-96821: Fix undefined behaviour in `_testcapimodule.c` (GH-96915) (GH-96927)
* gh-96821: Assert for demonstrating undefined behaviour

* Fix UB

(cherry picked from commit cbdeda8ce7)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Matthias Görgens <matthias.goergens@gmail.com>
2022-10-22 20:54:47 +01:00
Miss Islington (bot) bac61bc5b1
gh-95778: Mention sys.set_int_max_str_digits() in error message (GH-96874)
When ValueError is raised if an integer is larger than the limit,
mention sys.set_int_max_str_digits() in the error message.
(cherry picked from commit e841ffc915)

Co-authored-by: Victor Stinner <vstinner@python.org>
2022-10-22 20:54:35 +01:00
Miss Islington (bot) 3ce43a2c85
gh-96729: Ensure installers built with Tools/msi/buildrelease.bat have matching UUIDs with official releases (GH-96755)
(cherry picked from commit 662782e95f)

Co-authored-by: adang1345 <adang1345@gmail.com>
2022-10-22 20:54:18 +01:00
Nikita Sobolev 9cb7324e8f
[3.11] gh-96587: Raise `SyntaxError` for PEP654 on older `feature_version` (GH-96588) (#96591)
(cherry picked from commit 2c7d2e8d46)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-10-22 20:53:46 +01:00
Miss Islington (bot) 84fd4a54a6
[3.11] gh-97897: Prevent os.mkfifo and os.mknod segfaults with macOS 13 SDK (GH-97944) (#97969)
The macOS 13 SDK includes support for the `mkfifoat` and `mknodat` system calls.
 Using the `dir_fd` option with either `os.mkfifo` or `os.mknod` could result in a
 segfault if cpython is built with the macOS 13 SDK but run on an earlier
 version of macOS. Prevent this by adding runtime support for detection of
 these system calls ("weaklinking") as is done for other newer syscalls on
 macOS.
(cherry picked from commit 6d0a0191a4)

Co-authored-by: Ned Deily <nad@python.org>
2022-10-22 20:49:42 +01:00