]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Sun, 16 Oct 2022 19:41:41 +0000 (12:41 -0700)]
GH-91415: Mention alphabetical sort ordering in the Sorting HOWTO (GH-98336)
(cherry picked from commit
ae192178679c532e2c1b2d3b8c0928b77e0fe90e )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Vinay Sajip [Sun, 16 Oct 2022 17:45:59 +0000 (18:45 +0100)]
[3.11] gh-98307: Add docstring and documentation for SysLogHandler.cr… (GH-98325)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Sun, 16 Oct 2022 17:16:48 +0000 (10:16 -0700)]
gh-85299: Add note warning about entry point guard for asyncio example (GH-93457)
(cherry picked from commit
79fd6ccdbe00ec95e4d33fc24fe76076282a334e )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Sun, 16 Oct 2022 16:00:47 +0000 (09:00 -0700)]
gh-97527: IDLE - fix buggy macosx patch (GH-98313)
GH-97530 fixed IDLE tests possibly crashing on a Mac without a GUI.
But it resulted in IDLE not starting in 3.10.8, 3.12.0a1, and
Microsoft Python 3.10.2288.0 when test/* is not installed.
After this patch, test.* is only imported when testing on Mac.
(cherry picked from commit
35fa5d5e7f2b0971b39b2659dc70cb77e34a7dd6 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 16 Oct 2022 04:15:17 +0000 (21:15 -0700)]
[3.11] gh-95731: Fix module docstring extraction in pygettext (GH-95732) (#98281)
gh-95731: Fix module docstring extraction in pygettext (GH-95732)
(cherry picked from commit
120b4ab2b68aebf96ce0de243eab89a25fc2d282 )
Co-authored-by: Jakub Kuczys <me@jacken.men>
Miss Islington (bot) [Sat, 15 Oct 2022 21:24:05 +0000 (14:24 -0700)]
[3.11] Improve speed. Reduce auxiliary memory to 16.6% of the main array. (GH-98294) (GH-98303)
Vinay Sajip [Sat, 15 Oct 2022 20:51:58 +0000 (21:51 +0100)]
[3.11] [doc] Update logging cookbook with an example of custom handli… (GH-98296)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Sat, 15 Oct 2022 19:25:58 +0000 (12:25 -0700)]
docs(typing): harmonize "See PEP x for more details" (GH-97927)
(cherry picked from commit
02389658a4751a0166e2ed22be112b646378a01b )
Co-authored-by: Simon Legner <Simon.Legner@gmail.com>
Miss Islington (bot) [Sat, 15 Oct 2022 19:03:27 +0000 (12:03 -0700)]
Upgrade ccache-action to one using Node 16 (GH-98166)
Github Actions has deprecated the use of Node 12, and will be turning it off by
summer 2023.
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
(cherry picked from commit
ad8e297b7297dfdc34fad53b589b31d0920150ab )
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Jelle Zijlstra [Sat, 15 Oct 2022 18:48:48 +0000 (11:48 -0700)]
[3.11] gh-94808: Cover `PyEval_GetFuncName` (GH-98246). (#98283)
(cherry picked from commit
f01b56c7bdec239abe0dae2706f8325f4336249c )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Raymond Hettinger [Sat, 15 Oct 2022 18:11:04 +0000 (13:11 -0500)]
[3.11] Backport docstring improvement from 3.12 (#98288)
Backport docstring improvement from 3.12
Miss Islington (bot) [Sat, 15 Oct 2022 17:52:45 +0000 (10:52 -0700)]
Faster sieve() recipe (GH-98287)
(cherry picked from commit
f4370318d67f1f2f686c1c3a4b217ccc461d31e5 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Sat, 15 Oct 2022 16:12:18 +0000 (09:12 -0700)]
gh-98227: executionmodel.rst: except* can also bind names (GH-98256)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit
146f168fbf5b239158922f4defd494088c381525 )
Co-authored-by: BiscuitCandy <70342294+BiscuitCandy@users.noreply.github.com>
Miss Islington (bot) [Sat, 15 Oct 2022 15:22:38 +0000 (08:22 -0700)]
gh-95971: Turn @writes_bytecode_files to skip when not running (GH-95972)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit
07b5c4699e64eb30c3bdcb1275c167e675d37423 )
Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
Miss Islington (bot) [Sat, 15 Oct 2022 15:09:20 +0000 (08:09 -0700)]
gh-85525: Indicate supported sound header formats (GH-21575)
* Indicate supported sound header formats
* modify file names
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit
05c042e70786bd2e3fcb274d185e1e0a54dab5a7 )
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
Miss Islington (bot) [Sat, 15 Oct 2022 14:32:37 +0000 (07:32 -0700)]
gh-91485: Doc: Using Python syntax to document builtin Python functions. (GH-96579)
(cherry picked from commit
3c4cbd177f36777a04e78eb07ce20367560a66d3 )
Co-authored-by: Julien Palard <julien@palard.fr>
Miss Islington (bot) [Fri, 14 Oct 2022 16:24:23 +0000 (09:24 -0700)]
gh-98251: Allow venv to pass along PYTHON* variables to pip and ensurepip when they do not impact path resolution (GH-98259)
(cherry picked from commit
2fe44f728afa2dd506c304641f0481d6813d1dbd )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Thu, 13 Oct 2022 17:27:31 +0000 (10:27 -0700)]
bpo-46364: Use sockets for stdin of asyncio only on AIX (GH-30596)
Signed-off-by: Christoph Hamsen <hamsen.christoph@posteo.de>
Co-authored-by: July Tikhonov <july.tikh@gmail.com>
(cherry picked from commit
c9ed0327a9c741a1808926b409df29467baf303a )
Co-authored-by: Christoph Hamsen <37963496+xopham@users.noreply.github.com>
Miss Islington (bot) [Thu, 13 Oct 2022 11:59:23 +0000 (04:59 -0700)]
gh-98178: syslog() is not thread-safe on macOS (GH-98213)
On macOS, fix a crash in syslog.syslog() in multi-threaded
applications. On macOS, the libc syslog() function is not
thread-safe, so syslog.syslog() no longer releases the GIL to call
it.
(cherry picked from commit
d4b91663857e85eab1f309cacec4d27b5f6657ec )
Co-authored-by: Victor Stinner <vstinner@python.org>
Brandt Bucher [Wed, 12 Oct 2022 23:04:47 +0000 (16:04 -0700)]
[3.11] GH-93354: Fix PRECALL's adaptive backoff (GH-98011)
Miss Islington (bot) [Wed, 12 Oct 2022 16:13:24 +0000 (09:13 -0700)]
gh-96265: Formatting changes for faq/general (GH-98129)
* Some formatting changes for general faq
* Use list for Python versioning
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* New line for list, list for a/b/rc
* Line wrap for 80 chars
* More line wrap
* Remove PythonWin mention.
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit
e9569ec43e2376aa77240cd630db4be07e8720f3 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Wed, 12 Oct 2022 16:08:56 +0000 (09:08 -0700)]
tutorial: remove "with single quotes" (GH-98204)
Closes GH-91856.
On Windows double quotes are sometimes better, on Unix usually
single quotes. It's not our place to explain that, so just don't.
(cherry picked from commit
5f8ca1b7969f34ee09adb7b28337ebd920e6215a )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Wed, 12 Oct 2022 04:51:13 +0000 (21:51 -0700)]
gh-65046: Link to logging cookbook from asyncio docs (GH-98207)
(cherry picked from commit
c39a0c335486fa8eac0f3030930f9e8769118a4f )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Wed, 12 Oct 2022 04:05:12 +0000 (21:05 -0700)]
Formatting fixes in contextlib docs (GH-98111)
(cherry picked from commit
3b33c2010aa00ef5877bc35b02ae658e3c9f27af )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Wed, 12 Oct 2022 02:50:25 +0000 (19:50 -0700)]
gh-95276: Add callable entry to the glossary (GH-95738)
(cherry picked from commit
e3bf125c81d5da0734429c1cb6ae75e6086e35ae )
Co-authored-by: MonadChains <monadchains@gmail.com>
Miss Islington (bot) [Wed, 12 Oct 2022 02:45:44 +0000 (19:45 -0700)]
gh-96130: Rephrase use of "typecheck" verb for clarity (GH-98144)
I'm sympathetic to the issue report, especially in case this helps
clarify to new users that Python itself does not do type checking at runtime
(cherry picked from commit
ed6344eed043eaaa41d11c1176c25aa79de64ef4 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Tue, 11 Oct 2022 16:22:04 +0000 (09:22 -0700)]
gh-98172: Fix formatting in `except*` docs (GH-98173)
(cherry picked from commit
5ecf961640192a2192383aa20e1e93dcdf23c9b6 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Mon, 10 Oct 2022 20:16:32 +0000 (13:16 -0700)]
Auto-cancel old builds when new commit pushed to branch (GH-98009)
* Auto-cancel old builds when new commit pushed to branch
* Add a fallback
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* Use the same group for all workflows.
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit
75751f4aa5d70f65856645a9128fd42d92d6692c )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 10 Oct 2022 20:10:04 +0000 (13:10 -0700)]
[3.11] gh-88452: Add a warning about non-portability of environments. (GH-98155) (GH-98157)
Miss Islington (bot) [Mon, 10 Oct 2022 19:37:37 +0000 (12:37 -0700)]
ci: add GitHub token permissions (GH-92999)
(cherry picked from commit
b96e20c1d9be4e6d5ea3e48c9c97e5ecd02f6055 )
Co-authored-by: Varun Sharma <varunsh@stepsecurity.io>
Miss Islington (bot) [Mon, 10 Oct 2022 14:01:05 +0000 (07:01 -0700)]
gh-83940: os docs: Improve wording for getenv/getenvb (GH-98113)
(cherry picked from commit
187e853690908ca2af19a0701ca7529b43d05df9 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Mon, 10 Oct 2022 08:50:26 +0000 (01:50 -0700)]
doc: remove a misleading statement. (GH-98093)
(cherry picked from commit
571e23d99157ed7ad67ca2334a396fc9ddbe07ec )
Co-authored-by: Julien Palard <julien@palard.fr>
Miss Islington (bot) [Mon, 10 Oct 2022 05:09:12 +0000 (22:09 -0700)]
bpo-43564: preserve original exception in args of FTP URLError (GH-24938)
* bpo-43564: preserve original error in args of FTP URLError
* Add NEWS blurb
Co-authored-by: Carl Meyer <carljm@instagram.com>
(cherry picked from commit
ad817cd5c44416da3752ebf9baf16d650703275c )
Co-authored-by: Carl Meyer <carl@oddbird.net>
Miss Islington (bot) [Mon, 10 Oct 2022 01:33:59 +0000 (18:33 -0700)]
gh-98083: Fix URLs in `README.rst` (GH-98082)
(cherry picked from commit
fc342c62e0debb194d60e79b37e346bf8d940d7a )
Co-authored-by: Tiger <tnie@tuta.io>
Miss Islington (bot) [Mon, 10 Oct 2022 01:03:53 +0000 (18:03 -0700)]
Fix types in buffer/memoryview docs (GH-98118)
The definition of obj in the `Py_buffer` struct is as a PyObject*
https://github.com/python/cpython/blob/
ec091bd47e2f968b0d1631b9a8104283a7beeb1b /Include/pybuffer.hGH-L22
PyMemoryView_GET_BASE returns `.obj` - thus its return type
should be a PyObject* (or at least a void*). It definitely
doesn't return `Py_buffer`
(cherry picked from commit
c459fedf7cfd5dadf72e088d789c7375b3a6e093 )
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Miss Islington (bot) [Mon, 10 Oct 2022 01:02:00 +0000 (18:02 -0700)]
gh-56133: copyreg docs: Clarify function/constructor parameter (GH-95497)
(cherry picked from commit
281a3f18cc2afac0fa92c75e807775971e531711 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Sun, 9 Oct 2022 02:03:25 +0000 (19:03 -0700)]
Minor edits to the Descriptor HowTo Guide (GH-24901)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
(cherry picked from commit
2d2e01aa4cb72db8dabcd04e87f1e60b3597267e )
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
Miss Islington (bot) [Sat, 8 Oct 2022 22:19:48 +0000 (15:19 -0700)]
Fix link to Lifecycle of a Pull Request in CONTRIBUTING (GH-98102)
* Fix link to Lifecycle of a Pull Request in CONTRIBUTING
* Remove trailing backslash.
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit
3378ebb933b00e1b95f1112511aa2cfb597a4ebf )
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Serhiy Storchaka [Sat, 8 Oct 2022 19:22:26 +0000 (22:22 +0300)]
[3.11] Add more syslog tests (GH-97953). (GH-98096)
(cherry picked from commit
cae7d1d7a713f8267daf5e4f2fff5cb1dad02c7c )
Miss Islington (bot) [Sat, 8 Oct 2022 08:01:42 +0000 (01:01 -0700)]
Add `@ezio-melotti` as codeowner for `.github/`. (GH-98079)
(cherry picked from commit
531ffaa7cdc58c5df2abe505803394dbd5293602 )
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Miss Islington (bot) [Sat, 8 Oct 2022 07:01:27 +0000 (00:01 -0700)]
gh-97913 Docs: Add walrus operator to the index (GH-97921)
* Add walrus operator to the index
* Add named expression to the index
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
* Fix indentation and add missing newline
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit
296313002fde56f52d6c81f17d7ba5c2eb57d098 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Sat, 8 Oct 2022 05:07:06 +0000 (22:07 -0700)]
gh-97822: Fix http.server documentation reference to test() function (GH-98027)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit
6b485629d2e3e232460db7da3f8b18b67d4f4da8 )
Co-authored-by: JasonYZ <yurenzhang2017@gmail.com>
Miss Islington (bot) [Sat, 8 Oct 2022 05:02:38 +0000 (22:02 -0700)]
gh-92886: make test_ast pass with -O (assertions off) (GH-98058)
-O does not strip docstrings.
Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit
27ce45d8e105d0c9f9286c3cab830590d4c7cea3 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Sat, 8 Oct 2022 04:24:02 +0000 (21:24 -0700)]
gh-92886: make test_coroutines pass with -O (assertions off) (GH-98060)
Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit
45f21472daad3934baf364c3100063ecc51c6e04 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Jelle Zijlstra [Sat, 8 Oct 2022 04:00:00 +0000 (21:00 -0700)]
[3.11] gh-96288: Add a sentence to `os.mkdir`'s docstring. (GH-96271). (#98065)
(cherry picked from commit
1523c9e9d47e7d67e4889987ff0f38eb7b881fdd )
Co-authored-by: Hagai Helman Tov <hagai.helman@gmail.com>
Jelle Zijlstra [Sat, 8 Oct 2022 03:59:18 +0000 (20:59 -0700)]
[3.11] gh-96073: Fix installed tests by adding to Makefile.pre.in (#98071)
[3.11] Fix installed tests by adding to Makefile.pre.in
This was broken in #98045 but already fixed on main.
Miss Islington (bot) [Sat, 8 Oct 2022 03:00:04 +0000 (20:00 -0700)]
gh-57179: Add note on symlinks for os.walk (GH-94799)
(cherry picked from commit
0f498f1a95306995ca1e287f552c5c3d856be02d )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Sat, 8 Oct 2022 00:09:53 +0000 (17:09 -0700)]
[3.11] gh-94808: Cover `%p` in `PyUnicode_FromFormat` (GH-96677) (#98033)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit
72c166add89a0cd992d66f75ce94eee5eb675a99 )
Miss Islington (bot) [Fri, 7 Oct 2022 23:45:53 +0000 (16:45 -0700)]
gh-65496: Correct wording on csv's skipinitialspace argument (GH-96170)
(cherry picked from commit
676d8ef3806758bcd1d3fd84a746c8a9b64480d0 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Fri, 7 Oct 2022 23:05:52 +0000 (16:05 -0700)]
gh-61105: Add default param, note on using cookiejar subclass (GH-95427)
(cherry picked from commit
5eaf4d610147a3b9adc91a55790096d05bbe01d4 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Fri, 7 Oct 2022 22:39:54 +0000 (15:39 -0700)]
gh-96073: fix backticks in NEWS entry (GH-98056)
Automerge-Triggered-By: GH:JelleZijlstra
(cherry picked from commit
0f111f53c1815766583ca9d5c06671ad89abcb77 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Fri, 7 Oct 2022 20:53:15 +0000 (13:53 -0700)]
[3.11] gh-91708: Revert params note in urllib.parse.urlparse table (GH-96699) (#98052)
Revert params note in urllib.parse.urlparse table
(cherry picked from commit
eed80458e8e776d15fa862da71dcce58c47e2ca7 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Fri, 7 Oct 2022 20:26:46 +0000 (13:26 -0700)]
Add a warning message about PyOS_snprintf (GH-95993)
(cherry picked from commit
c7b220499662f0c7a4cae51e33372f92ca7b1ee9 )
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Miss Islington (bot) [Fri, 7 Oct 2022 19:56:16 +0000 (12:56 -0700)]
GH-96073: Fix wild replacement in inspect.formatannotation (GH-96074)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit
d5fea01d9d439b1638cd8e5db19c33909841d86f )
Co-authored-by: Anh71me <iyumelive@gmail.com>
Miss Islington (bot) [Fri, 7 Oct 2022 19:02:51 +0000 (12:02 -0700)]
[3.11] gh-96959: Update HTTP links which are redirected to HTTPS (GH-98039) (#98049)
(cherry picked from commit
c81c64ca58822156beba79dfd3035bf2a5b7354e )
Co-authored-by: 180909 <734461790@qq.com>
Miss Islington (bot) [Fri, 7 Oct 2022 18:21:01 +0000 (11:21 -0700)]
gh-64921: Clarify wording for open()'s newline arg (GH-96171)
(cherry picked from commit
4a74e6ab3885e7906cc5e0b15addc7779bc76249 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Fri, 7 Oct 2022 17:55:26 +0000 (10:55 -0700)]
Add note on capture_output arg to subprocess.run() docstring (GH-98012)
add note on capture_output arg to the docstring
(cherry picked from commit
80b3e32d6242c27094dd04c4c3d0c3d3b2889a01 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Fri, 7 Oct 2022 14:10:46 +0000 (07:10 -0700)]
gh-71316: Update dis documentation to include changes to jump arguments (GH-95798)
(cherry picked from commit
6592a62ec2939323b895c85780da7fd73a640da3 )
Co-authored-by: Christopher Chianelli <cchianel@redhat.com>
Miss Islington (bot) [Fri, 7 Oct 2022 08:46:31 +0000 (01:46 -0700)]
Misc updates to the itertools recipes and tests (GH-98018)
(cherry picked from commit
e500cc04517bd65668f2e203c1e37b0cc5b1cf1b )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Fri, 7 Oct 2022 04:50:56 +0000 (21:50 -0700)]
fixes gh-96078: os.sched_yield release the GIL while calling sched_yield(2). (gh-97965)
(cherry picked from commit
b9d2e8171696514e9226164005f7bf24bf69e66d )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
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) [Fri, 7 Oct 2022 00:56:24 +0000 (17:56 -0700)]
[3.11] Remove extra spaces in custom openSSL documentation. (GH-93568) (#98007)
Remove extra spaces in custom openSSL documentation. (GH-93568)
(cherry picked from commit
4875433682ffec2694647ac43f1b21f5ad73fd25 )
Co-authored-by: Xiao Chen <chenxiao_7@163.com>
Co-authored-by: Xiao Chen <chenxiao_7@163.com>
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, 6 Oct 2022 21:10:06 +0000 (14:10 -0700)]
[3.11] gh-97850: Remove the open issues section from the import reference (GH-97935) (GH-97994)
Remove the open issues section from the import reference
Tracking in https://github.com/python/cpython/issues/97850 instead.
(cherry picked from commit
f8edc6ff531bb98858185857513371f14519ed1d )
Co-authored-by: Brett Cannon <brett@python.org>
Automerge-Triggered-By: GH:brettcannon
Miss Islington (bot) [Thu, 6 Oct 2022 21:01:27 +0000 (14:01 -0700)]
[3.11] Docs: pin sphinx-lint (GH-97992) (GH-97993)
Barry Warsaw [Thu, 6 Oct 2022 20:47:33 +0000 (13:47 -0700)]
[3.11] Backport
effc25f 3.11 (#97991)
* Add Pynche's move to the What's new in 3.11 (#97974)
* Add Pynche's move to the What's new in 3.11
* Update Doc/whatsnew/3.11.rst
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit
effc25f7f25ae1ac053415addc584b050c022dcb )
* [3.11] Add Pynche's move to the What's new in 3.11 (GH-97974)
* Add Pynche's move to the What's new in 3.11
* Update Doc/whatsnew/3.11.rst
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>.
(cherry picked from commit
effc25f7f25ae1ac053415addc584b050c022dcb )
Co-authored-by: Barry Warsaw <barry@python.org>
Miss Islington (bot) [Thu, 6 Oct 2022 20:03:32 +0000 (13:03 -0700)]
gh-97943: PyFunction_GetAnnotations should return a borrowed reference. (GH-97949)
(cherry picked from commit
6bfb0be80486c614cd60dce44c9fe7b3e6c76e3b )
Co-authored-by: larryhastings <larry@hastings.org>
Miss Islington (bot) [Thu, 6 Oct 2022 19:32:39 +0000 (12:32 -0700)]
gh-86482: Document assignment expression need for ()s (GH-23291)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit
2b5f1360ead9aa72ae00de59edfd6c229d13933f )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
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) [Thu, 6 Oct 2022 19:09:50 +0000 (12:09 -0700)]
[3.11] GH-88050: fix race in closing subprocess pipe in asyncio (GH-97951) (#97978)
Check for None when iterating over `self._pipes.values()`.
(cherry picked from commit
e2e6b95c0342247ed1a761b6e149ac579a8722dd )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Thu, 6 Oct 2022 19:06:49 +0000 (12:06 -0700)]
[3.11] gh-94808: Coverage: Test that maximum indentation level is handled (GH-95926) (#97979)
gh-94808: Coverage: Test that maximum indentation level is handled (GH-95926)
* gh-94808: Coverage: Test that maximum indentation level is handled
* Use "compile" rather than "exec"
(cherry picked from commit
23e83a84651bbcf1f3778baf3ab0b4cbfead75e3 )
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Miss Islington (bot) [Thu, 6 Oct 2022 17:49:29 +0000 (10:49 -0700)]
[3.11] gh-93738: Disallow pre-v3 syntax in the C domain (GH-97962) (#97976)
Also, disable using invalid sphinx-lint 0.6.2.
(cherry picked from commit
f612565bd32d4ab0945798da775eea070f08b6fe )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Thu, 6 Oct 2022 12:44:05 +0000 (05:44 -0700)]
gh-94808: Cover `PyObject_PyBytes` case with custom `__bytes__` method (GH-96610)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit
e39ae6bef2c357a88e232dcab2e4b4c0f367544b )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Thu, 6 Oct 2022 00:21:55 +0000 (17:21 -0700)]
[3.11] gh-95691: Doc BufferedWriter and BufferedReader (GH-95703) (#97947)
gh-95691: Doc BufferedWriter and BufferedReader (GH-95703)
(cherry picked from commit
0d68879104dfb392d31e52e25dcb0661801a0249 )
Co-authored-by: 180909 <734461790@qq.com>
Co-authored-by: 180909 <734461790@qq.com>
Miss Islington (bot) [Wed, 5 Oct 2022 23:54:21 +0000 (16:54 -0700)]
GH-88968: Add notes about socket ownership transfers (GH-97936)
(cherry picked from commit
74ea204634f8eb4745afd5cb75c3fe7749cf38b5 )
Co-authored-by: Guido van Rossum <guido@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>
Christian Heimes [Wed, 5 Oct 2022 22:05:27 +0000 (00:05 +0200)]
[3.11] gh-96017: Fix some compiler warnings (GH-96018) (#96106)
- only define recreate_gil with ifdef HAVE_FORK.
(cherry picked from commit
d9c1b746b5013f81d1724757bb3c6a1c87c4a8dc )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Wed, 5 Oct 2022 22:03:18 +0000 (15:03 -0700)]
[3.11] gh-96197: Fix expression when :func:`sys.breakpointhook is missing (gh-96293) (#96294)
(cherry picked from commit
47d406ffc4946b023e38322c5235bec25f068481 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Shantanu [Wed, 5 Oct 2022 22:02:06 +0000 (15:02 -0700)]
[3.11] gh-95987: Fix `repr` of `Any` type subclasses (GH-96412) (#96451)
(cherry picked from commit
4217393 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
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) [Wed, 5 Oct 2022 21:57:11 +0000 (14:57 -0700)]
[3.11] Fix type annotation of `pstats.FunctionProfile.ncalls` (GH-96741) (#96835)
This change aligns the type annotation of `pstats.FunctionProfile.ncalls` with its runtime type.
(cherry picked from commit
8e9a37dde44c9fa0b961cb2db5dc8266e1f85d11 )
Co-authored-by: Ruan Comelli <ruancomelli@gmail.com>
Miss Islington (bot) [Wed, 5 Oct 2022 21:50:46 +0000 (14:50 -0700)]
[3.11] gh-97654: Add auto exception chaining example to tutorial (GH-97703) (#97885)
gh-97654: Add auto exception chaining example to tutorial (GH-97703)
Add auto exception chaining example to tutorial
(cherry picked from commit
395b66a0ae5237eec195ca97daaaf8563706ed34 )
Co-authored-by: Shahriar Heidrich <smheidrich@weltenfunktion.de>
Łukasz Langa [Wed, 5 Oct 2022 21:11:12 +0000 (14:11 -0700)]
[3.11] gh-93738: Documentation C syntax (:c:type:<C type> -> :c:expr:<C type>) (GH-97768) (#97924)
:c:type:`<C type>` -> :c:expr:`<C type>`
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
0031e62973801d34a9e19ab7bb199e9668e32d7b )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Oct 2022 20:16:12 +0000 (13:16 -0700)]
docs(typing): add "see PEP 675" to LiteralString (GH-97926)
(cherry picked from commit
2016bc54a22b83d0ca9174b64257cc7bb67a0916 )
Co-authored-by: Simon Legner <Simon.Legner@gmail.com>
Miss Islington (bot) [Wed, 5 Oct 2022 18:01:17 +0000 (11:01 -0700)]
GH-95172 Make the same version `versionadded` oneline (GH-95172)
* Make the same version versionadded oneline
* Format versionadded for enum.rst
* Format versionadded
A single line versionadded was reading better.
Co-authored-by: Senthil Kumaran <senthil@python.org>
(cherry picked from commit
d6062d1170199c4f02acf6de8fcbf5d748a03db2 )
Co-authored-by: 180909 <734461790@qq.com>
Miss Islington (bot) [Wed, 5 Oct 2022 18:00:29 +0000 (11:00 -0700)]
[3.11] gh-93738: Documentation C syntax (Function glob patterns -> literal markup) (GH-97774) (#97910)
(cherry picked from commit
0e72606dd4cf3023a4f8c2fe3c58082592b253f7 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Wed, 5 Oct 2022 17:48:48 +0000 (10:48 -0700)]
gh-88050: Fix asyncio subprocess to kill process cleanly when process is blocked (GH-32073)
(cherry picked from commit
7015e1379791cbf19908cd1a7c668a5d6e7165d5 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Oct 2022 15:21:32 +0000 (08:21 -0700)]
[3.11] gh-93738: Documentation C syntax (:c:type:`PyTypeObject*` -> :c:expr:`PyTypeObject*`) (GH-97778) (#97892)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit
c70c8b69762f720377adaf22f2e5ec6496a7be53 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Oct 2022 15:20:03 +0000 (08:20 -0700)]
[3.11] gh-93738: Documentation C syntax (Use `c:struct`) (GH-97772) (#97869)
Use `c:struct`
(cherry picked from commit
a0f5599aac2037da715d09733e0a83a9cba7c37a )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Oct 2022 15:18:55 +0000 (08:18 -0700)]
[3.11] gh-93738: Documentation C syntax (:c:type: to :c:expr:, misc. cases) (GH-97775) (#97873)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Oct 2022 15:18:27 +0000 (08:18 -0700)]
[3.11] gh-93738: Documentation C syntax (:c:type:`PyObject` -> :c:expr:`PyObject`) (GH-97776) (#97889)
:c:type:`PyObject` -> :c:expr:`PyObject`
(cherry picked from commit
0bf6a617ed1832bc4803e532c8d6b3427cf48b13 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Oct 2022 11:59:09 +0000 (04:59 -0700)]
gh-95196: Disable incorrect pickling of the C implemented classmethod descriptors (GH-96383)
(cherry picked from commit
77f0249308de76401bf4f3c6a057789c92f862d1 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 5 Oct 2022 10:20:32 +0000 (03:20 -0700)]
gh-97758: Fix a crash in getpath_joinpath() called without arguments (GH-97759)
(cherry picked from commit
f8cbd79d328d90443acabc41d246332c302c815a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 5 Oct 2022 08:57:30 +0000 (01:57 -0700)]
gh-97661: Improve accuracy of sqlite3.Cursor.fetchone docs (GH-97662)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit
4b83cd0b22428fbfccf1f0e85c0fc36be6ab7edf )
Co-authored-by: Jia Junjie <62194633+jiajunjie@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Oct 2022 05:46:34 +0000 (22:46 -0700)]
[3.11] GH-97779: Ensure that *all* frame objects are backed by "complete" frames (GH-97886)
(cherry picked from commit
0ff8fd65838f9f9ed90d7a055d26a2ce9fc0ce85 )
Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
Miss Islington (bot) [Wed, 5 Oct 2022 03:55:06 +0000 (20:55 -0700)]
[3.11] gh-97837: Change deprecation warning message in `unittest` (GH-97838) (GH-97887)
(cherry picked from commit
c3648f4e4a12ec6efe65684facfcd08996e550ca )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Automerge-Triggered-By: GH:orsenthil
Miss Islington (bot) [Wed, 5 Oct 2022 03:29:40 +0000 (20:29 -0700)]
gh-97825: fix AttributeError when calling subprocess.check_output(input=None) with encoding or errors args (GH-97826)
* fix AttributeError, add unit test
(cherry picked from commit
db64fb9bbe92b212db7dd173f787ea3607ae971a )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Wed, 5 Oct 2022 01:29:54 +0000 (18:29 -0700)]
Add re.VERBOSE flag documentation example (GH-97678)
The current re.VERBOSE documentation example leaves space for ambiguous
interpretation. One may read that spaces within the `(?:` token are
spaces inside the non-capturing group (such as `(?: )`). This patch
removes the ambiguity by including examples after the statement.
(cherry picked from commit
0ceafa7fa408b64377ea31dd5386152da19ef38a )
Co-authored-by: Athos Ribeiro <athoscribeiro@gmail.com>
Miss Islington (bot) [Wed, 5 Oct 2022 01:08:59 +0000 (18:08 -0700)]
gh-95913: Copyedit/improve Implementation Changes What's New section (GH-97720)
* Add and refine reST/Sphinx syntax for implementation changes section
* Clarify and refine wording in the Implementation Changes section
* Elide unnecessary comma
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit
4e731814d781dae3419e981c0acc3ef833e26e8a )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Wed, 5 Oct 2022 00:55:17 +0000 (17:55 -0700)]
[3.11] gh-93738: Documentation C syntax (:c:data:`view->obj` -> :c:expr:`view->obj`) (GH-97773) (#97867)
:c:data:`view->obj` -> :c:expr:`view->obj`
(cherry picked from commit
fa59bda8d30ea0b6c19007205b57c800c944304c )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>