summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] [doc] Update logging documentation to improve grammar and elucidate ↵Miss Islington (bot)2024-04-042-11/+72
| | | | | an example. (GH-117541) (GH-117542) (cherry picked from commit df912c913a3d94995b379f1e19fe0a79acab6169)
* [3.12] gh-117521: Improve typing.TypeGuard docstring (GH-117522) (#117538)Miss Islington (bot)2024-04-041-11/+14
| | | | | (cherry picked from commit b32789ccb91bbe43e88193f68b1364a8da6d9866) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-117467: Add preserving of mailbox owner on flush (GH-117510) ↵Miss Islington (bot)2024-04-043-3/+51
| | | | | | | | (GH-117537) (cherry picked from commit 3f5bcc86d0764b691087e8412941e947554c93fd) Co-authored-by: Tony Mountifield <tony@mountifield.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-117267: Ensure DirEntry.stat().st_ctime still contains creation time ↵Miss Islington (bot)2024-04-032-0/+9
| | | | | | | during deprecation period (GH-117354) (cherry picked from commit 985917dc8d34e2d2f717f7a981580a8dcf18d53a) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] gh-117166: Ignore empty and temporary dirs in `test_makefile` ↵Miss Islington (bot)2024-04-031-2/+10
| | | | | | | | (GH-117190) (GH-117367) gh-117166: Ignore empty and temporary dirs in `test_makefile` (GH-117190) (cherry picked from commit d9cfe7e565a6e2dc15747a904736264e31a10be4) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-91565: Update issue tracker URL in error message. (GH-117450) ↵Miss Islington (bot)2024-04-031-2/+2
| | | | | | | | | | | | (#117497) gh-91565: Update issue tracker URL in error message. (GH-117450) * Update issue tracker URL in commit message. * Also update issue tracker URL in comment. (cherry picked from commit 8987a5c809343ae0dd2b8e607bf2c32a87773127) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* [3.12] gh-115538: Use pathlib to compare prefixes in test_venv (GH-117076)Miss Islington (bot)2024-04-021-1/+2
| | | | | | gh-115538: Use pathlib to compare prefixes in test_venv (GH-117076) (cherry picked from commit 52f5b7f9e05fc4a25e385c046e0b091641674556) Co-authored-by: AN Long <aisk@users.noreply.github.com>
* [3.12] Link to the Python type system specification (GH-117400) (#117448)Miss Islington (bot)2024-04-021-73/+15
| | | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.12] Docs: specify XML document name in xml.etree.elementtree example ↵Miss Islington (bot)2024-04-011-1/+1
| | | | | | | (GH-24223) (#117429) (cherry picked from commit 9dae05ee59eeba0e67af2a46f2a2907c9f8d7e4a) Co-authored-by: Moshe Kaplan <mosheekaplan@gmail.com>
* [3.12] Docs: add more links to PIPE in subprocess docs (GH-25416) (#117427)Miss Islington (bot)2024-04-011-5/+8
| | | | | (cherry picked from commit fc2071687b708598264a3403b7f9104667c1092f) Co-authored-by: Matthew Davis <7035647+mdavis-xyz@users.noreply.github.com>
* [3.12] build(deps): bump actions/add-to-project from 0.6.0 to 1.0.0 ↵Miss Islington (bot)2024-04-011-1/+1
| | | | | | | | (GH-117415) (#117420) build(deps): bump actions/add-to-project from 0.6.0 to 1.0.0 (GH-117415) (cherry picked from commit 3bb12e407c183946471272f8aee098e54e62a333) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* [3.12] gh-102190: Add additional zipfile `pwd=` arg docstrings (gh-102195) ↵Miss Islington (bot)2024-04-011-3/+6
| | | | | | | | | | | | | | | (GH-117408) gh-102190: Add additional zipfile `pwd=` arg docstrings (gh-102195) This just documents the parameter that already exists. --------- (cherry picked from commit a32d6939486d7f90ee57e215077f6116e19de24d) Co-authored-by: Deborah <32307299+dlwrnc@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.12] gh-117387 Remove hash mark from introductory text (GH-117409) (#gh-Miss Islington (bot)2024-03-311-1/+2
|
* [3.12] gh-117347: Fix test_clinic side effects (#117363) (#117365)Victor Stinner2024-03-291-0/+18
| | | | | | | | gh-117347: Fix test_clinic side effects (#117363) Save/restore converters in ClinicWholeFileTest and ClinicExternalTest. (cherry picked from commit 35b6c4a4da201a947b2ceb96ae4c0d83d4d2df4f)
* [3.12] Fix reversed assertRegex checks in test_ssl. (GH-117351) (#117359)Miss Islington (bot)2024-03-291-2/+2
| | | | | | Fix reversed assertRegex checks in test_ssl. (GH-117351) (cherry picked from commit 2e9be80c99f635c2f7761e8356b0260922d6e7a6) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] gh-117110: Fix subclasses of typing.Any with custom constructors ↵Miss Islington (bot)2024-03-293-1/+22
| | | | | | | | (GH-117111) (#117357) gh-117110: Fix subclasses of typing.Any with custom constructors (GH-117111) (cherry picked from commit 8eec7ed714e65d616573b7331780b0aa43c6ed6a) Co-authored-by: 傅立业(Chris Fu) <17433201@qq.com>
* [3.12] gh-117339: Use NULL instead of None for LOAD_SUPER_ATTR in dis docs ↵Christopher Chianelli2024-03-281-1/+1
| | | | (GH-117343) (GH-117345)
* [3.12] gh-114331: Skip decimal test_maxcontext_exact_arith on s390x ↵Miss Islington (bot)2024-03-281-1/+5
| | | | | | | | (GH-117326) (#117327) gh-114331: Skip decimal test_maxcontext_exact_arith on s390x (GH-117326) (cherry picked from commit 6702d2bf6edcd5b5415e17837383623b9d76a5b8) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-117310: Remove extra DECREF on "no ciphers" error path in ↵Miss Islington (bot)2024-03-282-1/+4
| | | | | | | | | | | | | `_ssl._SSLContext` constructor (GH-117309) (GH-117317) gh-117310: Remove extra DECREF on "no ciphers" error path in `_ssl._SSLContext` constructor (GH-117309) Remove extra self DECREF on ssl "no ciphers" error path. This doesn't come up in practice because nobody links against a broken OpenSSL library that provides nothing. (cherry picked from commit 8cb7d7ff86a1a2d41195f01ba4f218941dd7308c) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] gh-117178: Recover lazy loading of self-referential modules ↵Miss Islington (bot)2024-03-283-6/+25
| | | | | | (GH-117179) (#117319) Co-authored-by: Chris Markiewicz <effigies@gmail.com>
* [3.12] gh-99108: Update and check HACL* version information (GH-117295) ↵Miss Islington (bot)2024-03-272-4/+18
| | | | | | | | | (GH-117302) gh-99108: Update and check HACL* version information (GH-117295) (cherry picked from commit 669ef49c7d42f35da6f7ee280102353b9b37f83e) Co-authored-by: Seth Michael Larson <seth@python.org>
* [3.12] gh-104242: Enable test_is_char_device_true in pathlib test on all ↵AN Long2024-03-271-5/+5
| | | | | platform (GH-116983) (GH-117277) (cherry picked from commit af1b0e94400d1bf732466d675054df8cf7dfb62d)
* [3.12] Change links on the index page (GH-117230) (#117268)Miss Islington (bot)2024-03-261-2/+2
| | | | Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
* [3.12] gh-115538: Use isolate mode when running venv test_multiproces… ↵AN Long2024-03-261-1/+1
| | | | | | | | (#117264) [3.12] gh-115538: Use isolate mode when running venv test_multiprocessing_recursion() (GH-117116) (cherry picked from commit 4ec347760f98b156c6a2d42ca397af6b0b6ecc50) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] pre-commit: add `check-case-conflict` and `check-merge-conflict` ↵Miss Islington (bot)2024-03-261-1/+3
| | | | | | (GH-117259) (#117260) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] gh-66543: Fix mimetype.guess_type() (GH-117217) (GH-117256)Miss Islington (bot)2024-03-264-9/+45
| | | | | | | | | | | | | Fix parsing of the following corner cases: * URLs with only a host name * URLs containing a fragment * URLs containing a query * filenames with only a UNC sharepoint on Windows (cherry picked from commit 9654daf793b534b44a831c80f43505ab9e380f1f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* [3.12] gh-83845: Add tests for operator module (GH-115883) (#117253)Miss Islington (bot)2024-03-261-0/+47
| | | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
* [3.12] gh-83434: Sync libregrtest and test_regrtest with the main branch ↵Victor Stinner2024-03-2611-43/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#117250) * gh-115122: Add --bisect option to regrtest (#115123) * test.bisect_cmd now exit with code 0 on success, and code 1 on failure. Before, it was the opposite. * test.bisect_cmd now runs the test worker process with -X faulthandler. * regrtest RunTests: Add create_python_cmd() and bisect_cmd() methods. (cherry picked from commit 1e5719a663d5b1703ad588dda4fccd763c7d3e99) * gh-115720: Show number of leaks in huntrleaks progress reports (GH-115726) Instead of showing a dot for each iteration, show: - '.' for zero (on negative) leaks - number of leaks for 1-9 - 'X' if there are more leaks This allows more rapid iteration: when bisecting, I don't need to wait for the final report to see if the test still leaks. Also, show the full result if there are any non-zero entries. This shows negative entries, for the unfortunate cases where a reference is created and cleaned up in different runs. Test *failure* is still determined by the existing heuristic. (cherry picked from commit af5f9d682c20c951b90e3c020eeccac386c9bbb0) * gh-83434: Disable XML in regrtest when -R option is used (#117232) (cherry picked from commit d52bdfb19fadd7614a0e5abaf68525fc7300e841) --------- Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] gh-117187: Fix XML tests for vanilla Expat <2.6.0 (GH-117203) (GH-117244)Miss Islington (bot)2024-03-263-9/+9
| | | | | | | | | | | | | | | | gh-117187: Fix XML tests for vanilla Expat <2.6.0 (GH-117203) This fixes XML unittest fallout from the https://github.com/python/cpython/issues/115398 security fix. When configured using `--with-system-expat` on systems with older pre 2.6.0 versions of libexpat, our unittests were failing. * sax|etree: Simplify Expat version guard where simplifiable Idea by Matěj Cepl * sax|etree: Fix reparse deferral tests for vanilla Expat <2.6.0 This *does not fix* the case of distros with an older version of libexpat with the 2.6.0 feature backported as a security fix. (Ubuntu is a known example of this with its libexpat1 2.5.0-2ubunutu0.1 package) (cherry picked from commit 9f74e86c78853c101a23e938f8e32ea838d8f62e) Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
* [3.12] gh-99108: Refresh HACL*; update modules accordingly; fix namespacing ↵Gregory P. Smith2024-03-2623-1846/+1606
| | | | | | | (GH-117237) (GH-117243) Pulls in a new update from https://github.com/hacl-star/hacl-star and fixes our C "namespacing" done by `Modules/_hacl/refresh.sh`. Co-authored-by: Jonathan Protzenko <protz@microsoft.com>
* [3.12] Sync main docs and docstring for median_grouped(). (gh-117214) ↵Miss Islington (bot)2024-03-251-38/+39
| | | | (gh-117241)
* [3.12] Add information about negative indexes to sequence datamodel doc ↵Miss Islington (bot)2024-03-251-3/+6
| | | | | | | | (GH-110903) (#117238) Co-authored by Terry Jan Reedy (cherry picked from commit c2276176d543a2fc2d57709c2787f99850fbb073) Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
* [3.12] Minor markup and grammar fixes in the statistics docs (gh-117216) ↵Miss Islington (bot)2024-03-251-3/+3
| | | | (gh-117218)
* [3.12] gh-91227: Ignore ERROR_PORT_UNREACHABLE in proactor recvfrom() ↵Miss Islington (bot)2024-03-255-12/+174
| | | | | | | (GH-32011) (GH-117209) (cherry picked from commit f11d0d8be8af28e1368c3c7c116218cf65ddf93e) Co-authored-by: Erik Soma <stillusingirc@gmail.com>
* [3.12] GH-115986 Docs: promote pprint.pp usage as a default (GH-116614) ↵Miss Islington (bot)2024-03-241-15/+18
| | | | | | | (#117196) Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] gh-101760: Improve the imaplib.IMAP4 example (GH-101764) (#117191)Miss Islington (bot)2024-03-241-1/+1
| | | | | Co-authored-by: LilKS <1244886+LilKS@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] docs:fix over-linking in dataclasses.rst (GH-117005) (#117163)Carol Willing2024-03-221-79/+81
| | | | | | | | | | | | | | * docs: fix over-linking in dataclasses.rst (#117005) (cherry picked from commit 0907871d43bffb613cbd560224e1a9db13d06c06) * [3.12] docs: fix over-linking in dataclasses.rst (GH-117005) (cherry picked from commit 0907871d43bffb613cbd560224e1a9db13d06c06) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com> --------- Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* [3.12] gh-117084: Fix ZIP file extraction for directory entry names with ↵Serhiy Storchaka2024-03-224-1/+27
| | | | | backslashes on Windows (GH-117129) (GH-117162) (cherry picked from commit 567ab3bd15398c8c7b791f3e376ae3e3c0bbe079)
* [3.12] [docs] Fix typo in docstring and add example to logging cookbook. ↵Miss Islington (bot)2024-03-222-15/+127
| | | | | (GH-117157) (GH-117159) (cherry picked from commit 00baaa21de229a6db80ff2b84c2fd6ad1999a24c)
* Fix get_packagefamilyname helper function on Windows 32-bit (GH-117153)Miss Islington (bot)2024-03-221-1/+1
| | | | | (cherry picked from commit 3be9b9d8722696b95555937bb211dc4cda714d56) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] gh-117127: glob tests: Reopen dir_fd to pick up directory changes ↵Miss Islington (bot)2024-03-221-0/+9
| | | | | | | | (GH-117128) (GH-117150) gh-117127: glob tests: Reopen dir_fd to pick up directory changes (GH-117128) (cherry picked from commit 42ae924d278c48a719fb0ab86357f3235a9f7ab9) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] gh-75988: Fix issues with autospec ignoring wrapped object ↵infohash2024-03-224-2/+198
| | | | | | | | | | | | | | | | | (GH-115223) (#117119) gh-75988: Fix issues with autospec ignoring wrapped object (#115223) * set default return value of functional types as _mock_return_value * added test of wrapping child attributes * added backward compatibility with explicit return * added docs on the order of precedence * added test to check default return_value (cherry picked from commit 735fc2cbbcf875c359021b5b2af7f4c29f4cf66d)
* [3.12] gh-117061: Fix test_posix.test_sched_setaffinity() on RHEL9 ↵Miss Islington (bot)2024-03-211-1/+10
| | | | | | | | | | (GH-117126) (#117137) gh-117061: Fix test_posix.test_sched_setaffinity() on RHEL9 (GH-117126) On RHEL9, sched_setaffinity(0, []) does not fail. (cherry picked from commit 50f9b0b1e0fb181875751cef951351ed007b6397) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-116333: Relax error string text expectations in SSL-related tests ↵Miss Islington (bot)2024-03-214-38/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | (GH-116334) (GH-117136) gh-116333: Relax error string text expectations in SSL-related tests (GH-116334) * Relax error string text expectations in SSL-related tests As suggested [here][1], this change relaxes the OpenSSL error string text expectations in a number of tests. This was specifically done in support of more easily building CPython [AWS-LC][2], but because AWS-LC is a fork of [BoringSSL][3], it should increase compatibility with that library as well. In addition to the error string relaxations, we also add some guards around the `tls-unique` channel binding being used with TLSv1.3, as that feature (described in [RFC 6929][4]) is [not defined][5] for TLSv1.3. [1]: https://discuss.python.org/t/support-building-ssl-and-hashlib-modules-against-aws-lc/44505/4 [2]: https://github.com/aws/aws-lc [3]: https://github.com/google/boringssl [4]: https://datatracker.ietf.org/doc/html/rfc5929GH-section-3 [5]: https://datatracker.ietf.org/doc/html/rfc8446GH-appendix-C.5 (cherry picked from commit c85d84166a84a5cb2d724012726bad34229ad24e) Co-authored-by: Will Childs-Klein <willck93@gmail.com>
* [3.12] Remove more stray backticks from NEWS files (GH-115374) (#117118)Hugo van Kemenade2024-03-212-4/+4
| | | | Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* [3.12] Fix sort order for "locale encoding" glossary item (GH-115794) (#117102)Miss Islington (bot)2024-03-201-12/+12
| | | | | Co-authored-by: Carol Willing <carolcode@willingconsulting.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* [3.12] gh-116773: Fix overlapped memory corruption crash (GH-116774) (#117078)jkriegshauser2024-03-204-12/+71
| | | Manual backport of gh-116774.
* [3.12] gh-117058: Update GUI and packaging recommendations for macOS. ↵Miss Islington (bot)2024-03-201-11/+25
| | | | | | (GH-117059) (#117081) Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
* [3.12] gh-117021: Fix integer overflow in PyLong_AsPid() on non-Windows ↵Serhiy Storchaka2024-03-206-4/+60
| | | | | 64-bit platforms (GH-117064) (GH-117070) (cherry picked from commit 519b2ae22b54760475bbf62b9558d453c703f9c6)
* [3.12] gh-90300: Remove reference to PYTHON_FROZEN_MODULES in Python CLI ↵Serhiy Storchaka2024-03-191-2/+1
| | | | | help (GH-117035) Fix error introduced in 4be9fa896117bf07dc944a29c98dd18b71dd6c74.