summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix linting for Modules/gcmodule.c (#116691)Pablo Galindo Salgado2024-03-131-1/+1
|
* [3.12] gh-116604: Correctly honor the gc status when calling _Py_RunGC ↵Pablo Galindo Salgado2024-03-123-0/+31
| | | | (GH-116628) (#116653)
* [3.12] gh-116307: Proper fix for 'mod' leaking across importlib tests ↵Miss Islington (bot)2024-03-123-1/+16
| | | | | | | | | | | (GH-116680) (#116684) gh-116307: Proper fix for 'mod' leaking across importlib tests (GH-116680) (cherry picked from commit a2548077614f81f25a2c3465dabb7a0a3885c40c) gh-116307: Create a new import helper 'isolated modules' and use that instead of 'Clean Import' to ensure that tests from importlib_resources don't leave modules in sys.modules. Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* [3.12] Add `typing.NamedTuple` in glossary section for named tuples ↵Miss Islington (bot)2024-03-121-4/+5
| | | | | | | (GH-108327) (#116689) (cherry picked from commit 149f7f7ae28944579792d22607532006977177c9) Co-authored-by: Tushar Sadhwani <tushar.sadhwani000@gmail.com>
* [3.12] Beef-up tests for the itertool docs. (gh-116679) (gh-116688)Miss Islington (bot)2024-03-121-9/+103
|
* [3.12] gh-116656: Fix test_capi test_py_config_isoloated_per_interpreter() ↵Miss Islington (bot)2024-03-121-0/+1
| | | | | | | | | | (GH-116658) (#116668) gh-116656: Fix test_capi test_py_config_isoloated_per_interpreter() (GH-116658) Don't parse argv when setting the configuration, to avoid SystemExit if parsing argv fails. (cherry picked from commit f6e7a6ce651b43c6e060608a4bb20685f39e9eaa) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-90095: Make .pdbrc work properly and add some reasonable te… ↵Tian Gao2024-03-123-95/+102
| | | | | | (#116661) [3.12] gh-90095: Make .pdbrc work properly and add some reasonable tests (GH-110496) (cherry picked from commit 44f9a84b67c97c94f0d581ffd63b24b73fb79610)
* [3.12] gh-110819: Fix ‘kind’ may be used uninitialized warning in ↵Miss Islington (bot)2024-03-121-28/+35
| | | | | | | | `longobject` (GH-116599) (#116648) gh-110819: Fix ‘kind’ may be used uninitialized warning in `longobject` (GH-116599) (cherry picked from commit eb947cdc1374842a32fa82249ba3c688abf252dc) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-116541: Handle errors correctly in `_pystatvfs_fromstructstatvfs` ↵Miss Islington (bot)2024-03-121-32/+36
| | | | | | | | (GH-116542) (#116643) gh-116541: Handle errors correctly in `_pystatvfs_fromstructstatvfs` (GH-116542) (cherry picked from commit f8147d01da44da2434496d868c86c2785f7244cd) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-116600: [Enum] fix global Flag repr (GH-116615) (GH-116629)Miss Islington (bot)2024-03-123-1/+4
| | | | | | | | * and fix global flag repr (cherry picked from commit 06e29a224fac9edeba55422d2e60f2fbb88dddce) Co-authored-by: Ethan Furman <ethan@stoneleaf.us> Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [3.12] gh-116040: [Enum] fix test_empty_names test (GH-116508) (GH-116619)Miss Islington (bot)2024-03-112-14/+8
| | | | | | | * and fix _not_given usage (cherry picked from commit 3c0dcef9808e34744096769b15bad4f1f97569f0) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* [3.12] gh-116563: Update tutorial error example (GH-116569) (#116624)Miss Islington (bot)2024-03-111-4/+4
| | | | | | | | There now may be multiple carets pointing at a token rather than just a character. Fix the sentence about possible causes. (cherry picked from commit 3e45030076bf2cfab41c4456c73fb212b7322c60) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-71052: Use `raise_signal` in `ThreadSignals.test_signals` ↵Miss Islington (bot)2024-03-111-18/+7
| | | | | | | | | | (GH-116423) (#116618) gh-71052: Use `raise_signal` in `ThreadSignals.test_signals` (GH-116423) Use `raise_signal` rather than `kill` in `ThreadSignals.test_signals` (cherry picked from commit 34920f36917de0d4e658cf94992d53a5a7f27f51) Co-authored-by: Malcolm Smith <smith@chaquo.com>
* [3.12] gh-116545: Fix error handling in `mkpwent` in `pwdmodule` (GH-116548) ↵Miss Islington (bot)2024-03-111-31/+30
| | | | | | | | (#116593) gh-116545: Fix error handling in `mkpwent` in `pwdmodule` (GH-116548) (cherry picked from commit ffd79bea0f032df5a2e7f75e8c823a09cdc7c7a2) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-88352: Make TimedRotatingFileHandler tests more stable (GH-116409) ↵Miss Islington (bot)2024-03-111-38/+17
| | | | | | | | | | | | | (GH-116585) The tests failed (with less than 1% probability) if for example the file was created at 11:46:03.999, but the record was emitted at 11:46:04.001, with atTime=11:46:04, which caused an unexpected rollover. Ensure that the tests are always run within the range of the same whole second. Also share code between test_rollover_at_midnight and test_rollover_at_weekday. (cherry picked from commit d8712fa0c75ad5ea56543903fa45674ab47cc647) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-116576: Fix `Tools/scripts/sortperf.py` sorting the same list ↵Miss Islington (bot)2024-03-111-1/+2
| | | | | | | | (GH-116577) (#116582) 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>
* [3.12] gh-116535: Fix distracting "TypeError" in example code (gh-116538) ↵Miss Islington (bot)2024-03-091-2/+2
| | | | | | | | (gh-116551) 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>
* [3.12] gh-115142: Skip ``test__xxsubinterpreters`` if ``_testcapi`` is not ↵Kirill Podoprigora2024-03-091-2/+1
| | | | available (#116543)
* [3.12] gh-116520: Fix error handling in `os_get_terminal_size_impl` in ↵Miss Islington (bot)2024-03-091-6/+17
| | | | | | | | `posixmodule` (GH-116521) (#116539) 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>
* [3.12] GH-116218 Docs: Add availability information for the 'resource' ↵Miss Islington (bot)2024-03-091-0/+2
| | | | | | | | | | module (GH-116256) (#116533) 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>
* [3.12] gh-105535 Document potential performance trap during enum creation ↵Miss Islington (bot)2024-03-091-0/+7
| | | | | | | | | (GH-107119) (GH116511) (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>
* [3.12] gh-116447: Fix possible UB in `arraymodule` and `getargs` (GH-116459) ↵Miss Islington (bot)2024-03-082-3/+3
| | | | | | | | (#116496) gh-116447: Fix possible UB in `arraymodule` and `getargs` (GH-116459) (cherry picked from commit fdb2d90a274158aee23b526d972172bf41bd4b7e) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-116485: Fixed the typo (GH-116486) (#116489)Miss Islington (bot)2024-03-081-1/+1
| | | | | Co-authored-by: Varun Gole <59524264+varungole@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-116040: [Enum] fix by-value calls when second value is falsey ↵Ethan Furman2024-03-073-4/+46
| | | | | | | (GH-116072) (GH-116476) e.g. Cardinal(1, 0) (cherry picked from commit 13ffd4bd9f529b6a5fe33741fbd57f14b4b80137)
* gh-116472: Replace literal newlines with escape characters in MSBuild files ↵Miss Islington (bot)2024-03-071-3/+1
| | | | | | | (GH-116473) (cherry picked from commit 5d0cdfe519e6f35ccae1a1adca1ffd7fac10cee0) Co-authored-by: Dan Albert <dan@gingerhq.net>
* [3.12] gh-115421: List all test subdirs in Makefile, and test them ↵Petr Viktorin2024-03-072-1/+69
| | | | | | | | | | | (GH-115813) (#116462) * gh-115421: Test that our Makefile has all needed test folders (GH-115813) * Update the list of installed test subdirectories --------- Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-116448: Handle errors correctly in `os_waitid_impl` in ↵Miss Islington (bot)2024-03-071-9/+19
| | | | | | | | `posixmodule` (GH-116449) (#116451) 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>
* [3.12] gh-115664: Fix ordering of more versionadded and versionchanged ↵Serhiy Storchaka2024-03-0721-93/+69
| | | | | directives (GH-116298) (GH-116450) (cherry picked from commit 808a77612fb89b125d25efac2788522a100e8a6d)
* [3.12] gh-88118: Fix some test_multiprocessing flakiness. (GH-116434) ↵Miss Islington (bot)2024-03-061-5/+10
| | | | | | | | | | | | | | | | | | | | | | | (GH-116440) 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>
* [3.12] gh-115398: Expose Expat >=2.6.0 reparse deferral API (CVE-2023-52425) ↵Sebastian Pipping2024-03-0615-21/+439
| | | | | | | | | | | | | | | | | | | | | | | | | (GH-115623) (GH-116248) 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 https://github.com/python/cpython/pull/115138#issuecomment-1932444270 . - Please treat as a security fix related to CVE-2023-52425. (cherry picked from commit 6a95676bb526261434dd068d6c49927c44d24a9b) (cherry picked from commit 73807eb634315f70a464a18feaae33d9e065de09) (cherry picked from commit eda2963378a3c292cf6bb202bb00e94e46ee6d90) --------- Includes code suggested-by: Snild Dolkow <snild@sony.com> and by core dev Serhiy Storchaka. Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] gh-116143: Fix race condition in pydoc _start_server (GH-116144) ↵Miss Islington (bot)2024-03-062-3/+7
| | | | | | | | (#116415) gh-116143: Fix race condition in pydoc _start_server (GH-116144) (cherry picked from commit 02ee475ee3ce9468d44758df2cd79df9f0926303) Co-authored-by: Itamar Oren <itamarost@gmail.com>
* [3.12] gh-116404: Handle errors correctly in `wait_helper` in `posixmodule` ↵Miss Islington (bot)2024-03-061-26/+29
| | | | | | | | (GH-116405) (#116406) 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>
* [3.12] GH-116313: get WASI builds to run under wasmtime 18 w/ WASI ↵Brett Cannon2024-03-055-6/+9
| | | | 0.2/preview2 primitives (GH-116327) (GH-116373)
* [3.12] gh-115986: Fix inaccuracies in pprint docs (GH-116104) (#116382)Miss Islington (bot)2024-03-051-2/+2
| | | | | | Amend wording after gh-116019 was merged. (cherry picked from commit e205c5cd8f1a49d0ef126123312ee8a40d1416b6) Co-authored-by: Kerim Kabirov <39376984+Privat33r-dev@users.noreply.github.com>
* [3.12] chore: fix typos (#116345) (#116370)Terry Jan Reedy2024-03-0510-11/+11
| | | | Co-authored-by: cui fliter <imcusg@gmail.com> (cherry picked from commit e7ba6e9dbe5433b4a0bcb0658da6a68197c28630)
* [3.12] gh-74668: Fix support of bytes in urllib.parse.parse_qsl() ↵Miss Islington (bot)2024-03-053-26/+64
| | | | | | | | | (GH-115771) (GH-116366) 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>
* [3.12] gh-76511: Fix email.Message.as_string() for non-ASCII message with ↵Miss Islington (bot)2024-03-054-2/+21
| | | | | | | ASCII charset (GH-116125) (GH-116364) (cherry picked from commit f97f25ef5dfcdfec0d9a359fd970abd139cf3428) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-115554: Improved logic for handling multiple existing py.exe launcher ↵Miss Islington (bot)2024-03-054-74/+140
| | | | | | | installs (GH-115793) (cherry picked from commit 9b7f253b55f10df03d43c8a7c2da40ea523ac7a1) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] Fix the PyGetSetDef documentation (GH-116056) (GH-116363)Miss Islington (bot)2024-03-051-3/+3
| | | | | | closure is not a function pointer, it is a user data pointer. (cherry picked from commit df594011089a83d151ac7000954665536f3461b5) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-115777: Fix double versionadded directives (GH-116269) (GH-116361)Miss Islington (bot)2024-03-056-24/+8
| | | | | (cherry picked from commit 0064dfa0919cc93257c351a609f99461f6e4e3ac) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-116326: Handler errors correctly in `getwindowsversion` in ↵Miss Islington (bot)2024-03-051-18/+32
| | | | | | | | `sysmodule` (GH-116339) (#116354) * gh-116326: Handler errors correctly in `getwindowsversion` in `sysmodule` (GH-116339) (cherry picked from commit c91bdf86ef1cf9365b61a46aa2e51e5d1932b00a) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-116325: Raise `SyntaxError` rather than `IndexError` on ForwardRef ↵Miss Islington (bot)2024-03-053-1/+9
| | | | | | | | with empty string arg (GH-116341) (#116347) 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>
* [3.12] gh-116265: Remove obsolete sentence. (GH-116284) (#116331)Miss Islington (bot)2024-03-041-4/+2
| | | | | | | 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>
* [3.12] gh-115320: Refactor `get_hash_info` in `sysmodule.c` not to swallow ↵Miss Islington (bot)2024-03-041-23/+25
| | | | | | | | errors (GH-115321) (#116323) 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>
* [3.12] Docs: update using/configure.rst (GH-116274) (#116276)Hugo van Kemenade2024-03-041-13/+21
|
* gh-116116: Backport blake2 change to fix building with clang-cl on ↵Miss Islington (bot)2024-03-044-6/+8
| | | | | | | windows-i686 (GH-116117) (cherry picked from commit 9b9e819b5116302cb4e471763feb2764eb17dde8) Co-authored-by: Yuriy Chernyshov <thegeorg@yandex-team.com>
* [3.12] Consistently spell out *predicate* instead of *pred*. (gh-116308) ↵Miss Islington (bot)2024-03-042-26/+19
| | | | (gh-116312)
* [3.12] GH-116271 Docs: provide clarification for object assignments in the ↵Miss Islington (bot)2024-03-041-7/+24
| | | | | | | | Tutorial section (GH-116283) (#116305) 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>
* gh-104711: Add security warning to the CGIHTTPRequestHandler document ↵AN Long2024-03-041-0/+6
| | | | | (GH-115915) (cherry picked from commit dac8ff4c401f75e65a5eef1514f2d7987e63bbfe)
* [3.12] gh-116296: Fix refleak in reduce_newobj() corner case (GH-116297) ↵Miss Islington (bot)2024-03-042-0/+2
| | | | | | | | (#116299) (cherry picked from commit 17c4849981905fb1c9bfbb2b963b6ee12e3efb2c) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>