]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Wed, 26 Oct 2022 00:04:01 +0000 (17:04 -0700)]
gh-94808: Improve coverage of `unicode_find` and `unicode_rfind` (GH-98648)
(cherry picked from commit
b1783bc124712fa03fea9621a0eb4119d29b14fe )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Tue, 25 Oct 2022 23:50:09 +0000 (16:50 -0700)]
fix a typo in whatsnew/3.11 (GH-98603)
(cherry picked from commit
45644905ea1352b79a0d5ab4f02e00a258206116 )
Co-authored-by: July Tikhonov <july.tikh@gmail.com>
Miss Islington (bot) [Tue, 25 Oct 2022 23:44:18 +0000 (16:44 -0700)]
Fix typos in deprecation section of 3.11 What's New (GH-98628)
(cherry picked from commit
faea6a131a9d06208e9043b499a90e11bdfbb479 )
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Miss Islington (bot) [Tue, 25 Oct 2022 23:41:51 +0000 (16:41 -0700)]
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
e19c2b979fab3483dc6c04774053dbbe83e769fb )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Tue, 25 Oct 2022 23:06:08 +0000 (16:06 -0700)]
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
5d8bf2b106e694423bafaa3e1ea1edf20037573c )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Tue, 25 Oct 2022 21:51:32 +0000 (14:51 -0700)]
gh-94328: Update Windows installer to use SQLite 3.39.4 (GH-98640)
(cherry picked from commit
0c84593275969d9b8f42e75abb2638b69d5b5f4a )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Tue, 25 Oct 2022 15:42:12 +0000 (08:42 -0700)]
gh-98602: [typing docs] Use quotes for forward reference in TypeVarTuple example (GH-98605)
(cherry picked from commit
be0cf82ae4e49891dcd5e37012d6f6ce08bc4726 )
Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
Miss Islington (bot) [Tue, 25 Oct 2022 14:19:37 +0000 (07:19 -0700)]
Use more precise exception types in `assertRaises` in typing tests (GH-98650)
(cherry picked from commit
45c89358b71e4638455e75ba6e60b42c511bbc2a )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Tue, 25 Oct 2022 14:13:16 +0000 (07:13 -0700)]
gh-98623: Fix base classes in `typing.rst` (GH-98626)
(cherry picked from commit
5076108872df07592931cd27efac4a4496aba2e8 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Tue, 25 Oct 2022 13:49:34 +0000 (06:49 -0700)]
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
d91de288e73c67805e4c838b5f770ab7ec3661f9 )
Co-authored-by: James Gerity <snoopjedi@gmail.com>
Miss Islington (bot) [Tue, 25 Oct 2022 13:29:53 +0000 (06:29 -0700)]
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
dd13b23e49b8c49bc751fe5ed470773a2d60b7d1 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Tue, 25 Oct 2022 11:18:01 +0000 (04:18 -0700)]
gh-94328: Update macOS installer to use SQLite 3.39.4. (GH-98639)
(cherry picked from commit
8aa1e994a530e538a5433c8ada6500ffc1214467 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Tue, 25 Oct 2022 03:34:08 +0000 (20:34 -0700)]
[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
ad1dc3ebb6aadaeeeacde13d4ed2d62bf302bf62 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Dong-hee Na [Tue, 25 Oct 2022 03:03:02 +0000 (12:03 +0900)]
[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
1db2a0cb20a1de5231a73fc7381056d725e90535 )
Co-authored-by: Noam Cohen <noam@noam.me>
Co-authored-by: Noam Cohen <noam@noam.me>
Pablo Galindo Salgado [Mon, 24 Oct 2022 23:30:06 +0000 (00:30 +0100)]
[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
Miss Islington (bot) [Mon, 24 Oct 2022 19:41:10 +0000 (12:41 -0700)]
GH-98407: fix `test_kill_issue43884` to not leak child processes (GH-98491)
(cherry picked from commit
3b2724abcfef7cbe5bf1717be1bb029e4c6b6600 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Pablo Galindo [Mon, 24 Oct 2022 19:29:24 +0000 (20:29 +0100)]
Merge tag 'v3.11.0' into 3.11
Python 3.11.0
Miss Islington (bot) [Mon, 24 Oct 2022 18:16:58 +0000 (11:16 -0700)]
gh-98507: [typing docs] Rephrase "now supports `[]`" to "now supports subscripting" (GH-98508)
(cherry picked from commit
e3b9dd8e870a61016e0f221e30d4f7d0b99cddb3 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Mon, 24 Oct 2022 18:08:22 +0000 (11:08 -0700)]
[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
f4a14941e6e54b15012fca067f6a9b2ff29f201a )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Mon, 24 Oct 2022 18:00:18 +0000 (11:00 -0700)]
GH-91635: clarify docs about closing of transport in asyncio (GH-98563)
(cherry picked from commit
2fdcc6f2cb5e3e1e09b8dff179f4c11193799998 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Mon, 24 Oct 2022 17:55:11 +0000 (10:55 -0700)]
gh-98500: Fix typing docs for `*View` classes (GH-98511)
(cherry picked from commit
1a217f9ffc6d014536c08d7fb0136d117b8a0add )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Pablo Galindo [Mon, 24 Oct 2022 17:34:46 +0000 (18:34 +0100)]
Python 3.11.0
Miss Islington (bot) [Mon, 24 Oct 2022 16:53:15 +0000 (09:53 -0700)]
gh-95913: Fix grammar for SpooledTemporaryFile 3.11 whatsnew entry (GH-98604)
Followup from GH-98312.
(cherry picked from commit
c5a9d3f67fc4b62543ddf6bc7b9ed392c2a81ec3 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Mon, 24 Oct 2022 16:26:32 +0000 (09:26 -0700)]
[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
62bf5d8d0a36112619436a813ceefb7e4af52c24 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Fri, 7 Oct 2022 01:50:25 +0000 (18:50 -0700)]
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
09de8d7aafece264720afbca3052a63eee413b73 )
Co-authored-by: Guido van Rossum <guido@python.org>
Miss Islington (bot) [Sat, 1 Oct 2022 18:10:04 +0000 (11:10 -0700)]
gh-90908: Document asyncio.Task.cancelling() and asyncio.Task.uncancel() (GH-95253)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
(cherry picked from commit
f00645d5dbf4cfa0b8f382c8977724578dff191d )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Mon, 24 Oct 2022 12:41:47 +0000 (05:41 -0700)]
gh-95913: Edit, link and sort 3.11 WhatsNew Build section (GH-98588)
(cherry picked from commit
e81fad6b8a2334903fac5799b43997623a2ed904 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Mon, 24 Oct 2022 12:41:00 +0000 (05:41 -0700)]
gh-95913: Edit, sort & expand 3.11 WhatsNew Porting section (GH-98585)
(cherry picked from commit
43bef54a32feef1eb6a4d63f00f89e2c5a39abd1 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Mon, 24 Oct 2022 12:41:07 +0000 (05:41 -0700)]
gh-95913: Edit, xref & sort 3.11 WhatsNew Removed section (GH-98584)
(cherry picked from commit
8dbec4dbe57df30ec930c3035f86f8896764bc99 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Mon, 24 Oct 2022 12:41:42 +0000 (05:41 -0700)]
gh-95913 Add string section to Whatsnew with new Template methods (GH-98311)
(cherry picked from commit
e2dc223004a4230a9f820d2ff617770719a42cc6 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Fri, 21 Oct 2022 14:52:17 +0000 (07:52 -0700)]
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
ec1f6f5f139868dc2c1116a7c7c878c38c668d53 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Steve Dower [Fri, 30 Sep 2022 12:48:19 +0000 (13:48 +0100)]
gh-90989: Clarify some installer text (GH-97668)
Miss Islington (bot) [Wed, 28 Sep 2022 22:28:38 +0000 (15:28 -0700)]
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
a5f092f3c469b674b8d9ccbd4e4377230c9ac7cf )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Tue, 27 Sep 2022 00:00:53 +0000 (17:00 -0700)]
gh-97545: Make Semaphore run faster. (GH-97549)
(cherry picked from commit
68c46ae68b6e0c36a12e37285fff9ce0782ed01e )
Co-authored-by: Cyker Way <cykerway@gmail.com>
Miss Islington (bot) [Thu, 22 Sep 2022 16:58:35 +0000 (09:58 -0700)]
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
24e03796248ab8c7f62d715c28156abe2f1c0d20 )
Co-authored-by: Cyker Way <cykerway@gmail.com>
Miss Islington (bot) [Mon, 24 Oct 2022 13:13:46 +0000 (06:13 -0700)]
gh-95913: Add io support for SpooledTemporaryFile in 3.11 Whatsnew (GH-98312)
(cherry picked from commit
f3f8b6fca53c02eb8841c1a7b85a5af05aeaf4db )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Mon, 24 Oct 2022 13:08:20 +0000 (06:08 -0700)]
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
dfb5d272e6b99c2c70c6c53620d2028ef00ba9f2 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Mon, 24 Oct 2022 12:59:09 +0000 (05:59 -0700)]
gh-95913: Edit, expand & format Bytecode sect in 3.11 WhatsNew (GH-98559)
(cherry picked from commit
22739a0e05fd95847e04aa27831ad4ce4f151c17 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Mon, 24 Oct 2022 12:41:47 +0000 (05:41 -0700)]
gh-95913: Edit, link and sort 3.11 WhatsNew Build section (GH-98588)
(cherry picked from commit
e81fad6b8a2334903fac5799b43997623a2ed904 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Mon, 24 Oct 2022 12:41:42 +0000 (05:41 -0700)]
gh-95913 Add string section to Whatsnew with new Template methods (GH-98311)
(cherry picked from commit
e2dc223004a4230a9f820d2ff617770719a42cc6 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Mon, 24 Oct 2022 12:41:07 +0000 (05:41 -0700)]
gh-95913: Edit, xref & sort 3.11 WhatsNew Removed section (GH-98584)
(cherry picked from commit
8dbec4dbe57df30ec930c3035f86f8896764bc99 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Mon, 24 Oct 2022 12:41:00 +0000 (05:41 -0700)]
gh-95913: Edit, sort & expand 3.11 WhatsNew Porting section (GH-98585)
(cherry picked from commit
43bef54a32feef1eb6a4d63f00f89e2c5a39abd1 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Sun, 23 Oct 2022 14:13:25 +0000 (07:13 -0700)]
gh-98561: Fix a typo in typing (GH-98562)
(cherry picked from commit
b6d5d5b60afc61337c569c07a881003faaa791e7 )
Co-authored-by: Omkaar <79257339+Infiniticity@users.noreply.github.com>
Miss Islington (bot) [Mon, 26 Sep 2022 15:43:26 +0000 (08:43 -0700)]
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
41351662bcd21672d8ccfa62fe44d72027e6bcf8 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 19 Sep 2022 11:48:58 +0000 (04:48 -0700)]
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
cbdeda8ce7a3543cb3376d70e4cd46fcf24f42a7 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Matthias Görgens <matthias.goergens@gmail.com>
Miss Islington (bot) [Fri, 16 Sep 2022 18:33:27 +0000 (11:33 -0700)]
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
e841ffc915e82e5ea6e3b473205417d63494808d )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 14 Sep 2022 15:59:34 +0000 (08:59 -0700)]
gh-96729: Ensure installers built with Tools/msi/buildrelease.bat have matching UUIDs with official releases (GH-96755)
(cherry picked from commit
662782e95f97d26bd57b3edc6aaf674e30899f44 )
Co-authored-by: adang1345 <adang1345@gmail.com>
Nikita Sobolev [Wed, 5 Oct 2022 22:00:13 +0000 (01:00 +0300)]
[3.11] gh-96587: Raise `SyntaxError` for PEP654 on older `feature_version` (GH-96588) (#96591)
(cherry picked from commit
2c7d2e8d46164efb6e27a64081d8e949f6876515 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Thu, 6 Oct 2022 19:13:46 +0000 (12:13 -0700)]
[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
6d0a0191a4e5477bd843e62c24d7f3bcad4fd5fc )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Wed, 5 Oct 2022 23:32:16 +0000 (16:32 -0700)]
gh-96865: [Enum] fix Flag to use CONFORM boundary (GH-97528)
(cherry picked from commit
b44372e03c5461b6ad3d89763a9eb6cb82df07a4 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Pablo Galindo [Sat, 22 Oct 2022 19:45:19 +0000 (20:45 +0100)]
Sync What's new for the current 3.11.0rc2+ branch with the 3.11.0 release branch
Miss Islington (bot) [Tue, 18 Oct 2022 09:34:47 +0000 (02:34 -0700)]
gh-95913: Copyedit, xref and organize enum section (GH-98295)
* Whatsnew: Convert literals in enum section to actual x-references
* Whatsnew: Rewrite enum section for clear and consistant phrasing
* Whatsnew: Combine directly related enum items instead of seperating them
* gh-98250: Describe __str__/__format__ changes more clearly/accurately
* Tweak enum section language per feedback from Ethan
(cherry picked from commit
73e5180faf37e2d362e13f4ef12955a8b8535d7b )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Wed, 19 Oct 2022 04:40:47 +0000 (21:40 -0700)]
gh-95913: Edit zipfile Whatsnew section & add new APIs (GH-98314)
* Link ZipFile in What's New entry discussing it
* Add entry for new ZipFile.mkdir method
* Add entry for new zipfile.Path.stem/suffix/suffixes methods
* Add missing line breaks between zipfile bullet list items
(cherry picked from commit
ed827d560831b054d262818b1777f7879e8fbd3e )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Wed, 19 Oct 2022 04:34:40 +0000 (21:34 -0700)]
gh-95913: Add WhatsNew section for new logging APIs (GH-98320)
* Add entry for new logging.getLevelNamesMapping function
* Add entry for SysLogHandler.createSocket to whatsnew
* Add missing line break between logging bullet list items
(cherry picked from commit
251b8ccd2a4354840ed2d3aeb9b643a999ba792f )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
C.A.M. Gerlach [Mon, 17 Oct 2022 23:49:38 +0000 (18:49 -0500)]
[3.11] Docs: Fix backtick errors found by sphinx-lint (GH-97998) (#98371)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>.
(cherry picked from commit
fa2d43e5184f5eaf3391844ec2400342a1b2ead4 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Sat, 22 Oct 2022 19:21:01 +0000 (12:21 -0700)]
gh-95913: Copyedit & xref FrameInfo in Whatsnew inspect section (GH-98304)
(cherry picked from commit
8f30267ab49e1ef3ac3165a102b2196336547c8a )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Mon, 19 Sep 2022 13:51:08 +0000 (06:51 -0700)]
gh-95913: Copyedit, link & format Typing Features section in 3.11 What's New (GH-96097)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
(cherry picked from commit
558768ff22e47582ae95ad7c3f8955407934916e )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Sat, 22 Oct 2022 19:21:01 +0000 (12:21 -0700)]
gh-95913: Copyedit & xref FrameInfo in Whatsnew inspect section (GH-98304)
(cherry picked from commit
8f30267ab49e1ef3ac3165a102b2196336547c8a )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
C.A.M. Gerlach [Tue, 18 Oct 2022 08:41:57 +0000 (03:41 -0500)]
gh-95913: Prepare remaining Whatsnew sections for editing (#98342)
* Add line breaks & ref targets to Whatsnew to prepare for future changes
* Use standard heading underbar symbols for H4 sections
* Flatten Porting subsection; clarify scope of/link Python->CAPI sections
* Move C API pending deprecations to C API section, to match the others
Miss Islington (bot) [Tue, 18 Oct 2022 23:20:19 +0000 (16:20 -0700)]
gh-95914: Add links to 3.11 WhatsNew Summary items (GH-98416)
Add links to Summary items to where readers can learn more
(cherry picked from commit
fcae1954a2ad009d23fc4170b40dcfb2d0e1a153 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Sat, 22 Oct 2022 19:18:57 +0000 (12:18 -0700)]
[3.11] gh-95913: Edit & expand Optimizations in 3.11 WhatsNew (GH-98426) (#98554)
gh-95913: Edit & expand Optimizations in 3.11 WhatsNew (GH-98426)
(cherry picked from commit
f58631be1148ee5436bb71d175d3993e3e6b4e1e )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Sat, 22 Oct 2022 19:18:57 +0000 (12:18 -0700)]
[3.11] gh-95913: Edit & expand Optimizations in 3.11 WhatsNew (GH-98426) (#98554)
gh-95913: Edit & expand Optimizations in 3.11 WhatsNew (GH-98426)
(cherry picked from commit
f58631be1148ee5436bb71d175d3993e3e6b4e1e )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Tue, 18 Oct 2022 15:36:42 +0000 (08:36 -0700)]
[3.11] gh-98331: Update bundled pip to 22.3 (GH-98332) (gh-98400)
Miss Islington (bot) [Mon, 17 Oct 2022 19:25:18 +0000 (12:25 -0700)]
gh-95914: Add What's New item describing PEP 670 changes (GH-98315)
(cherry picked from commit
aafc53c0a6d1450dcfbc3f994318025ffb49ce73 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Wed, 19 Oct 2022 22:41:28 +0000 (15:41 -0700)]
gh-98414: py.exe launcher does not use defaults for -V:company/ option (GH-98460)
(cherry picked from commit
4bd63f66cd4f6e8d549f88ae0f4b0106d522b6bb )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Tue, 4 Oct 2022 04:03:26 +0000 (21:03 -0700)]
[3.11] GH-97752: Clear the previous member of newly-created generator/coroutine frames (GH-97812)
(cherry picked from commit
93fcc1f4133e177882850177c2c047d46019b812 )
Miss Islington (bot) [Thu, 20 Oct 2022 14:33:12 +0000 (07:33 -0700)]
gh-98360: multiprocessing now spawns children on Windows with correct argv[0] in virtual environments (GH-98462)
(cherry picked from commit
e48f9b2b7e73f4a89a9b9c287f3b93dc13a60460 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Thu, 20 Oct 2022 23:55:37 +0000 (16:55 -0700)]
[3.11] gh-97514: Don't use Linux abstract sockets for multiprocessing (GH-98501) (GH-98502)
Linux abstract sockets are insecure as they lack any form of filesystem
permissions so their use allows anyone on the system to inject code into
the process.
This removes the default preference for abstract sockets in
multiprocessing introduced in Python 3.9+ via
https://github.com/python/cpython/pull/18866 while fixing
https://github.com/python/cpython/issues/84031.
Explicit use of an abstract socket by a user now generates a
RuntimeWarning. If we choose to keep this warning, it should be
backported to the 3.7 and 3.8 branches.
(cherry picked from commit
49f61068f49747164988ffc5a442d2a63874fc17 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Automerge-Triggered-By: GH:gpshead
Miss Islington (bot) [Fri, 7 Oct 2022 00:36:39 +0000 (17:36 -0700)]
[3.11] GH-97002: Prevent _PyInterpreterFrames from backing more than one PyFrameObject (GH-98002)
(cherry picked from commit
21a2d9ff550977f2668e2cf1cc15793bf27fa109 )
Miss Islington (bot) [Thu, 22 Sep 2022 17:17:53 +0000 (10:17 -0700)]
GH-96975: Skip incomplete frames in PyEval_GetFrame (GH-97018)
(cherry picked from commit
8fd2c3b75b90c4ee391894aa5094615bbdb6242f )
Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
Miss Islington (bot) [Tue, 13 Sep 2022 15:57:02 +0000 (08:57 -0700)]
gh-96706: [doc] Don't recomment deprecated use of get_event_loop() in examples (GH-96707)
(cherry picked from commit
53a54b781d1f05f2d0b40ce88b3da92d5d23e9d2 )
Co-authored-by: zhanpon <pon.zhan@gmail.com>
Miss Islington (bot) [Tue, 13 Sep 2022 16:44:56 +0000 (09:44 -0700)]
gh-95778: Fix `sys.set_int_max_str_digits()` parameter name (GH-96798)
Discovered in https://github.com/python/typeshed/pull/8733
(cherry picked from commit
bf5fd492524f1b630a60c98eff8fe5fa66603b54 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Tue, 13 Sep 2022 20:53:11 +0000 (13:53 -0700)]
Add dataclass field default change to 3.11 what's new (GH-96790)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
(cherry picked from commit
4995f5f9a07921c5b90066a22285a538551b36d8 )
Co-authored-by: Laurie O <laurie_opperman@hotmail.com>
Miss Islington (bot) [Wed, 14 Sep 2022 02:23:30 +0000 (19:23 -0700)]
Itertools sieve() recipe (GH-96813) (GH-96814)
Miss Islington (bot) [Wed, 14 Sep 2022 19:56:14 +0000 (12:56 -0700)]
gh-96702: Order methods before attrs in sqlite3.Connection docs (GH-96703) (#96788)
(cherry picked from commit
49cceeb5c998a51bb12b7dbde17b53647bb52113 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Thu, 15 Sep 2022 21:21:08 +0000 (14:21 -0700)]
gh-96810: Clarify for which statements sqlite3 implicitly opens transactions (GH-96832)
(cherry picked from commit
16c33a9676e2f3ef330d09f2ab515c56636fa09f )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Sun, 18 Sep 2022 03:01:12 +0000 (20:01 -0700)]
Clarify that the expression is regular math notation, not Python. (GH-96903) (GH-96908)
Miss Islington (bot) [Sun, 18 Sep 2022 03:11:29 +0000 (20:11 -0700)]
Simplify sieve() recipe. Add edge case tests. (GH-96892)
(cherry picked from commit
78359b1d45608439f8e03b8e86174fe7b04d3e08 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Sun, 18 Sep 2022 22:53:31 +0000 (15:53 -0700)]
GH-96851: Add link to FAQ entry for caching method calls. (GH-96902)
(cherry picked from commit
bbc24b2bd569108b957ed24c5a95ffeaf8cde0db )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Mon, 19 Sep 2022 13:45:35 +0000 (06:45 -0700)]
gh-95913: Fix and copyedit New Features section of 3.11 What's New (GH-95915)
(cherry picked from commit
8ee27e33182e6d9040e79f6ccc9219afa049d40e )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Mon, 19 Sep 2022 13:51:08 +0000 (06:51 -0700)]
gh-95913: Copyedit, link & format Typing Features section in 3.11 What's New (GH-96097)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
(cherry picked from commit
558768ff22e47582ae95ad7c3f8955407934916e )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Mon, 19 Sep 2022 19:19:18 +0000 (12:19 -0700)]
gh-96917: link to typing.readthedocs.io from typing.rst (GH-96921)
See the discussion at https://github.com/python/cpython/issues/91533
(cherry picked from commit
5b3a2569f4b4dfb58a8f90a241f9dac1a7ea4bf6 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Tue, 20 Sep 2022 08:52:09 +0000 (01:52 -0700)]
[3.11] gh-96727: Document restrictions on Handler.emit() with respect to locking. (GH-96948) (GH-96950)
(cherry picked from commit
6ad47b41a650a13b4a9214309c10239726331eb8 )
Miss Islington (bot) [Wed, 21 Sep 2022 13:11:48 +0000 (06:11 -0700)]
gh-81039: Add small example of f-string's "=}" to tutorial (gh-92291) (gh-96989)
(cherry picked from commit
4b81139aac3fa11779f6eedb6e621bde29e64b30 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Thu, 22 Sep 2022 18:18:02 +0000 (11:18 -0700)]
gh-96397: Document that keywords in calls need not be identifiers (GH-96393)
This represents the official SC stance, see
https://github.com/python/steering-council/issues/142GH-issuecomment-
1252172695
(cherry picked from commit
9d432b4a181cd42017699de4354e7b36c5b87d88 )
Co-authored-by: Jeff Allen <ja.py@farowl.co.uk>
Miss Islington (bot) [Fri, 23 Sep 2022 10:54:53 +0000 (03:54 -0700)]
gh-75608: Add Windows FAQ entry for missing UCRT (GH-92765)
(cherry picked from commit
80bc7d7c0a3f777da244ec79429baf382523b8da )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Steve Dower [Fri, 23 Sep 2022 12:55:06 +0000 (13:55 +0100)]
gh-77171: Document that wave only supports simple PCM files (GH-97510)
Miss Islington (bot) [Mon, 26 Sep 2022 04:15:52 +0000 (21:15 -0700)]
gh-82530: Create blank function instead of invalid import for email example (GH-97529)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit
2b428a1faed88f148ede131e3b86ab6227c6c3f0 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Mon, 26 Sep 2022 22:45:58 +0000 (15:45 -0700)]
GH-65046: Fix docs about logging in `asyncio` (GH-97559)
Explain that logging should not use network I/O.
(cherry picked from commit
d68c37c0d08542a346a13b150a204208bb0408f5 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Tue, 27 Sep 2022 11:16:37 +0000 (04:16 -0700)]
gh-96959: Update more HTTP links (GH-97536)
Use HTTPS for documents which are available by both HTTP and HTTPS
links, but there is no redirection from HTTP to HTTPS or vice versa.
(cherry picked from commit
dd53b79de0ea98af6a11481217a961daef4e9774 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 28 Sep 2022 00:33:32 +0000 (17:33 -0700)]
gh-96377: Update asyncio policy doc intro paras to be clear and accurate (GH-97603)
Also fix up some cross-references in the asyncio docs.
(cherry picked from commit
cc0f3a10f0ee507d9044ef9036cf3e711c5338a9 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Wed, 28 Sep 2022 04:32:01 +0000 (21:32 -0700)]
[3.11] gh-65046: Add note about logging from async code. (GH-97602) (GH-97608)
Miss Islington (bot) [Wed, 28 Sep 2022 13:45:48 +0000 (06:45 -0700)]
Fix docs on conditional expression grouping (GH-96447) (GH-97606)
Miss Islington (bot) [Wed, 28 Sep 2022 17:42:28 +0000 (10:42 -0700)]
fixup policy docs (GH-97618)
(cherry picked from commit
9a404b173e57ce171a867cfc3776cdf88d6c553f )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Thu, 29 Sep 2022 13:51:39 +0000 (06:51 -0700)]
gh-52597: Add position-only markers for os functions (GH-94735)
(cherry picked from commit
c759944f16ed9887a77d5ebd738f17f3892c2476 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Thu, 29 Sep 2022 23:00:33 +0000 (16:00 -0700)]
closes gh-97650: correct sphinx executable (gh-97651)
(cherry picked from commit
0179a82caa05a322d1dbab05155be6f919c281ff )
Co-authored-by: NoSuck <NoSuck@users.noreply.github.com>
Miss Islington (bot) [Thu, 29 Sep 2022 23:25:10 +0000 (16:25 -0700)]
gh-96397: Document that attributes need not be identifiers (GH-96454)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit
9a11ed8e50492d327e4de0a8f3a473e788b14a6f )
Co-authored-by: Jeff Allen <ja.py@farowl.co.uk>
Miss Islington (bot) [Fri, 30 Sep 2022 09:12:22 +0000 (02:12 -0700)]
[3.11] Use SyntaxError invalid range in tutorial introduction example (GH-93031) (GH-97666)
Use SyntaxError invalid range in tutorial introduction example (GH-93031)
Use output from a 3.10+ REPL, showing invalid range, for the
SyntaxError examples in the tutorial introduction page.
Co-authored-by: Eddie Hebert <eddie@eddiehebert.com>
Miss Islington (bot) [Fri, 30 Sep 2022 17:54:12 +0000 (10:54 -0700)]
gh-87597: Document TimeoutExpired.stdout & .stderr types (GH-97685)
This documents the behavior that has always been the case since timeout
support was introduced in Python 3.3.
(cherry picked from commit
b05dd796492160c37c9e15e3882f699f411b3461 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Sat, 1 Oct 2022 23:51:34 +0000 (16:51 -0700)]
Fix capitalization of Unix in documentation (GH-96913)
(cherry picked from commit
bd7d0e875e6955dd69cde18a034e59a75b8b4d00 )
Co-authored-by: Will Hawkins <8715530+hawkinsw@users.noreply.github.com>