summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [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>
* [3.12] Revert "GH-96145: Add AttrDict to JSON module for use with ↵Miss Islington (bot)2023-06-266-248/+2
| | | | | | | | | | object_hook (GH-96146)" (GH-105948) (#106117) Revert "GH-96145: Add AttrDict to JSON module for use with object_hook (GH-96146)" (GH-105948) This reverts commit 1f0eafa844bf5a380603d55e8d4b42d8c2a3439d. (cherry picked from commit d3af83b9342457d8b24476baeb799f7506ff04f3) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.12] gh-106107: document correct error that's raised when a mutable ↵Miss Islington (bot)2023-06-261-1/+1
| | | | | | | | default value for a field is detected (gh-106109) (gh-106115) gh-106107: document correct error that's raised when a mutable default value for a field is detected (gh-106109) (cherry picked from commit 512f299e557f4ab60768d36cee9968bd92116367) Co-authored-by: Roderich Schupp <roderich.schupp@gmail.com>
* [3.12] gh-106111: Remove zipapp documentation on creating a Windows ↵Miss Islington (bot)2023-06-261-106/+9
| | | | | | | | | executable (GH-106112) (#106114) Remove zipapp documentation on creating a Windows executable (cherry picked from commit 5d4dbf0e309255e5bce9e31d805a8f950ebf9161) Co-authored-by: Paul Moore <p.f.moore@gmail.com>
* [3.12] Update test.support.interpreters to include missing RunFailedError ↵Miss Islington (bot)2023-06-261-1/+1
| | | | | | | | import (GH-103841) (#106110) (cherry picked from commit 1a2bc94fc2bbdf5f810b441ebbbd8fec95a3207c) Co-authored-by: Bruce Eckel <BruceTEckel@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-106075: add `asyncio.taskgroups.__all__` to `asyncio.__all__` ↵Miss Islington (bot)2023-06-264-1/+4
| | | | | | | | | (GH-106090) (#106098) gh-106075: add `asyncio.taskgroups.__all__` to `asyncio.__all__` (GH-106090) (cherry picked from commit a12e8ffb49e05a1d1874389318911ce9685db232) Co-authored-by: James Webber <jamestwebber@users.noreply.github.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* [3.12] gh-105987: Fix reference counting issue in `_asyncio._swap_cur… ↵Kumar Aditya2023-06-263-5/+26
| | | | | | | | (#106099) [3.12] gh-105987: Fix reference counting issue in `_asyncio._swap_current_task` (GH-105989). (cherry picked from commit d2cbb6e918d9ea39f0dd44acb53270f2dac07454) Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
* [3.12] Improve typing docs on the type of class objects (GH-106081) (#106096)Miss Islington (bot)2023-06-261-49/+59
| | | | | | Improve typing docs on the type of class objects (GH-106081) (cherry picked from commit 3eeb8c89063d5ac22c0b1d26e4ae2fd12c149650) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-84436: update docs on Py_None/Py_True/Py_False/Py_Ellipsis ↵Miss Islington (bot)2023-06-263-19/+25
| | | | | | | | becoming immortal (GH-105195) (#105977) gh-84436: update docs on Py_None/Py_True/Py_False/Py_Ellipsis becoming immortal (GH-105195) (cherry picked from commit a2392720d6108041d17960a86514ba859b436f05) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.12] gh-105979: Fix exception handling in `unmarshal_frozen_code` ↵Miss Islington (bot)2023-06-263-0/+10
| | | | | | | | (`Python/import.c`) (GH-105980) (#106055) gh-105979: Fix exception handling in `unmarshal_frozen_code` (`Python/import.c`) (GH-105980) (cherry picked from commit cd5280367a3a7065d13b8f7234474f7a2e9a18fd) Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
* [3.12] gh-104212: Explain how to port imp.load_source() (GH-105978) (#106083)Miss Islington (bot)2023-06-251-1/+15
| | | | | | | | | gh-104212: Explain how to port imp.load_source() (GH-105978) Explain how to port removed imp.load_source() to importlib in What's New in Python 3.12. (cherry picked from commit 18a7c86697493510993e43bafe8bd4046928bec5) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] Add end-of-file-fixer to pre-commit (GH-106065) (#106080)Miss Islington (bot)2023-06-251-0/+3
| | | | | | Add end-of-file-fixer to pre-commit (GH-106065) (cherry picked from commit 8c24a837371439b8e922ff47275085b581f510c5) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] Docs: add links to 'callable' term in sqlite3 docs (GH-106072) (#106073)Miss Islington (bot)2023-06-251-17/+18
| | | | | (cherry picked from commit bef1c8761e3b0dfc5708747bb646ad8b669cbd67) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-106033: Get rid of new occurrences of PyDict_GetItem and Py… ↵Serhiy Storchaka2023-06-245-31/+32
| | | | | | | | | | (#106041) [3.12] gh-106033: Get rid of new occurrences of PyDict_GetItem and PyObject_HasAttr (GH-106034) These functions are broken by design because they discard any exceptions raised inside, including MemoryError and KeyboardInterrupt. They should not be used in new code. (cherry picked from commit 1d33d5378058671bfabb6f4d4b5bfd4726973ff9)
* [3.12] gh-106033: [docs] Improve C API GetItem & HasAttr notes. (GH-106047) ↵Miss Islington (bot)2023-06-242-14/+23
| | | | | | | | | | | | (#106070) gh-106033: [docs] Improve C API GetItem & HasAttr notes. (GH-106047) Use a note:: tag so that these dict and object API deficiencies show up clearly. A caution:: tag was considered, but our current python docs rendering doesn't do much with that (no box or color change). warning:: seemed too extreme. note looks good. (cherry picked from commit 19d6511b0b8f3f74e668ae32ccef89bcbf1a8a62) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] GH-104375: Use `versionchanged` to describe new arguments in pathlib ↵Barney Gale2023-06-241-10/+12
| | | | | docs (GH-104376, GH-106058) (cherry picked from commit 4a6c84fc1ea8f26d84a0fbeeff6f8dedc32263d4)
* [3.12] Typing docs: fix typo in annotating tuples comment (GH-106048) (#106049)Miss Islington (bot)2023-06-231-2/+2
| | | | | | Typing docs: fix typo in annotating tuples comment (GH-106048) (cherry picked from commit 8ef0ee4ebc84ee68f16cea85ffdb949ecccb4ba5) Co-authored-by: Eamon Tracey <66919574+EamonTracey@users.noreply.github.com>
* [3.12] gh-105974: Revert unintentional behaviour change for protocols with ↵Miss Islington (bot)2023-06-233-32/+79
| | | | | | | | non-callable members and custom `__subclasshook__` methods (GH-105976) (#106032) gh-105974: Revert unintentional behaviour change for protocols with non-callable members and custom `__subclasshook__` methods (GH-105976) (cherry picked from commit 9499b0f138cc53b9a2590350d0b545d2f69ee126) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] Typing docs: improve the guidance on annotating tuples (GH-106021) ↵Miss Islington (bot)2023-06-231-21/+72
| | | | | | | | (#106027) Typing docs: improve the guidance on annotating tuples (GH-106021) (cherry picked from commit 968435ddb1c1af9333befb26f7970cded8a5c710) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] Docs: Avoid a DeprecationWarning in `pyspecific.py` when running with ↵Miss Islington (bot)2023-06-231-11/+9
| | | | | | | | | Sphinx >=6.1 (GH-105886) (#106010) Docs: Avoid a DeprecationWarning in `pyspecific.py` when running with Sphinx >=6.1 (GH-105886) (cherry picked from commit a72683ba8e0337650cc490dbe593a5e46aba60cb) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-98931: Add custom error messages to invalid import/from with ↵Miss Islington (bot)2023-06-224-597/+738
| | | | | | | multiple targets (GH-105985) (#105991) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] stdtypes.rst: remove a period (GH-105959) (#105968)Miss Islington (bot)2023-06-211-1/+1
| | | | | | stdtypes.rst: remove a period (GH-105959) (cherry picked from commit c5a722be5f7979c73e2451e537a8fc58bf9af12e) Co-authored-by: Mathieu Dupuy <deronnax@gmail.com>
* [3.12] gh-104212: Explain how to port imp code to importlib (GH-105905) ↵Miss Islington (bot)2023-06-201-1/+32
| | | | | | | | (#105952) gh-104212: Explain how to port imp code to importlib (GH-105905) (cherry picked from commit 7a56a4148c521969d64164d2776641f19e3ca9e8) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-105915: Fix SyntaxWarning becoming a SyntaxError with -We in ↵Miss Islington (bot)2023-06-201-3/+3
| | | | | | | test_fstring (GH-105943) (#105945) (cherry picked from commit 6e40ee6e8456da04d6970a46863300c043c81208) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* Merge branch '3.12' of https://github.com/python/cpython into 3.12Thomas Wouters2023-06-206-13/+38
|\
| * [3.12] gh-105915: Add 'r' prefix to not emit SyntaxWarning in test_fstring ↵Miss Islington (bot)2023-06-201-1/+1
| | | | | | | | | | | | | | | | (GH-105940) (#105942) (cherry picked from commit 4b431d2e90bf5760a57aa40af2dd78e7bbf0b1ae) Co-authored-by: @sunmy2019 Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
| * [3.12] gh-105938: Emit a SyntaxWarning for escaped braces in an f-string ↵Miss Islington (bot)2023-06-203-6/+18
| | | | | | | | | | | | | | (GH-105939) (#105941) (cherry picked from commit 6586cee27f32f0354fe4e77c7b8c6e399329b5e2) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
| * [3.12] gh-105908: fix `barry_as_FLUFL` future import (GH-105909) (#105930)Miss Islington (bot)2023-06-203-6/+19
| | | | | | | | | | (cherry picked from commit 28187a9c4f95affe50fd37e0db0db177e2b9c2e9) Co-authored-by: Crowthebird <78076854+thatbirdguythatuknownot@users.noreply.github.com>
* | Post 3.12.0b3Thomas Wouters2023-06-201-1/+1
| |
* | Python 3.12.0b3v3.12.0b3Thomas Wouters2023-06-1944-111/+435
|/
* [3.12] GH-105808: Fix a regression introduced in GH-101251 (GH-105910) (#105920)Miss Islington (bot)2023-06-193-1/+52
| | | | | | | | | GH-105808: Fix a regression introduced in GH-101251 (GH-105910) Fix a regression introduced in pythonGH-101251, causing GzipFile.flush() to not flush the compressor (nor pass along the zip_mode argument). (cherry picked from commit 1858db7cbdbf41aa600c954c15224307bf81a258) Co-authored-by: T. Wouters <thomas@python.org>
* [3.12] typing docs: Improve the intro to each section (GH-105901) (#105902)Miss Islington (bot)2023-06-191-36/+40
| | | | | | typing docs: Improve the intro to each section (GH-105901) (cherry picked from commit 4426279a4399158027a1145cff1c4c92424bf5b5) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-105844: Use devguide terminology to denote versions (GH-105882) ↵Miss Islington (bot)2023-06-181-3/+3
| | | | | | | (#105892) (cherry picked from commit dba72175116373c1d15e25d84c88b516daf9f5c4) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.12] Docs: move sphinx-lint to pre-commit (GH-105750) (#105894)Miss Islington (bot)2023-06-185-14/+11
| | | | | | Docs: move sphinx-lint to pre-commit (GH-105750) (cherry picked from commit bc07c8f096791d678ca5c1e3486cb9648f7a027b) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] CI: Bump macOS build to use OpenSSL v3.0 (GH-105538) (#105867)Miss Islington (bot)2023-06-161-2/+2
| | | | | (cherry picked from commit 34e93d3998bab8acd651c50724eb1977f4860a08) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.12] GH-105840: Fix assertion failures when specializing calls with too ↵Miss Islington (bot)2023-06-163-2/+33
| | | | | | | | many __defaults__ (GH-105863) GH-105840: Fix assertion failures when specializing calls with too many __defaults__ (GH-105847) (cherry picked from commit 2beab5bdef5fa2a00a59371e6137f769586b7404) Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
* [3.12] bpo-44530: Document the change in MAKE_FUNCTION behavior (GH-93189) ↵Miss Islington (bot)2023-06-161-2/+5
| | | | | | | | | | | | (#105841) bpo-44530: Document the change in MAKE_FUNCTION behavior (GH-93189) * bpo-44530: Document the change in MAKE_FUNCTION behavior Fixes dis module documentation for MAKE_FUNCTION due to https://github.com/python/cpython/commit/2f180ce2cb6e6a7e3c517495e0f4873d6aaf5f2f (bpo-44530, released as part of 3.11) removes the qualified name at TOS (cherry picked from commit 486b52a3158e0f64fc54efdfa34ed5437b3619f2) Co-authored-by: Alex Doe <alexdoesh@gmail.com>
* [3.12] gh-104799: PEP 695 backward compatibility for ast.unparse (GH-105846) ↵Miss Islington (bot)2023-06-163-3/+80
| | | | | | | (#105862) (cherry picked from commit 957a974d4fc1575787e4a29a399a47520d6df6d3) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-105834: Add tests for calling `issubclass()` between two protocols ↵Miss Islington (bot)2023-06-161-0/+74
| | | | | | | | (GH-105835) (#105859) Some parts of the implementation of `typing.Protocol` had poor test coverage (cherry picked from commit 70c075c194d3739ae10ce76265f05fa82ed46487) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>