]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Mon, 11 Mar 2024 07:23:05 +0000 (08:23 +0100)]
[3.11] gh-116576: Fix `Tools/scripts/sortperf.py` sorting the same list (GH-116577) (#116583)
gh-116576: Fix `Tools/scripts/sortperf.py` sorting the same list (GH-116577)
(cherry picked from commit
4704e55a71c859c5d17cc2747ba62f49da58ea2d )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sat, 9 Mar 2024 22:08:23 +0000 (23:08 +0100)]
[3.11] gh-116535: Fix distracting "TypeError" in example code (gh-116538) (gh-116552)
gh-116535: Fix distracting "TypeError" in example code (gh-116538)
(cherry picked from commit
db8f423f58e336eb6180a70d9886b443d7203c2c )
Co-authored-by: Declan <5962877+dec1@users.noreply.github.com>
Miss Islington (bot) [Sat, 9 Mar 2024 11:41:46 +0000 (12:41 +0100)]
[3.11] gh-116520: Fix error handling in `os_get_terminal_size_impl` in `posixmodule` (GH-116521) (#116540)
gh-116520: Fix error handling in `os_get_terminal_size_impl` in `posixmodule` (GH-116521)
(cherry picked from commit
b4b4e764a798bab60324871074ce4cdebb9d01bb )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sat, 9 Mar 2024 09:36:02 +0000 (10:36 +0100)]
[3.11] GH-116218 Docs: Add availability information for the 'resource' module (GH-116256) (#116534)
GH-116218 Docs: Add availability information for the 'resource' module (GH-116256)
Add availability data to 'resource' module Docs
(cherry picked from commit
03f86b1b626ac5b0df1cc74d8f80ea11117aec8c )
Co-authored-by: Kerim Kabirov <39376984+Privat33r-dev@users.noreply.github.com>
Miss Islington (bot) [Sat, 9 Mar 2024 00:57:16 +0000 (01:57 +0100)]
[3.11] gh-105535 Document potential performance trap during enum creation (GH-107119) (GH-116512)
(cherry picked from commit
601f3a7b3391e9d219a8ec44a6c56d00ce584d2a )
Co-authored-by: Nicolas A. Oyarzabal <79150521+nicky-eng@users.noreply.github.com>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Fri, 8 Mar 2024 11:25:39 +0000 (12:25 +0100)]
[3.11] gh-116447: Fix possible UB in `arraymodule` and `getargs` (GH-116459) (#116497)
gh-116447: Fix possible UB in `arraymodule` and `getargs` (GH-116459)
(cherry picked from commit
fdb2d90a274158aee23b526d972172bf41bd4b7e )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Fri, 8 Mar 2024 08:27:33 +0000 (09:27 +0100)]
[3.11] gh-116485: Fixed the typo (GH-116486) (#116490)
Co-authored-by: Varun Gole <59524264+varungole@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Thu, 7 Mar 2024 22:16:32 +0000 (23:16 +0100)]
gh-116472: Replace literal newlines with escape characters in MSBuild files (GH-116473)
(cherry picked from commit
5d0cdfe519e6f35ccae1a1adca1ffd7fac10cee0 )
Co-authored-by: Dan Albert <dan@gingerhq.net>
Miss Islington (bot) [Thu, 7 Mar 2024 09:10:08 +0000 (10:10 +0100)]
[3.11] gh-116448: Handle errors correctly in `os_waitid_impl` in `posixmodule` (GH-116449) (#116453)
gh-116448: Handle errors correctly in `os_waitid_impl` in `posixmodule` (GH-116449)
(cherry picked from commit
882fcede83af783a834b759e4643130dc1307ee3 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Serhiy Storchaka [Thu, 7 Mar 2024 08:35:24 +0000 (10:35 +0200)]
[3.11] gh-115664: Fix ordering of more versionadded and versionchanged directives (GH-116298) (GH-116450) (GH-116452)
(cherry picked from commit
1e75fe146857b5e6624bd3281675cf20cc356273 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit
808a77612fb89b125d25efac2788522a100e8a6d )
Miss Islington (bot) [Wed, 6 Mar 2024 22:20:37 +0000 (23:20 +0100)]
[3.11] gh-88118: Fix some test_multiprocessing flakiness. (GH-116434) (GH-116441)
Fix some test_multiprocessing flakiness.
Potentially introduced by https://github.com/python/cpython/pull/25845
not joining that thread likely leads to recently observed "environment
changed" logically passing but overall failing tests seen on some
buildbots similar to:
```
1 test altered the execution environment (env changed):
test.test_multiprocessing_fork.test_processes
2 re-run tests:
test.test_multiprocessing_fork.test_processes
test.test_multiprocessing_forkserver.test_processes
```
(cherry picked from commit
ea1803e608a7aaf9cf2c07e510d8540d46d3b9ad )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Sebastian Pipping [Wed, 6 Mar 2024 22:17:02 +0000 (23:17 +0100)]
[3.11] gh-115398: Expose Expat >=2.6.0 reparse deferral API (CVE-2023-52425) (GH-115623) (#116268)
Allow controlling Expat >=2.6.0 reparse deferral (CVE-2023-52425) by adding five new methods:
- `xml.etree.ElementTree.XMLParser.flush`
- `xml.etree.ElementTree.XMLPullParser.flush`
- `xml.parsers.expat.xmlparser.GetReparseDeferralEnabled`
- `xml.parsers.expat.xmlparser.SetReparseDeferralEnabled`
- `xml.sax.expatreader.ExpatParser.flush`
Based on the "flush" idea from #115138 (comment) .
- Please treat as a security fix related to CVE-2023-52425.
(cherry picked from commit
6a95676 )
(cherry picked from commit
73807eb )
(cherry picked from commit
eda2963 )
---------
Includes code suggested-by: Snild Dolkow <snild@sony.com>
and by core dev Serhiy Storchaka.
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Łukasz Langa [Wed, 6 Mar 2024 16:13:10 +0000 (17:13 +0100)]
[3.11] gh-90300: Reformat the Python CLI help output (GH-115847) (GH-116418)
(cherry picked from commit
2e92ffd7fa89e3bd33ee2f31541d3dc53aaa2d12 )
(cherry picked from commit
2bdd1d6f15d5507a9ed6dff10e9fb57e2a8c0b40 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 6 Mar 2024 15:07:08 +0000 (16:07 +0100)]
[3.11] gh-116143: Fix race condition in pydoc _start_server (GH-116144) (#116416)
gh-116143: Fix race condition in pydoc _start_server (GH-116144)
(cherry picked from commit
02ee475ee3ce9468d44758df2cd79df9f0926303 )
Co-authored-by: Itamar Oren <itamarost@gmail.com>
Miss Islington (bot) [Wed, 6 Mar 2024 09:08:35 +0000 (10:08 +0100)]
[3.11] gh-116404: Handle errors correctly in `wait_helper` in `posixmodule` (GH-116405) (#116407)
gh-116404: Handle errors correctly in `wait_helper` in `posixmodule` (GH-116405)
(cherry picked from commit
22ccf13b332902142fe0c52c593f9efc152c7761 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Nikita Sobolev [Wed, 6 Mar 2024 07:54:34 +0000 (10:54 +0300)]
[3.11] gh-116326: Handler errors correctly in `getwindowsversion` in `sysmodule` (GH-116339) (#116388)
(cherry picked from commit
c91bdf86ef1cf9365b61a46aa2e51e5d1932b00a )
Brett Cannon [Tue, 5 Mar 2024 22:05:42 +0000 (14:05 -0800)]
[3.11] GH-116313: get WASI builds to run under wasmtime 18 w/ WASI 0.2/preview2 primitives (GH-116327) (GH-116373) (GH-116384)
(cherry picked from commit
88fdb082d98104dd5612b06397f4c764a0936616 )
Miss Islington (bot) [Tue, 5 Mar 2024 21:20:59 +0000 (22:20 +0100)]
[3.11] gh-115986: Fix inaccuracies in pprint docs (GH-116104) (#116383)
Amend wording after gh-116019 was merged.
(cherry picked from commit
e205c5cd8f1a49d0ef126123312ee8a40d1416b6 )
Co-authored-by: Kerim Kabirov <39376984+Privat33r-dev@users.noreply.github.com>
Terry Jan Reedy [Tue, 5 Mar 2024 20:33:59 +0000 (15:33 -0500)]
[3.11] chore: fix typos (GH-116345) (#116375)
Co-authored-by: cui fliter <imcusg@gmail.com>
(cherry picked from commit
e7ba6e9dbe5433b4a0bcb0658da6a68197c28630 )
Miss Islington (bot) [Tue, 5 Mar 2024 17:52:03 +0000 (18:52 +0100)]
[3.11] gh-74668: Fix support of bytes in urllib.parse.parse_qsl() (GH-115771) (GH-116367)
urllib.parse functions parse_qs() and parse_qsl() now support bytes
arguments containing raw and percent-encoded non-ASCII data.
(cherry picked from commit
bdba8ef42b15e651dc23374a08143cc2b4c4657d )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 5 Mar 2024 17:32:30 +0000 (18:32 +0100)]
[3.11] gh-76511: Fix email.Message.as_string() for non-ASCII message with ASCII charset (GH-116125) (GH-116365)
(cherry picked from commit
f97f25ef5dfcdfec0d9a359fd970abd139cf3428 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Tue, 5 Mar 2024 16:26:29 +0000 (18:26 +0200)]
[3.11] Fix the PyGetSetDef documentation (GH-116056) (GH-116368)
(cherry picked from commit
df594011089a83d151ac7000954665536f3461b5 )
Miss Islington (bot) [Tue, 5 Mar 2024 16:12:22 +0000 (17:12 +0100)]
[3.11] gh-115777: Fix double versionadded directives (GH-116269) (GH-116362)
(cherry picked from commit
0064dfa0919cc93257c351a609f99461f6e4e3ac )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 5 Mar 2024 10:15:54 +0000 (11:15 +0100)]
[3.11] gh-116325: Raise `SyntaxError` rather than `IndexError` on ForwardRef with empty string arg (GH-116341) (#116348)
gh-116325: Raise `SyntaxError` rather than `IndexError` on ForwardRef with empty string arg (GH-116341)
(cherry picked from commit
a29998a06bf75264c3faaeeec4584a5f75b45a1f )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Mon, 4 Mar 2024 22:27:14 +0000 (23:27 +0100)]
[3.11] gh-116265: Remove obsolete sentence. (GH-116284) (#116332)
Remove sentence in Tools/c-analyzer/README referring to deleted
ignore-globals.txt.
(cherry picked from commit
88b5c665ee1624af1bc5097d3eb2af090b9cabed )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 4 Mar 2024 21:12:27 +0000 (22:12 +0100)]
[3.11] gh-115320: Refactor `get_hash_info` in `sysmodule.c` not to swallow errors (GH-115321) (#116324)
gh-115320: Refactor `get_hash_info` in `sysmodule.c` not to swallow errors (GH-115321)
(cherry picked from commit
207030f5527d405940b79c10c1413c1e8ff696c1 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Hugo van Kemenade [Mon, 4 Mar 2024 20:57:35 +0000 (22:57 +0200)]
[3.11] Docs: update using/configure.rst (GH-116274) (#116277)
Miss Islington (bot) [Mon, 4 Mar 2024 12:28:21 +0000 (13:28 +0100)]
[3.11] GH-116271 Docs: provide clarification for object assignments in the Tutorial section (GH-116283) (#116306)
Co-authored-by: Kerim Kabirov <39376984+Privat33r-dev@users.noreply.github.com>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
AN Long [Mon, 4 Mar 2024 11:54:46 +0000 (19:54 +0800)]
gh-104711: Add security warning to the CGIHTTPRequestHandler document (GH-115915)
(cherry picked from commit
dac8ff4c401f75e65a5eef1514f2d7987e63bbfe )
Miss Islington (bot) [Mon, 4 Mar 2024 10:04:21 +0000 (11:04 +0100)]
[3.11] gh-116296: Fix refleak in reduce_newobj() corner case (GH-116297) (#116300)
(cherry picked from commit
17c4849981905fb1c9bfbb2b963b6ee12e3efb2c )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
Terry Jan Reedy [Sun, 3 Mar 2024 20:32:56 +0000 (15:32 -0500)]
[3.11] gh-116281: Remove wrong '\' from '\*' in some doc signatures (GH-116282) (#116289)
gh-116281: Remove wrong '\' from '\*' in some doc signatures (#116282)
(cherry picked from commit
4859ecb8609b51e2f6b8fb1b295e9ee0f83e1be6 )
Co-authored-by: HarryLHW 123lhw321@gmail.com
Nikita Sobolev [Sun, 3 Mar 2024 20:20:01 +0000 (23:20 +0300)]
[3.11] gh-112281: Allow `Union` with unhashable `Annotated` metadata (GH-112283) (#116288)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Sun, 3 Mar 2024 19:56:24 +0000 (20:56 +0100)]
[3.11] gh-116010: Remove link to deprecated PEP 6 in FAQ guide (GH-116246) (#116287)
Co-authored-by: Iman Tabrizian <iman.tabrizian@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Sun, 3 Mar 2024 08:01:52 +0000 (09:01 +0100)]
[3.11] gh-115809: Improve TimedRotatingFileHandler.getFilesToDelete() (GH-115812) (GH-116262)
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>
Miss Islington (bot) [Sun, 3 Mar 2024 00:56:19 +0000 (01:56 +0100)]
[3.11] gh-72971: Clarify the special no-TypeError behavior for equality (GH-110729) (#116255)
(cherry picked from commit
67f742e03aacb6217c5bb496e31f96dbf31c6f86 )
Co-authored-by: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com>
Serhiy Storchaka [Sat, 2 Mar 2024 13:40:17 +0000 (15:40 +0200)]
[3.11] gh-114494: Change logging docstring to bool for exec_info (GH-114558) (GH-116242)
(cherry picked from commit
07236f5b39a2e534cf190cd4f7c73300d209520b )
Co-authored-by: Tristan Pank <tristanpank@gmail.com>
Miss Islington (bot) [Sat, 2 Mar 2024 01:13:39 +0000 (02:13 +0100)]
[3.11] GH-115978: Disable `*readv()` and `*writev()` on WASI (GH-116228) (GH-116232)
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>
Miss Islington (bot) [Fri, 1 Mar 2024 17:26:49 +0000 (18:26 +0100)]
[3.11] gh-116035: Document that both tzinfo and fold are ignored in comparisons if tzinfo is the same (GH-116187) (GH-116217)
This mostly restores information removed in
c12240ed28aac6494750e00143bc550c4d6d8ad1 (GH-114749).
(cherry picked from commit
05b04903a14279421ecdc6522b8202822de6ebb5 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 1 Mar 2024 16:41:58 +0000 (17:41 +0100)]
[3.11] gh-88352: Fix logging.TimedRotatingFileHandler (GH-116191) (GH-116209)
* 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>
Miss Islington (bot) [Fri, 1 Mar 2024 16:09:02 +0000 (17:09 +0100)]
[3.11] gh-104219: Document that idunders can return NotImplemented (GH-104220) (#116211)
(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>
Steve Dower [Fri, 1 Mar 2024 13:42:46 +0000 (13:42 +0000)]
gh-115554: Improved logic for handling multiple existing py.exe launcher installs (GH-116201)
Miss Islington (bot) [Fri, 1 Mar 2024 12:55:14 +0000 (13:55 +0100)]
[3.11] gh-101293: Fix support of custom callables and types in inspect.Signature.from_callable() (GH-115530) (GH-116197)
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>
Miss Islington (bot) [Fri, 1 Mar 2024 08:58:24 +0000 (09:58 +0100)]
[3.11] gh-115811: Update documentation to add some Logger attributes. (GH-116109) (GH-116186)
(cherry picked from commit
3b6f4cadf19e6a4edd2cbbbc96a0a4024b395648 )
Shantanu [Fri, 1 Mar 2024 01:56:53 +0000 (17:56 -0800)]
[3.11] gh-115881: Document feature_version limitations (#115980) (#116174)
Miss Islington (bot) [Fri, 1 Mar 2024 00:02:39 +0000 (01:02 +0100)]
[3.11] gh-116026: Try disabling rebuilds of dependents in Homebrew (GH-116027) (#116157)
(cherry picked from commit
02beb9f0208d22fd8bd893e6e6ec813f7e51b235 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Tian Gao [Thu, 29 Feb 2024 23:24:32 +0000 (15:24 -0800)]
[3.11] gh-87115: Set `__main__.__spec__` to `None` in pdb (GH-116141) (#116155)
* gh-87115: Set `__main__.__spec__` to `None` in pdb (#116141)
(cherry picked from commit
ccfc042bbf31e53c44b8aae444afd8365b798422 )
* [3.11] gh-87115: Set `__main__.__spec__` to `None` in pdb (GH-116141)
(cherry picked from commit
ccfc042bbf31e53c44b8aae444afd8365b798422 )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Miss Islington (bot) [Thu, 29 Feb 2024 22:42:31 +0000 (23:42 +0100)]
[3.11] Fix rendering of null character in ast.rst (GH-116080) (#116161)
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>
Miss Islington (bot) [Thu, 29 Feb 2024 21:03:59 +0000 (22:03 +0100)]
[3.11] gh-73580: Docs for tunnelling TLS through TLS (GH-22539) (GH-116150)
(cherry picked from commit
91c3c64237f56bde9d1c1b8127fdcb02a112b5a4 )
Co-authored-by: Carl Bordum Hansen <carl@bordum.dk>
Miss Islington (bot) [Thu, 29 Feb 2024 20:53:50 +0000 (21:53 +0100)]
[3.11] Docs: mark up NotImplemented using the :data: role throughout the docs (GH-116135) (#116148)
(cherry picked from commit
dbe44f150cd161bd327ed662e527a4c93829fb3e )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Thu, 29 Feb 2024 19:48:38 +0000 (20:48 +0100)]
[3.11] gh-72463: Fix ctypes/test_loading.py so that test_find reports skipped (GH-18312) (GH-116137)
(cherry picked from commit
04d1000071b5eefd4b1dd69051aacad343da4b21 )
Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
Miss Islington (bot) [Thu, 29 Feb 2024 14:44:55 +0000 (15:44 +0100)]
[3.11] gh-116103: Prevent error in WindowsLoadTracker.__del__ on permission error (GH-116105) (GH-116121)
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>
Miss Islington (bot) [Thu, 29 Feb 2024 09:54:48 +0000 (10:54 +0100)]
[3.11] gh-115937: Remove implementation details from inspect.signature() docs (GH-116086) (#116107)
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>
Miss Islington (bot) [Wed, 28 Feb 2024 20:53:00 +0000 (21:53 +0100)]
[3.11] gh-115197: Stop resolving host in urllib.request proxy bypass (GH-115210)
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>
Erlend E. Aasland [Wed, 28 Feb 2024 20:11:12 +0000 (21:11 +0100)]
[3.11] GH-115986 Reorder pprint docs and amend some references (#116019) (#116064)
(cherry picked from commit
6c1c94dc517b77afcebb25436a4b7b0d13b6eb4d )
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.
Co-authored-by: Kerim Kabirov <39376984+Privat33r-dev@users.noreply.github.com>
Irit Katriel [Wed, 28 Feb 2024 19:12:16 +0000 (19:12 +0000)]
[3.11] gh-116034: fix location info on the error of a failed assertion (#116052)
Miss Islington (bot) [Wed, 28 Feb 2024 14:08:40 +0000 (15:08 +0100)]
[3.11] doc: Use super() in subclassed JSONEncoder examples (GH-115565) (GH-116046)
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>
Serhiy Storchaka [Wed, 28 Feb 2024 09:38:39 +0000 (11:38 +0200)]
[3.11] gh-115961: Improve tests for compressed file-like objects (GH-115963) (GH-116039)
* 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 )
Miss Islington (bot) [Tue, 27 Feb 2024 18:35:55 +0000 (19:35 +0100)]
[3.11] gh-112006: Fix inspect.unwrap() for types where __wrapped__ is a data descriptor (GH-115540) (GH-115965)
(cherry picked from commit
68c79d21fa791d7418a858b7aa4604880e988a02 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 27 Feb 2024 16:14:01 +0000 (17:14 +0100)]
[3.11] bpo-43952: Fix multiprocessing Listener authkey bug (GH-25845) (GH-115994)
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>
Miss Islington (bot) [Tue, 27 Feb 2024 13:40:33 +0000 (14:40 +0100)]
[3.11] gh-115315: Update time.rst to include microseconds field (%f) in chart (GH-115316) (#115991)
Co-authored-by: Tahoma Software <bacon@tahoma.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 26 Feb 2024 23:14:32 +0000 (00:14 +0100)]
[3.11] bpo-44865: Fix yet one missing translations in argparse (GH-27668) (GH-115975)
(cherry picked from commit
6087315926fb185847a52559af063cc7d337d978 )
Co-authored-by: Jérémie Detrey <jdetrey@users.noreply.github.com>
Serhiy Storchaka [Mon, 26 Feb 2024 21:36:57 +0000 (23:36 +0200)]
[3.11] gh-77956: Add the words 'default' and 'version' help text localizable (GH-12711) (GH-115968)
(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>
Miss Islington (bot) [Mon, 26 Feb 2024 20:50:55 +0000 (21:50 +0100)]
[3.11] gh-114763: Protect lazy loading modules from attribute access races (GH-114781) (GH-115871)
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>
Alex Waygood [Mon, 26 Feb 2024 16:27:51 +0000 (16:27 +0000)]
[3.11] gh-115881: Ensure `ast.parse()` parses conditional context managers even with low `feature_version` passed (#115920) (#115960)
Miss Islington (bot) [Mon, 26 Feb 2024 16:08:37 +0000 (17:08 +0100)]
[3.11] gh-115823: Calculate correctly error locations when dealing with implicit encodings (GH-115824) (#115950)
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>
Miss Islington (bot) [Mon, 26 Feb 2024 09:59:32 +0000 (10:59 +0100)]
[3.11] Doc: Clarify the return type of Event.wait when timeout is used (GH-104168) (GH-115939)
(cherry picked from commit
37f5d06b1bf830048c09ed967bb2cda945d56541 )
Co-authored-by: Phil Elson <pelson.pub@gmail.com>
Miss Islington (bot) [Mon, 26 Feb 2024 06:55:56 +0000 (07:55 +0100)]
[3.11] gh-101100: Fix Sphinx warnings in `whatsnew/2.1.rst` (GH-112357) (#115933)
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>
Miss Islington (bot) [Mon, 26 Feb 2024 03:57:48 +0000 (04:57 +0100)]
[3.11] gh-115921: Change 'equation' to 'expression' in random.rst (GH-115927) (#115929)
In uniform function entry.
(cherry picked from commit
de0b4f95cbfe1f868514029289597204074c05c8 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Carol Willing [Mon, 26 Feb 2024 01:32:52 +0000 (17:32 -0800)]
[3.11] gh-101100: Fix broken xrefs in fcntl module doc (GH-115691) (#115925)
* 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>
Miss Islington (bot) [Sun, 25 Feb 2024 12:04:47 +0000 (13:04 +0100)]
[3.11] gh-103417: Fix the scheduler example (GH-111497) (GH-115909)
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>
Serhiy Storchaka [Sun, 25 Feb 2024 11:12:07 +0000 (13:12 +0200)]
[3.11] gh-115886: Handle embedded null characters in shared memory name (GH-115887) (GH-115907)
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 )
Miss Islington (bot) [Sun, 25 Feb 2024 10:52:55 +0000 (11:52 +0100)]
[3.11] bpo-14322: added test case for invalid update to hmac (GH-26636) (#115905)
Co-authored-by: Arjun <ccldarjun@icloud.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Hugo van Kemenade [Sun, 25 Feb 2024 10:19:23 +0000 (12:19 +0200)]
[3.11] gh-101100: Fix Sphinx warnings in `whatsnew/2.0.rst` (GH-112351) (#115903)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Sun, 25 Feb 2024 08:06:37 +0000 (09:06 +0100)]
[3.11] Add an example of of custom `__repr__` (GH-112761) (#115901)
Added to repr entry in Doc/library/functions.rst.
---------
(cherry picked from commit
5770006ffac2abd4f1c9fd33bf5015c9ef023576 )
Co-authored-by: Oh seungmin <tmdals179@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 25 Feb 2024 04:30:34 +0000 (05:30 +0100)]
[3.11] Erase some unnecessary quotes on data model doc (GH-113521) (#115897)
Thanks to Pedro Arthur Duarte (pedroarthur.jedi at gmail.com) for help with this bug.
(cherry picked from commit
f7455864f22369cc23bf3428624f310305cac999 )
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Miss Islington (bot) [Sat, 24 Feb 2024 08:17:36 +0000 (09:17 +0100)]
[3.11] gh-115872: Doc: remove obsolete reference to MSI packages (GH-115873) (#115877)
Co-authored-by: partev <petrosyan@gmail.com>
Miss Islington (bot) [Fri, 23 Feb 2024 22:11:09 +0000 (23:11 +0100)]
[3.11] Update http.cookiejar document for cookie object attributes (GH-101885) (#115834)
Update http.cookiejar document for cookie object attributes (GH-101885)
(cherry picked from commit
a3859422d15d98892fd53499916bd424f841404f )
Co-authored-by: NewUserHa <32261870+NewUserHa@users.noreply.github.com>
Miss Islington (bot) [Fri, 23 Feb 2024 20:43:53 +0000 (21:43 +0100)]
[3.11] gh-67044: Always quote or escape \r and \n in csv.writer() (GH-115741) (GH-115867)
(cherry picked from commit
c688c0f130906ff7725a126fff143d1389884f89 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 23 Feb 2024 19:25:38 +0000 (20:25 +0100)]
[3.11] gh-54358: Clarify data chunking in pyexpat (GH-31629) (GH-115865)
(cherry picked from commit
462a2fc09d9e5f7cdd3a8f2faed73e5bc2c93349 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Éric Araujo <merwok@netwok.org>
Miss Islington (bot) [Fri, 23 Feb 2024 16:34:21 +0000 (17:34 +0100)]
[3.11] gh-89480: Document the gdb helpers (GH-115657) (GH-115858)
Content adapted from https://devguide.python.org/development-tools/gdb/GH-
and https://wiki.python.org/moin/DebuggingWithGdb.
The original content on the Wiki page came from gdb debug help used by
the Launchpad (https://launchpad.net/) team.
Thanks to Anatoly Techtonik and user `rmf` for substantial improvements to the Wiki page.
The history of the Devguide page follows
(with log entries expanded for major content contributions):
Hugo van Kemenade, Sat Dec 30 21:22:04 2023 +0200
Hugo van Kemenade, Fri Dec 8 12:04:32 2023 +0200
Erlend E. Aasland & Hugo van Kemenade, Tue Aug 8 22:05:34 2023 +0200
Satish Mishra, Sat Feb 11 13:54:57 2023 +0530
Hugo van Kemenade, Fri Dec 23 17:33:33 2022 +0200
Skip Montanaro, Hugo, Erlend, & Ezio, Fri Nov 4 05:04:23 2022 -0500
Add a GDB tips section to Advanced Tools (GH-977)
Adam Turner, Wed Jun 15 21:19:23 2022 +0100
Adam Turner, Tue Jun 14 11:12:26 2022 +0100
Suriyaa, Fri Jun 8 19:39:23 2018 +0200
Jeff Allen, Tue Oct 24 18:12:53 2017 +0100
Jeff Allen, Fri Oct 13 13:43:43 2017 +0100
Mariatta, Wed Jan 4 09:14:55 2017 -0800
Carol Willing, Mon Sep 26 14:50:54 2016 -0700
Zachary Ware, Thu Jul 21 10:42:23 2016 -0500
Georg Brandl, Mon Nov 3 11:28:19 2014 +0100
Add instruction how to activate python-gdb.py
Georg Brandl, Sun Mar 9 10:32:01 2014 +0100
Georg Brandl, Tue Apr 3 09:12:53 2012 +0200
Georg Brandl, Sat Mar 5 17:32:35 2011 +0100
Dave Malcolm, Fri Jan 21 12:34:09 2011 -0500
Add documentation on the gdb extension commands provided in libpython.py
I adapted this from documentation I wrote for the Fedora wiki:
https://fedoraproject.org/wiki/Features/EasierPythonDebuggingGH-New_gdb_commands
reformatting it as rst, and making other minor changes
Brett Cannon, Thu Jan 20 15:16:52 2011 -0800
Dave Malcolm, Thu Jan 20 16:17:23 2011 -0500
Add some notes on the gdb pretty-printer hooks
Antoine Pitrou, Thu Jan 20 21:17:49 2011 +0100
Give an example backtrace
Antoine Pitrou, Thu Jan 20 21:03:06 2011 +0100
Expand explanations about gdb support
Brett Cannon, Thu Jan 20 11:33:36 2011 -0800
Tweak the gdb support title to fit in better with the devguide.
Brett Cannon, Mon Jan 17 21:12:54 2011 +0000
Short README on gdb support.
(cherry picked from commit
59057ce55a443f35bfd685c688071aebad7b3671 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Co-authored-by: anatoly techtonik <techtonik@gmail.com>
Co-authored-by: Antoine Pitrou <solipsis@pitrou.net>
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: Dave Malcolm <dmalcolm@redhat.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Georg Brandl <georg@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Jeff Allen <ja.py@farowl.co.uk>
Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Satish Mishra <7506satish@gmail.com>
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Co-authored-by: Suriyaa <isc.suriyaa@gmail.com>
Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
* Update (downdate?) this to Python 3.11
---------
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Co-authored-by: anatoly techtonik <techtonik@gmail.com>
Co-authored-by: Antoine Pitrou <solipsis@pitrou.net>
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: Dave Malcolm <dmalcolm@redhat.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Georg Brandl <georg@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Jeff Allen <ja.py@farowl.co.uk>
Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Satish Mishra <7506satish@gmail.com>
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Co-authored-by: Suriyaa <isc.suriyaa@gmail.com>
Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
Miss Islington (bot) [Fri, 23 Feb 2024 02:38:49 +0000 (03:38 +0100)]
[3.11] gh-88516: show file proxy icon in IDLE editor windows on macOS (GH-112894) (#115841)
The platform standard on macOS is to show a proxy icon for open
files in the titlebar of Windows. Make sure IDLE matches this
behaviour.
Don't use both the long and short names in the window title.
The behaviour of other editors (such as Text Editor) is to show
only the short name with the proxy icon.
(cherry picked from commit
b48101864c724a7eab41a6878a836f38e54e04fb )
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Thu, 22 Feb 2024 06:51:43 +0000 (07:51 +0100)]
[3.11] gh-115795: Doc: fix obsolete URL (GH-115749) (#115804)
gh-115795: Doc: fix obsolete URL (GH-115749)
(cherry picked from commit
7bc79371a62e8f45542cf5679ed35d0d29e94226 )
Co-authored-by: partev <petrosyan@gmail.com>
Miss Islington (bot) [Wed, 21 Feb 2024 21:44:06 +0000 (22:44 +0100)]
[3.11] gh-93205: When rotating logs with no namer specified, match whole extension (GH-93224) (GH-115785)
(cherry picked from commit
113687a8381d6dde179aeede607bcbca5c09d182 )
Co-authored-by: Gabriele Catania <gabriele.ctn@gmail.com>
Miss Islington (bot) [Wed, 21 Feb 2024 16:20:08 +0000 (17:20 +0100)]
[3.11] gh-96310: Fix a traceback in argparse when all options in a mutually exclusive group are suppressed (GH-96311) (GH-115768)
Reproducer depends on terminal size - the traceback occurs when there's
an option long enough so the usage line doesn't fit the terminal width.
Option order is also important for reproducibility.
Excluding empty groups (with all options suppressed) from inserts
fixes the problem.
(cherry picked from commit
5f7df88821347c5f44fc4e2c691e83a60a6c6cd5 )
Co-authored-by: Daniel Mach <daniel.mach@suse.com>
Miss Islington (bot) [Wed, 21 Feb 2024 12:50:07 +0000 (13:50 +0100)]
[3.11] gh-114785: Remove content from `Porting from Python2` how-to (GH-114805) (GH-115328)
Keep the page though, because people might still rely on it (the traffic shows that they do).
Instead of our own manual we now give links to the 3rd-party ones.
(cherry picked from commit
705c76d4a202f1faf41027d48d44eac0e76bb1f0 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Wed, 21 Feb 2024 11:43:16 +0000 (12:43 +0100)]
[3.11] gh-115399: Document CVE-2023-52425 under "XML vulnerabilities" (GH-115400) (GH-115761)
Doc/library/xml.rst: Document CVE-2023-52425 under "XML vulnerabilities"
(cherry picked from commit
fbd40ce46e7335a5dbaf48a3aa841be22d7302ba )
Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
Serhiy Storchaka [Tue, 20 Feb 2024 19:09:10 +0000 (21:09 +0200)]
[3.11] gh-115712: Support CSV dialects with delimiter=' ' and skipinitialspace=True (GH-115721) (GH-115729) (GH-115738)
(cherry picked from commit
5ea86f496a4cfb34abbe2b7bb6fa7f25eeeb6294 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
csv.writer() now quotes empty fields if delimiter is a space and
skipinitialspace is true and raises exception if quoting is not possible.
(cherry picked from commit
937d2821501de7adaa5ed8491eef4b7f3dc0940a )
Miss Islington (bot) [Tue, 20 Feb 2024 18:18:16 +0000 (19:18 +0100)]
[3.11] gh-86291: linecache: get module name from __spec__ if available (GH-22908) (GH-115732)
This allows getting source code for the __main__ module when a custom
loader is used.
(cherry picked from commit
e976baba99a5c243ff3a3b5ef2fd14608a398338 )
Co-authored-by: Eugene Toder <eltoder@users.noreply.github.com>
Miss Islington (bot) [Tue, 20 Feb 2024 16:36:59 +0000 (17:36 +0100)]
[3.11] Add missed `stream` argument (GH-111775) (#115717)
Add missed `stream` argument (GH-111775)
* Add missed `stream` argument
* Add news
(cherry picked from commit
1ff6c1416b0bb422f4847cd84fcb33662a2497ef )
Co-authored-by: Alexander Shadchin <shadchin@yandex-team.com>
Miss Islington (bot) [Tue, 20 Feb 2024 16:34:44 +0000 (17:34 +0100)]
[3.11] gh-114572: Fix locking in cert_store_stats and get_ca_certs (GH-114573) (#115549)
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>
Miss Islington (bot) [Tue, 20 Feb 2024 15:00:30 +0000 (16:00 +0100)]
[3.11] gh-112020: Document the meaning of empty bytes returned by socket.recv() (GH-112055) (GH-115723)
(cherry picked from commit
e71468ba4f5fb2da0cefe9e923b01811cb53fb5f )
Co-authored-by: talcs <talh8787@gmail.com>
Miss Islington (bot) [Tue, 20 Feb 2024 00:18:30 +0000 (01:18 +0100)]
[3.11] gh-115539: Allow enum.Flag to have None members (GH-115636) (GH-115695)
gh-115539: Allow enum.Flag to have None members (GH-115636)
(cherry picked from commit
c2cb31bbe1262213085c425bc853d6587c66cae9 )
Co-authored-by: Jason Zhang <yurenzhang2017@gmail.com>
Miss Islington (bot) [Mon, 19 Feb 2024 21:05:04 +0000 (22:05 +0100)]
gh-115543: Update py.exe to know about Python 3.13 and to install 3.12 by default (GH-115544)
(cherry picked from commit
6cd18c75a41a74cab69ebef0b7def3e48421bdd1 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Serhiy Storchaka [Mon, 19 Feb 2024 18:52:17 +0000 (20:52 +0200)]
[3.11] gh-115664: Fix versionadded and versionchanged directives in multiprocessing.rst (GH-115665) (GH-115682)
(cherry picked from commit
8f602981ba95273f036968cfc5ac28fdcd1808fa )
Brian Schubert [Mon, 19 Feb 2024 18:42:19 +0000 (13:42 -0500)]
[3.11] gh-115664: Fix chronological ordering of versionadded and versionchanged directives (GH-115676) (#115681)
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Miss Islington (bot) [Mon, 19 Feb 2024 18:25:59 +0000 (19:25 +0100)]
[3.11] Fix typo in multiprocessing docs (GH-115650) (#115680)
(cherry picked from commit
57d31ec3598429789492e0b3544efaaffca5799f )
Co-authored-by: Naglis Jonaitis <827324+naglis@users.noreply.github.com>
Miss Islington (bot) [Mon, 19 Feb 2024 18:20:51 +0000 (19:20 +0100)]
[3.11] gh-60346: Improve handling single-dash options in ArgumentParser.parse_known_args() (GH-114180) (GH-115674)
(cherry picked from commit
e47ecbd0420528f1f9f282d9e7acfcf586a4caa1 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Mon, 19 Feb 2024 18:06:13 +0000 (20:06 +0200)]
[3.11] Fix test_compile with -O mode (GH-115346) (GH-115673)
(cherry picked from commit
7b25a82e83ad8fe15e4302bb7655309573affa83 )
Miss Islington (bot) [Mon, 19 Feb 2024 17:54:59 +0000 (18:54 +0100)]
[3.11] gh-115341: Fix loading unit tests with doctests in -OO mode (GH-115342) (GH-115672)
(cherry picked from commit
872cc9957a9c8b971448e7377fad865f351da6c9 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 19 Feb 2024 17:45:56 +0000 (18:45 +0100)]
[3.11] Fix test_py_compile with -O mode (GH-115345) (GH-115670)
(cherry picked from commit
07ef9d86a5efa82d06a8e7e15dd3aff1e946aa6b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>