summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-101100: Fix Sphinx warnings in `library/faulthandler.rst` ↵Miss Islington (bot)2024-04-282-8/+9
| | | | | | (GH-118353) (#118366) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] gh-101100: Fix Sphinx warnings in `whatsnew/3.10.rst` (GH-118356) ↵Miss Islington (bot)2024-04-281-37/+37
| | | | | | (#118367) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] gh-101100: Fix Sphinx warnings in `whatsnew/3.9.rst` (GH-118364) ↵Hugo van Kemenade2024-04-287-37/+37
| | | | (#118365)
* [3.12] Fix note in Enum.__new__ docs (GH-118284) (#118325)Jelle Zijlstra2024-04-261-5/+5
| | | | | (cherry picked from commit 5a4d3df2fa02409ffd2a90cd75b67370206e9891) Co-authored-by: Philipp A <flying-sheep@web.de>
* [3.12] gh-117928: Bump the minimum Sphinx version to 6.2.1 (GH-117853) (#118321)Kirill Podoprigora2024-04-266-40/+24
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] gh-118235: Skip RAISE_SYNTAX_ERROR rules in the grammar spec ↵Miss Islington (bot)2024-04-261-0/+2
| | | | | | | | (GH-118237) (GH-118309) gh-118235: Skip RAISE_SYNTAX_ERROR rules in the grammar spec (GH-118237) (cherry picked from commit ef940dec409f0a9e4f353c6188990aeb3ad4ffb4) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] gh-118042: Fix error in Telnet.__del__ when __init__() was not called ↵Serhiy Storchaka2024-04-262-0/+3
| | | | (GH-118274)
* [3.12] gh-118207: Rename the COMMON_FIELDS macro in funcobject.h and undef ↵Miss Islington (bot)2024-04-261-3/+5
| | | | | | | | it after use (GH-118208) (#118269) gh-118207: Rename the COMMON_FIELDS macro in funcobject.h and undef it after use (GH-118208) (cherry picked from commit 796b3fb28057948ea5b98f7eb0c0f3af6a1e276e) Co-authored-by: Itamar Oren <itamarost@gmail.com>
* [3.12] gh-118221: Always use the default row factory in sqlite3.iterdump() ↵Erlend E. Aasland2024-04-253-0/+18
| | | | | | | | | | | | | | (#118223) (#118270) sqlite3.iterdump() depends on the row factory returning resulting rows as tuples; it will fail with custom row factories like for example a dict factory. With this commit, we explicitly reset the row factory of the cursor used by iterdump(), so we always get predictable results. This does not affect the row factory of the parent connection. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] GH-117894: prevent aclose()/athrow() being re-used after ↵Thomas Grainger2024-04-253-2/+70
| | | | | | StopIteration (GH-117851) (GH-118226) (cherry picked from commit 7d369d471cf2b067c4d795d70b75201c48b46f5b)
* [3.12] gh-117968: Make the test for closed file more safe in the C API tests ↵Miss Islington (bot)2024-04-251-2/+4
| | | | | | | | | | | (GH-118230) (GH-118266) The behavior of fileno() after fclose() is undefined, but it is the only practical way to check whether the file was closed. Only test this on the known platforms (Linux, Windows, macOS), where we already tested that it works. (cherry picked from commit 546cbcfa0eeeb533950bd49e30423f3d3bbd5ebe) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-85453: Make numeric literals consistent across datetime.rst ↵Miss Islington (bot)2024-04-241-3/+3
| | | | | | | | (GH-118245) (#118248) Remove code formatting from remaining numeric literals. (cherry picked from commit 59a4d52973ca73bd739f914e88243a31dbef6b32) Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
* [3.12] gh-85453: Adapt datetime.rst to devguide recommendations for code ↵Miss Islington (bot)2024-04-241-45/+45
| | | | | | | | | | | | snippets and variables (GH-118068) (#118244) Also remove formatting from numeric literals. (cherry picked from commit 809aa9a682fc865f7502e7421da0a74d204aab6d) Co-authored-by: edson duarte <eduarte.uatach@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-118013: Use weakrefs for the cache key in `inspect._shadowed_dict` ↵Miss Islington (bot)2024-04-245-8/+59
| | | | | | (GH-118202) (#118232) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-113171: gh-65056: Fix "private" (non-global) IP address ranges ↵Petr Viktorin2024-04-245-24/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-113179) (GH-113186) (GH-118177) * GH-113171: Fix "private" (non-global) IP address ranges (GH-113179) The _private_networks variables, used by various is_private implementations, were missing some ranges and at the same time had overly strict ranges (where there are more specific ranges considered globally reachable by the IANA registries). This patch updates the ranges with what was missing or otherwise incorrect. 100.64.0.0/10 is left alone, for now, as it's been made special in [1]. The _address_exclude_many() call returns 8 networks for IPv4, 121 networks for IPv6. [1] https://github.com/python/cpython/issues/61602 * GH-65056: Improve the IP address' is_global/is_private documentation (GH-113186) It wasn't clear what the semantics of is_global/is_private are and, when one gets to the bottom of it, it's not quite so simple (hence the exceptions listed). (cherry picked from commit 2a4cbf17af19a01d942f9579342f77c39fbd23c4) (cherry picked from commit 40d75c2b7f5c67e254d0a025e0f2e2c7ada7f69f) --------- Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
* [3.12] bpo-40944: Fix IndexError when parse emails with truncated ↵Miss Islington (bot)2024-04-233-5/+51
| | | | | | | | Message-ID, address, routes, etc (GH-20790) (GH-117974) (cherry picked from commit 1aa8bbe62f27b564cf15e2aad591c62744354a4e) Co-authored-by: Ivan Savin <acccko@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Fix typo in py_compile.rst (GH-118102) (GH-118191)Miss Islington (bot)2024-04-231-1/+1
| | | | | (cherry picked from commit 0d221e9a1952949465df4e737e8d3189bdd9632a) Co-authored-by: Animesh Kumar <animesh0721@gmail.com>
* [3.12] gh-118168: Fix Unpack interaction with builtin aliases (GH-118169) ↵Miss Islington (bot)2024-04-233-2/+39
| | | | | | | (#118178) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-59215: unittest: restore _top_level_dir at end of discovery ↵Miss Islington (bot)2024-04-234-6/+40
| | | | | | | | | | (GH-15242) (GH-117508) * gh-59215: unittest: restore _top_level_dir at end of discovery (GH-15242) (cherry picked from commit fc5f68e58ecfbc8c452e1c2f33a2a53d3f2d7ea2) Co-authored-by: Zackery Spytz <zspytz@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] gh-116741: Upgrade libexpat to 2.6.2 (GH-117296) (GH-118166)Miss Islington (bot)2024-04-235-26/+47
| | | | | | | | gh-116741: Upgrade libexpat to 2.6.2 (GH-117296) Upgrade libexpat to 2.6.2 (cherry picked from commit c9829eec0883a8991ea4d319d965e123a3cf6c20) Co-authored-by: Seth Michael Larson <seth@python.org>
* [3.12] gh-117968: Add tests for the part of the PyRun family of the C API ↵Serhiy Storchaka2024-04-227-1/+238
| | | | | | | | (GH-117982) (GH-118011) (cherry picked from commit 6078f2033ea15a16cf52fe8d644a95a3be72d2e3) Co-authored-by: NGRsoftlab <78017794+NGRsoftlab@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.12] gh-118030: Group definitions for `ParamSpecArgs` and ↵Miss Islington (bot)2024-04-221-1/+1
| | | | | | `ParamSpecKwargs` in `typing.rst` (GH-118154) (#118155) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
* [3.12] gh-118148: Improve tests for shutil.make_archive() (GH-118149) ↵Miss Islington (bot)2024-04-221-71/+176
| | | | | | | (GH-118151) (cherry picked from commit 287d939ed4445089e8312ab44110cbb6b6306a5c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-115986 Improve pprint documentation accuracy (GH-117403) (#118146)Miss Islington (bot)2024-04-221-3/+2
| | | | | | (cherry picked from commit ceb6038b053c403bed3ca3a8bd17b7e3fc9aab7d) Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-117995: Don't raise DeprecationWarnings for indexed nameless ↵Miss Islington (bot)2024-04-223-1/+17
| | | | | | | | | | params (GH-118001) (#118142) Filter out '?NNN' placeholders when looking for named params. (cherry picked from commit 550483b7e6c54b2a25d4db0c4ca41bd9c1132f93) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: AN Long <aisk@users.noreply.github.com>
* [3.12] Docs: replace Harry Potter reference with Monty Python (GH-118130) ↵Miss Islington (bot)2024-04-211-3/+3
| | | | | | | | (#118135) Docs: replace Harry Potter reference with Monty Python (GH-118130) (cherry picked from commit 1446024124fb98c3051199760380685f8a2fd127) Co-authored-by: Clément Robert <cr52@protonmail.com>
* [3.12] gh-118121: Fix `test_doctest.test_look_in_unwrapped` (#118122) (#118129)Nikita Sobolev2024-04-211-1/+16
|
* [3.12] Clarifying nonlocal doc: SyntaxError is raised if nearest enclosing ↵Miss Islington (bot)2024-04-211-2/+3
| | | | | | | | | scope is global (GH-114009) (#118128) Clarifying nonlocal doc: SyntaxError is raised if nearest enclosing scope is global (GH-114009) (cherry picked from commit 1558d993166636f371c1003107ec979db6744f21) Co-authored-by: Quazi Irfan <quazirfan@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] GH-115874: Fix segfault in FutureIter_dealloc (GH-118114)Miss Islington (bot)2024-04-192-2/+17
| | | | | | GH-115874: Fix segfault in FutureIter_dealloc (GH-117741) (cherry picked from commit d8f350309ded3130c43f0d2809dcb8ec13112320) Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
* [3.12] gh-118100: Improve links in `ast.rst` (GH-118101) (#118110)Miss Islington (bot)2024-04-191-2/+3
| | | | | | | gh-118100: Improve links in `ast.rst` (GH-118101) (cherry picked from commit 2aa11cca115add03f39cb6cd7299135ecf4d4d82) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] gh-114053: Fix bad interaction of PEP-695, PEP-563 and ↵Alex Waygood2024-04-195-10/+81
| | | | | | ``get_type_hints`` (#118009) (#118104) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-88035: update doc-string of `epoch` in timemodule.c (GH-118076) ↵Miss Islington (bot)2024-04-191-2/+2
| | | | | | | | | | | (GH-118097) Follow GH-88035, update doc-string of epoch in timemodule.c The epoch is `January 1st, 1970 on all platforms`, according to current documentation. (cherry picked from commit 7c6cc00211772cc2afe0bc5e996b6d28f925d133) Co-authored-by: lit <litlighilit@foxmail.com>
* [3.12] gh-87969: Align docs and docstrings with implementation for ctypes' ↵Miss Islington (bot)2024-04-192-12/+12
| | | | | | | | | | | | | | | [w]string_at() (GH-25384) (GH-118046) gh-87969: Align docs and docstrings with implementation for ctypes' [w]string_at() (GH-25384) The implementation uses 'ptr' for the name of the first parameter of ctypes.string_at() and ctypes.wstring_at(). Align docs and docstrings with the naming used in the implementation. (cherry picked from commit 81a926bd20a8c66646e51b66ef1cfb309b73ebe7) Co-authored-by: Shreyan Avigyan <shreyan.avigyan@gmail.com> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.12] gh-116935: Document that heap types need to support garbage ↵Miss Islington (bot)2024-04-191-1/+2
| | | | | | | | collection (GH-118021) (GH-118092) gh-116935: Document that heap types need to support garbage collection (GH-118021) (cherry picked from commit 5d544365742a117027747306e2d4473f3b73d921) Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
* [3.12] gh-117518: Clarify PyTuple_GetItem() borrowed reference in the doc ↵Miss Islington (bot)2024-04-191-0/+6
| | | | | | | | (GH-117920) (#118087) gh-117518: Clarify PyTuple_GetItem() borrowed reference in the doc (GH-117920) (cherry picked from commit 4605a197bd84da1a232bd835d8e8e654f2fef220) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-64588: Clarify the difference between mu and xbar in statistics ↵Miss Islington (bot)2024-04-191-7/+7
| | | | | | | | | | docs (GH-117333) (#118080) gh-64588: Clarify the difference between mu and xbar in statistics docs (GH-117333) Thanks Davin Potts for the clarification idea. (cherry picked from commit fefd5d97111364afa027ae580c3244f427dda59d) Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* [3.12] gh-117535: Ignore made up file name "sys" for warnings (#118014)Tian Gao2024-04-192-1/+4
|
* [3.12] Use "Contributed by" in a couple of occurrences of 3.12 whatsnew ↵Miss Islington (bot)2024-04-191-3/+3
| | | | | | | | (GH-118070) (#118078) Use "Contributed by" in a couple of occurrences of 3.12 whatsnew (GH-118070) (cherry picked from commit 398abdd6fa5b6b15c0570c75321cd7df9573a5b7) Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
* [3.12] gh-117503: Fix test for posixpath.expanduser() when pw_dir ends with ↵Miss Islington (bot)2024-04-181-0/+1
| | | | | | | / (GH-118056) (GH-118058) (cherry picked from commit ccdcd1d95a9d6eda4df86811c4539f204beef817) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-116932: Remove redundant NEWS entry (GH-118040) (#118041)Miss Islington (bot)2024-04-181-1/+0
| | | | Co-authored-by: lyc8503 <me@lyc8503.site>
* [3.12] Doc: Render version/language selector on Read the Docs (GH-116966) ↵Miss Islington (bot)2024-04-181-0/+86
| | | | | | (#118038) Co-authored-by: Manuel Kaufmann <humitos@gmail.com>
* [3.12] gh-116932: Add note on how to report python documentation theme bugs ↵Miss Islington (bot)2024-04-182-0/+5
| | | | | | | | (GH-117989) (GH-118031) gh-116932: Add note on how to report python documentation theme bugs (GH-117989) (cherry picked from commit 468b9aeb922470c26275ce7dda1e6d570a3323f3) Co-authored-by: lyc8503 <me@lyc8503.site>
* [3.12] gh-117613: Argument Clinic: ensure that defining class params are ↵neonene2024-04-172-1/+29
| | | | positional-only (#117939)
* [3.12] gh-115009: Update Windows installer to use SQLite 3.45.3 (GH-117445) ↵Mariusz Felisiak2024-04-175-7/+8
| | | | | (#118008) (cherry picked from commit de0dc68b8263da4e3e69d517f303b9b08b36f142)
* [3.12] gh-114539: Clarify implicit launching of shells by subprocess ↵Miss Islington (bot)2024-04-171-2/+10
| | | | | | | | (GH-117996) (#118002) gh-114539: Clarify implicit launching of shells by subprocess (GH-117996) (cherry picked from commit a4b44d39cd6941cc03590fee7538776728bdfd0a) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] gh-80361: Fix TypeError in email.Message.get_payload() (GH-117994) ↵Miss Islington (bot)2024-04-173-1/+18
| | | | | | | | | | (GH-117998) It was raised when the charset is rfc2231 encoded, e.g.: Content-Type: text/plain; charset*=ansi-x3.4-1968''utf-8 (cherry picked from commit deaecb88fa5da68cbffca413c63af95fd99578dd) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-117977: Amend version changed annotation for os.chmod, os.chown, ↵Miss Islington (bot)2024-04-171-3/+3
| | | | | | | and os.listdir (GH-117978) (#117992) (cherry picked from commit fccedbda9316d52d93b2db855c07f947fab26ae2) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
* [3.12] gh-117975: Ensure flush level is checked when configuring a logging ↵Miss Islington (bot)2024-04-172-12/+43
| | | | | MemoryHandler. (GH-117976) (GH-117986) (cherry picked from commit 6d0bb43232dd6ebc5245daa4fe29f07f815f0bad)
* [3.12] gh-115009: Update macOS installer to use SQLite 3.45.3 (GH-117443) ↵Miss Islington (bot)2024-04-172-3/+4
| | | | | | | (#117981) (cherry picked from commit b9b3c455f0293be67a762f653bd22f864d15fe3c) Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* [3.12] gh-71966: Move the module docstring from _pydecimal to decimal ↵Miss Islington (bot)2024-04-172-100/+100
| | | | | | | | | (GH-117919) (GH-117962) Now it is set even if the C implementation is used. Also add a one-line synopsis. (cherry picked from commit c69968ff69b59b27d43708379e4399f424f92075)