]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Charlie Zhao [Mon, 31 Oct 2022 18:22:02 +0000 (02:22 +0800)]
[3.10] gh-98793: Fix typecheck in `overlapped.c` (GH-98835) (#98890)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
(cherry picked from commit
3ac8c0ab6ee819a14b1c8e0992acbaf376a46058 )
Miss Islington (bot) [Mon, 31 Oct 2022 15:08:54 +0000 (08:08 -0700)]
gh-98576: Fix types in dataclass.InitVar example (gh-98577)
(cherry picked from commit
880bafc574bcd811dd7244f9a82056430b489996 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Mon, 31 Oct 2022 14:59:18 +0000 (07:59 -0700)]
[3.10] gh-96151: Use a private name for passing builtins to dataclass. This now allows for a field named BUILTIN (gh-98143) (gh-98899)
gh-96151: Use a private name for passing builtins to dataclass. This now allows for a field named BUILTIN (gh-98143)
(cherry picked from commit
29f98b46b77ee528477b9a7b335974b9682f7f14 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Sat, 29 Oct 2022 22:52:05 +0000 (15:52 -0700)]
glossary.rst: Fix typo in package definition (GH-98865)
This is a tiny typo fix of package definition in glossary.
According to https://devguide.python.org/documentation/help-documenting/ simple typos don’t require issues of their own, but, instead, a pull request can by submitted directly.
Automerge-Triggered-By: GH:AlexWaygood
(cherry picked from commit
fc94d55ff453a3101e4c00a394d4e38ae2fece13 )
Co-authored-by: ab <abousselmi@users.noreply.github.com>
Miss Islington (bot) [Sat, 29 Oct 2022 18:53:54 +0000 (11:53 -0700)]
gh-93358: Fix python-config docs for how to embed Python (GH-98649)
(cherry picked from commit
e063c23c65143a3afae3e201459dc0d52cb6fc96 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Fri, 28 Oct 2022 21:19:43 +0000 (14:19 -0700)]
Fix typo in contextvars docs (GH-98823)
(cherry picked from commit
72fa57a8fe2e9df637170dc97f994ac70931e8e9 )
Co-authored-by: cburroughs <chris.burroughs@gmail.com>
Alex Waygood [Fri, 28 Oct 2022 17:17:03 +0000 (18:17 +0100)]
[3.10] `argparse` docs: normalize constant references (#98765) (#98808)
`argparse` docs: normalize constant references (#98765)
(cherry picked from commit
b27b57c6e44a276c8a9843fd37d4cf65b2827d5c )
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Erlend E. Aasland [Fri, 28 Oct 2022 12:16:38 +0000 (14:16 +0200)]
[3.10] gh-94328: Update Windows installer to use SQLite 3.39.4 (GH-98640) (#98678)
(cherry picked from commit
0c84593275969d9b8f42e75abb2638b69d5b5f4a )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Fri, 28 Oct 2022 10:16:53 +0000 (03:16 -0700)]
[3.10] gh-98624 Add mutex to unittest.mock.NonCallableMock (GH-98688) (#98798)
(cherry picked from commit
0346eddbe933b5f1f56151bdebf5bd49392bc275 )
Co-authored-by: noah-weingarden <33741795+noah-weingarden@users.noreply.github.com>
samypr100 [Fri, 28 Oct 2022 10:13:44 +0000 (06:13 -0400)]
[3.10] GH-98671: bpo-46670: Fix #ifdef in sha3module.c (GH-90828) (#98677)
sterliakov [Fri, 28 Oct 2022 10:12:42 +0000 (13:12 +0300)]
[3.10] gh-98548: Fix `-ne` shell operator spelling (#98555)
Miss Islington (bot) [Fri, 28 Oct 2022 10:11:26 +0000 (03:11 -0700)]
[3.10] bpo-2716: add license for audioop module (GH-19972) (#98532)
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, 28 Oct 2022 10:10:41 +0000 (03:10 -0700)]
[3.10] Add more tkinter.Canvas tests (GH-98475) (#98477)
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>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Thu, 27 Oct 2022 21:22:18 +0000 (14:22 -0700)]
gh-98739: Update libexpat from 2.4.9 to 2.5.0 (GH-98742)
* Update libexpat from 2.4.9 to 2.5.0 to address CVE-2022-43680.
Co-authored-by: Shaun Walbridge <shaun.walbridge@gmail.com>
(cherry picked from commit
3e07f827b359617664ad0880f218f17ae4483299 )
Co-authored-by: Shaun Walbridge <46331011+scdub@users.noreply.github.com>
Miss Islington (bot) [Thu, 27 Oct 2022 16:33:44 +0000 (09:33 -0700)]
obmalloc: Remove unused variable. (GH-98770)
(cherry picked from commit
bded5edd9abf7ae6b2874916d70ec29ad209217c )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Miss Islington (bot) [Thu, 27 Oct 2022 03:35:07 +0000 (20:35 -0700)]
gh-98703: Add tests for closing `_ProactorSocketTransport` with proactor event loop (GH-98730)
(cherry picked from commit
96ae80f1d004f2df4a707919853f0745c9c352d1 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Thu, 27 Oct 2022 03:03:58 +0000 (20:03 -0700)]
gh-98703: Fix asyncio proactor_events calling _call_connection_lost multiple times (GH-98704)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
(cherry picked from commit
8a755423eba8e19704d96905730cf7f50083eb23 )
Co-authored-by: Ken Jin <kenjin@python.org>
Miss Islington (bot) [Wed, 26 Oct 2022 23:28:40 +0000 (16:28 -0700)]
Fix readline.c compiler warning. (GH-98738)
```
Modules/readline.c:1260:37: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
completer_word_break_characters =
^
```
(cherry picked from commit
29b391b1378577825a658b14764a8ff3e0b5c958 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Stanley [Wed, 26 Oct 2022 20:19:39 +0000 (13:19 -0700)]
[3.10] Change links to label refs (GH-98454) (#98726)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Erlend E. Aasland [Wed, 26 Oct 2022 20:19:20 +0000 (22:19 +0200)]
[3.10] gh-98716: Revert gh-96081: Escape lone stars in sqlite3 docs (GH-98720) (#98737)
(cherry picked from commit
365852a03a0c934ccd9b6c2b8e24c71181c41f03 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Wed, 26 Oct 2022 04:53:36 +0000 (21:53 -0700)]
gh-94808: cover `PyMapping_HasKeyString` and `PyMapping_HasKey` (GH-98486)
(cherry picked from commit
5d30544485dc56ab999ad7656ef6559306fd013f )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Wed, 26 Oct 2022 03:55:29 +0000 (20:55 -0700)]
gh-98348: Mention ReferenceError in weakref.proxy documentation (GH-98355)
(cherry picked from commit
216f45e4fec42407ff744b915523a226a0070ff1 )
Co-authored-by: fancidev <fancidev@gmail.com>
Miss Islington (bot) [Wed, 26 Oct 2022 03:01:11 +0000 (20:01 -0700)]
gh-77753: Add example for values that compare equal in stdtypes (GH-98497)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit
0ca6a4d64086055a8a3aa4b4c024fc080de148ab )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Wed, 26 Oct 2022 02:23:08 +0000 (19:23 -0700)]
gh-84747: Add `async for` comment for StreamReader (GH-98633)
(cherry picked from commit
4196ee5c8b489f457874759ee22c9237e08f85c4 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Wed, 26 Oct 2022 00:02:48 +0000 (17:02 -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 14:15:07 +0000 (07:15 -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 14:12:59 +0000 (07:12 -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 13:48:41 +0000 (06:48 -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>
Erlend E. Aasland [Tue, 25 Oct 2022 12:23:38 +0000 (14:23 +0200)]
[3.10] gh-94328: Update macOS installer to use SQLite 3.39.4. (GH-98639) (#98647)
[3.10] 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>
Dong-hee Na [Tue, 25 Oct 2022 03:02:47 +0000 (12:02 +0900)]
[3.10] gh-98456: Replace deprecated `set-output` with up-to-date vers… (gh-98564)
[3.10] 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>
Miss Islington (bot) [Mon, 24 Oct 2022 20:42:20 +0000 (13:42 -0700)]
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>
Miss Islington (bot) [Mon, 24 Oct 2022 18:17:33 +0000 (11:17 -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:01:37 +0000 (11:01 -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:54:35 +0000 (10:54 -0700)]
gh-98500: Fix typing docs for `*View` classes (GH-98511)
(cherry picked from commit
1a217f9ffc6d014536c08d7fb0136d117b8a0add )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sun, 23 Oct 2022 14:11:29 +0000 (07:11 -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) [Fri, 21 Oct 2022 23:28:25 +0000 (16:28 -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>
Theo Buehler [Fri, 21 Oct 2022 19:26:01 +0000 (21:26 +0200)]
[3.10] gh-98517: Fix buffer overflows in _sha3 module (#98519)
This is a port of the applicable part of XKCP's fix [1] for
CVE-2022-37454 and avoids the segmentation fault and the infinite
loop in the test cases published in [2].
[1]: https://github.com/XKCP/XKCP/commit/
fdc6fef075f4e81d6b1bc38364248975e08e340a
[2]: https://mouha.be/sha-3-buffer-overflow/
Regression test added by: Gregory P. Smith [Google LLC] <greg@krypto.org>
Miss Islington (bot) [Thu, 20 Oct 2022 23:55:51 +0000 (16:55 -0700)]
[3.10] gh-97514: Don't use Linux abstract sockets for multiprocessing (GH-98501) (GH-98503)
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:29:21 +0000 (14:29 -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:18:09 +0000 (07:18 -0700)]
CODEOWNERS: Become a typing code owner (GH-98480)
(cherry picked from commit
cb93b4aee5eb12dc6c4b2dccc81a2e5ace3ea4de )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Thu, 20 Oct 2022 11:53:53 +0000 (04:53 -0700)]
[3.10] [doc] Improve logging cookbook example. (GH-98481) (GH-98482)
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Vinay Sajip [Wed, 19 Oct 2022 21:56:26 +0000 (22:56 +0100)]
[3.10] [doc] Refresh the venv introduction documentation, and correct… (GH-98466)
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:45:25 +0000 (08:45 -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>
Miss Islington (bot) [Wed, 19 Oct 2022 09:57:18 +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:40:40 +0000 (23:40 -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) [Tue, 18 Oct 2022 15:39:06 +0000 (08:39 -0700)]
[3.10] gh-93858: Prevent error when activating venv in nested fish instances (GH-93931) (GH-98403)
Co-authored-by: Thomas B. Brunner <thomasbbrunner@gmail.com>
Miss Islington (bot) [Tue, 18 Oct 2022 15:36:23 +0000 (08:36 -0700)]
[3.10] gh-98331: Update bundled pip to 22.3 (GH-98332) (gh-98399)
C.A.M. Gerlach [Mon, 17 Oct 2022 23:49:47 +0000 (18:49 -0500)]
[3.10] Docs: Fix backtick errors found by sphinx-lint (GH-97998) (#98373)
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 16:13:37 +0000 (09:13 -0700)]
gh-98174: Handle EPROTOTYPE under macOS in test_sendfile_fallback_close_peer_in_the_middle_of_receiving (GH-98316)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
(cherry picked from commit
3e82ad05b18d004e4d01fdb643344d6a2bf11900 )
Co-authored-by: fancidev <fancidev@gmail.com>
Miss Islington (bot) [Sun, 16 Oct 2022 17:13:28 +0000 (10:13 -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 15:33:33 +0000 (08:33 -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>
Jelle Zijlstra [Sun, 16 Oct 2022 04:08:46 +0000 (21:08 -0700)]
[3.10] docs(typing): harmonize "See PEP x for more details" (GH-97927). (#98293)
(cherry picked from commit
02389658a4751a0166e2ed22be112b646378a01b )
Co-authored-by: Simon Legner <Simon.Legner@gmail.com>
Vinay Sajip [Sat, 15 Oct 2022 20:59:13 +0000 (21:59 +0100)]
[3.10] [doc] Update logging cookbook with an example of custom handli… (GH-98299)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Sat, 15 Oct 2022 15:40:43 +0000 (08:40 -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:33:19 +0000 (08:33 -0700)]
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) [Fri, 14 Oct 2022 16:22:19 +0000 (09:22 -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:14 +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 12:05:18 +0000 (05:05 -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>
Julien Palard [Wed, 12 Oct 2022 19:26:27 +0000 (21:26 +0200)]
[3.10] gh-86404: Doc CI: Disable suspicious checks. (GH-26575) (GH-98221)
gh-86404: Doc CI: Disable suspicious checks.
Miss Islington (bot) [Wed, 12 Oct 2022 16:12:14 +0000 (09:12 -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:07:49 +0000 (09:07 -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:50:15 +0000 (21:50 -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:06:40 +0000 (21:06 -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:49:23 +0000 (19:49 -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:48:39 +0000 (19:48 -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>
Pablo Galindo [Tue, 11 Oct 2022 17:27:10 +0000 (18:27 +0100)]
Post 3.10.8
Pablo Galindo [Tue, 11 Oct 2022 11:21:06 +0000 (12:21 +0100)]
Python 3.10.8
Ezio Melotti [Mon, 10 Oct 2022 20:26:38 +0000 (22:26 +0200)]
[3.10] Auto-cancel old builds when new commit pushed to branch (GH-98009) (#98163)
* 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>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 10 Oct 2022 20:09:27 +0000 (13:09 -0700)]
[3.10] gh-88452: Add a warning about non-portability of environments. (GH-98155) (GH-98156)
Ezio Melotti [Mon, 10 Oct 2022 19:46:09 +0000 (21:46 +0200)]
[3.10] ci: add GitHub token permissions (GH-92999) (#98161)
* ci: add GitHub token permissions (#92999)
(cherry picked from commit
b96e20c1d9be4e6d5ea3e48c9c97e5ecd02f6055 )
* [3.10] ci: add GitHub token permissions (GH-92999).
(cherry picked from commit
b96e20c1d9be4e6d5ea3e48c9c97e5ecd02f6055 )
Co-authored-by: Varun Sharma <varunsh@stepsecurity.io>
Co-authored-by: Varun Sharma <varunsh@stepsecurity.io>
Miss Islington (bot) [Mon, 10 Oct 2022 14:01:17 +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:17 +0000 (01:50 -0700)]
doc: remove a misleading statement. (GH-98093)
(cherry picked from commit
571e23d99157ed7ad67ca2334a396fc9ddbe07ec )
Co-authored-by: Julien Palard <julien@palard.fr>
Senthil Kumaran [Mon, 10 Oct 2022 06:36:51 +0000 (23:36 -0700)]
[3.10] bpo-43564: preserve original exception in args of FTP URLError (GH-24938) (#98138)
* 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>
Co-authored-by: Carl Meyer <carl@oddbird.net>
Miss Islington (bot) [Mon, 10 Oct 2022 01:34:53 +0000 (18:34 -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) [Mon, 10 Oct 2022 01:02:49 +0000 (18:02 -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>
Nikita Sobolev [Sun, 9 Oct 2022 14:02:39 +0000 (17:02 +0300)]
[3.10] gh-94808: Cover `PyObject_PyBytes` case with custom `__bytes__` method (GH-96610) (#98121)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>.
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
(cherry picked from commit
e39ae6bef2c357a88e232dcab2e4b4c0f367544b )
Serhiy Storchaka [Sun, 9 Oct 2022 11:21:10 +0000 (14:21 +0300)]
[3.10] Add more syslog tests (GH-97953). (GH-98101)
(cherry picked from commit
cae7d1d7a713f8267daf5e4f2fff5cb1dad02c7c )
Miss Islington (bot) [Sun, 9 Oct 2022 02:16:10 +0000 (19:16 -0700)]
[3.10] Minor edits to the Descriptor HowTo Guide (GH-24901) (GH-98114)
Miss Islington (bot) [Sat, 8 Oct 2022 22:18:44 +0000 (15:18 -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>
Miss Islington (bot) [Sat, 8 Oct 2022 08:12:01 +0000 (01:12 -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:03:33 +0000 (00:03 -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 06:57:31 +0000 (23:57 -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:45 +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:07:09 +0000 (21:07 -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 03:59:48 +0000 (20:59 -0700)]
[3.10] gh-96288: Add a sentence to `os.mkdir`'s docstring. (GH-96271). (#98066)
(cherry picked from commit
1523c9e9d47e7d67e4889987ff0f38eb7b881fdd )
Co-authored-by: Hagai Helman Tov <hagai.helman@gmail.com>
Jelle Zijlstra [Sat, 8 Oct 2022 03:59:10 +0000 (20:59 -0700)]
[3.10] gh-96073: Fix installed tests by adding to Makefile.pre.in (#98072)
This was broken in #98045 but already fixed on main.
Miss Islington (bot) [Sat, 8 Oct 2022 03:15:08 +0000 (20:15 -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 02:00:35 +0000 (19:00 -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 23:02:43 +0000 (16:02 -0700)]
[3.10] gh-91708: Revert params note in urllib.parse.urlparse table (GH-96699) (#98053)
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 22:41:06 +0000 (15:41 -0700)]
[3.10] gh-94808: Cover `%p` in `PyUnicode_FromFormat` (GH-96677) (#98032)
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 22:38:35 +0000 (15:38 -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:36:21 +0000 (13:36 -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:29 +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:30:39 +0000 (12:30 -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 19:03:36 +0000 (12:03 -0700)]
[3.10] gh-96959: Update HTTP links which are redirected to HTTPS (GH-98039) (#98050)
(cherry picked from commit
c81c64ca58822156beba79dfd3035bf2a5b7354e )
Co-authored-by: 180909 <734461790@qq.com>
Miss Islington (bot) [Fri, 7 Oct 2022 18:21:44 +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:54:54 +0000 (10:54 -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>
Christopher Chianelli [Fri, 7 Oct 2022 14:35:41 +0000 (10:35 -0400)]
[3.10] gh-71316: Update dis documentation to include changes to jump arguments (GH-95798). (GH-98029)
(cherry picked from commit
6592a62ec2939323b895c85780da7fd73a640da3 )
Co-authored-by: Christopher Chianelli <cchianel@redhat.com>
Miss Islington (bot) [Fri, 7 Oct 2022 04:50:44 +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 00:59:09 +0000 (17:59 -0700)]
[3.10] gh-97943: PyFunction_GetAnnotations should return a borrowed reference. (GH-97949) (GH-97989)
gh-97943: PyFunction_GetAnnotations should return a borrowed reference. (GH-97949)
(cherry picked from commit
6bfb0be80486c614cd60dce44c9fe7b3e6c76e3b )
Co-authored-by: larryhastings <larry@hastings.org>