summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.12.4v3.12.4Thomas Wouters2024-06-0675-241/+834
|
* [3.12] Restore decimal context after decimal doctests (GH-120149) (GH-120168)Miss Islington (bot)2024-06-061-3/+7
| | | | | | The modified context caused tests failures in several other tests. (cherry picked from commit 2d7ff6e0e7d4c08ba84079a5c19a4a485626e1de) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-120111: Don't use cirrus M1 macOS runners on fork (GH-120116) ↵Łukasz Langa2024-06-062-3/+11
| | | | | | | | (GH-120153) (cherry picked from commit fd104dfcb838d735ef8128e3539d7a730d403422) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] typing docs: fix indentation of TypedDict deprecation notice (#120124)Alex Waygood2024-06-051-3/+3
|
* [3.12] gh-119287: clarify doc on BaseExceptionGroup.derive and link to it ↵Miss Islington (bot)2024-06-052-2/+5
| | | | | | | | from contextlib.suppress (GH-119657) (#120106) gh-119287: clarify doc on BaseExceptionGroup.derive and link to it from contextlib.suppress (GH-119657) (cherry picked from commit 5c02ea8bae2287a828840f5734966da23dc573dc) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.12] gh-119819: Update logging configuration to support joinable ↵Miss Islington (bot)2024-06-052-3/+9
| | | | | multiproc… (GH-120090) (GH-120092) (cherry picked from commit 983efcf15b2503fe0c05d5e03762385967962b33)
* [3.12] gh-120078: Fix struct_time attr typo tm_day -> tm_mday in ↵Miss Islington (bot)2024-06-051-1/+1
| | | | | | | Doc/library/time.rst (GH-120084) (cherry picked from commit b6b0dcbfc054f581b6f78602e4c2e9474e3efe21) Co-authored-by: shurj0 <60540027+shurj0@users.noreply.github.com>
* [3.12] gh-119311: Fix name mangling with PEP 695 generic classes (#119464) ↵Jelle Zijlstra2024-06-047-14/+152
| | | | | | | | | | (#119644) * [3.12] gh-119311: Fix name mangling with PEP 695 generic classes (#119464) Fixes #119311. Fixes #119395. (cherry picked from commit a9a74da4a0ca0645f049e67b6434a95e30592c32)
* [3.12] gh-119819: Update test to skip if _multiprocessing is unavailable. ↵Miss Islington (bot)2024-06-041-1/+1
| | | | | (GH-120067) (GH-120071) (cherry picked from commit 109e1082ea92f89d42cd70f2cc7ca6fba6be9bab)
* [3.12] gh-120048: Make `test_imaplib` faster (GH-120050) (#120070)Miss Islington (bot)2024-06-041-14/+8
| | | | | | | | | | | | | | The `test_imaplib` was taking 40+ minutes in the refleak build bots because the tests waiting on a client `self._setup()` was creating a client that prevented progress until its connection timed out, which scaled with the global timeout. We should set `connect=False` for the tests that don't want `_setup()` to create a client. (cherry picked from commit 710cbea6604d27c7d59ae4953bf522b997a82cc7) Co-authored-by: Sam Gross <colesbury@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-120039: Reduce expected timeout in test_siginterrupt_off ↵Miss Islington (bot)2024-06-041-3/+3
| | | | | | | | | | (GH-120047) (#120061) The process is expected to time out. In the refleak builds, `support.SHORT_TIMEOUT` is often five minutes and we run the tests six times, so test_signal was taking >30 minutes. (cherry picked from commit d419d468ff4aaf6bc673354d0ee41b273d09dd3f) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.12] gh-89928: Fix integer conversion of device numbers (GH-31794) (GH-120054)Serhiy Storchaka2024-06-044-39/+99
| | | | | | Fix os.major(), os.minor() and os.makedev(). Support device numbers larger than 2**63-1. Support non-existent device number (NODEV). (cherry picked from commit 7111d9605f9db7aa0b095bb8ece7ccc0b8115c3f)
* [3.12] gh-119819: Fix regression to allow logging configuration with ↵Miss Islington (bot)2024-06-043-1/+31
| | | | | multipr… (GH-120030) (GH-120034) (cherry picked from commit 99d945c0c006e3246ac00338e37c443c6e08fc5c)
* [3.12] gh-118868: logging QueueHandler fix passing of kwargs (GH-118869) ↵Miss Islington (bot)2024-06-043-8/+39
| | | | | (GH-120031) (cherry picked from commit dce14bb2dce7887df40ae5c13b0d13e0dafceff7)
* [3.12] gh-119070: Update test_shebang_executable_extension to always use ↵Miss Islington (bot)2024-06-041-3/+3
| | | | | | | non-installed version (GH-119846) (GH-120016) gh-119070: Update test_shebang_executable_extension to always use non-installed version (GH-119846) (cherry picked from commit 5c48eb0cc6c3e84aafda0a734a05ecec14fc0ccf)
* [3.12] gh-111499: Fix PYTHONMALLOCSTATS at Python exit (#120021) (#120023)Victor Stinner2024-06-041-5/+7
| | | | | | | | gh-111499: Fix PYTHONMALLOCSTATS at Python exit (#120021) Call _PyObject_DebugMallocStats() earlier in Py_FinalizeEx(), before the interpreter is deleted. (cherry picked from commit 5a1205b641df133932ed4c65b9a4ff5724e89963)
* [3.12] gh-119821: Fix refleak in LOAD_FROM_DICT_OR_GLOBALS (#119975)Jelle Zijlstra2024-06-032-291/+295
|
* [3.12] Use Cirrus M1 macOS runners for CI (GH-119979) (GH-119987)Łukasz Langa2024-06-033-5/+6
| | | | | | | (cherry picked from commit 6acb32fac3511c1d5500cac66f1d6397dcdab835) Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Ee Durbin <ee@python.org>
* [3.12] GH-119054: Add "Reading and writing files" section to pathlib docs ↵Barney Gale2024-06-021-76/+81
| | | | | | | | (GH-119524) (#119955) Add a dedicated subsection for `open()`, `read_text()`, `read_bytes()`, `write_text()` and `write_bytes()`. (cherry picked from commit bd6d4ed6454378e48dab06f50a9be0bae6baa3a2)
* [3.12] GH-119054: Add "Querying file type and status" section to pathlib ↵Barney Gale2024-06-021-145/+151
| | | | | | | | docs (GH-119055) (#119952) Add a dedicated subsection for `Path.stat()`-related methods, specifically `stat()`, `lstat()`, `exists()`, `is_*()`, and `samefile()`. (cherry picked from commit 81d63362302187e5cb838c9a7cd857181142e530)
* [3.12] Improve documentation for typing.get_type_hints (GH-119928) (#119944)Miss Islington (bot)2024-06-021-26/+28
| | | | | | | | | | | | | | | - Explicit list of what it does that is different from "just return __annotations__" - Remove reference to PEP 563; adding the future import doesn't do anything to type aliases, and in general it will never make get_type_hints() less likely to fail. - Remove example, as the Annotated docs already have a similar example, and it's unbalanced to have one example about this one edge case but not about other behaviors of the function. (cherry picked from commit aa9fe98e0649f0a151942914ef4e2810ca6126c2) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-119016: Remove outdated sentences from the "classes" tutorial ↵Miss Islington (bot)2024-06-011-5/+1
| | | | | | | (GH-119130) (#119926) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-116145: Update macOS installer to Tcl/Tk 8.6.14 (GH-116151) ↵Miss Islington (bot)2024-06-013-86/+5
| | | | | | (GH-119922) (cherry picked from commit 4fa95c6ec392b9fc80ad720cc4a8bd2786fc2835) Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
* [3.12] GH-89727: Fix `shutil.rmtree()` recursion error on deep trees ↵Barney Gale2024-06-013-89/+64
| | | | | | | | | (GH-119808) (#119919) Implement `shutil._rmtree_safe_fd()` using a list as a stack to avoid emitting recursion errors on deeply nested trees. `shutil._rmtree_unsafe()` was fixed in a150679f90. (cherry picked from commit 53b1981fb0cda6c656069e992f172fc6aad7c99c)
* [3.12] Add unique() recipe to itertools docs (gh-119911) (gh-119917)Miss Islington (bot)2024-06-011-2/+14
|
* [3.12] gh-113892: Add a extra check to `ProactorEventLoop.sock_connect` to ↵Miss Islington (bot)2024-06-013-2/+12
| | | | | | | ensure that the given socket is in non-blocking mode (GH-119519) (#119913) (cherry picked from commit cf3bba3f0671d2c9fee099e3ab0f78b98b176131) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [3.12] Revert "[3.12] gh-69214: Fix fcntl.ioctl() request type (#119498) ↵Victor Stinner2024-06-013-12/+8
| | | | | | | | | | (#1… (#119905) Revert "[3.12] gh-69214: Fix fcntl.ioctl() request type (#119498) (#119505)" This reverts commit 078da88ad19e8f7474b6943edd39b7e61511bd20. The change modified how negative values, like termios.TIOCSWINSZ, was treated and is actually backward incompatible.
* [3.12] gh-119821: Support non-dict globals in LOAD_FROM_DICT_OR_GLOBALS ↵Jelle Zijlstra2024-06-014-329/+363
| | | | | | | | | | | (#119822) (#119890) The implementation basically copies LOAD_GLOBAL. Possibly it could be deduplicated, but that seems like it may get hairy since the two operations have different operands. This is important to fix in 3.14 for PEP 649, but it's a bug in earlier versions too, and we should backport to 3.13 and 3.12 if possible. (cherry picked from commit 80a4e3899420faaa012c82b4e82cdb6675a6a944)
* [3.12] contextlib docs: Clean up redundant 'up' after 'cleanup' (GH-119873)Miss Islington (bot)2024-05-311-1/+1
| | | | Reported by Michael Kass on docs@ (cherry picked from commit f3fc800d5f17b144a752a262102b750bedcdaa14)
* [3.12] gh-100117: Fix inaccuracy in documentation of the CodeObject's ↵Miss Islington (bot)2024-05-311-1/+1
| | | | | | | | co_positions field. (GH-119364) (#119870) gh-100117: Fix inaccuracy in documentation of the CodeObject's co_positions field. (GH-119364) (cherry picked from commit 015b1fdd0ae03f94a5dfda051b020810d1c952dd) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.12] gh-119585: Fix crash involving `PyGILState_Release()` and ↵Sam Gross2024-05-314-0/+36
| | | | | | | | | | | `PyThreadState_Clear()` (GH-119753) (#119861) Make sure that `gilstate_counter` is not zero in when calling `PyThreadState_Clear()`. A destructor called from `PyThreadState_Clear()` may call back into `PyGILState_Ensure()` and `PyGILState_Release()`. If `gilstate_counter` is zero, it will try to create a new thread state before the current active thread state is destroyed, leading to an assertion failure or crash. (cherry picked from commit bcc1be39cb1d04ad9fc0bd1b9193d3972835a57c)
* [3.12] gh-103194: Fix Tkinter’s Tcl value type handling for Tcl 8.7/9.0 ↵Serhiy Storchaka2024-05-312-22/+36
| | | | | | | | | | | (GH-103846) (GH-119831) Some of standard Tcl types were renamed, removed, or no longer registered in Tcl 8.7/9.0. This change fixes automatic conversion of Tcl values to Python values to avoid returning a Tcl_Obj where the primary Python types (int, bool, str, bytes) were returned in older Tcl. (cherry picked from commit 94e9585e99abc2d060cedc77b3c03e06b4a0a9c4) Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
* [3.12] gh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (GH-119322) (GH-119807)Miss Islington (bot)2024-05-302-9/+22
| | | | | | (cherry picked from commit 9732ed5ca94cd8fe9ca2fc7ba5a42dfa2b7791ea) Co-authored-by: James De Bias <81095953+DBJim@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-109218: Improve documentation for the complex() constructor ↵Serhiy Storchaka2024-05-304-63/+135
| | | | | | | | | | | | | | | | (GH-119687) (ПР-119805) * Remove the equivalence with real+imag*1j which can be incorrect in corner cases (non-finite numbers, the sign of zeroes). * Separately document the three roles of the constructor: parsing a string, converting a number, and constructing a complex from components. * Document positional-only parameters of complex(), float(), int() and bool() as positional-only. * Add examples for complex() and int(). * Specify the grammar of the string for complex(). * Improve the grammar of the string for float(). * Describe more explicitly the behavior when real and/or imag arguments are complex numbers. (This will be deprecated in future.) (cherry picked from commit ec1ba264607b2b7b98d2602f5536a1d02981efc6)
* [3.12] gh-109218: Refactor tests for the complex() constructor (GH-119635) ↵Miss Islington (bot)2024-05-301-167/+195
| | | | | | | | | | | | | | (GH-119796) * Share common classes. * Use exactly representable floats and exact tests. * Check the sign of zero components. * Remove duplicated tests (mostly left after merging int and long). * Reorder tests in more consistent way. * Test more error messages. * Add tests for missed cases. (cherry picked from commit bf098d4157158e1e4b2ea78aba4ac82d72e24cff) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-119779: Fix pyporting howto docs (GH-119785) (#119789)Miss Islington (bot)2024-05-301-2/+2
| | | | | | gh-119779: Fix pyporting howto docs (GH-119785) (cherry picked from commit 6fb191be15fd49da10506de29b6393ffdf59b894) Co-authored-by: Awbert <119314310+SweetyAngel@users.noreply.github.com>
* gh-119690: Adds Unicode support for named pipes in _winapi (GH-119717)Steve Dower2024-05-306-35/+98
| | | Also backports a minor improvement to test_audit.
* [3.12] gh-118055: Update the finder glossary entry (GH-118278) (GH-119774)Miss Islington (bot)2024-05-301-2/+2
| | | | | | gh-118055: Update the finder glossary entry (GH-118278) (cherry picked from commit db009348b4b7a4b0aec39472ea074c1b5feeba9b) Co-authored-by: Lincoln <71312724+Lincoln-developer@users.noreply.github.com>
* [3.12] subprocess docs: Fix semantically important typo (GH-119752) (#119758)Miss Islington (bot)2024-05-301-1/+1
| | | | | | | | | | subprocess docs: Fix semantically important typo (GH-119752) GH-25416 accidentally replaced a reference to the *stderr* argument of `subprocess.run` with a reference to the *stdin* argument. *stdin* is not affected by the `check_output` option. (cherry picked from commit 2cc3502f98bb9aea386ab55443fc077ddcdde91d) Co-authored-by: Zachary Ware <zach@python.org>
* [3.12] GH-89727: Fix FD leak on `os.fwalk()` generator finalization. ↵Miss Islington (bot)2024-05-302-2/+30
| | | | | | | | | | | (GH-119766) (#119768) GH-89727: Fix FD leak on `os.fwalk()` generator finalization. (GH-119766) Follow-up to 3c890b50. Ensure we `os.close()` open file descriptors when the `os.fwalk()` generator is finalized. (cherry picked from commit a5fef800d31648d19cecc240a2fa0dc71371753e) Co-authored-by: Barney Gale <barney.gale@gmail.com>
* [3.12] GH-89727: Fix `os.fwalk()` recursion error on deep trees (GH-119638) ↵Miss Islington (bot)2024-05-303-40/+56
| | | | | | | | | | | (#119765) GH-89727: Fix `os.fwalk()` recursion error on deep trees (GH-119638) Implement `os.fwalk()` using a list as a stack to avoid emitting recursion errors on deeply nested trees. (cherry picked from commit 3c890b503c740767d0eb9a0e74b47f17a1e69452) Co-authored-by: Barney Gale <barney.gale@gmail.com>
* [3.12] gh-119260: Clarify is_dataclass Behavior for Subclasses in ↵Miss Islington (bot)2024-05-302-2/+20
| | | | | | | | | Documentation and Tests (GH-119480) (#119761) gh-119260: Clarify is_dataclass Behavior for Subclasses in Documentation and Tests (GH-119480) (cherry picked from commit bf4ff3ad2e362801e87c85fffd9e140b774cef26) Co-authored-by: Aditya Borikar <adityaborikar2@gmail.com> Co-authored-by: Carl Meyer <carl@oddbird.net>
* [3.12] GH-89727: Partially fix `shutil.rmtree()` recursion error on deep ↵Barney Gale2024-05-294-24/+32
| | | | | | | | | | | | | | trees (GH-119634) (#119749) * GH-89727: Partially fix `shutil.rmtree()` recursion error on deep trees (#119634) Make `shutil._rmtree_unsafe()` call `os.walk()`, which is implemented without recursion. `shutil._rmtree_safe_fd()` is not affected and can still raise a recursion error. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit a150679f90c6e3f017bd75cac3b8f727063cc4aa)
* gh-119070: Avoid test crash due to Unicode in stderr output (GH-119747)Steve Dower2024-05-291-1/+1
|
* gh-119070: Fix py.exe handling of /usr/bin/env commands missing extension ↵Steve Dower2024-05-293-1/+14
| | | | (GH-119426)
* [3.12] gh-119704: Fix reference leak in the ``Python/Python-tokenize.c`` ↵Miss Islington (bot)2024-05-291-0/+1
| | | | (GH-119705) (#119708)
* [3.12] gh-119538: Add missing expat build dependencies (GH-119647) (#119686)Miss Islington (bot)2024-05-281-1/+3
| | | | | | | | xmltok_impl.c and xmltok_ns.c are _included_ in xmltok.c by the C pre-processor. (cherry picked from commit 606be663622c6784aed4ffa55b877adbd6fe8e54) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-119118: Fix performance regression in tokenize module (GH-119615) ↵Miss Islington (bot)2024-05-284-4/+68
| | | | | | | | | | | | | (#119683) - Cache line object to avoid creating a Unicode object for all of the tokens in the same line. - Speed up byte offset to column offset conversion by using the smallest buffer possible to measure the difference. (cherry picked from commit d87b0151062e36e67f9e42e1595fba5bf23a485c) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* [3.12] gh-119011: `type.__type_params__` now return an empty tuple ↵Jelle Zijlstra2024-05-284-1/+19
| | | | | | | (GH-119296) (#119681) (cherry picked from commit 6b240c2308a044e38623900ccb8fa58c3549d4ae) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-119581: Add a test of InitVar with name shadowing (GH-119582) ↵Miss Islington (bot)2024-05-281-0/+23
| | | | | | | | (#119673) gh-119581: Add a test of InitVar with name shadowing (GH-119582) (cherry picked from commit 6ec371223dff4da7719039e271f35a16a5b861c6) Co-authored-by: Steven Troxler <steven.troxler@gmail.com>