summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.11.0v3.11.0Pablo Galindo2022-10-2427-204/+436
|
* GH-90985: Revert "Deprecate passing a message into cancel()" (GH-97999)Miss Islington (bot)2022-10-248-102/+12
| | | | | | | 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>
* gh-90908: Document asyncio.Task.cancelling() and asyncio.Task.uncancel() ↵Miss Islington (bot)2022-10-243-80/+254
| | | | | | | | (GH-95253) Co-authored-by: Thomas Grainger <tagrain@gmail.com> (cherry picked from commit f00645d5dbf4cfa0b8f382c8977724578dff191d) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-95913: Edit, link and sort 3.11 WhatsNew Build section (GH-98588)Miss Islington (bot)2022-10-241-57/+67
| | | | | (cherry picked from commit e81fad6b8a2334903fac5799b43997623a2ed904) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-95913: Edit, sort & expand 3.11 WhatsNew Porting section (GH-98585)Miss Islington (bot)2022-10-241-30/+31
| | | | | (cherry picked from commit 43bef54a32feef1eb6a4d63f00f89e2c5a39abd1) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-95913: Edit, xref & sort 3.11 WhatsNew Removed section (GH-98584)Miss Islington (bot)2022-10-241-58/+61
| | | | | (cherry picked from commit 8dbec4dbe57df30ec930c3035f86f8896764bc99) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-95913 Add string section to Whatsnew with new Template methods (GH-98311)Miss Islington (bot)2022-10-241-0/+12
| | | | | (cherry picked from commit e2dc223004a4230a9f820d2ff617770719a42cc6) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-95027: Fix regrtest stdout encoding on Windows (GH-98492)Miss Islington (bot)2022-10-242-3/+15
| | | | | | | | | 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>
* gh-90989: Clarify some installer text (GH-97668)Steve Dower2022-10-242-6/+7
|
* gh-97616: list_resize() checks for integer overflow (GH-97617)Miss Islington (bot)2022-10-243-2/+24
| | | | | | | | | | | 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>
* gh-97545: Make Semaphore run faster. (GH-97549)Miss Islington (bot)2022-10-243-23/+19
| | | | | (cherry picked from commit 68c46ae68b6e0c36a12e37285fff9ce0782ed01e) Co-authored-by: Cyker Way <cykerway@gmail.com>
* gh-90155: Fix bug in asyncio.Semaphore and strengthen FIFO guarantee (GH-93222)Miss Islington (bot)2022-10-243-22/+143
| | | | | | | | | | | 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>
* gh-96848: Fix -X int_max_str_digits option parsing (GH-96988)Miss Islington (bot)2022-10-223-1/+7
| | | | | | | | 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>
* gh-96821: Fix undefined behaviour in `_testcapimodule.c` (GH-96915) (GH-96927)Miss Islington (bot)2022-10-222-1/+4
| | | | | | | | | | * 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>
* gh-95778: Mention sys.set_int_max_str_digits() in error message (GH-96874)Miss Islington (bot)2022-10-223-4/+7
| | | | | | | 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>
* gh-96729: Ensure installers built with Tools/msi/buildrelease.bat have ↵Miss Islington (bot)2022-10-222-1/+5
| | | | | | | matching UUIDs with official releases (GH-96755) (cherry picked from commit 662782e95f97d26bd57b3edc6aaf674e30899f44) Co-authored-by: adang1345 <adang1345@gmail.com>
* [3.11] gh-96587: Raise `SyntaxError` for PEP654 on older `feature_version` ↵Nikita Sobolev2022-10-224-2/+15
| | | | | | | (GH-96588) (#96591) (cherry picked from commit 2c7d2e8d46164efb6e27a64081d8e949f6876515) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.11] gh-97897: Prevent os.mkfifo and os.mknod segfaults with macOS 13 SDK ↵Miss Islington (bot)2022-10-223-8/+80
| | | | | | | | | | | | | (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>
* gh-96865: [Enum] fix Flag to use CONFORM boundary (GH-97528)Miss Islington (bot)2022-10-223-2/+11
| | | | | (cherry picked from commit b44372e03c5461b6ad3d89763a9eb6cb82df07a4) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* Sync What's new for the current 3.11.0rc2+ branch with the 3.11.0 release branchPablo Galindo2022-10-221-2/+5
|
* gh-95913: Copyedit, xref and organize enum section (GH-98295)Miss Islington (bot)2022-10-221-38/+64
| | | | | | | | | | | | | | * 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>
* gh-95913: Edit zipfile Whatsnew section & add new APIs (GH-98314)Miss Islington (bot)2022-10-221-2/+14
| | | | | | | | | | | | * 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>
* gh-95913: Add WhatsNew section for new logging APIs (GH-98320)Miss Islington (bot)2022-10-221-0/+20
| | | | | | | | | | * 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>
* [3.11] Docs: Fix backtick errors found by sphinx-lint (GH-97998) (#98371)C.A.M. Gerlach2022-10-2249-93/+85
| | | | | | | | | 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>
* gh-95913: Copyedit & xref FrameInfo in Whatsnew inspect section (GH-98304)Miss Islington (bot)2022-10-222-16/+35
| | | | | (cherry picked from commit 8f30267ab49e1ef3ac3165a102b2196336547c8a) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-95913: Copyedit, link & format Typing Features section in 3.11 What's New ↵Miss Islington (bot)2022-10-221-2/+1
| | | | | | | | | | (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>
* gh-95913: Prepare remaining Whatsnew sections for editing (#98342)C.A.M. Gerlach2022-10-221-28/+105
| | | | | | | | | * 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
* gh-95914: Add links to 3.11 WhatsNew Summary items (GH-98416)Miss Islington (bot)2022-10-221-26/+38
| | | | | | 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>
* [3.11] gh-95913: Edit & expand Optimizations in 3.11 WhatsNew (GH-98426) ↵Miss Islington (bot)2022-10-221-20/+39
| | | | | | | | | | (#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>
* [3.11] gh-98331: Update bundled pip to 22.3 (GH-98332) (gh-98400)Miss Islington (bot)2022-10-224-2/+3
|
* gh-95914: Add What's New item describing PEP 670 changes (GH-98315)Miss Islington (bot)2022-10-221-0/+11
| | | | | (cherry picked from commit aafc53c0a6d1450dcfbc3f994318025ffb49ce73) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-98414: py.exe launcher does not use defaults for -V:company/ option ↵Miss Islington (bot)2022-10-223-0/+11
| | | | | | | (GH-98460) (cherry picked from commit 4bd63f66cd4f6e8d549f88ae0f4b0106d522b6bb) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.11] GH-97752: Clear the previous member of newly-created ↵Miss Islington (bot)2022-10-223-0/+24
| | | | | generator/coroutine frames (GH-97812) (cherry picked from commit 93fcc1f4133e177882850177c2c047d46019b812)
* gh-98360: multiprocessing now spawns children on Windows with correct ↵Miss Islington (bot)2022-10-224-3/+62
| | | | | | | argv[0] in virtual environments (GH-98462) (cherry picked from commit e48f9b2b7e73f4a89a9b9c287f3b93dc13a60460) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.11] gh-97514: Don't use Linux abstract sockets for multiprocessing ↵Miss Islington (bot)2022-10-222-5/+15
| | | | | | | | | | | | | | | | | | | | | | (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
* [3.11] GH-97002: Prevent _PyInterpreterFrames from backing more than one ↵Miss Islington (bot)2022-10-223-6/+91
| | | | | PyFrameObject (GH-98002) (cherry picked from commit 21a2d9ff550977f2668e2cf1cc15793bf27fa109)
* GH-96975: Skip incomplete frames in PyEval_GetFrame (GH-97018)Miss Islington (bot)2022-10-224-3/+79
| | | | | (cherry picked from commit 8fd2c3b75b90c4ee391894aa5094615bbdb6242f) Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
* gh-96706: [doc] Don't recomment deprecated use of get_event_loop() in ↵Miss Islington (bot)2022-10-222-4/+4
| | | | | | | examples (GH-96707) (cherry picked from commit 53a54b781d1f05f2d0b40ce88b3da92d5d23e9d2) Co-authored-by: zhanpon <pon.zhan@gmail.com>
* gh-95778: Fix `sys.set_int_max_str_digits()` parameter name (GH-96798)Miss Islington (bot)2022-10-221-1/+1
| | | | | | Discovered in https://github.com/python/typeshed/pull/8733 (cherry picked from commit bf5fd492524f1b630a60c98eff8fe5fa66603b54) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Add dataclass field default change to 3.11 what's new (GH-96790)Miss Islington (bot)2022-10-221-0/+8
| | | | | | 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>
* Itertools sieve() recipe (GH-96813) (GH-96814)Miss Islington (bot)2022-10-221-32/+6
|
* gh-96702: Order methods before attrs in sqlite3.Connection docs (GH-96703) ↵Miss Islington (bot)2022-10-221-97/+96
| | | | | | | | | (#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>
* gh-96810: Clarify for which statements sqlite3 implicitly opens transactions ↵Miss Islington (bot)2022-10-221-1/+2
| | | | | | | (GH-96832) (cherry picked from commit 16c33a9676e2f3ef330d09f2ab515c56636fa09f) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* Clarify that the expression is regular math notation, not Python. (GH-96903) ↵Miss Islington (bot)2022-10-221-2/+2
| | | | (GH-96908)
* Simplify sieve() recipe. Add edge case tests. (GH-96892)Miss Islington (bot)2022-10-221-10/+10
| | | | | (cherry picked from commit 78359b1d45608439f8e03b8e86174fe7b04d3e08) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* GH-96851: Add link to FAQ entry for caching method calls. (GH-96902)Miss Islington (bot)2022-10-222-0/+5
| | | | | (cherry picked from commit bbc24b2bd569108b957ed24c5a95ffeaf8cde0db) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* gh-95913: Fix and copyedit New Features section of 3.11 What's New (GH-95915)Miss Islington (bot)2022-10-222-36/+39
| | | | | (cherry picked from commit 8ee27e33182e6d9040e79f6ccc9219afa049d40e) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-95913: Copyedit, link & format Typing Features section in 3.11 What's New ↵Miss Islington (bot)2022-10-221-23/+50
| | | | | | | | | (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>
* gh-96917: link to typing.readthedocs.io from typing.rst (GH-96921)Miss Islington (bot)2022-10-221-0/+5
| | | | | | 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>
* [3.11] gh-96727: Document restrictions on Handler.emit() with respect to ↵Miss Islington (bot)2022-10-221-0/+16
| | | | | locking. (GH-96948) (GH-96950) (cherry picked from commit 6ad47b41a650a13b4a9214309c10239726331eb8)