]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
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>
Carl Meyer [Fri, 6 Jan 2023 02:15:27 +0000 (19:15 -0700)]
[3.10] gh-90104: avoid RecursionError on recursive dataclass field repr (gh-100756) (GH-100785)
Avoid RecursionError on recursive dataclass field repr
(cherry picked from commit
0a7936a38f0bab1619ee9fe257880a51c9d839d5 )
Automerge-Triggered-By: GH:ericvsmith
Miss Islington (bot) [Fri, 6 Jan 2023 01:56:34 +0000 (17:56 -0800)]
gh-87691: clarify use of anchor in pathlib docs (GH-100782)
This is feedback from https://github.com/python/cpython/pull/100737GH-discussion_r1062968696
This matches the wording from the `os.path.join` docs better:
https://docs.python.org/3/library/os.path.htmlGH-os.path.join
In particular, the previous use of "anchor" was incorrect given the
pathlib definition of "anchor".
(cherry picked from commit
2f2fa03ff3d566b675020787e23de8fb4ca78e99 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Miss Islington (bot) [Thu, 5 Jan 2023 23:04:57 +0000 (15:04 -0800)]
gh-87691: add an absolute path pathlib example in / operator docs (GH-100737)
The behaviour is fully explained a couple paragraphs above, but it may be useful to have a brief example to cover the behaviour.
(cherry picked from commit
1ae619c911ec8e096f83eeb7cc57fcd966950a3d )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Automerge-Triggered-By: GH:hauntsaninja
Miss Islington (bot) [Thu, 5 Jan 2023 03:46:29 +0000 (19:46 -0800)]
GH-100766: Note that locale.LC_MESSAGES is not universal (GH-100768)
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
Miss Islington (bot) [Wed, 4 Jan 2023 23:11:46 +0000 (15:11 -0800)]
gh-100739: Respect mock spec when checking for unsafe prefixes (GH-100740)
(cherry picked from commit
7f1eefc6f4843f0fca60308f557a71af11d18a53 )
Co-authored-by: Christian Klein <167265+cklein@users.noreply.github.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Wed, 4 Jan 2023 21:00:27 +0000 (13:00 -0800)]
[3.10] gh-81611: Improve `range` paragraph in 8.3 of language reference (GH-98353) (#100705)
gh-81611: Improve `range` paragraph in 8.3 of language reference (GH-98353)
(cherry picked from commit
8b1f1251215651c4ef988622345c5cb134e54d69 )
Co-authored-by: 4l4k4z4m <alakazamjoined@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Wed, 4 Jan 2023 15:36:44 +0000 (07:36 -0800)]
docs: fix `ssizeobjargproc` parameters (GH-100736)
(cherry picked from commit
5fb1c08e15b864d8ea9353a0e013166e2e0e2160 )
Co-authored-by: David Lechner <david@lechnology.com>
Miss Islington (bot) [Wed, 4 Jan 2023 08:24:36 +0000 (00:24 -0800)]
GH-86508: skip binding to local addresses of different family in `asyncio.open_connection` (GH-100615)
(cherry picked from commit
ba8dcdbcab5fd9989be6c9a51002394e782c463c )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Irit Katriel [Tue, 3 Jan 2023 22:24:19 +0000 (22:24 +0000)]
[3.10] gh-95882: Add tests for traceback from contextlib context managers (GH-95883) (#100715)
Zachary Ware [Tue, 3 Jan 2023 22:11:18 +0000 (16:11 -0600)]
gh-100700: Remove Date and Release fields in whatsnew/3.9 (GH-100730)
Miss Islington (bot) [Mon, 2 Jan 2023 11:57:22 +0000 (03:57 -0800)]
fix `grammer` -> `grammar` typo in expressions.rst (GH-100683)
(cherry picked from commit
7feb6d2f85d69fbabfc0598d8947124883167f12 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Automerge-Triggered-By: GH:AlexWaygood
Miss Islington (bot) [Mon, 2 Jan 2023 03:21:50 +0000 (19:21 -0800)]
gh-100428: Make int documentation more accurate (GH-100436)
- Remove first link to lexical definition of integer literal, since it
doesn't apply (differs in handling of leading zeros, base needs to be
explicitly specified, unicode digits are allowed)
- Better describe handling of leading zeros, unicode digits, underscores
- Base 0 does not work exactly as like a code literal, since it allows
Unicode digits. Link code literal to lexical definition of integer
literal.
(cherry picked from commit
edfbf56f4ca6588dfd20b53f534a4465e43c82bd )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Sun, 1 Jan 2023 22:35:46 +0000 (14:35 -0800)]
gh-99953: Purge mention of numeric param style from sqlite3 docs (GH-100630)
The PEP-249 numeric style has never been supported by sqlite3.
(cherry picked from commit
b7a68ab824249ebf053b8149ebb83cd8578781c9 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Sun, 1 Jan 2023 15:42:31 +0000 (07:42 -0800)]
gh-100201: Document behavior with a bare `yield` statement (GH-100416)
(cherry picked from commit
1aab269d4acbf0b29573ad0a21c54fddee233243 )
Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Sun, 1 Jan 2023 15:16:25 +0000 (07:16 -0800)]
gh-96773 Fix documentation of socket backlog (GH-96778)
(cherry picked from commit
1d1480fefc6ae77d14d6eff007b180ff5d1cd5d4 )
Co-authored-by: Mehrdad Moradizadeh <mhrddmoradii@gmail.com>
Miss Islington (bot) [Sun, 1 Jan 2023 00:20:53 +0000 (16:20 -0800)]
IDLE - fix module browser test (GH-100647)
(cherry picked from commit
1f6c87ca7b9351b2e5c5363504796fce0554c9b8 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sat, 31 Dec 2022 12:28:36 +0000 (04:28 -0800)]
gh-100633 Tutorial: Fix dataclasses import (GH-100638)
import dataclass not dataclasses from dataclasses
(cherry picked from commit
98308dbeb110198ebe28bdb7720d3671b3e7f57b )
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
Miss Islington (bot) [Sat, 31 Dec 2022 06:31:41 +0000 (22:31 -0800)]
GH-85979: Clarify specification of `object.__await__` (GH-22320)
(cherry picked from commit
f59c7f8edd5ba5f6c1954383542a2292bcf51d91 )
Co-authored-by: Paolo Lammens <lammenspaolo@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Fri, 30 Dec 2022 17:05:40 +0000 (09:05 -0800)]
gh-100616: Document 'attr' parameter for window.vline() in curses module (GH-24961)
(cherry picked from commit
f4fcfdf8c593611f98b9358cc0c5604c15306465 )
Co-authored-by: mathieui <mathieui@users.noreply.github.com>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Thu, 29 Dec 2022 16:15:13 +0000 (08:15 -0800)]
[3.10] gh-100583: Improve the `pydoc` documentation (GH-100590) (#100607)
gh-100583: Improve the `pydoc` documentation (GH-100590)
(cherry picked from commit
7223d50b9785bc7b0cd76dcc68d97dabcbade4b6 )
Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
Miss Islington (bot) [Wed, 28 Dec 2022 21:32:44 +0000 (13:32 -0800)]
GH-100101: Clarify documentation of zip's strict option (GH-100103)
(cherry picked from commit
cf1c09818032df3080c2cd9e7edb5f657213dc83 )
Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
Miss Islington (bot) [Wed, 28 Dec 2022 05:39:53 +0000 (21:39 -0800)]
gh-55688: Add note about ending backslashes for raw strings (GH-94768)
(cherry picked from commit
b95b1b3b25b0a93a22c7d58ac5bd5870e62070a8 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: hauntsaninja <hauntsaninja@gmail.com>
Miss Islington (bot) [Wed, 28 Dec 2022 01:16:53 +0000 (17:16 -0800)]
gh-100553: Improve accuracy of sqlite3.Row iter test (GH-100555)
(cherry picked from commit
3dc48dabd48864039951715816e07986a4828d80 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Jelle Zijlstra [Tue, 27 Dec 2022 04:44:53 +0000 (20:44 -0800)]
[3.10] gh-99535: Add test for inheritance of annotations and update documentation (GH-99990) (#100509)
(cherry picked from commit
f5b7b19bf10724d831285fb04e00f763838bd555 )
Co-authored-by: MonadChains <monadchains@gmail.com>
Miss Islington (bot) [Mon, 26 Dec 2022 15:42:56 +0000 (07:42 -0800)]
[3.10] gh-100520: Fix `rst` markup in `configparser` docstrings (GH-100524) (#100534)
gh-100520: Fix `rst` markup in `configparser` docstrings (GH-100524)
(cherry picked from commit
199507b81a302ea19f93593965b1e5088195a6c5 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Shantanu [Mon, 26 Dec 2022 07:10:48 +0000 (01:10 -0600)]
[3.10] gh-92446: Improve argparse choices docs (GH-94627) (#100529)
Based on the definition of the collections.abc classes, it is more accurate to use "sequence" instead of "container" when describing argparse choices.
(cherry picked from commit
ad3c99e521 )
Co-authored-by: Guy Yagev <yourlefthandman8@gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Shantanu [Sat, 24 Dec 2022 20:39:27 +0000 (14:39 -0600)]
[3.10] gh-100287: Fix unittest.mock.seal with AsyncMock (GH-100496) (#100508)
(cherry picked from commit
e4b43ebb3afbd231a4e5630e7e358aa3093f8677 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Sat, 24 Dec 2022 20:29:41 +0000 (12:29 -0800)]
gh-100472: Fix docs claim that compileall parameters could be bytes (GH-100473)
(cherry picked from commit
046cbc2080360b0b0bbe6ea7554045a6bbbd94bd )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Sat, 24 Dec 2022 20:29:21 +0000 (12:29 -0800)]
[3.10] gh-100474: Fix handling of dirs named index.html in http.server (GH-100504)
Co-authored-by: James Frost <git@frost.cx>
Miss Islington (bot) [Sat, 24 Dec 2022 20:15:46 +0000 (12:15 -0800)]
gh-100428: Make float documentation more accurate (GH-100437)
Previously, the grammar did not accept `float("10")`.
Also implement mdickinson's suggestion of removing the indirection.
(cherry picked from commit
2e1a9ce9890aba748a518a39d01d1ea6d623d0d9 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Sat, 24 Dec 2022 15:32:29 +0000 (07:32 -0800)]
gh-99908: Tutorial: Modernize the 'data-record class' example (GH-100499)
(cherry picked from commit
00afa5066bd45348ed82a38d3442763b2ed1a068 )
Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Sat, 24 Dec 2022 05:30:06 +0000 (21:30 -0800)]
gh-77771: Add enterabs example in sched (GH-92716)
(cherry picked from commit
0f6420640c0f3462e6b76b01a392844676de1fb9 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Sat, 24 Dec 2022 02:14:14 +0000 (18:14 -0800)]
gh-94808: improve test coverage of number formatting (GH-99472)
(cherry picked from commit
7ca45e5ddd493411e61706d07679ea54b954e41b )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Gregory P. Smith [Sat, 24 Dec 2022 02:08:27 +0000 (18:08 -0800)]
[3.10] Correct CVE-2020-10735 documentation (GH-100306). (#100477)
(cherry picked from commit
1cf3d78c92eb07dc09d15cc2e773b0b1b9436825 )
Co-authored-by: Jeremy Paige <ucodery@gmail.com>
Miss Islington (bot) [Fri, 23 Dec 2022 20:39:55 +0000 (12:39 -0800)]
bpo-40447: accept all path-like objects in compileall.compile_file (GH-19883)
(cherry picked from commit
1ecfd1ebf1f53ef6ac82085b25ed09952b470d4e )
Co-authored-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Filipe Laíns <lains@archlinux.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>