summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-116296: Fix refleak in reduce_newobj() corner case (GH-116297) ↵Miss Islington (bot)2024-03-042-0/+2
| | | | | | | | (#116299) (cherry picked from commit 17c4849981905fb1c9bfbb2b963b6ee12e3efb2c) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
* [3.12] gh-116010: Remove link to deprecated PEP 6 in FAQ guide (GH-116246) ↵Miss Islington (bot)2024-03-031-3/+5
| | | | | | | (#116286) Co-authored-by: Iman Tabrizian <iman.tabrizian@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] gh-116281: Remove wrong '\' from '\*' in some doc signatures ↵Miss Islington (bot)2024-03-033-6/+6
| | | | | | | | (GH-116282) (#116285) gh-116281: Remove wrong '\' from '\*' in some doc signatures (GH-116282) (cherry picked from commit 4859ecb8609b51e2f6b8fb1b295e9ee0f83e1be6) Co-authored-by: HarryLHW <123lhw321@gmail.com>
* [3.12] gh-115809: Improve TimedRotatingFileHandler.getFilesToDelete() ↵Miss Islington (bot)2024-03-033-36/+56
| | | | | | | | | | | (GH-115812) (GH-116261) Improve algorithm for computing which rolled-over log files to delete in logging.TimedRotatingFileHandler. It is now reliable for handlers without namer and with arbitrary deterministic namer that leaves the datetime part in the file name unmodified. (cherry picked from commit 87faec28c78f6fa8eaaebbd1ababf687c7508e71) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-72971: Clarify the special no-TypeError behavior for equality ↵Miss Islington (bot)2024-03-031-1/+4
| | | | | | | (GH-110729) (#116254) (cherry picked from commit 67f742e03aacb6217c5bb496e31f96dbf31c6f86) Co-authored-by: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com>
* [3.12] gh-114494: Change logging docstring to bool for exec_info (GH=114558) ↵Miss Islington (bot)2024-03-021-6/+6
| | | | | | | (GH-114624) (cherry picked from commit 07236f5b39a2e534cf190cd4f7c73300d209520b) Co-authored-by: Tristan Pank <tristanpank@gmail.com>
* [3.12] GH-115978: Disable `*readv()` and `*writev()` on WASI (GH-116228) ↵Miss Islington (bot)2024-03-022-0/+13
| | | | | | | | | | (GH-116231) GH-115978: Disable `*readv()` and `*writev()` on WASI (GH-116228) Wasmtime doesn't implement these functions in a way to pass test_posix (https://github.com/bytecodealliance/wasmtime/issues/7830). (cherry picked from commit 5dc8c84d397110f9edfa56793ad8887b1f176d79) Co-authored-by: Brett Cannon <brett@python.org>
* [3.12] gh-112281: Allow `Union` with unhashable `Annotated` metadata ↵Miss Islington (bot)2024-03-014-18/+156
| | | | | | | (GH-112283) (#116213) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-116035: Document that both tzinfo and fold are ignored in ↵Miss Islington (bot)2024-03-011-2/+8
| | | | | | | | comparisons if tzinfo is the same (GH-116187) (GH-116216) This mostly restores information removed in c12240ed28aac6494750e00143bc550c4d6d8ad1 (GH-114749). (cherry picked from commit 05b04903a14279421ecdc6522b8202822de6ebb5) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-88352: Fix logging.TimedRotatingFileHandler (GH-116191) (GH-116208)Miss Islington (bot)2024-03-013-32/+373
| | | | | | | | | | * Do not overwrite already rolled over files. It happened at midnight or during the DST change and caused the loss of data. * computeRollover() now always return the timestamp larger than the specified time. * Fix computation of the rollover time during the DST change. (cherry picked from commit fee86fd9a422612b39e5aabf2571b8fe4abac770) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-104219: Document that idunders can return NotImplemented ↵Miss Islington (bot)2024-03-011-2/+4
| | | | | | | | | (GH-104220) (#116210) (cherry picked from commit 2713c2abc8d0f30cd0060cd307bb4ec92f1f04bf) Co-authored-by: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-101293: Fix support of custom callables and types in ↵Miss Islington (bot)2024-03-013-89/+438
| | | | | | | | | | | | | inspect.Signature.from_callable() (GH-115530) (GH-116198) Support callables with the __call__() method and types with __new__() and __init__() methods set to class methods, static methods, bound methods, partial functions, and other types of methods and descriptors. Add tests for numerous types of callables and descriptors. (cherry picked from commit 59167c962efcae72e8d88aa4b33062ed3de4f120) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-115811: Update documentation to add some Logger attributes. ↵Miss Islington (bot)2024-03-011-0/+36
| | | | | (GH-116109) (GH-116185) (cherry picked from commit 3b6f4cadf19e6a4edd2cbbbc96a0a4024b395648)
* [3.12] gh-115881: Document feature_version limitations (#115980) (#116173)Shantanu2024-03-011-6/+9
|
* [3.12] gh-116026: Try disabling rebuilds of dependents in Homebrew ↵Miss Islington (bot)2024-03-011-0/+1
| | | | | | | (GH-116027) (#116158) (cherry picked from commit 02beb9f0208d22fd8bd893e6e6ec813f7e51b235) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-87115: Set `__main__.__spec__` to `None` in pdb (GH-116141) (#116154)Tian Gao2024-02-293-0/+14
| | | | | | | | | | * gh-87115: Set `__main__.__spec__` to `None` in pdb (#116141) (cherry picked from commit ccfc042bbf31e53c44b8aae444afd8365b798422) * [3.12] gh-87115: Set `__main__.__spec__` to `None` in pdb (GH-116141) (cherry picked from commit ccfc042bbf31e53c44b8aae444afd8365b798422) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.12] Fix rendering of null character in ast.rst (GH-116080) (#116160)Miss Islington (bot)2024-02-291-1/+1
| | | | | | Fix rendering of null character in ast.rst (GH-116080) (cherry picked from commit c04a981ff414b101736688773dbe24f824ca32ce) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.12] gh-112844: Add SBOM for external dependencies (GH-115789) (#116128)Miss Islington (bot)2024-02-293-17/+287
| | | | Co-authored-by: Seth Michael Larson <seth@python.org>
* [3.12] gh-73580: Docs for tunnelling TLS through TLS (GH-22539) (GH-116149)Miss Islington (bot)2024-02-291-0/+3
| | | | | (cherry picked from commit 91c3c64237f56bde9d1c1b8127fdcb02a112b5a4) Co-authored-by: Carl Bordum Hansen <carl@bordum.dk>
* [3.12] Docs: mark up NotImplemented using the :data: role throughout the ↵Miss Islington (bot)2024-02-2916-39/+39
| | | | | | | docs (GH-116135) (#116147) (cherry picked from commit dbe44f150cd161bd327ed662e527a4c93829fb3e) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-72463: Fix ctypes/test_loading.py so that test_find reports ↵Miss Islington (bot)2024-02-291-0/+4
| | | | | | | skipped (GH-18312) (GH-116136) (cherry picked from commit 04d1000071b5eefd4b1dd69051aacad343da4b21) Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
* [3.12] Make the iter_except() recipe more compact. (gh-116132) (gh0116133)Miss Islington (bot)2024-02-291-20/+1
|
* [3.12] gh-116103: Prevent error in WindowsLoadTracker.__del__ on permission ↵Miss Islington (bot)2024-02-291-0/+4
| | | | | | | | | | | error (GH-116105) (GH-116120) gh-116103: Prevent error in WindowsLoadTracker.__del__ on permission error (GH-116105) (cherry picked from commit 186fa9387669bcba6d3974a99c012c2b2c6fb4ce) gh-116103: Prevent error in WindowsLoadTracker.__del__ if there was a permission error Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] gh-116034: fix location info on the error of a failed assertion (#116054)Irit Katriel2024-02-294-2/+20
|
* [3.12] gh-115937: Remove implementation details from inspect.signature() ↵Miss Islington (bot)2024-02-291-3/+7
| | | | | | | | | | | docs (GH-116086) (#116106) gh-115937: Remove implementation details from inspect.signature() docs (GH-116086) (cherry picked from commit fb2e17b642fc3089e4f98e4bf6b09dd362e6b27d) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Carol Willing <carolcode@willingconsulting.com> Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-114572: Fix locking in cert_store_stats and get_ca_certs ↵Miss Islington (bot)2024-02-292-5/+64
| | | | | | | | | | | | | | | | | | | | | | | | (GH-114573) (GH-115547) gh-114572: Fix locking in cert_store_stats and get_ca_certs (GH-114573) * gh-114572: Fix locking in cert_store_stats and get_ca_certs cert_store_stats and get_ca_certs query the SSLContext's X509_STORE with X509_STORE_get0_objects, but reading the result requires a lock. See https://github.com/openssl/openssl/pull/23224 for details. Instead, use X509_STORE_get1_objects, newly added in that PR. X509_STORE_get1_objects does not exist in current OpenSSLs, but we can polyfill it with X509_STORE_lock and X509_STORE_unlock. * Work around const-correctness problem * Add missing X509_STORE_get1_objects failure check * Add blurb (cherry picked from commit bce693111bff906ccf9281c22371331aaff766ab) Co-authored-by: David Benjamin <davidben@google.com>
* [3.12] Update an out-of-date example in the itertools recipe intro ↵Miss Islington (bot)2024-02-281-1/+1
| | | | (gh-116082) (gh-116084)
* [3.12] gh-115821: [Enum] better error message for calling super().__new__() ↵Ethan Furman2024-02-281-0/+3
| | | | | (GH-116065) Add note to not call super().__new__() in docs.
* [3.12] Improve all_equal() recipe (gh-116081) (gh-116083)Miss Islington (bot)2024-02-281-3/+4
|
* [3.12] gh-115197: Stop resolving host in urllib.request proxy bypass (GH-115210)Miss Islington (bot)2024-02-283-44/+64
| | | | | | | | gh-115197: Stop resolving host in urllib.request proxy bypass (GH-115210) Use of a proxy is intended to defer DNS for the hosts to the proxy itself, rather than a potential for information leak of the host doing DNS resolution itself for any reason. Proxy bypass lists are strictly name based. Most implementations of proxy support agree. (cherry picked from commit c43b26d02eaa103756c250e8d36829d388c5f3be) Co-authored-by: Weii Wang <weii.wang@canonical.com>
* [3.12] GH-115986 Reorder pprint docs and amend some references (GH-116019) ↵Miss Islington (bot)2024-02-281-89/+92
| | | | | | | | | | | | | | | | (#116061) GH-115986 Reorder pprint docs and amend some references (GH-116019) Introduce a new subsubsection, 'Functions', for module level functions, and place it before the PrettyPrinter class reference. Also: - Fix pprint.pprint() references so they properly link to the module level function. - Add links to sys.stdout. (cherry picked from commit 6c1c94dc517b77afcebb25436a4b7b0d13b6eb4d) Co-authored-by: Kerim Kabirov <39376984+Privat33r-dev@users.noreply.github.com>
* [3.12] doc: Use super() in subclassed JSONEncoder examples (GH-115565) ↵Miss Islington (bot)2024-02-282-3/+3
| | | | | | | | | | | (GH-116047) doc: Use super() in subclassed JSONEncoder examples (GH-115565) Replace calls to `json.JSONEncoder.default(self, obj)` by `super().default(obj)` within the examples of the documentation. (cherry picked from commit 647053fed182066d3b8c934fb0bf52ee48ff3911) Co-authored-by: Jan Max Meyer <jmm@phorward.de>
* [3.12] gh-115961: Improve tests for compressed file-like objects (GH-115963) ↵Miss Islington (bot)2024-02-285-45/+476
| | | | | | | | | | | | | | | (GH-116032) * Increase coverage for compressed file-like objects initialized with a file name, an open file object, a file object opened by file descriptor, and a file-like object without name and mode attributes (io.BytesIO) * Increase coverage for name, fileno(), mode, readable(), writable(), seekable() in different modes and states * No longer skip tests with bytes names * Test objects implementing the path protocol, not just pathlib.Path. (cherry picked from commit e72576c48b8be1e4f22c2f387f9769efa073c5be) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-112006: Fix inspect.unwrap() for types where __wrapped__ is a data ↵Miss Islington (bot)2024-02-273-13/+23
| | | | | | | | descriptor (GH-115540) (GH-115966) (cherry picked from commit 68c79d21fa791d7418a858b7aa4604880e988a02) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] bpo-43952: Fix multiprocessing Listener authkey bug (GH-25845) ↵Miss Islington (bot)2024-02-273-1/+23
| | | | | | | | (GH-115995) Listener.accept() no longer hangs when authkey is an empty bytes object. (cherry picked from commit 686ec17f506cddd0b14a8aad5849c15ffc20ed46) Co-authored-by: Miguel Brito <5544985+miguendes@users.noreply.github.com>
* [3.12] gh-115315: Update time.rst to include microseconds field (%f) in ↵Miss Islington (bot)2024-02-271-6/+16
| | | | | | | chart (GH-115316) (#115990) Co-authored-by: Tahoma Software <bacon@tahoma.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] bpo-44865: Fix yet one missing translations in argparse (GH-27668) ↵Miss Islington (bot)2024-02-262-1/+3
| | | | | | | (GH-115974) (cherry picked from commit 6087315926fb185847a52559af063cc7d337d978) Co-authored-by: Jérémie Detrey <jdetrey@users.noreply.github.com>
* [3.12] gh-77956: Add the words 'default' and 'version' help text ↵Serhiy Storchaka2024-02-262-2/+5
| | | | | | | | | localizable (GH-12711) (GH-115967) (cherry picked from commit da382aaf52d761a037874bee27bb5db69906df9e) Co-authored-by: paul.j3 Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com> Co-authored-by: Jérémie Detrey <jdetrey@users.noreply.github.com>
* [3.12] gh-114763: Protect lazy loading modules from attribute access races ↵Miss Islington (bot)2024-02-263-32/+94
| | | | | | | | | | (GH-114781) (GH-115870) gh-114763: Protect lazy loading modules from attribute access races (GH-114781) Setting the __class__ attribute of a lazy-loading module to ModuleType enables other threads to attempt to access attributes before the loading is complete. Now that is protected by a lock. (cherry picked from commit 200271c61db44d90759f8a8934949aefd72d5724) Co-authored-by: Chris Markiewicz <effigies@gmail.com>
* [3.12] gh-115881: Ensure `ast.parse()` parses conditional context managers ↵Alex Waygood2024-02-264-10/+10
| | | | even with low `feature_version` passed (#115920) (#115959)
* [3.12] gh-115823: Calculate correctly error locations when dealing with ↵Miss Islington (bot)2024-02-263-11/+13
| | | | | | | | implicit encodings (GH-115824) (#115949) gh-115823: Calculate correctly error locations when dealing with implicit encodings (GH-115824) (cherry picked from commit 015b97d19a24a169cc3c0939119e1228791e4253) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.12] gh-115931: Fix `SyntaxWarning`s in `test_unparse` (GH-115935) (#115948)Miss Islington (bot)2024-02-261-2/+11
| | | | | | gh-115931: Fix `SyntaxWarning`s in `test_unparse` (GH-115935) (cherry picked from commit b7383b8b71d49c761480ae9a8b2111644310e61d) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-115091: Remove a left-over sentence that refers to Py_OptimizeFlag ↵Miss Islington (bot)2024-02-261-4/+0
| | | | | | | | from ctypes documentation (GH-115092) (GH-115936) Remove a left-over sentence that refers to an example that was present in Python 3.10 and was using ``Py_OptimizeFlag``. (cherry picked from commit 915d7dd090387b52f62bdc2f572413bc87297cee) Co-authored-by: Antti Haapala <antti.haapala@interjektio.fi>
* [3.12] Doc: Clarify the return type of Event.wait when timeout is used ↵Miss Islington (bot)2024-02-261-10/+7
| | | | | | | (GH-104168) (GH-115938) (cherry picked from commit 37f5d06b1bf830048c09ed967bb2cda945d56541) Co-authored-by: Phil Elson <pelson.pub@gmail.com>
* [3.12] gh-101100: Fix Sphinx warnings in `whatsnew/2.1.rst` (GH-112357) ↵Miss Islington (bot)2024-02-262-38/+37
| | | | | | | | (#115932) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-115921: Change 'equation' to 'expression' in random.rst ↵Miss Islington (bot)2024-02-261-1/+2
| | | | | | | | (GH-115927) (#115928) In uniform function entry. (cherry picked from commit de0b4f95cbfe1f868514029289597204074c05c8) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-101100: Fix broken xrefs in fcntl module doc (GH-115691) (#115924)Carol Willing2024-02-263-16/+29
| | | | | | | | | | | | | | | | | | | | | | | | * clean up fcntl module doc * simplify * a few changes, based on suggestion by CAM-Gerlach * nitpick ignore for a couple other C functions mentioned in the fcntl module doc * more changes, especially related to LOCK_* constants * :data: back to :const: * Apply suggestions from code review --------- (cherry picked from commit 84a275c4a2c8a22d198c6f227d538e6b27bbb029) Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* [3.12] gh-113479: Link to workaround for subtle issue with takewhile() ↵Miss Islington (bot)2024-02-251-33/+41
| | | | (gh-115890) (gh-115910)
* [3.12] gh-103417: Fix the scheduler example (GH-111497) (GH-115908)Miss Islington (bot)2024-02-251-1/+1
| | | | | | | | Arguments to enterabs() are specified as Unix time. If the scheduler use the time.monotonic timer, the code will take decades to complete. (cherry picked from commit cb287d342139509e03a2dbe5ea2608627fd3a350) Co-authored-by: mauricelambert <50479118+mauricelambert@users.noreply.github.com>
* [3.12] gh-115886: Handle embedded null characters in shared memory name ↵Serhiy Storchaka2024-02-253-3/+30
| | | | | | | (GH-115887) (GH-115906) shm_open() and shm_unlink() now check for embedded null characters in the name and raise an error instead of silently truncating it. (cherry picked from commit 79811ededd160b6e8bcfbe4b0f9d5b4589280f19)