summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.11] bpo-43153: Don't mask `PermissionError` with `NotADirectoryError` ↵Miss Islington (bot)2023-12-053-2/+41
| | | | | | | | | during tempdirectory cleanup (GH-29940) (GH-112754) (cherry picked from commit 8cdfee1bb902fd1e38d79170b751ef13a0907262) Co-authored-by: Ken Jin <kenjin@python.org> Co-authored-by: andrei kulakov <andrei.avk@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.11] gh-101100: Fix many easily solvable Sphinx nitpicks in the datamodel ↵Miss Islington (bot)2023-12-052-29/+37
| | | | | | | | docs (GH-112737) (#112749) gh-101100: Fix many easily solvable Sphinx nitpicks in the datamodel docs (GH-112737) (cherry picked from commit 2f20cafdbfc39925f9374f36f9d53bac365ed32a) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.11] gh-62897: Update PyUnicode C API parameter names (GH-12680) (GH-112745)Serhiy Storchaka2023-12-051-97/+97
| | | | | | | Standardize PyUnicode C API parameter names across the documentation. (cherry picked from commit b31232ddf7f219ca8ff9e8d0401c02eb0b6ffec3) Co-authored-by: Rune Tynan <runetynan@gmail.com>
* Merge remote-tracking branch 'upstream/3.11' into 3.11Pablo Galindo2023-12-043-10/+30
|\
| * [3.11] gh-105967: Work around a macOS bug, limit zlib C library crc32 API ↵Miss Islington (bot)2023-12-043-10/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | calls to 1gig (GH-112615) (#112725) gh-105967: Work around a macOS bug, limit zlib C library crc32 API calls to 1gig (GH-112615) Work around a macOS bug, limit zlib crc32 calls to 1GiB. Without this, `zlib.crc32` and `binascii.crc32` could produce incorrect results on multi-gigabyte inputs depending on the macOS version's Apple supplied zlib implementation. (cherry picked from commit 4eddb4c9d9452482c9af7fa9eec223d12b5a9f33) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* | Post 3.11.7Pablo Galindo2023-12-041-1/+1
| |
* | Python 3.11.7v3.11.7Pablo Galindo2023-12-0482-281/+910
|/
* [3.11] gh-108927: Fix removing testing modules from sys.modules (GH-108952) ↵Miss Islington (bot)2023-12-048-9/+67
| | | | | | | | | (ПР-112712) It breaks import machinery if the test module has submodules used in other tests. (cherry picked from commit e08b70fab1fbc45fa498020aac522ae1d5da6136) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.11] GH-112160: Pin to manifest of quay.io/tiran/cpython_autoconf (#112161)Seth Michael Larson2023-12-041-1/+3
|
* [3.11] gh-101100: Fix Sphinx nitpicks in `library/abc.rst` (GH-112703) (#112704)Miss Islington (bot)2023-12-042-22/+21
| | | | | | gh-101100: Fix Sphinx nitpicks in `library/abc.rst` (GH-112703) (cherry picked from commit 9560e0d6d7a316341939b4016e47e03bd5bf17c3) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.11] gh-109786: Fix leaks and crash when re-enter ↵Miss Islington (bot)2023-12-043-2/+85
| | | | | | | itertools.pairwise.__next__() (GH-109788) (GH-112700) (cherry picked from commit 6ca9d3e0173c38e2eac50367b187d4c1d43f9892) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.11] gh-101100: Fix sphinx warnings in `Doc/library/__future__.rst` ↵Miss Islington (bot)2023-12-042-27/+32
| | | | | | | | (GH-109814) (#112701) gh-101100: Fix sphinx warnings in `Doc/library/__future__.rst` (GH-109814) (cherry picked from commit f2eaa92b0cc5a37a9e6010c7c6f5ad1a230ea49b) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.11] gh-101100: Fix Sphinx nitpicks in `library/functions.rst` (GH-112669) ↵Miss Islington (bot)2023-12-042-47/+67
| | | | | | | | (#112698) gh-101100: Fix Sphinx nitpicks in `library/functions.rst` (GH-112669) (cherry picked from commit cda737924fd616c4e08027888258f97e81f34447) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.11] gh-112625: Protect bytearray from being freed by misbehaving iterator ↵Miss Islington (bot)2023-12-043-1/+22
| | | | | | | inside bytearray.join (GH-112626) (GH-112694) (cherry picked from commit 0e732d0997cff08855d98c17af4dd5527f10e419) Co-authored-by: chilaxan <chilaxan@gmail.com>
* [3.11] gh-112678: Declare `Tkapp_CallDeallocArgs()` as `static` (GH-112679) ↵Miss Islington (bot)2023-12-041-1/+1
| | | | | | | (GH-112691) (cherry picked from commit 23e001fa9f1897ba3384c02bbbe634313358a549) Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
* [3.11] gh-66819: More IDLE htest updates(4) (GH-112686) (#112689)Miss Islington (bot)2023-12-0425-34/+62
| | | | | | Mostly double spacing before 'if __name__...'. (cherry picked from commit e5b0db0315941b968ebcc2414bfcdd2da44fd3c2) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-66819: More IDLE htest updates(3) (GH-112683) (#112685)Miss Islington (bot)2023-12-046-26/+27
| | | | | | Revise spec-callable pairs from percolator to end. (cherry picked from commit 5a1b5316af648ae79bb91f28253b6272bbbd2886) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-101100: Fix Sphinx warning in `library/gettext.rst` (GH-112668) ↵Miss Islington (bot)2023-12-032-8/+7
| | | | | | | | | (#112673) gh-101100: Fix Sphinx warning in `library/gettext.rst` (GH-112668) (cherry picked from commit 489aeac3a2d3b347ff033334688e2f44eec7944a) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.11] gh-101100: Fix most Sphinx nitpicks in `inspect.rst` (GH-112662) ↵Miss Islington (bot)2023-12-035-9/+19
| | | | | | | | (#112667) gh-101100: Fix most Sphinx nitpicks in `inspect.rst` (GH-112662) (cherry picked from commit 45650d1c479a8b0370f126d821718dd3c502f333) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.11] gh-66819: More IDLE htest updates(2) (GH-112642) (#112644)Miss Islington (bot)2023-12-039-69/+70
| | | | | | | Examine and update spec -- callable pairs. Revise run method. (cherry picked from commit 3855b45874d5f8eb92a4957fb9de6fdce63eb760) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] Fix link to 'The Perils of Floating Point', on the tutorial ↵Miss Islington (bot)2023-12-031-1/+1
| | | | | | | | (GH-112499) (GH-112663) Use author link to 'The Perils of Floating Point'. (cherry picked from commit c27b09c81368bc3b756e94a79a39307ce44a4a2c) Co-authored-by: Marco Aurélio A. Barbosa <aureliobarbosa@gmail.com>
* [3.11] Run more `inspect.rst` code snippets in CI (#112654) (#112656)Alex Waygood2023-12-031-27/+38
| | | (cherry-picked from commit 4ed46d224401243399b41c7ceef4532bd249da27)
* [3.11] [3.12] gh-112316: improve docs for `inspect.signature` and ↵Miss Islington (bot)2023-12-031-33/+51
| | | | | | | | | | `inspect.Signature` (GH-112631) (GH-112649) (#112652) [3.12] gh-112316: improve docs for `inspect.signature` and `inspect.Signature` (GH-112631) (GH-112649) (cherry-picked from commit fc9e24b01fb7da4160b82cef26981d72bb678c13) (cherry picked from commit 6221482f0c459c2e7dbd946265069246a400072a) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.11] [3.12] gh-112618: Make Annotated cache typed (GH-112619) (GH-112628) ↵Miss Islington (bot)2023-12-033-2/+43
| | | | | | | | (#112633) [3.12] gh-112618: Make Annotated cache typed (GH-112619) (GH-112628) (cherry picked from commit 2a378ca2efcb91db4b04fb4e052424fd610ffbc9) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.11] gh-112316: Improve docs of `inspect.signature` and ↵Alex Waygood2023-12-021-19/+18
| | | | | | | `Signature.from_callable` (#112317) (#112630) (cherry-picked from commit a74daba7ca) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.11] [3.12] gh-109413: libregrtest: Backport `.py`-file changes from ↵Miss Islington (bot)2023-12-017-12/+18
| | | | | | | | GH-112558 (GH-112605) (#112607) [3.12] gh-109413: libregrtest: Backport `.py`-file changes from GH-112558 (GH-112605) (cherry picked from commit acc62db8af4e472a4922c10b91c60c36c49a5f79) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.11] [3.12] gh-109413: libregrtest: enable mypy's `--strict-optional` ↵Miss Islington (bot)2023-12-014-4/+48
| | | | | | | | | | | | check on most files (GH-112586) (GH-112602) (#112603) [3.12] gh-109413: libregrtest: enable mypy's `--strict-optional` check on most files (GH-112586) (GH-112602) gh-109413: libregrtest: enable mypy's `--strict-optional` check on most files (GH-112586) (cherry picked from commit 36dbebed44785579034ffb1a59f0a1a5b987c9bf) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.11] bpo-35191: Fix unexpected integer truncation in socket.setblocking() ↵Alexey Izbyshev2023-12-013-5/+9
| | | | | | | | | (GH-10415) On platforms with 64-bit long, socket.setblocking(x) treated all x which lower 32 bits are zero as False due to integer truncation. Reported by ubsan.
* [3.11] gh-109413: regrtest: add WorkerRunTests class (GH-112588) (#112594)Miss Islington (bot)2023-12-014-22/+28
| | | | | | gh-109413: regrtest: add WorkerRunTests class (GH-112588) (cherry picked from commit f8ff80f63536e96b004d29112452a8f1738fde37) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.11] gh-82565: Add tests for pickle and unpickle with bad files (GH-16606) ↵Miss Islington (bot)2023-12-011-0/+78
| | | | | | | (GH-112592) (cherry picked from commit 058444308abee79bb1b3358883adfa8c97bd043a) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* [3.11] gh-104231: Add more tests for str(), repr(), ascii(), and bytes() ↵Serhiy Storchaka2023-12-012-50/+121
| | | | | (GH-112551) (GH-112556) (cherry picked from commit 2223899adce858a09ebeaaf82111e6cda9b42415)
* [3.11] gh-66819: More IDLE htest updates (GH-112574) (#112576)Miss Islington (bot)2023-12-011-55/+52
| | | | | | Revise htest.py docstring and move 2 specs to alphabetical position. (cherry picked from commit e44f1940bd6d2ba4a3f8ac4585b3cf4f9cb93e49) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] IDLE: fix config_key htest (GH-112545) (#112547)Miss Islington (bot)2023-11-302-2/+2
| | | | | | Change 'Dialog' to 'Window' in two places to match the name of the config_key class being tested. (cherry picked from commit 81261fa67ff82b03c255733b0d1abbbb8a228187) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-112509: Fix keys being present in both required_keys and ↵Miss Islington (bot)2023-11-293-5/+63
| | | | | | | | optional_keys in TypedDict (GH-112512) (#112531) (cherry picked from commit 403886942376210662610627b01fea6acd77d331) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.11] gh-110930: Correct book title by Alan D. Moore (GH-112490) (#112524)Miss Islington (bot)2023-11-291-2/+2
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.11] gh-112431: Unconditionally call `hash -r` (GH-112432) (GH-112492)Miss Islington (bot)2023-11-281-10/+4
| | | | | | | | | | | | | | gh-112431: Unconditionally call `hash -r` (GH-112432) The `activate` script calls `hash -r` in two places to make sure the shell picks up the environment changes the script makes. Before that, it checks to see if the shell running the script is bash or zsh. `hash -r` is specified by POSIX and is not exclusive to bash and zsh. This guard prevents the script from calling `hash -r` in other `GH-!/bin/sh`-compatible shells like dash. (cherry picked from commit a194938f33a71e727e53490815bae874eece1460) Co-authored-by: James Morris <6653392+J-M0@users.noreply.github.com>
* [3.11] gh-112105: Make completer delims work on libedit (gh-112106) (gh-112488)Miss Islington (bot)2023-11-283-0/+37
| | | | | | gh-112105: Make completer delims work on libedit (gh-112106) (cherry picked from commit 2df26d83486b8f9ac6b7df2a9a4669508aa61983) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.11] Docs: fix markup for `importlib.machinery.NamespaceLoader` ↵Miss Islington (bot)2023-11-281-1/+1
| | | | | | | | (GH-112479) (#112482) Docs: fix markup for `importlib.machinery.NamespaceLoader` (GH-112479) (cherry picked from commit 2e632fa07d13a58be62f59be4e656ad58b378f9b) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.11] Backport PR #112477: correct socket AF_PACKET docs (#112478)Gregory P. Smith2023-11-271-3/+2
| | | | | | | | Backport PR #112477: correct socket AF_PACKET docs Network byte order is not involved in the `int` on the Python side. That happens under the hood. Correctly use the term addresses instead of packets.
* [3.11] gh-68166: Tkinter: Add tests and examples for element_create() ↵Miss Islington (bot)2023-11-273-3/+203
| | | | | | | | | | | (GH-111453) (GH-111858) * Remove mention of "vsapi" element type from the documentation. * Add tests for element_create() and other ttk.Style methods. * Add examples for element_create() in the documentation. (cherry picked from commit 005d1e8fc81539c60c6b21ebba34de3edd5bb232) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.11] gh-112387: Fix error positions for decoded strings with backwards ↵Miss Islington (bot)2023-11-273-0/+10
| | | | | | | | | tokenize errors (GH-112409) (#112469) gh-112387: Fix error positions for decoded strings with backwards tokenize errors (GH-112409) (cherry picked from commit 45d648597b1146431bf3d91041e60d7f040e70bf) Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.11] gh-112388: Fix an error that was causing the parser to try to ↵Miss Islington (bot)2023-11-273-0/+7
| | | | | | | | | overwrite tokenizer errors (GH-112410) (#112467) gh-112388: Fix an error that was causing the parser to try to overwrite tokenizer errors (GH-112410) (cherry picked from commit 2c8b19174274c183eb652932871f60570123fe99) Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.11] bpo-41422: Visit the Pickler's and Unpickler's memo in tp_traverse ↵Serhiy Storchaka2023-11-272-0/+16
| | | | | | | (GH-21664) (GH-112465) (cherry picked from commit 967f2a3052c2d22e31564b428a9aa8cc63dc2a9f) Co-authored-by: kale-smoothie <34165060+kale-smoothie@users.noreply.github.com>
* [3.11] gh-112438: Fix support of format units with the "e" prefix in nested ↵Serhiy Storchaka2023-11-273-1/+30
| | | | | tuples in PyArg_Parse (gh-112439) (GH-112461) (cherry picked from commit 4eea1e82369fbf7a795d1956e7a8212a1b58009f)
* [3.11] gh-84443: SSLSocket.recv_into() now support buffer protocol with ↵Serhiy Storchaka2023-11-273-4/+32
| | | | | | | | | itemsize != 1 (GH-20310) (GH-112459) It is also no longer use __len__(). (cherry picked from commit 812360fddda86d7aff5823f529ab720f57ddc411) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* [3.11] GH-101100: Fix reference warnings for ``socket`` methods (GH-110114) ↵Miss Islington (bot)2023-11-273-17/+17
| | | | | | | (#112456) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.11] Docs: fix typo in doc for sqlite3.Cursor.execute (GH-112442) (#112445)Miss Islington (bot)2023-11-271-1/+1
| | | | | | Docs: fix typo in doc for sqlite3.Cursor.execute (GH-112442) (cherry picked from commit fb79e1ed4a985a487a02bb8585cc1bd2933dfa7c) Co-authored-by: Tom Levy <tomlevy93@gmail.com>
* [3.11] gh-101100: Fix Sphinx reference warnings (GH-112416) (#112422)Hugo van Kemenade2023-11-268-14/+20
|
* [3.11] gh-112331: Fix reference manual description of attribute lookup ↵Miss Islington (bot)2023-11-251-6/+12
| | | | mechanics (gh-112375) (gh-112413)
* [3.11] gh-101100 : Fix Sphinx warnings in `library/doctest.rst` (GH-112399) ↵Hugo van Kemenade2023-11-253-21/+29
| | | | | | (#112404) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>