summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-110893: Improve the documentation for __future__ module ↵Miss Islington (bot)2024-01-291-42/+56
| | | | | | | | | | | | | | | | | | (GH-114642) (#114702) gh-110893: Improve the documentation for __future__ module (GH-114642) nedbat took issue with the phrasing "real module". I'm actually fine with that phrasing, but I do think the `__future__` page should be clear about the way in which the `__future__` module is special. (Yes, there was a footnote linking to the future statements part of the reference, but there should be upfront discussion). I'm sympathetic to nedbat's claim that no one really cares about `__future__._Feature`, so I've moved the interesting table up to the top. (cherry picked from commit 3b86891fd69093b60141300862f278614ba80613) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.12] gh-100734: Add 'Notable change in 3.11.x' to `whatsnew/3.11.rst` ↵Miss Islington (bot)2024-01-281-0/+26
| | | | | | | (GH-114657) (#114688) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Correct Skip Montanaro's email address (GH-114677) (#114679)Miss Islington (bot)2024-01-284-5/+5
| | | | | | Correct Skip Montanaro's email address (GH-114677) (cherry picked from commit 5ecfd750b4f511f270c38f0d748da9cffa279295) Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
* [3.12] gh-114100: Remove superfluous writing to fd 1 in test_pty (GH-114647) ↵Miss Islington (bot)2024-01-271-1/+21
| | | | | | | (GH-114655) (cherry picked from commit 7a470541e2bbc6f3e87a6d813e2ec42cf726de7a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-101100: Fix sphinx warnings in `reference/import.rst` (GH-114646) ↵Miss Islington (bot)2024-01-272-4/+4
| | | | | | (#114652) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-101100: Fix Sphinx warnings in `whatsnew/3.11.rst` and related ↵Hugo van Kemenade2024-01-2714-61/+61
| | | | (GH-114531) (#114649)
* [3.12] gh-113560: Improve docstrings for set.issubset() and set.issuperset() ↵Miss Islington (bot)2024-01-271-2/+10
| | | | | | | (GH-113562) (GH-114644) (cherry picked from commit 11c582235d86b6020710eff282eeb381a7bf7bb7) Co-authored-by: Charlie Zhao <zhaoyu_hit@qq.com>
* [3.12] gh-101100: Fix sphinx warnings in `library/email.mime.rst` ↵Miss Islington (bot)2024-01-272-9/+8
| | | | | | | (GH-114635) (GH-114640) (cherry picked from commit 6a8944acb61d0a2c210ab8066cdcec8602110e2f) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-113445: Amend PyObject_RichCompareBool() docs (GH-113891) (GH-114638)Miss Islington (bot)2024-01-271-6/+2
| | | | | (cherry picked from commit 926881dc10ebf77069e02e66eea3e0d3ba500fe5) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* [3.12] Docs: rework the dbm.dumb introduction (GH-114550) (#114620)Miss Islington (bot)2024-01-261-30/+36
| | | | | | | | | | | | (cherry picked from commit 6c2b419fb91c8d7daa769d39f73768114b5eb45a) - consistently use correct parameter markup - consistently use submodule name as database name - improve accuracy of the dbm.dumb.open() spec - remove dumbdbm class refs and replace them with generic "database object" - use parameter list for dbm.dumb.open() (cherry picked from commit 6c2b419fb91c8d7daa769d39f73768114b5eb45a) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* Use Unicode unconditionally for _winapi.CreateFile (GH-114611)Steve Dower2024-01-262-13/+17
| | | Currently it switches based on build settings, but argument clinic does not handle it correctly.
* [3.12] Document PyOS_strtoul and PyOS_strtol (GH-114048) (GH-114618)Miss Islington (bot)2024-01-261-0/+36
| | | | | (cherry picked from commit 3f62bf32caf04cedb2c59579a0ce835d1e793d4d) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* [3.12] gh-77749: Fix inconsistent behavior of non-ASCII handling in ↵Miss Islington (bot)2024-01-263-1/+27
| | | | | | | | | | EmailPolicy.fold() (GH-6986) (GH-114606) It now always encodes non-ASCII characters in headers if utf8 is false. (cherry picked from commit 504334c7be5a56237df2598d338cd494a42fca4c) Co-authored-by: Rito Takeuchi <licht-t@outlook.jp> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Docs: mark up dbm.open() with param list (GH-114601) (#114604)Miss Islington (bot)2024-01-261-26/+26
| | | | | | | Also consolidate following paragraphs regarding database objects. (cherry picked from commit 0bd8297a2208125f76807cdf01f72abe5c94136b) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] Docs: reword dbm.ndbm introduction (#114549) (#114599)Erlend E. Aasland2024-01-261-20/+26
| | | | | | | | | (cherry picked from commit 4cf068ed0879cccf86a45f06fb274b350b89e911) - add abbreviation directives for NDBM and GDBM - consistently spell NDBM as NDBM - silence broken ndbm class refs - improve accuracy of dbm.ndbm.open() spec - use replacement text for NDBM/GDBM file format incompatibility note
* [3.12] Docs: fix versionchanged directives for dbm.open() and dbm.whichdb() ↵Miss Islington (bot)2024-01-261-5/+5
| | | | | | | (GH-114594) (#114595) (cherry picked from commit 8710faeac28e65c65862359413e8341492f529af) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] Docs: rework dbm introduction (GH-114551) (#114590)Miss Islington (bot)2024-01-261-10/+11
| | | | | | | | | - add refs to other parts of the docs (dict, bytes, etc.) - clarify whichdb() return value by using list markup - silence refs to example or generic submodule methods (keys, get, etc.) (cherry picked from commit 65cf5dce11a38e327b9b0abfca279d650452b34f) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] Docs: reword dbm.gnu introduction (#114548) (#114588)Erlend E. Aasland2024-01-261-19/+20
| | | | | | | | (cherry picked from commit 06c5de36f222b926bbc94831536096b974bd5e77) Also... - consistently spell GDBM as GDBM - silence gdbm class refs - improve accuracy of dbm.gdbm.open() spec
* gh-114561: Mark some tests in `test_wincosoleio` with ↵Miss Islington (bot)2024-01-251-1/+4
| | | | | | | `requires_resource('console')` decorator (GH-114565) (cherry picked from commit 33ae9895d4ac0d88447e529038bc4725ddd8c291) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [3.12] gh-77465: Increase test coverage for the numbers module (GH-111738) ↵Miss Islington (bot)2024-01-251-1/+157
| | | | | | | | (GH-114556) (cherry picked from commit e721adf4bd47b20ba0a93ad6471084de31bf20c7) Co-authored-by: AN Long <aisk@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-100107: Make py.exe launcher ignore app aliases that launch Microsoft ↵Miss Islington (bot)2024-01-252-0/+70
| | | | | | | Store (GH-114358) (cherry picked from commit d5c21c12c17b6e4db2378755af8e3699516da187) Co-authored-by: Vincent Cunningham <flagrama@users.noreply.github.com>
* [3.12] gh-108731: Add description of __slots__ to MemberDescriptorType docs ↵Miss Islington (bot)2024-01-241-0/+4
| | | | | | | (GH-108745) (GH-114536) (cherry picked from commit 6888cccac0776d965cc38a7240e1bdbacb952b91) Co-authored-by: plokmijnuhby <39633434+plokmijnuhby@users.noreply.github.com>
* [3.12] Docs: mark up the FTP_TLS() docs with param list (GH-114510) (#114532)Miss Islington (bot)2024-01-241-10/+46
| | | | | | | Also turn sentence about prot_p() into a note. (cherry picked from commit 6fadd68da5dd928847264b17f62a5b8b369c1c1e) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-104360: remove reference to removed module-level wrap_socket ↵Miss Islington (bot)2024-01-241-5/+1
| | | | | | | | | (GH-104361) (GH-114528) * remove reference to removed module-level wrap_socket * drive by typo fix (cherry picked from commit 127a49785247ac8af158b18e38b722e520054d71) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* [3.12] gh-101100: Fix Sphinx warnings in `c-api/structures.rst` (GH-113564) ↵Miss Islington (bot)2024-01-242-10/+10
| | | | | | | | (#114527) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] gh-101100: Fix sphinx warnings in `concurrent.futures.rst` ↵Hugo van Kemenade2024-01-242-21/+22
| | | | | | (GH-114521) (#114525) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-114440: Close writer pipe in multiprocessing.Queue, not ↵Petr Viktorin2024-01-243-5/+11
| | | | | | | | | | | | | | | concurrent.futures (GH-114489) This was left out of the 3.12 backport for three related issues: - gh-107219 (which adds `self.call_queue._writer.close()` to `_ExecutorManagerThread` in `concurrent.futures`) - gh-109370 (which changes this to be only called on Windows) - gh-109047 (which moves the call to `multiprocessing.Queue`'s `_terminate_broken`) Without this change, ProcessPoolExecutor sometimes hangs on Windows when a worker process is terminated. Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-113205: test_multiprocessing.test_terminate: Give tasks a chance ↵Miss Islington (bot)2024-01-241-0/+1
| | | | | | | to start (GH-114249) (GH-114516) (cherry picked from commit ce75b4c26d18dcd840fd2e7ee362a84209648d06) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-101100: Fix sphinx warnings in `asyncio-task.rst` (GH-114469) ↵Hugo van Kemenade2024-01-242-18/+16
| | | | | | | (#114519) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Fix a typo in the contextlib documentation (GH-114507) (#114514)Miss Islington (bot)2024-01-241-1/+1
|
* [3.12] gh-114492: Initialize struct termios before calling tcgetattr() ↵Miss Islington (bot)2024-01-232-0/+4
| | | | | | | | (GH-114495) (GH-114502) On Alpine Linux it could leave some field non-initialized. (cherry picked from commit d22c066b802592932f9eb18434782299e80ca42e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-101438: Avoid reference cycle in ElementTree.iterparse. ↵Miss Islington (bot)2024-01-232-10/+21
| | | | | | | | | | (GH-114269) (GH-114499) The iterator returned by ElementTree.iterparse() may hold on to a file descriptor. The reference cycle prevented prompt clean-up of the file descriptor if the returned iterator was not exhausted. (cherry picked from commit ce01ab536f22a3cf095d621f3b3579c1e3567859) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.12] Docs: use placeholders in dbm flag param docs (GH-114482) (#114497)Miss Islington (bot)2024-01-231-60/+43
| | | | | | | Also correct the default flag param for dbm.dumb.open(); it's 'c', not 'r'. (cherry picked from commit 8c265408c51609c6b4a6788cac9cc5fea7a14888) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-108303: Move `.whl` test files to `Lib/test/wheeldata/` ↵Miss Islington (bot)2024-01-234-1/+4
| | | | | | | | (GH-114343) (#114488) gh-108303: Move `.whl` test files to `Lib/test/wheeldata/` (GH-114343) (cherry picked from commit ba253a4794ae2d35a6f6df46a98a1ed38bd61268) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] Docs: mark up FTP.connect() and FTP.login() with param lists ↵Miss Islington (bot)2024-01-231-33/+70
| | | | | | | | | | | (GH-114395) (#114485) Use rst substitutions to reduce raw text duplication. (cherry picked from commit 01105c7c4f7f01a8b1077008e61d5c7df0ab832b) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] Docs: mark up FTP.retrbinary and FTP.storbinary with param lists ↵Miss Islington (bot)2024-01-232-17/+46
| | | | | | | | (GH-114399) (#114483) (cherry picked from commit 5277d4c7dbd1baee300e494fce2738cee218c243) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* [3.12] gh-101100: Fix sphinx warnings in `Doc/library/locale.rst` ↵Miss Islington (bot)2024-01-232-14/+48
| | | | | | | | | | | | (GH-114425) (#114477) gh-101100: Fix sphinx warnings in `Doc/library/locale.rst` (GH-114425) * gh-101100: Fix sphinx warnings in `Doc/library/locale.rst` * Remove `/` from signatures (cherry picked from commit 7d21cae964fc47afda400fc1fbbcf7984fcfe819) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] Docs: align usage of versionadded/versionchanged with recommended ↵Erlend E. Aasland2024-01-2327-165/+164
| | | | | | | | practice (#114409) (#114472) (cherry picked from commit 1d7bddd9612bcbaaedbc837e2936de773e855411) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* [3.12] GH-105900: Fix `pathlib.Path.symlink_to(target_is_directory=...)` ↵Miss Islington (bot)2024-01-231-3/+7
| | | | | | | | | docs (GH-114035) (#114464) Clarify that *target_is_directory* only matters if the target doesn't exist. (cherry picked from commit b822b85ac11e73bbe4417bf03ee770ab116bb42d) Co-authored-by: Barney Gale <barney.gale@gmail.com>
* [3.12] GH-82695: Clarify `pathlib.Path.mkdir()` documentation (GH-114032) ↵Miss Islington (bot)2024-01-231-3/+3
| | | | | | | | | | | (#114462) Remove a double negative in the documentation of `mkdir()`'s *exist_ok* parameter. (cherry picked from commit 32c227470aa6f72950b76206ffc529c258b4b8fa) Co-authored-by: Barney Gale <barney.gale@gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] GH-99334: Explain that `PurePath.is_relative_to()` is purely lexical. ↵Miss Islington (bot)2024-01-231-0/+7
| | | | | | (GH-114031) (#114460) (cherry picked from commit 3a61d24062aaa1e13ba794360b6c765d9a1f2b06)
* [3.12] gh-66944: Note that the `contextlib.closing` example is for ↵Miss Islington (bot)2024-01-231-0/+8
| | | | illustrative purposes (GH-112198) (#114458)
* [3.12] gh-114257: Ignore the FileNotFound error in ctypes.util._is_elf() ↵Miss Islington (bot)2024-01-223-2/+10
| | | | | | | (GH-114394) (GH-114444) (cherry picked from commit 7fc51c3f6b7b13f88480557ff14bdb1c049f9a37) Co-authored-by: AN Long <aisk@users.noreply.github.com>
* [3.12] gh-75128: Ignore EADDRNOTAVAIL error in ↵Miss Islington (bot)2024-01-222-3/+19
| | | | | | | | asyncio.BaseEventLoop.create_server() (GH-114420) (GH-114441) (cherry picked from commit a53e56e7d88b4f2a2943c9f191024198009fcf9e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Antoine Pitrou <pitrou@free.fr>
* [3.12] gh-114275: Skip doctests that use `asyncio` in `test_pdb` for WASI ↵Miss Islington (bot)2024-01-221-202/+208
| | | | | | | | builds (GH-114309) (#114439) gh-114275: Skip doctests that use `asyncio` in `test_pdb` for WASI builds (GH-114309) (cherry picked from commit efb81a60f5ce7e192095230a0f7ff9684d6f835a) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-101100: Fix Sphinx warnings in `reference/expressions.rst` ↵Miss Islington (bot)2024-01-222-27/+26
| | | | | | (GH-114194) (#114436) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] Docs: Fix typo in code snippet (GH-114421) (GH-114434)Miss Islington (bot)2024-01-221-1/+1
| | | | | (cherry picked from commit 6d30cbee013b4182937ffa11a7c87d2a7b6b7b41) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [3.12] gh-108303: Remove `Lib/test/shadowed_super.py` (GH-114372) (#114433)Miss Islington (bot)2024-01-222-8/+15
| | | | | | | | gh-108303: Remove `Lib/test/shadowed_super.py` (GH-114372) Move code into Lib/test/test_super.py. (cherry picked from commit 2ef520ebecf5544ba792266a5dbe4d53653a4a03) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-102512: Turn _DummyThread into _MainThread after os.fork() called ↵Miss Islington (bot)2024-01-223-9/+98
| | | | | | | | | | | | | | | | | | | | from a foreign thread (GH-113261) (GH-114430) Always set a _MainThread as a main thread after os.fork() is called from a thread started not by the threading module. A new _MainThread was already set as a new main thread after fork if threading.current_thread() was not called for a foreign thread before fork. Now, if it was called before fork, the implicitly created _DummyThread will be turned into _MainThread after fork. It fixes, in particularly, an incompatibility of _DummyThread with the threading shutdown logic which relies on the main thread having tstate_lock. (cherry picked from commit 49785b06ded19c7c4afce186bac90fea707470ea) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
* [3.12] gh-111803: Make test_deep_nesting from test_plistlib more strict ↵Miss Islington (bot)2024-01-221-2/+3
| | | | | | | | | | (GH-114026) (GH-114406) It is no longer silently passed if RecursionError was raised for low recursion depth. (cherry picked from commit db1c18eb6220653290a3ba9ebbe1df44394a3f19) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>