summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-105497: [Enum] Fix Flag inversion when alias/mask members exist. ↵Miss Islington (bot)2023-07-053-8/+47
| | | | | | | | | | (GH-105542) (#105572) gh-105497: [Enum] Fix Flag inversion when alias/mask members exist. (GH-105542) When inverting a Flag member (or boundary STRICT), only consider other canonical flags; when inverting an IntFlag member (or boundary KEEP), also consider aliases. (cherry picked from commit 59f009e5898a006cdc8f5249be589de6edfe5cd0) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* [3.12] Document PYTHONSAFEPATH along side -P (GH-106122) (#106352)Miss Islington (bot)2023-07-051-2/+2
| | | | | | Document PYTHONSAFEPATH along side -P (GH-106122) (cherry picked from commit 0355625d94a50f4b816770bad946420d005900b8) Co-authored-by: Jeremy Paige <ucodery@gmail.com>
* [3.12] gh-105063: Disable test_peg_generator.TestCParser bco. ref leaks ↵Miss Islington (bot)2023-07-051-0/+10
| | | | | | | | | (GH-106024) (#106450) Since gh-104798 (Use setuptools in peg-generator and reenable tests), the TestCParser test case has been producing ref leaks. (cherry picked from commit 41ad4dfc04c201728ce9fa12b1a96922dd15a368) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.12] GH-104554: Add RTSPS support to `urllib/parse.py` (GH-104605) (#105759)Miss Islington (bot)2023-07-053-8/+9
| | | | | | | | | | RTSPS is the permanent scheme defined in https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml alongside RTSP and RTSPU schemes. (cherry picked from commit f3266c05b6186ab6d1db0799c06b8f76aefe7cf1) Co-authored-by: zentarim <33746047+zentarim@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* [3.12] Display the sanitizer config in the regrtest header. (GH-105301) ↵Miss Islington (bot)2023-07-052-1/+21
| | | | | | | | | | | | | | (#105342) Display the sanitizer config in the regrtest header. (GH-105301) Display the sanitizers present in libregrtest. Having this in the CI output for tests with the relevant environment variable displayed will help make it easier to do what we need to create an equivalent local test run. (cherry picked from commit 852348ab65783601e0844b6647ea033668b45c11) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] gh-89392: Make test_decimal discoverable (GH-106209) (#106230)Miss Islington (bot)2023-07-051-133/+146
| | | | | | gh-89392: Make test_decimal discoverable (GH-106209) (cherry picked from commit 0e24499129f3917b199a6d46fa33eeedd2c447fc) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-104692: Include commoninstall as a prerequisite for bininstall ↵Jeffery To2023-07-052-1/+11
| | | | | | | | | | (GH-104693) (#105428) This ensures that `commoninstall` is completed before `bininstall` is started when parallel builds are used (`make -j install`), and so the `python3` symlink is only installed after all standard library modules are installed. (cherry picked from commit 990cb3676c2edb7e5787372d6cbe360a73367f4c)
* [3.12] gh-100238: Use setuptools in peg-generator and reenable tests ↵Miss Islington (bot)2023-07-055-15/+65
| | | | | | | (GH-104798) (#105135) (cherry picked from commit afa759fb800be416f69e3e9c9b3efe68006316f5) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* [3.12] gh-104683: Rename Lib/test/clinic.test as Lib/test/clinic.test.c ↵Miss Islington (bot)2023-07-052-2/+3
| | | | | | | | (GH-106443) (#106444) gh-104683: Rename Lib/test/clinic.test as Lib/test/clinic.test.c (GH-106443) (cherry picked from commit a941bd6c53ac4646926292557a7bb2a86f8025c3) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] tp_flags docs: fix indentation (GH-106420) (#106442)Miss Islington (bot)2023-07-051-9/+9
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-106368: Add tests for formatting helpers in Argument Clinic ↵Miss Islington (bot)2023-07-041-0/+164
| | | | | | | | | (GH-106415) (#106438) gh-106368: Add tests for formatting helpers in Argument Clinic (GH-106415) (cherry picked from commit 2fb9480c8313ab524d333b18e4af09f05f5b8afa) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] GH-106330: Fix matching of empty path in `pathlib.PurePath.match()` ↵Barney Gale2023-07-043-8/+25
| | | | | | | | (GH-106331) (GH-106372) We match paths using the `_lines` attribute, which is derived from the path's string representation. The bug arises because an empty path's string representation is `'.'` (not `''`), which is matched by the `'*'` wildcard. (cherry picked from commit b4efdf8cda8fbbd0ca53b457d5f6e46a59348caf)
* [3.12] gh-106396: Special-case empty format spec to gen empty JoinedStr node ↵Miss Islington (bot)2023-07-043-0/+33
| | | | | | | (GH-106401) (#106416) (cherry picked from commit dfe4de203881e8d068e6fc5b8e31075841a86d25) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* [3.12] gh-106368: Add tests for permutation helpers in Argument Clinic ↵Miss Islington (bot)2023-07-042-2/+108
| | | | | | | | (GH-106407) (#106409) Added new test class PermutationTests() (cherry picked from commit 8f6df5e9cbc3a1689601714192aa6ecbb23e1927) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-106368: Increase Argument Clinic test coverage (GH-106389) (#106390)Miss Islington (bot)2023-07-041-0/+24
| | | | | | | | | Add: - test_disallowed_gropuing__no_matching_bracket - test_double_slash (cherry picked from commit 3406f8cce542ea4edf4153c0fac5216df283a9b1) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-106368: Harden Argument Clinic parser tests (GH-106384) (#106387)Miss Islington (bot)2023-07-031-42/+68
| | | | | (cherry picked from commit 648688c137744a623a71dc2413d2879b80c99eae) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-106368: Clean up Argument Clinic tests (#106373) (#106379)Erlend E. Aasland2023-07-031-357/+441
| | | (cherry picked from commit 3ee8dac7a1b3882aa3aac7703bdae2de7b6402ad)
* [3.12] Small speed-up for the convolve() recipe. (GH-106371) (GH-106375)Miss Islington (bot)2023-07-031-2/+2
|
* [3.12] gh-106368: Increase Argument Clinic test coverage (GH-106369) (#106370)Miss Islington (bot)2023-07-031-0/+57
| | | | | | Add tests for 'self' and 'defining_class' converter requirements. (cherry picked from commit 7f4c8121db62a9f72f00f2d9f73381e82f289581) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-91053: make func watcher tests resilient to other func watchers ↵Miss Islington (bot)2023-07-031-12/+11
| | | | | | | | (GH-106286) (#106365) gh-91053: make func watcher tests resilient to other func watchers (GH-106286) (cherry picked from commit 58906213cc5d8f2be311664766b4923ef29dae1f) Co-authored-by: Carl Meyer <carl@oddbird.net>
* [3.12] gh-106359: Fix corner case bugs in Argument Clinic converter parser ↵Miss Islington (bot)2023-07-033-7/+27
| | | | | | | | | | | | (GH-106361) (#106364) gh-106359: Fix corner case bugs in Argument Clinic converter parser (GH-106361) DSLParser.parse_converter() could return unusable kwdicts in some rare cases (cherry picked from commit 0da4c883cf4185efe27b711c3e0a1e6e94397610) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] Replace the esoteric term 'datum' when describing dict comprehensions ↵Miss Islington (bot)2023-07-032-12/+12
| | | | | | | | (GH-106119) (#106348) Replace the esoteric term 'datum' when describing dict comprehensions (GH-106119) (cherry picked from commit 987b712b4aeeece336eed24fcc87a950a756c3e2) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* [3.12] gh-102541: Fix Helper.help("mod") for non-existent mod (GH-105934) ↵Miss Islington (bot)2023-07-013-1/+13
| | | | | | | | | | | | | (#106322) gh-102541: Fix Helper.help("mod") for non-existent mod (GH-105934) If the output arg to Helper() is a stream rather than the default None, which means 'page to stdout', the ImportError from pydoc.resolve is currently not caught in pydoc.doc. The same error is caught when output is None. --------- (cherry picked from commit 0530f4f64629ff97f3feb7524da0833b9535e8b6) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-106232: Make timeit doc command lines compatible with Windows. ↵Miss Islington (bot)2023-07-013-10/+12
| | | | | | | | | | | | (GH-106296) (#106298) gh-106232: Make timeit doc command lines compatible with Windows. (GH-106296) Command Prompt (CMD Shell) and older versions of PowerShell require double quotes and single quotes inside the string. This form also works on linux and macOS. (cherry picked from commit 04dfc6fa9018e92a5b51c29fc0ff45419c596bc3) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-105486: Change the `repr` of `ParamSpec` list of args in ↵Miss Islington (bot)2023-07-014-1/+62
| | | | | | | | `GenericAlias` (GH-105488) (#106297) gh-105486: Change the `repr` of `ParamSpec` list of args in `GenericAlias` (GH-105488) (cherry picked from commit eb7d6e7ad844955f9af88707d296e003c7ce4394) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-106145: Make `end_{lineno,col_offset}` required on `type_param` ↵Miss Islington (bot)2023-07-014-14/+10
| | | | | | | | nodes (GH-106224) (#106295) gh-106145: Make `end_{lineno,col_offset}` required on `type_param` nodes (GH-106224) (cherry picked from commit 46c1097868745eeb47abbc8af8c34e8fcb80ff1d) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-101100: Docs: Fix references to several numeric dunders ↵Miss Islington (bot)2023-06-306-45/+45
| | | | | | | | | (GH-106278) (#106281) gh-101100: Docs: Fix references to several numeric dunders (GH-106278) (cherry picked from commit a8ae73965b02302b7661ea07a6e4f955a961aca9) Co-authored-by: F3eQnxN3RriK <drsuaimqjgar@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-77782: Deprecate Py_HasFileSystemDefaultEncoding (GH-106272) (#106274)Miss Islington (bot)2023-06-302-1/+2
| | | | | | | | gh-77782: Deprecate Py_HasFileSystemDefaultEncoding (GH-106272) Deprecate Py_HasFileSystemDefaultEncoding variable. (cherry picked from commit f3cf2ddd8ddc7dfa6b06e6da640391a1bcd62b8a) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] GH-106152: Add PY_THROW event to cProfile (GH-106256)Miss Islington (bot)2023-06-293-0/+22
| | | | | | GH-106152: Add PY_THROW event to cProfile (GH-106161) (cherry picked from commit cea9d4ea82abcb2c6f1d83a2fe819859da4bbda4) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.12] Fix possible refleak in CodeType.replace() (GH-106243) (GH-106244)Miss Islington (bot)2023-06-291-0/+1
| | | | | | | | Fix possible refleak in CodeType.replace() (GH-106243) A reference to c_code was leaked if PySys_Audit() failed. (cherry picked from commit 3c70d467c148875f2ce17bacab8909ecc3e9fc1d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-101006: Improve error handling when read marshal data (GH-101007) ↵Miss Islington (bot)2023-06-292-61/+72
| | | | | | | | | | | | (GH-106226) * EOFError no longer overrides other errors such as MemoryError or OSError at the start of the object. * Raise more relevant error when the NULL object occurs as a code object component. * Minimize an overhead of calling PyErr_Occurred(). (cherry picked from commit 8bf6904b229583033035d91a3800da5604dcaad4) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-106033: Get rid of PyDict_GetItem in _PyFunction_FromConstructor ↵Miss Islington (bot)2023-06-291-4/+6
| | | | | | | | (GH-106044) (GH-106228) gh-106033: Get rid of PyDict_GetItem in _PyFunction_FromConstructor (GH-106044) (cherry picked from commit 08c08d21b03d949452a77d9ed5e3cf48d6b9804d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-106194: Rename duplicated tests in `test_curses` (GH-106196) (#106216)Miss Islington (bot)2023-06-281-4/+11
| | | | Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-106197: Deduplicate tests in `test_buffer` (GH-106198) (#106206)Miss Islington (bot)2023-06-281-1/+1
| | | | | | gh-106197: Deduplicate tests in `test_buffer` (GH-106198) (cherry picked from commit c283a0cff5603540f06d9017e484b3602cc62e7c) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-101100: Fix reference to `parse_args` in `optparse.rst` ↵Miss Islington (bot)2023-06-281-24/+27
| | | | | | (GH-105265) (#106204) Co-authored-by: F3eQnxN3RriK <drsuaimqjgar@gmail.com>
* [3.12] gh-106118: Add O_CLOEXEC preprocessor guard (GH-106120) (#106199)Miss Islington (bot)2023-06-282-1/+6
| | | | | (cherry picked from commit 6c60684bf5d34fae27a2f6a142ff794b38cefe1b) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-105993: Add possible `None` return type to ↵Miss Islington (bot)2023-06-281-0/+3
| | | | | | | | `asyncio.EventLoop.start_tls` docs (GH-105995) (#106188) gh-105993: Add possible `None` return type to `asyncio.EventLoop.start_tls` docs (GH-105995) (cherry picked from commit 6b52a581c151914e59c8c367a03bc7309713a73b) Co-authored-by: Sam Bull <git@sambull.org>
* [3.12] gh-101100: Fix reference to asynchronous methods (GH-106172) (#106191)Miss Islington (bot)2023-06-282-10/+10
| | | | | | gh-101100: Fix reference to asynchronous methods (GH-106172) (cherry picked from commit bbf722dcd39c66418e45991dcf1cdf140c2ce20e) Co-authored-by: F3eQnxN3RriK <drsuaimqjgar@gmail.com>
* [3.12] GH-106160: Fix test_gzip failing under WASI, which does not have ↵Miss Islington (bot)2023-06-281-1/+1
| | | | | | | | | | | | zlib. (GH-106167) (#106170) GH-106160: Fix test_gzip failing under WASI, which does not have zlib. (GH-106167) Fix test_gzip's failure under WASI, which does not have zlib, by using test.support.import_helper.import_module to import zlib. (gzip unconditionally imports zlib, so this does not cause any new skips.) (cherry picked from commit 161012fc25910a47423bae8012398bf519a88140) Co-authored-by: T. Wouters <thomas@python.org>
* [3.12] Refer to `TimeoutError` instead of `asyncio.TimeoutError` in ↵Miss Islington (bot)2023-06-281-4/+4
| | | | | | | `asyncio-task.rst` (GH-106136) (#106179) Co-authored-by: lightdrk <108566237+lightdrk@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] Fix c-analyzer for GCC: ignore LANG env var (GH-106173) (#106178)Miss Islington (bot)2023-06-281-1/+7
| | | | | | | | | Fix c-analyzer for GCC: ignore LANG env var (GH-106173) The c-analyzer doesn't support GCC localized messages, so just unset the LANG environment variable. (cherry picked from commit 1f74b9e933d546a015e8497e3b8728357196acc8) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-101634: regrtest reports decoding error as failed test (GH-106169) ↵Miss Islington (bot)2023-06-283-1/+50
| | | | | | | | | | | | (#106174) gh-101634: regrtest reports decoding error as failed test (GH-106169) When running the Python test suite with -jN option, if a worker stdout cannot be decoded from the locale encoding report a failed testn so the exitcode is non-zero. (cherry picked from commit 2ac3eec103cf450aaaebeb932e51155d2e7fb37b) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-106140: Reorder some more fields to facilitate out-of-process ↵Pablo Galindo Salgado2023-06-272-102/+103
| | | | | inspection (GH-106148) (#106155) (cherry picked from commit 9126a6a9ce3772d5dc785cbee159b07a1ff7d531)
* [3.12] gh-106140: Reorder some fields to facilitate out-of-process ↵Miss Islington (bot)2023-06-273-26511/+26522
| | | | | | | | | inspection (GH-106143) (#106147) gh-106140: Reorder some fields to facilitate out-of-process inspection (GH-106143) (cherry picked from commit 2d5a1c281161d037148ffb5983decc6d31c2557d) Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.12] IDLE: Condense run.main threading.Thread start. (GH-106125) (#106154)Miss Islington (bot)2023-06-271-5/+6
| | | | | | | | | IDLE: Condense run.main threading.Thread start. (GH-106125) Use daemon argument added in 3.3 and directly call .start. Remove now unused 'sockthread' name. (cherry picked from commit eaa1eae55ea66d74c5303924320185dac74d4eb1) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-92788: Add docs for `ast.Module`, `ast.Expression`, and others ↵Miss Islington (bot)2023-06-271-0/+101
| | | | | | | | (GH-101055) (#106139) gh-92788: Add docs for `ast.Module`, `ast.Expression`, and others (GH-101055) (cherry picked from commit 33608fd67df8b1033519f808441ee00289e2dac0) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-106123: Modules/_sha3 appears to no longer be necessary ↵Miss Islington (bot)2023-06-272-2/+0
| | | | | | (GH-106124) (#106127) Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
* [3.12] GH-105774: Clarify operation of normalize() (GH-106093) (GH-106128)Miss Islington (bot)2023-06-271-6/+37
|
* [3.12] gh-106030: Miscellaneous fixes in Python/suggestions.c (GH-106031) ↵Miss Islington (bot)2023-06-271-15/+27
| | | | | | (#106036) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-84976: Add back UTC to datetime.__all__ (GH-104920) (#106019)Miss Islington (bot)2023-06-271-1/+1
| | | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>