]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
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) [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) [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 12:00:26 +0000 (05:00 -0700)]
[3.11] gh-98378: Add small format string example to strftime comments (GH-98379) (#98395)
gh-98378: Add small format string example to strftime comments (GH-98379)
A small example of what a full date and time would look like would help a lot of developers who may not realize that they should investigate `time.h`'s `strftime`, run `man strftime`, or click through a series of docs on the python docs before they get to the actual [definition here](https://docs.python.org/3/library/datetime.htmlGH-strftime-and-strptime-format-codes) which still doesn't have an obvious copy-pastable example of "what the heck format does this thing actually expect?".
Automerge-Triggered-By: GH:rhettinger
(cherry picked from commit
6ccca69d0d313135b2fbb2aa92c69c315be779c6 )
Co-authored-by: Alex Zvorygin <grafetu@gmail.com>
Co-authored-by: Alex Zvorygin <grafetu@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Sat, 22 Oct 2022 11:36:01 +0000 (04:36 -0700)]
[Enum docs]: fix order of arguments to isinstance() (GH-98542)
(cherry picked from commit
327fc1c6fa11b007213287cbf46380b7afed9be3 )
Co-authored-by: Clément Robert <cr52@protonmail.com>
Miss Islington (bot) [Fri, 21 Oct 2022 23:27:41 +0000 (16:27 -0700)]
gh-51511: Note that codecs.open()'s encoding parameter affects automatic conversion to binary mode (GH-94370)
(cherry picked from commit
d9407b174c81fda33e6c09a6f988c9a7cb8368af )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Fri, 21 Oct 2022 23:07:30 +0000 (16:07 -0700)]
bpo-2716: add license for audioop module (GH-19972)
(cherry picked from commit
4c1145bb3796c550d477c8c154ff980d566fe4a2 )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Miss Islington (bot) [Fri, 21 Oct 2022 22:43:23 +0000 (15:43 -0700)]
gh-98298: [Enum] document ReprEnum, global_enum, and show_flag_values (GH-98455)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit
3e95ffc7aefb970bfd23e488381eab0dc71532e5 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
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>
Miss Islington (bot) [Fri, 21 Oct 2022 10:43:56 +0000 (03:43 -0700)]
gh-98172: [doc] mention that except* handles naked exceptions (GH-98496)
(cherry picked from commit
8367ca136ed7616cb1f71bd9f1ec98dbcfd35d98 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
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) [Thu, 20 Oct 2022 21:28:36 +0000 (14:28 -0700)]
gh-96035: Make urllib.parse.urlparse reject non-numeric ports (GH-98273)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit
6f15ca8c7afa23e1adc87f2b66b958b721f9acab )
Co-authored-by: Ben Kallus <49924171+kenballus@users.noreply.github.com>
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 14:19:35 +0000 (07:19 -0700)]
CODEOWNERS: Become a typing code owner (GH-98480)
(cherry picked from commit
cb93b4aee5eb12dc6c4b2dccc81a2e5ace3ea4de )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Hugo van Kemenade [Thu, 20 Oct 2022 13:07:33 +0000 (15:07 +0200)]
[3.11] Docs: Bump sphinx-lint and use double backticks for inline literals (GH-98441) (#98445)
Bump sphinx-lint and use double backticks for inline literals
Miss Islington (bot) [Thu, 20 Oct 2022 11:54:52 +0000 (04:54 -0700)]
[3.11] [doc] Improve logging cookbook example. (GH-98481) (GH-98483)
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Miss Islington (bot) [Thu, 20 Oct 2022 11:04:45 +0000 (04:04 -0700)]
Add more tkinter.Canvas tests (GH-98475)
It is a prerequisite for GH-94473. Add tests for the coords() method and
for creation of some Canvas items.
(cherry picked from commit
ff173ed2f6b07f38ec18f854daba6451bf1a9000 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Dong-hee Na [Thu, 20 Oct 2022 02:43:21 +0000 (11:43 +0900)]
[3.11] gh-98374: Suppress ImportError for invalid query for help() co… (gh-98472)
Miss Islington (bot) [Thu, 20 Oct 2022 01:23:40 +0000 (18:23 -0700)]
typing tests: `_overload_dummy` raises `NotImplementedError`, not `RuntimeError` (GH-98351)
(cherry picked from commit
1ca6647f22794f0a0c982ecb03e764db76d51087 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Thu, 20 Oct 2022 00:53:50 +0000 (17:53 -0700)]
[3.11] gh-94808: Cover `str.rsplit` for UCS1, UCS2 or UCS4 (GH-98228) (#98291)
gh-94808: Cover `str.rsplit` for UCS1, UCS2 or UCS4 (GH-98228)
(cherry picked from commit
b7dd2cad186e44e2b481f4518be62f34c682ea59 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
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>
Vinay Sajip [Wed, 19 Oct 2022 21:28:24 +0000 (22:28 +0100)]
[3.11] [doc] Refresh the venv introduction documentation, and correct the st… (GH-98465)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Phil Elson <pelson.pub@gmail.com>
Miss Islington (bot) [Wed, 19 Oct 2022 15:44:05 +0000 (08:44 -0700)]
Doc: Remove title text from internal links (GH-98409)
Rely on the title of the linked internal page instead of putting the title. Sphinx will render with the title correctly, and this will reduce work for translators
(cherry picked from commit
52fcba651288ac1c0f9b1fb71379f1dad54ee1da )
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Raymond Hettinger [Wed, 19 Oct 2022 14:21:14 +0000 (09:21 -0500)]
[3.11] Sync the batched() recipe with the 3.12 implementation (GH-98446)
Miss Islington (bot) [Wed, 19 Oct 2022 09:57:27 +0000 (02:57 -0700)]
gh-97928: Fix handling options starting with "-" in tkinter.Text.count() (GH-98436)
Previously they were silently ignored. Now they are errors.
(cherry picked from commit
e4ec8de6fa6f0a07e64f6a3e3f894926b4b0652d )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 19 Oct 2022 06:44:43 +0000 (23:44 -0700)]
gh-97928: Add tests for tkinter.Text.count() (GH-98269)
(cherry picked from commit
1b684c8f5f738b56f859e5c87b7280610b90399f )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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>
Jelle Zijlstra [Wed, 19 Oct 2022 00:37:16 +0000 (17:37 -0700)]
[3.11] gh-94808: Cover `PyFunction_GetCode`, `PyFunction_GetGlobals`,… (#98317)
[3.11] gh-94808: Cover `PyFunction_GetCode`, `PyFunction_GetGlobals`, `PyFunction_GetModule` (GH-98158).
(cherry picked from commit
7b48d02933639c91ebd957b2326d8c352d8eddec )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
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) [Tue, 18 Oct 2022 19:17:40 +0000 (12:17 -0700)]
General improvements to the itertools docs (GH-98408)
(cherry picked from commit
f4ead4874b558efa6379e3a130b0c491fec3acb1 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Tue, 18 Oct 2022 15:38:39 +0000 (08:38 -0700)]
[3.11] gh-93858: Prevent error when activating venv in nested fish instances (GH-93931) (GH-98402)
Co-authored-by: Thomas B. Brunner <thomasbbrunner@gmail.com>
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) [Tue, 18 Oct 2022 15:21:58 +0000 (08:21 -0700)]
[3.11] gh-98174: Handle EPROTOTYPE under macOS in test_sendfile_fallback_close_peer_in_the_middle_of_receiving (GH-98316) (#98357)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
(cherry picked from commit
3e82ad05b18d004e4d01fdb643344d6a2bf11900 )
Co-authored-by: fancidev <fancidev@gmail.com>
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) [Tue, 18 Oct 2022 08:53:52 +0000 (01:53 -0700)]
gh-95913: Prepare remaining Whatsnew sections for editing (GH-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
(cherry picked from commit
0a0c7e5a7a516607a1268c310a2e05d574a71efc )
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) [Mon, 17 Oct 2022 22:38:22 +0000 (15:38 -0700)]
Move random selection recipes from itertools.rst to random.rst (GH-98369)
(cherry picked from commit
70732d8a4c98cdf3cc9efa5241ce33fb9bc323ca )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Mon, 17 Oct 2022 22:08:10 +0000 (15:08 -0700)]
gh-85525: Remove extra row in doc (GH-98337)
* remove extra row
* 📜🤖 Added by blurb_it.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit
5c9302d03a57759225dab9e2d7bdd38e79009441 )
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
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) [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>