]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Wed, 22 Feb 2023 11:42:28 +0000 (03:42 -0800)]
[3.10] gh-101936: Update the default value of fp from io.StringIO to io.BytesIO (gh-102100) (#102118)
gh-101936: Update the default value of fp from io.StringIO to io.BytesIO (gh-102100)
(cherry picked from commit
0d4c7fcd4f078708a5ac6499af378ce5ee8eb211 )
Co-authored-by: Long Vo <long.vo@linecorp.com>
Miss Islington (bot) [Wed, 22 Feb 2023 10:24:18 +0000 (02:24 -0800)]
[3.10] gh-102135: Update turtle docs to rename wikipedia demo to rosette (GH-102137) (#102139)
Co-authored-by: somebody <98094921+UndoneStudios@users.noreply.github.com>
Miss Islington (bot) [Wed, 22 Feb 2023 01:36:00 +0000 (17:36 -0800)]
[3.10] gh-95672 fix typo SkitTest to SkipTest (gh-102119) (gh-102122)
gh-95672 fix typo SkitTest to SkipTest (gh-102119)
(cherry picked from commit
d5c7954d0c3ff874d2d27d33dcc207bb7356f328 )
Co-authored-by: HyunKyun Moon <hyunkyun.moon@linecorp.com>
Miss Islington (bot) [Tue, 21 Feb 2023 10:43:48 +0000 (02:43 -0800)]
gh-100556: Improve clarity of `or` docs (GH-100589)
(cherry picked from commit
b40dd71241f092d90c192ebff5d58cbd7e84dc52 )
Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Tue, 21 Feb 2023 10:31:51 +0000 (02:31 -0800)]
gh-101777: Make `PriorityQueue` docs slightly clearer (GH-102026)
Adjust wording slightly, and use min(entries) instead of
sorted(list(entries))[0] as an example.
(cherry picked from commit
350ba7c07f8983537883e093c5c623287a2a22e5 )
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
Miss Islington (bot) [Tue, 21 Feb 2023 03:39:30 +0000 (19:39 -0800)]
[3.10] gh-101961 fileinput.hookcompressed should not set the encoding value for the binary mode (gh-102068) (#102099)
gh-101961 fileinput.hookcompressed should not set the encoding value for the binary mode (gh-102068)
(cherry picked from commit
6f25657b83d7a680a97849490f6e973b3a695e1a )
Co-authored-by: Gihwan Kim <gihwan.kim@linecorp.com>
Jason R. Coombs [Mon, 20 Feb 2023 23:21:48 +0000 (18:21 -0500)]
[3.10] gh-101566: Sync with zipp 3.14. (GH-102018). (GH-102091)
(cherry picked from commit
36854bbb240e417c0df6f0014924fcc899388186 )
Includes the bugfix only.
Automerge-Triggered-By: GH:jaraco
Miss Islington (bot) [Mon, 20 Feb 2023 16:22:13 +0000 (08:22 -0800)]
gh-101981: Apply HOMEBREW related environment variables (gh-102074)
(cherry picked from commit
ed01addb59a554804995303ad3e7bf0c6067737b )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Dong-hee Na [Mon, 20 Feb 2023 15:43:33 +0000 (00:43 +0900)]
[3.10] gh-101981: Fix Ubuntu SSL tests with OpenSSL (3.1.0-beta1) CI issue (gh-102079)
Miss Islington (bot) [Mon, 20 Feb 2023 14:52:25 +0000 (06:52 -0800)]
[3.10] gh-101981: Build macOS as recommended by the devguide (GH-102070) (#102073)
gh-101981: Build macOS as recommended by the devguide (GH-102070)
(cherry picked from commit
27136310414965a3ea7f835e416cf74b91cefb48 )
Miss Islington (bot) [Sun, 19 Feb 2023 19:35:09 +0000 (11:35 -0800)]
gh-99735: Use required=True in argparse subparsers example (GH-100927)
(cherry picked from commit
6aab56f3c2ee331116eba242d2fcdca592577328 )
Co-authored-by: Patricio Paez <nospam@pp.com.mx>
Miss Islington (bot) [Sun, 19 Feb 2023 10:41:53 +0000 (02:41 -0800)]
gh-100210: Correct the comment link for unescaping HTML (GH-100212)
(cherry picked from commit
9a07eff628c1cd88b7cdda88a8fd0db3fe7ea552 )
Co-authored-by: Jean-Christophe Amiel <jeanchristophe.amiel@gmail.com>
gh-100210: correct the comment link for unescaping HTML
Miss Islington (bot) [Sun, 19 Feb 2023 01:02:18 +0000 (17:02 -0800)]
Fix incorrectly documented attribute in csv docs (GH-101250)
(cherry picked from commit
36b670908b3546f46283aae4dbf311e53289f3d1 )
Co-authored-by: Reza Rastak <rezarastak@users.noreply.github.com>
Brian Skinn [Sat, 18 Feb 2023 23:57:41 +0000 (18:57 -0500)]
[3.10] gh-85747: Active voice & suggested edits, 'running/stopping loop' & 'callbacks' subsections of asyncio-eventloop.rst (gh-100270) (#102005)
Note: The `timeout` parameter was not added until Python 3.12.
(cherry picked from commit
c4de6b1d52304a0a9cdfafc1dad5098993710404 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sat, 18 Feb 2023 01:13:33 +0000 (17:13 -0800)]
gh-101967: add a missing error check (GH-101968)
(cherry picked from commit
89413bbccb9261b72190e275eefe4b0d49671477 )
Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
Miss Islington (bot) [Fri, 17 Feb 2023 21:24:42 +0000 (13:24 -0800)]
gh-100226: Clarify StreamReader.read behavior (GH-101807)
(cherry picked from commit
77d95c83733722ada35eb1ef89ae5b84a51ddd32 )
Co-authored-by: Jan Gosmann <jan@hyper-world.de>
Miss Islington (bot) [Fri, 17 Feb 2023 19:40:20 +0000 (11:40 -0800)]
gh-101992: update plistlib examples to be runnable (GH-101994)
* gh-101992: update plistlib examples to be runnable
* Update Doc/library/plistlib.rst
---------
(cherry picked from commit
a1723caabfcdca5d675c4cb04554fb04c7edf601 )
Co-authored-by: Dustin Rodrigues <dust.rod@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 17 Feb 2023 08:51:24 +0000 (00:51 -0800)]
gh-101973: Fix parameter reference for PyModule_FromDefAndSpec (GH-101976)
(cherry picked from commit
a3bb7fbe7eecfae6bf7b2f0912f9b2b12fac8db1 )
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Miss Islington (bot) [Thu, 16 Feb 2023 15:22:23 +0000 (07:22 -0800)]
gh-93573: Replace wrong example domains in configparser doc (GH-93574)
* Replace bitbucket.org domain by forge.example
* Update example to python.org
* Use explicitly invalid domain
topsecret.server.com domain is not controled by PSF. It's replaced by invalid topsecret.server.example domain. It follows RFC 2606, which advise .example as TLD for documentation.
(cherry picked from commit
924a3bfa28578802eb9ca77a66fb5d4762a62f14 )
Co-authored-by: sblondon <stephane.blondon@gmail.com>
Miss Islington (bot) [Tue, 14 Feb 2023 10:47:49 +0000 (02:47 -0800)]
GH-101898: Fix missing term references for hashable definition (GH-101899)
Fix missing term references for hashable definition
(cherry picked from commit
3690688149dca11589af59b7704541336613199a )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Miss Islington (bot) [Mon, 13 Feb 2023 09:19:20 +0000 (01:19 -0800)]
Correct trivial grammar in reset_mock docs (GH-101861)
(cherry picked from commit
a1f08f5f19753c7c9295f51b5ae1262c7a1c838f )
Co-authored-by: Steve Kowalik <steven@wedontsleep.org>
Miss Islington (bot) [Sat, 11 Feb 2023 00:24:42 +0000 (16:24 -0800)]
[3.10] gh-101390: Fix docs for `imporlib.util.LazyLoader.factory` to properly call it a class method (GH-101391) (GH-101814)
gh-101390: Fix docs for `imporlib.util.LazyLoader.factory` to properly call it a class method (GH-101391)
(cherry picked from commit
17143e2c30ae5e51945e04eeaec7ebb0e1f07fb5 )
Co-authored-by: busywhitespace <busywhitespace@tuta.io>
Miss Islington (bot) [Fri, 10 Feb 2023 22:26:34 +0000 (14:26 -0800)]
Docs: Fix getstatus() -> getcode() typos (GH-101296)
(cherry picked from commit
61f2be08661949e2f6dfc94143436297e60d47de )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Erlend E. Aasland [Fri, 10 Feb 2023 21:23:00 +0000 (22:23 +0100)]
[3.10] gh-101759: Update Windows installer to SQLite 3.40.1 (GH-101762) (#101792)
(cherry picked from commit
5d15224011217487e1a174c144af0e5f5826c17c )
Erlend E. Aasland [Fri, 10 Feb 2023 21:21:20 +0000 (22:21 +0100)]
[3.10] Docs: use parameter list for sqlite3.Cursor.execute* (GH-101782) (#101808)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
(cherry picked from commit
2037ebf81bd4bbe5421421b822bd57cfd665a1e9 )
Miss Islington (bot) [Fri, 10 Feb 2023 17:24:30 +0000 (09:24 -0800)]
gh-101517: make bdb avoid looking up in linecache with lineno=None (GH-101787)
(cherry picked from commit
366b94905869d680b3f1d4801fb497e78811e511 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Fri, 10 Feb 2023 07:54:58 +0000 (23:54 -0800)]
gh-101759: Update macOS installer to SQLite 3.40.1 (GH-101761)
(cherry picked from commit
d40a23c0a11060ba7fa076d50980c18a11a13a40 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Steve Dower [Thu, 9 Feb 2023 19:29:14 +0000 (19:29 +0000)]
gh-101726: Update the OpenSSL version to 1.1.1t (GH-101727)
Fixes CVE-2023-0286 (High) and a couple of Medium security issues.
https://www.openssl.org/news/secadv/
20230207 .txt
---------
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Wed, 8 Feb 2023 23:45:17 +0000 (15:45 -0800)]
Apply suggestions from code review
Miss Islington (bot) [Wed, 8 Feb 2023 14:48:42 +0000 (06:48 -0800)]
gh-101614: Don't treat python3_d.dll as a Python DLL when checking extension modules for incompatibility (GH-101615)
(cherry picked from commit
3a88de7a0af00872d9d57e1d98bc2f035cb15a1c )
Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
Miss Islington (bot) [Wed, 8 Feb 2023 11:40:40 +0000 (03:40 -0800)]
[3.10] gh-100933: Improve `check_element` helper in `test_xml_etree` (GH-100934) (#101687)
Items checked by this test are always `str` and `dict` instances.
(cherry picked from commit
eb49d32b9af0b3b01a5588626179187f11d145c9 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Steve Dower [Wed, 8 Feb 2023 10:05:01 +0000 (10:05 +0000)]
[3.10] Fix MSI build PlatformToolset detection (#101651)
Fix MSI build PlatformToolset detection
Miss Islington (bot) [Wed, 8 Feb 2023 10:04:15 +0000 (02:04 -0800)]
[3.10] gh-47937: Note that Popen attributes are read-only (GH-93070) (#101683)
* Note that Popen attributes aren't meant to be set by users by rewording the text about the attributes.
* Also update some universal_newlines references to mention the modern text parameter name while in the area.
(cherry picked from commit
027adf42cd85db41fee05b0a40d89ef822876c97 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Oleg Iarygin [Wed, 8 Feb 2023 10:02:54 +0000 (14:02 +0400)]
[3.10] gh-97725: Fix documentation for the default file of `asyncio.Task.print_stack` (#101652) (#101654)
(cherry picked from commit
f87f6e23964d7a4c38b655089cda65538a24ec36 )
Pablo Galindo [Wed, 8 Feb 2023 09:59:32 +0000 (09:59 +0000)]
Post 3.10.10
Pablo Galindo [Tue, 7 Feb 2023 12:03:42 +0000 (12:03 +0000)]
Python 3.10.10
Miss Islington (bot) [Mon, 6 Feb 2023 22:10:23 +0000 (14:10 -0800)]
GH-101616: Mention the Docs Discourse forum in the "reporting docs issues" (GH-101617)
Fixes https://github.com/python/cpython/issues/101616
(cherry picked from commit
949c58f945b93af5b7bb70c6448e940da669065d )
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
Miss Islington (bot) [Mon, 6 Feb 2023 10:32:58 +0000 (02:32 -0800)]
gh-101372: Fix unicodedata.is_normalized to properly handle the UCD 3… (gh-101388)
(cherry picked from commit
9ef7e75434587fc8f167d73eee5dd9bdca62714b )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Sun, 5 Feb 2023 19:46:50 +0000 (11:46 -0800)]
gh-101334: Don't force USTAR format in test_tarfile. (GH-101572)
That causes the test to fail when run using a high UID as that ancient format
cannot represent it. The current default (PAX) and the old default (GNU) both
support high UIDs.
(cherry picked from commit
ffcb8220d7a8c8ca169b467d9e4a752874f68af2 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Sat, 4 Feb 2023 20:09:29 +0000 (12:09 -0800)]
[3.10] [3.11] gh-99952: fix refcount issues in ctypes.Structure from_param() result (GH-101339) (#101340)
[3.11] gh-99952: [ctypes] fix refcount issues in from_param() result. (GH-100169)
Fixes a reference counting issue with `ctypes.Structure` when a `from_param()` method call is used and the structure size is larger than a C pointer `sizeof(void*)`.
This problem existed for a very long time, but became more apparent in 3.8+ by change likely due to garbage collection cleanup timing changes..
(cherry picked from commit
dfad678d7024ab86d265d84ed45999e031a03691 )
(cherry picked from commit
fa7c37af4936abfe34aa261d6ed9703bc5842ad4 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Yukihiro Nakadaira <yukihiro.nakadaira@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Sat, 4 Feb 2023 03:57:34 +0000 (19:57 -0800)]
GH-56426: Add cross-reference to the documentation for faulthandler, traceback, and pdb. (GH-101157)
(cherry picked from commit
cef9de62b8bf5e2d11d5a074012dfa81dc4ea935 )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Steve Dower [Fri, 3 Feb 2023 18:54:48 +0000 (18:54 +0000)]
gh-101522: Allow overriding Windows dependencies versions and paths using MSBuild properties (GH-101523)
Miss Islington (bot) [Fri, 3 Feb 2023 07:29:56 +0000 (23:29 -0800)]
docs: replace PyPI description with link (GH-101506)
(cherry picked from commit
45d014e03ba7ba4c9c912120ec36b2aca02061f4 )
Co-authored-by: François Magimel <magimel.francois@gmail.com>
Miss Islington (bot) [Fri, 3 Feb 2023 07:26:05 +0000 (23:26 -0800)]
gh-100920: Update documentation for `asyncio.StreamWriter.wait_closed` (GH-101514)
(cherry picked from commit
5c39daf50b7f388f9b24bb2d6ef415955440bebf )
Co-authored-by: Viet Than <thanhoangviet@gmail.com>
Miss Islington (bot) [Fri, 3 Feb 2023 00:11:31 +0000 (16:11 -0800)]
gh-100925: Move array methods under class in array doc (GH-101485)
* Move array methods under class in array doc
* Fix a few internal references related to the touched lines
(cherry picked from commit
1b6045668d233269f667c4658c7240256f37f111 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Thu, 2 Feb 2023 00:00:21 +0000 (16:00 -0800)]
Docs: improve accuracy of sqlite3 `check_same_thread` parameter (GH-101351)
(cherry picked from commit
ee21110086e277a0ac24f5f768f35847b4db3380 )
Co-authored-by: Marcos Pereira <3464445+marcospgp@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Wed, 1 Feb 2023 05:48:51 +0000 (21:48 -0800)]
gh-98657: [docs] `array.typecodes` is a module-level attribute (GH-98729)
* gh-98657: [docs] `array.typecodes` is a module-level attribute
* Update array.rst
(cherry picked from commit
c144e57b316e97a58ed5ad813c847fa8d2341dd7 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Tue, 31 Jan 2023 15:38:28 +0000 (07:38 -0800)]
gh-101440: fix json snippet error in logging-cookbook.rst (GH-101439)
(cherry picked from commit
20c11f2e600e1c0bf42de4d6f2fb3ce5ccc2587c )
Co-authored-by: Peter Jiping Xie <peter.jp.xie@gmail.com>
Miss Islington (bot) [Tue, 31 Jan 2023 15:28:07 +0000 (07:28 -0800)]
[3.10] gh-99276 - Updated Doc/faq/general.rst (GH-101396) (#101462)
Co-authored-by: Raj <51259329+workingpayload@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Dong-hee Na [Tue, 31 Jan 2023 14:42:22 +0000 (23:42 +0900)]
[3.10] gh-101400: Fix incorrect lineno in exception message on contin… (gh-101448)
Miss Islington (bot) [Tue, 31 Jan 2023 13:36:54 +0000 (05:36 -0800)]
Add JOBS parameter to docs Makefile (GH-101395)
(cherry picked from commit
1a62ae84c687791bc1dfb54d1eb75e1c7277bb04 )
Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
Miss Islington (bot) [Tue, 31 Jan 2023 05:46:43 +0000 (21:46 -0800)]
gh-77607: Improve accuracy of os.path.join docs (GH-101406)
This is a follow-up to GH-100811.
One of the changes in that PR isn't accurate in that
`os.path.join('', '')` will not end in a separator.
This reverts that change to the previous wording that used "only", but
explicitly calls out the case where the last part ends in a separator,
which is what caused confusin in GH-77607 and motivated the change
in GH-100811.
(cherry picked from commit
909a6746939ea1d09fab21f26b558cfd7e3e29a0 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Mon, 30 Jan 2023 20:14:38 +0000 (12:14 -0800)]
gh-101229: Add tests for aliases of imported names (GH-101230)
(cherry picked from commit
28db978d7f134edf6c86f21c42e15003511e7e9b )
Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
Miss Islington (bot) [Mon, 30 Jan 2023 18:10:01 +0000 (10:10 -0800)]
gh-101422: (docs) TarFile default errorlevel argument is 1, not 0 (GH-101424)
(cherry picked from commit
ea232716d3de1675478db3a302629ba43194c967 )
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
Miss Islington (bot) [Mon, 30 Jan 2023 01:52:46 +0000 (17:52 -0800)]
gh-98240: Updated Path.rename docs, when it is atomic (GH-98245)
(cherry picked from commit
0023f51debeeeef483a6362ee12d67c4da086af3 )
Co-authored-by: Mateusz <mateka@users.noreply.github.com>
Miss Islington (bot) [Sun, 29 Jan 2023 21:14:18 +0000 (13:14 -0800)]
Fix trivial typo in shebang example (GH-101385)
The example was showing the current version, but should be pinned to 3.7 to match the example command.
(cherry picked from commit
666c0840dcac9941fa41ec619fef8d45cd849a0b )
Co-authored-by: socal-nerdtastic <37753609+socal-nerdtastic@users.noreply.github.com>
Miss Islington (bot) [Fri, 27 Jan 2023 19:12:00 +0000 (11:12 -0800)]
[3.10] [doc] Add a section on logging handler configuration order. (GH-101380) (GH-101381)
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Miss Islington (bot) [Fri, 27 Jan 2023 17:45:22 +0000 (09:45 -0800)]
[3.10] [doc] Add some notices to logging configuration documentation. (GH-101373) (GH-101375)
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Miss Islington (bot) [Tue, 24 Jan 2023 05:30:29 +0000 (21:30 -0800)]
[docs] Mention how to get/set a bigint PyLong via the C API (GH-101270)
We don't need direct C APIs to get at a bigint representation of PyLong but we
do want the few people who need to understand how.
Additional Author: CAM-Gerlach
(cherry picked from commit
e244401ce508ad391295beb636e499fcc6797a2a )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Mon, 23 Jan 2023 23:27:41 +0000 (15:27 -0800)]
gh-100795: Don't call freeaddrinfo on failure. (GH-101252)
When getaddrinfo returns an error, the output pointer is in an unknown state
Don't call freeaddrinfo on it. See the issue for discussion and details with
links to reasoning. _Most_ libc getaddrinfo implementations never modify the
output pointer unless they are returning success.
(cherry picked from commit
b724ac2fe7fbb5a7a33d639cad8e748f17b325e0 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Sergey G. Brester <github@sebres.de>
Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
Kumar Aditya [Mon, 23 Jan 2023 11:52:38 +0000 (17:22 +0530)]
[3.10] Added asyncio REPL example to docs. (GH-101243) (#101257)
(cherry picked from commit
5d868efde9ea08b39357b962a02a0294aa97689c )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Miss Islington (bot) [Sun, 22 Jan 2023 13:19:10 +0000 (05:19 -0800)]
[3.10] gh-96192: fix os.ismount() to use a path that is str or bytes (GH-96194) (#99456)
gh-96192: fix os.ismount() to use a path that is str or bytes (GH-96194)
(cherry picked from commit
367f552129341796d75fc4cc40edb49405235a2b )
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
Co-authored-by: Christoph Anton Mitterer <calestyo@scientia.org>
Co-authored-by: Eryk Sun <eryksun@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Sat, 21 Jan 2023 19:38:36 +0000 (11:38 -0800)]
[3.10] Bump Azure Pipelines to ubuntu-22.04 (GH-101089) (#101213)
Bump Azure Pipelines to ubuntu-22.04 (GH-101089)
(cherry picked from commit
c22a55c8b4f142ff679880ec954691d5920b7845 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Sat, 21 Jan 2023 11:25:22 +0000 (03:25 -0800)]
gh-101143: Remove references to `TimerHandle` from `asyncio.base_events.BaseEventLoop._add_callback` (GH-101197)
(cherry picked from commit
9e947675ae3dc32f5863e5ed3022301cf7fd79b4 )
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Éric [Sat, 21 Jan 2023 09:10:57 +0000 (04:10 -0500)]
[3.10] gh-95778: add doc missing in some places (GH-100627). (#101065)
(cherry picked from commit
46521826cb1883e29e4640f94089dd92c57efc5b )
Co-authored-by: Éric <earaujo@caravan.coop>
Miss Islington (bot) [Fri, 20 Jan 2023 22:28:35 +0000 (14:28 -0800)]
[3.10] gh-86610: Use attribute directive in docs for pathlib.PurePath (GH-101114) (#101206)
(cherry picked from commit
01093b82037fbae83623581294a0f1cf5b4a44b0 )
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Miss Islington (bot) [Fri, 20 Jan 2023 22:22:21 +0000 (14:22 -0800)]
[3.10] GH-101111: Disambigaute origin of const for store_const and append_const (GH-101121) (#101204)
(cherry picked from commit
9a155138c58cad409e28e34359ba87ec0025b6b7 )
While the documentation for `optparse` mentioned that both `store_const` and
`append_const` store a constant value, it was not clear where this value was
coming from.
A link to `Option.const` makes this explicit.
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Miss Islington (bot) [Fri, 20 Jan 2023 22:17:58 +0000 (14:17 -0800)]
[3.10] Fix minor typos in SSL documentation (GH-101158) (#101202)
(cherry picked from commit
73497690b5debe01ba94ffefbecee034e39e8627 )
Co-authored-by: Simon Robinson <simon@robinson.ac>
Miss Islington (bot) [Fri, 20 Jan 2023 22:16:10 +0000 (14:16 -0800)]
gh-91485: Avoid unnecessary use of non-Python syntax in io docs (GH-101177)
(cherry picked from commit
783d1bc51b886b6135e6a4effb91be207df5f50a )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Fri, 20 Jan 2023 17:42:40 +0000 (09:42 -0800)]
[3.10] Provided better example for logging cookbook (GH-101164) (GH-101183)
Co-authored-by: Vladimir Malinovskii <galqiwi@galqiwi.ru>
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Miss Islington (bot) [Fri, 20 Jan 2023 08:31:15 +0000 (00:31 -0800)]
[3.10] gh-101144: Allow zipfile.Path .open & .read_text encoding to be positional (GH-101179) (GH-101182)
The zipfile.Path open() and read_text() encoding parameter can be supplied as a positional argument without causing a TypeError again. 3.10.0b1 included a regression that made it keyword only.
Documentation update included as users writing code to be compatible with a wide range of versions will need to consider this for some time..
(cherry picked from commit
5927013e47a8c63b70e104152351f3447baa819c )
(cherry picked from commit
efe3a389cabd7295e6e0938767cdc4055c871e3c )
Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
Automerge-Triggered-By: GH:gpshead
Miss Islington (bot) [Fri, 20 Jan 2023 05:06:04 +0000 (21:06 -0800)]
gh-101041: Fix a misspelled name of `utctimetuple` in a doc warning (GH-101042)
(cherry picked from commit
8e9d08b062bbabfe439bc73f82e3d7bb3800189e )
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Miss Islington (bot) [Wed, 18 Jan 2023 09:42:55 +0000 (01:42 -0800)]
Docs: improve sqlite3 placeholders example (GH-101092)
(cherry picked from commit
b84be8d9c0e6eca37be14c38250580251a3ef908 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Tue, 17 Jan 2023 19:53:45 +0000 (11:53 -0800)]
gh-82052: Don't send partial UTF-8 sequences to the Windows API (GH-101103)
Don't send partial UTF-8 sequences to the Windows API
(cherry picked from commit
f34176b77f222726d901595968a4b44456186da4 )
Co-authored-by: Paul Moore <p.f.moore@gmail.com>
Pablo Galindo Salgado [Mon, 16 Jan 2023 23:48:38 +0000 (23:48 +0000)]
[3.10] gh-101046: Fix a potential memory leak in the parser when raising MemoryError (GH-101051). (#101086)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Mon, 16 Jan 2023 11:12:52 +0000 (03:12 -0800)]
gh-101056: Fix memory leak in `formatfloat()` in `bytesobject.c` (GH-101057)
(cherry picked from commit
b1a74a182d8762bda51838401ac92b6ebad9632a )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Nikita Sobolev [Sun, 15 Jan 2023 07:08:59 +0000 (10:08 +0300)]
[3.10] GH-100942: Fix incorrect cast in property_copy(). (GH-100965). (#101009)
(cherry picked from commit
94fc7706b7bc3d57cdd6d15bf8e8c4499ae53a69 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Barry Warsaw [Sun, 15 Jan 2023 05:31:59 +0000 (21:31 -0800)]
[3.10] gh-101021: Document binary parameters as bytes (GH-101024). (#101052)
(cherry picked from commit
49cae39ef020eaf242607bb2d2d193760b9855a6 )
Co-authored-by: Bob Kline <bkline@users.noreply.github.com>
Co-authored-by: Bob Kline <bkline@users.noreply.github.com>
Miss Islington (bot) [Sat, 14 Jan 2023 23:08:32 +0000 (15:08 -0800)]
gh-100668: Clarify how sqlite3 maps parameters onto placeholders (GH-100960)
(cherry picked from commit
206f05a46b426eb374f724f8e7cd42f2f9643bb8 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Fri, 13 Jan 2023 21:57:52 +0000 (13:57 -0800)]
[3.10] GH-100573: Fix server hang caused by os.stat() on named pipe (Windows) (GH-100959) (#101020)
(cherry picked from commit
1bc7a736837272b15ad3a7aa472977bc720d1033 )
Serhiy Storchaka [Fri, 13 Jan 2023 07:34:55 +0000 (09:34 +0200)]
[3.10] gh-100160: Remove any deprecation warnings in asyncio.get_event_loop() (GH-100412) (GH-100970)
Some deprecation warnings will reappear (in a slightly different form) in 3.12.
Co-authored-by: Guido van Rossum <guido@python.org>.
(cherry picked from commit
1b2459dc64b1c3eea89312ea9bf422f8d7c75bb2 )
Nikita Sobolev [Thu, 12 Jan 2023 11:14:27 +0000 (14:14 +0300)]
[3.10] gh-100931: Test all `pickle` protocols in `test_slice` (GH-100932). (GH-100978)
(cherry picked from commit
8795ad1bd0d6ee031543fcaf5a86a60b37950714 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Automerge-Triggered-By: GH:AlexWaygood
Nikita Sobolev [Thu, 12 Jan 2023 11:12:39 +0000 (14:12 +0300)]
[3.10] gh-100871: Improve `copy` module tests (GH-100872) (#100975)
(cherry picked from commit
729ab9b622957fef0e9b494af9a71ab02986c741 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Thu, 12 Jan 2023 00:20:24 +0000 (16:20 -0800)]
GH-100894: Updated the doc for `sys.winver` to clarify its usual contents (GH-100913)
(cherry picked from commit
d9dff4c8b5ab41c47af002ad7fb083c953e75f31 )
Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
Kumar Aditya [Wed, 11 Jan 2023 15:32:02 +0000 (21:02 +0530)]
[3.10] GH-100892: Fix race in clearing `threading.local` (GH-100922). (#100938)
(cherry picked from commit
762745a124cbc297cf2fe6f3ec9ca1840bb2e873 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Tue, 10 Jan 2023 10:39:11 +0000 (02:39 -0800)]
[3.10] gh-100916: Convert argument to appropriate type (GH-100917) (GH-100919)
Co-authored-by: Yao-Ching Huang <tom4996131207@gmail.com>
Hugo van Kemenade [Tue, 10 Jan 2023 09:42:14 +0000 (11:42 +0200)]
[3.10] Fix typos in Doc folder (GH-100880). (#100915)
Co-authored-by: Semen Zhydenko <semen.zhydenko@gmail.com>
Miss Islington (bot) [Tue, 10 Jan 2023 05:37:50 +0000 (21:37 -0800)]
gh-100180: Update macOS installer to OpenSSL 1.1.1s (GH-100908)
(cherry picked from commit
57a5259a438c717755fc667fcbedb515ef8e0c85 )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Tue, 10 Jan 2023 03:42:38 +0000 (19:42 -0800)]
gh-100893: update bpo reference in Mac README (GH-100905)
(cherry picked from commit
be23a202426385ad99dcb2611152783780c7bc42 )
Co-authored-by: Ned Deily <nad@python.org>
Steve Dower [Tue, 10 Jan 2023 00:15:31 +0000 (00:15 +0000)]
gh-100180: Update Windows installer to OpenSSL 1.1.1s (GH-100903)
Miss Islington (bot) [Mon, 9 Jan 2023 21:52:22 +0000 (13:52 -0800)]
bpo-28356: Document os.rename() behavior on Windows for differing volumes (GH-27376)
(cherry picked from commit
e098137cd3250af05f19380590b8dec79dc5942f )
Co-authored-by: Ryan Ozawa <ryan.ozawa21@gmail.com>
Miss Islington (bot) [Mon, 9 Jan 2023 15:54:00 +0000 (07:54 -0800)]
GH-81061: Fix refcount issue when returning `None` from a `ctypes.py_object` callback (GH-13364)
(cherry picked from commit
837ba052672d1a5f85a46c1b6d4b6e7d192af6f3 )
Co-authored-by: dgelessus <dgelessus@users.noreply.github.com>
Ned Deily [Mon, 9 Jan 2023 03:08:08 +0000 (22:08 -0500)]
[3.10] Update copyright year in README (GH-100863) (GH-100865)
Co-authored-by: HARSHA VARDHAN <75431678+Thunder-007@users.noreply.github.com>
Benjamin Peterson [Sun, 8 Jan 2023 23:00:24 +0000 (17:00 -0600)]
[3.10] Update copyright years to 2023. (gh-100850)
* [3.10] Update copyright years to 2023. (gh-100848).
(cherry picked from commit
11f99323c2ae0ec428c370a335695e3d8d4afc1d )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
* Update additional copyright years to 2023.
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Sun, 8 Jan 2023 13:35:40 +0000 (05:35 -0800)]
[3.10] gh-100689: Revert "bpo-41798: pyexpat: Allocate the expat_CAPI on the heap memory (GH-24061)" (GH-100745) (#100847)
gh-100689: Revert "bpo-41798: pyexpat: Allocate the expat_CAPI on the heap memory (GH-24061)" (GH-100745)
* gh-100689: Revert "bpo-41798: pyexpat: Allocate the expat_CAPI on the heap memory (GH-24061)"
This reverts commit
7c83eaa536d2f436ae46211ca48692f576c732f0 .
(cherry picked from commit
b034fd3e5926c63a681a211087b4c666834c7525 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Shantanu [Sun, 8 Jan 2023 09:23:34 +0000 (01:23 -0800)]
[3.10] gh-100776: Fix misleading default value in help(input) (GH-100788) (#100842)
(cherry picked from commit
a2141882f259e21bb09fa0b7cba8142147b9e3d7 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Sun, 8 Jan 2023 09:22:53 +0000 (01:22 -0800)]
gh-100783: fix os.path.join documentation (GH-100811)
- Use "drive", not "drive letter", because of UNC paths
- Previous components are not thrown away from relative drive letters
- Use "segment" instead of "component" for consistency with pathlib
- Other miscellaneous improvements
(cherry picked from commit
53455a319f3f2e5609fca2a313ea356fba318665 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Sun, 8 Jan 2023 08:16:59 +0000 (00:16 -0800)]
gh-100824: Fix typo in the documentation of unittest.TestLoader.testNamePatterns (GH-100825)
(cherry picked from commit
6d3bc4a795e7a60f665e41b2d4b6803f3844fc48 )
Co-authored-by: busywhitespace <busywhitespace@tuta.io>
Alex Waygood [Sat, 7 Jan 2023 20:55:41 +0000 (20:55 +0000)]
[3.10] gh-100673: Removed erroneous note in the get_type_hints docs (#100701) (GH-100826)
Removed erroneous note in the get_type_hints docs
typing.get_type_hints still includes base class type hints.
(cherry picked from commit
deaf090699a7312cccb0637409f44de3f382389b )
Automerge-Triggered-By: GH:AlexWaygood
Miss Islington (bot) [Fri, 6 Jan 2023 14:34:12 +0000 (06:34 -0800)]
gh-99026 update dataclasses docs for when annotations are inspected (gh-100798)
update dataclasses docs for when annotations are inspected
(cherry picked from commit
659c2607f5b44a8a18a0840d1ac39df8a3219dd5 )
Co-authored-by: Akshit Tyagi <37214399+exitflynn@users.noreply.github.com>