]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Sat, 25 Feb 2023 09:58:52 +0000 (01:58 -0800)]
gh-101100: Fix Sphinx warnings in `decimal` module (GH-102125)
(cherry picked from commit
b7c11264476ccc11e4bdf4bd3c3664ccd1b7c5f9 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Ionite [Sat, 25 Feb 2023 03:49:59 +0000 (22:49 -0500)]
[3.11] gh-101765: Fix SystemError / segmentation fault in iter `__reduce__` when internal access of `builtins.__dict__` exhausts the iterator (GH-101769) (#102228)
(cherry picked from commit
54dfa14c5a94b893b67a4d9e9e403ff538ce9023 )
Miss Islington (bot) [Sat, 25 Feb 2023 02:55:48 +0000 (18:55 -0800)]
[3.11] gh-95675: fix uid and gid at test_add_dir_getmember (gh-102207) (gh-102231)
gh-95675: fix uid and gid at test_add_dir_getmember (gh-102207)
(cherry picked from commit
56e93c8020e89e1712aa238574bca2076a225028 )
Co-authored-by: Seonkyo Ok <seonkyo.ok@linecorp.com>
Miss Islington (bot) [Fri, 24 Feb 2023 16:21:40 +0000 (08:21 -0800)]
gh-102105 Fix wording in filterfalse/quantify/filter (GH-102189)
(cherry picked from commit
81bf10e4f20a0f6d36b67085eefafdf7ebb97c33 )
Co-authored-by: Stefan Pochmann <609905+pochmann@users.noreply.github.com>
Miss Islington (bot) [Fri, 24 Feb 2023 02:54:47 +0000 (18:54 -0800)]
gh-102158: Add tests for `softkwlist` (GH-102159)
---------
(cherry picked from commit
9f3ecd1aa3566947648a053bd9716ed67dd9a718 )
Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Thu, 23 Feb 2023 17:11:45 +0000 (09:11 -0800)]
gh-101981: Consolidate macOS configure steps in CI (GH-102131)
(cherry picked from commit
e07b304bb004e1298283c82bd135dd5ef96a90cc )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Automerge-Triggered-By: GH:erlend-aasland
Miss Islington (bot) [Thu, 23 Feb 2023 14:36:28 +0000 (06:36 -0800)]
gh-102151: Correctly fetch CONFIG_ARGS in Tools/freeze/test/freeze.py (GH-102152)
(cherry picked from commit
c3a178398c199038f3a0891d09f0363ec73f3b38 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Thu, 23 Feb 2023 13:38:08 +0000 (05:38 -0800)]
Fix typo in `Py_GetPythonHome` signature (GH-102168)
(cherry picked from commit
9bba8035bd99813203cb3b0de218f9cc3bcdaf2f )
Co-authored-by: Tanner Firl <105078804+TannerFirl@users.noreply.github.com>
Miss Islington (bot) [Thu, 23 Feb 2023 13:35:59 +0000 (05:35 -0800)]
[3.11] gh-100226: Clarify StreamReader.read behavior (GH-101807) (#102001)
gh-100226: Clarify StreamReader.read behavior (GH-101807)
(cherry picked from commit
77d95c83733722ada35eb1ef89ae5b84a51ddd32 )
Co-authored-by: Jan Gosmann <jan@hyper-world.de>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Thu, 23 Feb 2023 00:02:31 +0000 (16:02 -0800)]
Fix syntax error in struct doc example (GH-102160)
Missing closing ) reported on Discuss by Chukwudi Nwachukwu.
(cherry picked from commit
8f647477f0ab5362741d261701b5bcd76bd69ec1 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Wed, 22 Feb 2023 21:39:05 +0000 (13:39 -0800)]
GH-101777: `queue.rst`: use 2 spaces after a period to be consistent. (GH-102143)
(cherry picked from commit
96bf24380e44dfa1516d65480250995e737c0cb9 )
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
Miss Islington (bot) [Wed, 22 Feb 2023 19:11:59 +0000 (11:11 -0800)]
[3.11] gh-97786: Fix compiler warnings in pytime.c (GH-101826) (#102062)
gh-97786: Fix compiler warnings in pytime.c (GH-101826)
Fixes compiler warnings in pytime.c.
(cherry picked from commit
b1b375e2670a58fc37cb4c2629ed73b045159918 )
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Wed, 22 Feb 2023 11:42:04 +0000 (03:42 -0800)]
[3.11] gh-101936: Update the default value of fp from io.StringIO to io.BytesIO (gh-102100) (gh-102117)
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:25:17 +0000 (02:25 -0800)]
[3.11] gh-102135: Update turtle docs to rename wikipedia demo to rosette (GH-102137) (GH-102138)
(cherry picked from commit
8d46c7ed5e83e22d55fe4f4e6e873d87f340c1dc )
Co-authored-by: somebody <98094921+UndoneStudios@users.noreply.github.com>
Automerge-Triggered-By: GH:hugovk
Miss Islington (bot) [Wed, 22 Feb 2023 01:34:51 +0000 (17:34 -0800)]
[3.11] gh-95672 fix typo SkitTest to SkipTest (gh-102119) (#102121)
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 15:38:27 +0000 (07:38 -0800)]
gh-102008: simplify test_except_star by using sys.exception() instead of sys.exc_info() (GH-102009)
(cherry picked from commit
c2b85a95a50687a2e5d1873e17266370876e77e9 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Tue, 21 Feb 2023 13:01:15 +0000 (05:01 -0800)]
[3.11] gh-101967: add a missing error check (GH-101968) (#102015)
gh-101967: add a missing error check (GH-101968)
(cherry picked from commit
89413bbccb9261b72190e275eefe4b0d49671477 )
Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Tue, 21 Feb 2023 11:06:20 +0000 (03:06 -0800)]
gh-102011: use sys.exception() instead of sys.exc_info() in docs where possible (GH-102012)
(cherry picked from commit
4d3bc89a3f54c4f09756a9b644b3912bf54191a7 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Tue, 21 Feb 2023 10:45:49 +0000 (02:45 -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:32:58 +0000 (02:32 -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:16 +0000 (19:39 -0800)]
[3.11] gh-101961 fileinput.hookcompressed should not set the encoding value for the binary mode (gh-102068) (#102098)
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>
Miss Islington (bot) [Mon, 20 Feb 2023 23:52:02 +0000 (15:52 -0800)]
[3.11] gh-100210: Correct the comment link for unescaping HTML (GH-100212) (#102044)
gh-100210: Correct the comment link for unescaping HTML (GH-100212)
(cherry picked from commit
9a07eff628c1cd88b7cdda88a8fd0db3fe7ea552 )
gh-100210: correct the comment link for unescaping HTML
Co-authored-by: Jean-Christophe Amiel <jeanchristophe.amiel@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Jason R. Coombs [Mon, 20 Feb 2023 23:22:03 +0000 (18:22 -0500)]
[3.11] gh-101566: Sync with zipp 3.14. (GH-102018). (GH-102090)
(cherry picked from commit
36854bbb240e417c0df6f0014924fcc899388186 )
Backport of bugfix only.
Automerge-Triggered-By: GH:jaraco
Miss Islington (bot) [Mon, 20 Feb 2023 17:33:00 +0000 (09:33 -0800)]
gh-88233: zipfile: handle extras after a zip64 extra (GH-96161)
Previously, any data _after_ the zip64 extra would be removed.
With many new tests.
Fixes GH-88233
(cherry picked from commit
59e86caca812fc993c5eb7dc8ccd1508ffccba86 )
Co-authored-by: Tim Hatch <tim@timhatch.com>
Automerge-Triggered-By: GH:jaraco
Miss Islington (bot) [Mon, 20 Feb 2023 16:24:49 +0000 (08:24 -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>
Miss Islington (bot) [Mon, 20 Feb 2023 13:33:21 +0000 (05:33 -0800)]
gh-101981: Build macOS as recommended by the devguide (GH-102070)
(cherry picked from commit
27136310414965a3ea7f835e416cf74b91cefb48 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Automerge-Triggered-By: GH:erlend-aasland
Miss Islington (bot) [Sun, 19 Feb 2023 19:11:40 +0000 (11:11 -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 01:04:01 +0000 (17:04 -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:06 +0000 (18:57 -0500)]
[3.11] gh-85747: Active voice & suggested edits, 'running/stopping loop' & 'callbacks' subsections of asyncio-eventloop.rst (GH-100270) (#102006)
Note: the `timeout` parameter was not added until 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>.
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
Miss Islington (bot) [Fri, 17 Feb 2023 21:44:45 +0000 (13:44 -0800)]
gh-101739: [Enum] update docs - default boundary for Flag is CONFORM (GH-101746)
(cherry picked from commit
7f1c72175600b21c1c840e8988cc6e6b4b244582 )
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
Miss Islington (bot) [Fri, 17 Feb 2023 19:39:14 +0000 (11:39 -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:50:46 +0000 (00:50 -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:25:31 +0000 (07:25 -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:45:42 +0000 (02:45 -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 20:59:12 +0000 (12:59 -0800)]
gh-101849: Add upgrade codes for old versions of launcher that ended up with later version numbers (GH-101877)
(cherry picked from commit
0c6fe81dce9d6bb1dce5e4503f1b42bc5355ba24 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 13 Feb 2023 09:20:18 +0000 (01:20 -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) [Sun, 12 Feb 2023 17:28:20 +0000 (09:28 -0800)]
gh-101845: pyspecific: Fix i18n for availability directive (GH-101846)
pyspecific: Fix i18n for availability directive
If the directive has content, the previous code would nest paragraph
nodes from that content inside a general paragraph node, which confuses
Sphinx and leads it to drop the content when translating. Instead, use a
container node for the body.
Also use set_source_info so that any warnings have location info.
(cherry picked from commit
6ef6915d3530e844243893f91bf4bd702dfef570 )
Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
Miss Islington (bot) [Sun, 12 Feb 2023 06:33:13 +0000 (22:33 -0800)]
gh-89792: Limit test_tools freeze test build parallelism based on the number of cores (GH-101841)
unhardcode freeze test build parallelism. base it on the number of cpus, don't use more than max(2, os.cpu_count()/3).
(cherry picked from commit
dfc2e065a2e71011017077e549cd2f9bf4944c54 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Sun, 12 Feb 2023 05:18:07 +0000 (21:18 -0800)]
gh-89792: Prevent test_tools from copying 1000M of "source" in freeze test (GH-101837)
Prevent test_tools from copying 1000M of "source"
It doesn't need a git repo, just the checkout. We skip .git metadata, Doc/build, Doc/venv, and `__pycache__` subdirs, that developers often have in their clients to reduce the size of the source tree copy ten-fold.
This should significantly reduce IO and presumably time on buildbots during this long test.
(cherry picked from commit
1d194235e4d5981b5fea25c75318d61189103a58 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Erlend E. Aasland [Sat, 11 Feb 2023 08:30:42 +0000 (09:30 +0100)]
[3.11] GH-101696: invalidate type version tag in `_PyStaticType_Dealloc` (GH-101697) (#101722)
[3.11] GH-101696: invalidate type version tag in `_PyStaticType_Dealloc` (GH-101697).
(cherry picked from commit
d9de0792482d2ded364b0c7d2867b97a5da41b12 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Sat, 11 Feb 2023 00:24:28 +0000 (16:24 -0800)]
[3.11] gh-101390: Fix docs for `imporlib.util.LazyLoader.factory` to properly call it a class method (GH-101391) (#GH-101813)
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>
Hugo van Kemenade [Fri, 10 Feb 2023 22:26:41 +0000 (00:26 +0200)]
[3.11] Docs: Fix getstatus() -> getcode() typos (GH-101296) (#101805)
Erlend E. Aasland [Fri, 10 Feb 2023 21:21:55 +0000 (22:21 +0100)]
[3.11] gh-101759: Update Windows installer to SQLite 3.40.1 (GH-101762) (#101791)
(cherry picked from commit
5d15224011217487e1a174c144af0e5f5826c17c )
Miss Islington (bot) [Fri, 10 Feb 2023 18:01:38 +0000 (10:01 -0800)]
Docs: use parameter list for sqlite3.Cursor.execute* (GH-101782)
(cherry picked from commit
2037ebf81bd4bbe5421421b822bd57cfd665a1e9 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Fri, 10 Feb 2023 17:27:53 +0000 (09:27 -0800)]
gh-101763: Update bundled copy of libffi to 3.4.4 on Windows (GH-101784)
(cherry picked from commit
e1aadedf099e645fd2eb1aa8bdcde5a105cee95d )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Fri, 10 Feb 2023 17:26:27 +0000 (09:26 -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:48:53 +0000 (23:48 -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:28:59 +0000 (19:28 +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) [Thu, 9 Feb 2023 00:11:36 +0000 (16:11 -0800)]
gh-101283: Version was just released, so should be changed in 3.11.3 (GH-101719)
(cherry picked from commit
0e0c5d8baaa6aa91f4221c5aa57d5586e58e8652 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Wed, 8 Feb 2023 23:44:06 +0000 (15:44 -0800)]
Update Lib/subprocess.py
Miss Islington (bot) [Wed, 8 Feb 2023 14:50:43 +0000 (06:50 -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:11:54 +0000 (03:11 -0800)]
[3.11] gh-100933: Improve `check_element` helper in `test_xml_etree` (GH-100934) (#101686)
Items checked by this test are always `str` and `dict` instances.
(cherry picked from commit
eb49d32b9af0b3b01a5588626179187f11d145c9 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Oleg Iarygin [Wed, 8 Feb 2023 10:05:57 +0000 (14:05 +0400)]
[3.11] gh-96127: Fix `inspect.signature` call on mocks (#96335) (#101646)
(cherry picked from commit
9e7d7266ecdcccc02385fe4ccb094f3444102e26 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Wed, 8 Feb 2023 10:05:36 +0000 (02:05 -0800)]
[3.11] Make use of TESTFN_ASCII in test_fileio (GH-101645) (#101650)
testBytesOpen requires an ASCII filename, but TESTFN usually isn't ASCII.
(cherry picked from commit
6fd5eb640af19b535f4f2ba27b1b61b8d17f02e9 )
Co-authored-by: Zachary Ware <zach@python.org>
Miss Islington (bot) [Wed, 8 Feb 2023 10:03:56 +0000 (02:03 -0800)]
[3.11] gh-47937: Note that Popen attributes are read-only (GH-93070) (#101684)
* 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:37 +0000 (14:02 +0400)]
[3.11] gh-97725: Fix documentation for the default file of `asyncio.Task.print_stack` (#101652) (#101653)
(cherry picked from commit
f87f6e23964d7a4c38b655089cda65538a24ec36 )
Nikita Sobolev [Wed, 8 Feb 2023 10:02:07 +0000 (13:02 +0300)]
[3.11] gh-101656: Fix "conversion from Py_ssize_t to int" warning in `_testcapimodule` (#101680)
(cherry picked from commit
acc2f3b19d28d4bf3f8fb32357f581cba5ba24c7 )
Pablo Galindo [Wed, 8 Feb 2023 09:55:26 +0000 (09:55 +0000)]
Post 3.11.2
Pablo Galindo [Tue, 7 Feb 2023 13:37:13 +0000 (13:37 +0000)]
Python 3.11.2
Łukasz Langa [Tue, 7 Feb 2023 13:36:35 +0000 (14:36 +0100)]
[3.11] gh-101072: support default and kw default in PyEval_EvalCodeEx for 3.11+ (GH-101127) (#101636)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Matthieu Dartiailh <m.dartiailh@gmail.com>
Mark Dickinson [Tue, 7 Feb 2023 11:44:43 +0000 (11:44 +0000)]
[3.11] gh-101266: Revert fix __sizeof__ for subclasses of int (#101638)
Revert "[3.11] gh-101266: Fix __sizeof__ for subclasses of int (GH-101394) (#101579)"
This reverts commit
cf89c16486a4cc297413e17d32082ec4f389d725 .
Miss Islington (bot) [Mon, 6 Feb 2023 22:07:00 +0000 (14:07 -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 19:53:53 +0000 (11:53 -0800)]
gh-101562: typing: add tests for inheritance with NotRequired & Required in parent fields (GH-101563)
(cherry picked from commit
b96b344f251954bb64aeb13c3e0c460350565c2a )
Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
Miss Islington (bot) [Mon, 6 Feb 2023 17:34:05 +0000 (09:34 -0800)]
gh-101543: Ensure Windows registry path is only used when stdlib can't be found (GH-101544)
(cherry picked from commit
7a253103d4c64fcca4c0939a584c2028d8da6829 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 6 Feb 2023 10:32:30 +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) [Mon, 6 Feb 2023 03:52:22 +0000 (19:52 -0800)]
gh-101541: [Enum] create flag psuedo-member without calling original __new__ (GH-101590)
(cherry picked from commit
ef7c2bfcf1fd618438f981ace64499a99ae9fae0 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Sun, 5 Feb 2023 19:47:12 +0000 (11:47 -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>
Mark Dickinson [Sun, 5 Feb 2023 12:18:56 +0000 (12:18 +0000)]
[3.11] gh-101266: Fix __sizeof__ for subclasses of int (GH-101394) (#101579)
Fix the behaviour of the `__sizeof__` method (and hence the results returned
by `sys.getsizeof`) for subclasses of `int`. Previously, `int` subclasses gave
identical results to the `int` base class, ignoring the presence of the instance
dictionary.
(Manual backport of #101394 to the Python 3.11 branch.)
Miss Islington (bot) [Sat, 4 Feb 2023 03:56:57 +0000 (19:56 -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>
Miss Islington (bot) [Sat, 4 Feb 2023 03:40:51 +0000 (19:40 -0800)]
Add missing `versionadded` directive for `PyCode_Addr2Location` (GH-101347)
(cherry picked from commit
f11a3d1ebe0c78f8c159c63a37022b9b96f720dd )
Co-authored-by: Max Bachmann <oss@maxbachmann.de>
Steve Dower [Fri, 3 Feb 2023 18:54:39 +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:31:43 +0000 (23:31 -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:37 +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:12:09 +0000 (16:12 -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 20:40:30 +0000 (12:40 -0800)]
docs: Fix enum reassign `str` documentation (GH-101507)
(cherry picked from commit
24cbc7a2a09bf22ff8122c1d50135e1c56622c95 )
Co-authored-by: Peter Gessler <gesslerpd@users.noreply.github.com>
Miss Islington (bot) [Thu, 2 Feb 2023 00:00:27 +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 21:31:21 +0000 (13:31 -0800)]
gh-101467: Correct py.exe handling of prefix matches and cases when only one runtime is installed (GH-101468)
(cherry picked from commit
eda60916bc88f8af736790ffd52381e8bb83ae83 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Wed, 1 Feb 2023 18:19:11 +0000 (10:19 -0800)]
gh-101498 : Fix asyncio.Timeout example in docs (GH-101499)
Doc/library/asyncio-task.rstGH-timeout
(cherry picked from commit
95fb0e02582b5673eff49694eb0dce1d7df52301 )
Co-authored-by: Raj <51259329+workingpayload@users.noreply.github.com>
Irit Katriel [Wed, 1 Feb 2023 14:30:48 +0000 (14:30 +0000)]
[3.11] gh-101454: fix documentation for END_ASYNC_FOR (#101455) (#101493)
gh-101454: fix documentation for END_ASYNC_FOR (#101455)
(cherry picked from commit
62251c3da06eb4662502295697f39730565b1717 )
Miss Islington (bot) [Wed, 1 Feb 2023 05:48:19 +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:51:48 +0000 (07:51 -0800)]
[3.11] gh-101440: fix json snippet error in logging-cookbook.rst (GH-101439) (GH-101463)
(cherry picked from commit
20c11f2e600e1c0bf42de4d6f2fb3ce5ccc2587c )
Co-authored-by: Peter Jiping Xie <peter.jp.xie@gmail.com>
Automerge-Triggered-By: GH:hugovk
Miss Islington (bot) [Tue, 31 Jan 2023 15:27:55 +0000 (07:27 -0800)]
gh-99276 - Updated Doc/faq/general.rst (GH-101396)
(cherry picked from commit
df0068ce4827471cc2962631ee64f6f38e818ec4 )
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:53:14 +0000 (23:53 +0900)]
[3.11] gh-101400: Fix incorrect lineno in exception message on contin… (gh-101447)
Miss Islington (bot) [Tue, 31 Jan 2023 13:39:06 +0000 (05:39 -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:48 +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) [Tue, 31 Jan 2023 05:46:35 +0000 (21:46 -0800)]
Fixes typo in asyncio.TaskGroup context manager code example (GH-101449)
(cherry picked from commit
ef09bf63d22b2efe5c0e9a2b9f25a9bec2ba1db0 )
Co-authored-by: Ben <22038077+bcla22@users.noreply.github.com>
Miss Islington (bot) [Mon, 30 Jan 2023 20:21:18 +0000 (12:21 -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:26 +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:29 +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:23 +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:18 +0000 (11:12 -0800)]
[3.11] [doc] Add a section on logging handler configuration order. (GH-101380) (GH-101382)
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Miss Islington (bot) [Fri, 27 Jan 2023 17:45:59 +0000 (09:45 -0800)]
[3.11] [doc] Add some notices to logging configuration documentation. (GH-101373) (GH-101376)
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Gregory P. Smith [Thu, 26 Jan 2023 09:02:37 +0000 (01:02 -0800)]
[3.11] gh-99952: fix refcount issues in ctypes.Structure from_param() result (#101339)
[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 )
Co-authored-by: Yukihiro Nakadaira <yukihiro.nakadaira@gmail.com>
Shantanu [Wed, 25 Jan 2023 21:01:13 +0000 (13:01 -0800)]
[3.11] gh-101326: Fix regression when passing None to FutureIter.throw (GH-101327) (#101328)
(cherry picked from commit
a178ba82bfe2f2fb6f6ff0e67cb734fd7c4321e3 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Tue, 24 Jan 2023 17:04:00 +0000 (09:04 -0800)]
gh-101135: Add backwards compatibility to Windows launcher for older 32-bit versions (GH-101138)
Python 2.x and up to 3.4 did not contain the "-32" in their registry name, so the 32 and 64-bit installs were treated equal. Since 3.5/PEP 514 this is no longer true, but we still want to detect the EOL versions correctly in case people are still using them.
Additionally, the code to replace a node with one with a lower sort key was buggy (wrong node chosen, replace never happened since parent was always NULL, replaced node never freed, etc)
(cherry picked from commit
daec3a463c747c852d7ee91e82770fb1763d7d31 )
Co-authored-by: Martin Boisvert <martin.boisvert@optelgroup.com>
Miss Islington (bot) [Tue, 24 Jan 2023 05:31:06 +0000 (21:31 -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:30:19 +0000 (15:30 -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>
Miss Islington (bot) [Mon, 23 Jan 2023 11:39:01 +0000 (03:39 -0800)]
Added asyncio REPL example to docs. (GH-101243)
(cherry picked from commit
5d868efde9ea08b39357b962a02a0294aa97689c )
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Mon, 23 Jan 2023 08:20:15 +0000 (00:20 -0800)]
gh-101015: Fix `typing.get_type_hints` with unpacked `*tuple` (PEP 646) (GH-101031)
(cherry picked from commit
807d6b576fa37f3ab7eb951297cb365c0c198595 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sun, 22 Jan 2023 21:45:55 +0000 (13:45 -0800)]
[3.11] GH-101097: Switch from standard interval notation to greater or less than signs for random.random()'s documentation (GH-101119) (GH-101246)
(cherry picked from commit
8bcd4a6ec7f951d952c174c6a8d937cc62444738 )
Co-authored-by: Andrew Hong <andrewhong@myyahoo.com>
Automerge-Triggered-By: GH:rhettinger