summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.12] gh-104269: Document `glob.glob` duplicates when using multiple `**` ↵Miss Islington (bot)2024-04-111-0/+8
| | | | | | | | patterns (GH-105406) (#117757) gh-104269: Document `glob.glob` duplicates when using multiple `**` patterns (GH-105406) (cherry picked from commit c06be6bbb8d138dde50c0a07cbd64496bee537c5) Co-authored-by: Tomas R <tomas.roun8@gmail.com>
* [3.12] gh-101549: fix documentation of xml.etree.ElementInclude (GH-101550) ↵Miss Islington (bot)2024-04-112-26/+22
| | | | | | | | (#117754) Co-authored-by: Mikhail B <55960560+mbel0@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
* [3.12] Fix markup of `win32_ver` in `platform.rst` (GH-116492) (#117753)Miss Islington (bot)2024-04-111-2/+2
| | | | Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-115142: Skip `test_capi.test_dict.py` if `_testcapi` is not ↵Kirill Podoprigora2024-04-111-1/+3
| | | | | | available (GH-117588) (GH-117718) (cherry picked from commit dfcae4379f2cc4d352a180f9fef2381570aa9bcb)
* [3.12] gh-117711: Only check for 'test/wheeldata' when it's actually used ↵Miss Islington (bot)2024-04-111-0/+4
| | | | | | | | | | | | | | (GH-117712) (#117749) gh-117711: Only check for 'test/wheeldata' when it's actually used (GH-117712) It's possible to build Python with option `--with-wheel-pkg-dir` pointing to a custom wheel directory. Don't include the directory in the test set if the wheels are used from a different location. (cherry picked from commit d4963871b03cc76fe7d9648d022d12007585beae) Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com> Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* [3.12] gh-117606: Truncate extremely long error message in `test_exceptions` ↵Miss Islington (bot)2024-04-111-1/+2
| | | | | | | | | (GH-117670) (#117745) gh-117606: Truncate extremely long error message in `test_exceptions` (GH-117670) (cherry picked from commit 02f1385f8ad6bf45376377c41f106b386d3a7eb0) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-112536: Define `_Py_THREAD_SANITIZER` on GCC when TSan is enabled ↵Miss Islington (bot)2024-04-101-0/+3
| | | | | | | | | | | | (GH-117702) (#117713) gh-112536: Define `_Py_THREAD_SANITIZER` on GCC when TSan is enabled (GH-117702) The `__has_feature(thread_sanitizer)` is a Clang-ism. Although new versions of GCC implement `__has_feature`, the `defined(__has_feature)` check still fails on GCC so we don't use that code path. (cherry picked from commit 79eec66e3dc277ea6ebad8c0b33756eea6a7ab3b) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.12] gh-117692: Fix `AttributeError` in `DocTestFinder` on wrapped ↵Miss Islington (bot)2024-04-103-1/+24
| | | | | | | | | `builtin_or_method` (GH-117699) (#117708) * gh-117692: Fix `AttributeError` in `DocTestFinder` on wrapped `builtin_or_method` (GH-117699) (cherry picked from commit 4bb7d121bc0a3fd00a3c72cd915b5dd8fac5616e) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-117360: Clearer wording in os.path.lexists() docs (GH-117679) ↵Miss Islington (bot)2024-04-091-1/+1
| | | | | | | | (#117701) (cherry picked from commit 73906d5c908c1e0b73c5436faeff7d93698fc074) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> Co-authored-by: Zachary Ware <zach@python.org>
* [3.12] gh-117597: Clarify exception handling in the tutorial (GH-117681) ↵Miss Islington (bot)2024-04-091-3/+3
| | | | | | | (#117700) (cherry picked from commit a05068db0cb43337d20a936d919b9d88c35d9818) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
* [3.12] gh-117534: Add checking for input parameter in iso_to_ymd (GH-117543) ↵Miss Islington (bot)2024-04-094-7/+16
| | | | | | | | | | | | | | (#117689) gh-117534: Add checking for input parameter in iso_to_ymd (GH-117543) Moves the validation for invalid years in the C implementation of the `datetime` module into a common location between `fromisoformat` and `fromisocalendar`, which improves the error message and fixes a failed assertion when parsing invalid ISO 8601 years using one of the "ISO weeks" formats. --------- (cherry picked from commit d5f1139c79525b4e7e4e8ad8c3e5fb831bbc3f28) Co-authored-by: Vlad4896 <166005126+Vlad4896@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* Post 3.12.3Thomas Wouters2024-04-091-1/+1
|
* Python 3.12.3v3.12.3Thomas Wouters2024-04-09109-331/+1219
|
* [3.12] gh-111726: Explicitly close database connections in sqlite3 doctests ↵Miss Islington (bot)2024-04-081-0/+27
| | | | | | | | (GH-111730) (#117630) (cherry picked from commit a7702663e3f7efc81f0b547f1f13ba64c4e5addc) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] Fix reference in code.rs (#117615) (#117628)Alex Waygood2024-04-081-1/+1
| | | | | Co-authored-by: Anita Hammer <166057949+anitahammer@users.noreply.github.com> Fix reference in code.rst (#117615)
* [3.12] gh-111726: Remove some doctests from sqlite3 docs (GH-117623) (#117625)Miss Islington (bot)2024-04-081-36/+7
| | | | | | | | | * remove load extension doctest since we cannot skip it conditionally * remove sys.unraisablehook example; using unraisable hooks is not "an improved debug experience" (cherry picked from commit e338e1a4ec5e43a02447f4ec80320d7fc12b3ed4) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-111726: Cleanup test files after running sqlite3 doctest ↵Miss Islington (bot)2024-04-081-0/+8
| | | | | | | | | (GH-117604) (#117622) Remove all temporary databases in a dedicated 'testcleanup' step at the end of the file. (cherry picked from commit a453f5ef9d0b89bd00488d3814c6f0a2886342b8) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] gh-117594: Require cpu resource to test_search_anchor_at_beginning ↵Donghee Na2024-04-081-1/+4
| | | | | | | (g… (gh-117616) gh-117594: Require cpu resource to test_search_anchor_at_beginning (gh-117595) (cherry picked from commit 784623c63c45a4d13dfb04318c39fdb1ab790218)
* [3.12] gh-117074: Update Traversable.joinpath docs to the 3.11+ protocol ↵Miss Islington (bot)2024-04-051-2/+24
| | | | | | | | (GH-117113) (GH-117571) gh-117074: Update Traversable.joinpath docs to the 3.11+ protocol (GH-117113) (cherry picked from commit e569f9132b5bdc1c103116a020e19e3ccc20cf34) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] gh-109120: Fix syntax error in handlinh of incorrect star ↵Grigoriev Semyon2024-04-044-1182/+1385
| | | | | | | expressions… (#117465) gh-109120: Fix syntax error in handlinh of incorrect star expressions (#117444) (cherry picked from commit c97d3af2391e62ef456ef2365d48ab9b8cdbe27b)
* [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>