summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [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>
* [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>