summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.12] gh-119009: Add gettext target (GH-119006) (#119075)Miss Islington (bot)2024-05-152-0/+8
| | | | Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
* gh-118486: Simplify test_win32_mkdir_700 to check the exact ACL (GH-119056)Miss Islington (bot)2024-05-152-16/+9
| | | | | (cherry picked from commit 94591dca510c796c7d40e9b4167ea56f2fdf28ca) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] Misc improvements to the itertools docs (gh-119040) (#119044)Miss Islington (bot)2024-05-141-35/+26
|
* [3.12] Itertools docs: fix parameter names and indentation in Python ↵Miss Islington (bot)2024-05-141-5/+5
| | | | equivalents (gh-118977) (#119042)
* [3.12] typing tests: remove some unnecessary uses of `exec()` (GH-119005) ↵Miss Islington (bot)2024-05-141-19/+9
| | | | | | | | (#119039) (cherry picked from commit a9328e2b6ee05c186dcc552feb92b862b4a574df) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] Add yet few cases for urlparse/urlunparse roundtrip tests (GH-119031) ↵Miss Islington (bot)2024-05-141-0/+17
| | | | | | | (GH-119036) (cherry picked from commit 331d385af9817eaa32b739130227781358f85771) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-67693: Fix urlunparse() and urlunsplit() for URIs with path ↵Miss Islington (bot)2024-05-143-4/+70
| | | | | | | starting with multiple slashes and no authority (GH-113563) (GH-119024) (cherry picked from commit e237b25a4fa5626fcd1b1848aa03f725f892e40e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-118998: Handle errors correctly in `tmtotuple` in `timemodule` ↵Miss Islington (bot)2024-05-131-10/+17
| | | | | | | | (GH-118999) (#119019) gh-118998: Handle errors correctly in `tmtotuple` in `timemodule` (GH-118999) (cherry picked from commit fc757925944a9486d4244853dbe6e37ab3e560c2) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-119010: Adds docs about `__type_params__` to ↵Miss Islington (bot)2024-05-131-2/+6
| | | | | | | | | `functools.update_wrapper` (GH-119012) (#119014) gh-119010: Adds docs about `__type_params__` to `functools.update_wrapper` (GH-119012) (cherry picked from commit b04c497f187b0b474e431a6d8d282269b40ffe52) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-58933: Make pdb return to caller frame correctly when f_trace is ↵Tian Gao2024-05-133-8/+67
| | | | | | | | | | not set (GH-118979) (#119008) * [3.12] gh-58933: Make pdb return to caller frame correctly when f_trace is not set (GH-118979) (cherry picked from commit f526314194f7fd15931025f8a4439c1765666e42) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* gh-118876: Ensure PC/layout sets ns.temp before using it (GH-118880)Miss Islington (bot)2024-05-131-2/+9
| | | | | | Fixes an AttributeError that occurs when checking if ns.temp is an absolute path during building from source on Windows. (cherry picked from commit d8a82cca12e12a6b22bfe6691e9b222f6d276f0a) Co-authored-by: I-Shen Leong <i-shenl@activestate.com>
* [3.12] Improve the `rmtree` doc for `dir_fd` param addition in 3.11 ↵Miss Islington (bot)2024-05-131-1/+1
| | | | | | (GH-118964) (#118992) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-87106: Fix inspect.signature.bind() handling of positional-only ↵Miss Islington (bot)2024-05-133-17/+39
| | | | | | | arguments with **kwargs (GH-103404) (GH-118984) (cherry picked from commit 9c1520244151f36e010c1b04bedf14747a28517d) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* [3.12] gh-118899: Add tests for `NotImplemented` attribute access ↵Miss Islington (bot)2024-05-121-0/+18
| | | | | | | | (GH-118902) (#118969) gh-118899: Add tests for `NotImplemented` attribute access (GH-118902) (cherry picked from commit ec1398e117fb142cc830495503dbdbb1ddafe941) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] GH-118701: Note that recursive wildcards aren't supported in ↵Barney Gale2024-05-111-0/+4
| | | | `PurePath.match()` (#118713)
* [3.12] Correct the argument names for `secrets.choice` and ↵Miss Islington (bot)2024-05-101-3/+3
| | | | | | | | | | `secrets.randbelow` in `secrets.rst` (GH-118098) (GH-118907) Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst` (GH-118098) Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst`. (cherry picked from commit c444362c6e0b6c01f49c3bee864100f52bd3b640) Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
* gh-118689: Doc: fix ePub build (GH-118690)Miss Islington (bot)2024-05-103-1/+7
| | | | | (cherry picked from commit 7ac933e2609b2ef9b08ccf9c815b682b0e1ede2a) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* Fix some missing null checks. (GH-118721)Miss Islington (bot)2024-05-102-5/+13
| | | | | (cherry picked from commit 7e6fcab20003b07621dc02ea78d6ea2fda500371) Co-authored-by: Steve Dower <steve.dower@python.org>
* gh-118486: Support mkdir(mode=0o700) on Windows (GH-118488)Steve Dower2024-05-096-2/+106
|
* gh-118802: Fix ACL use in test for non-English Windows (GH-118831)Miss Islington (bot)2024-05-091-3/+2
| | | | | (cherry picked from commit 82acc5f2113bffd0ed902851f4ccf5b9be8980b2) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] gh-103956: Fix `trace` output in case of missing source line ↵Miss Islington (bot)2024-05-093-4/+38
| | | | | | | | (GH-103958) (GH-118832) Print only filename with lineno if linecache.getline() returns an empty string. (cherry picked from commit 7c87ce777b3fd9055b118a58ec8614901ecb45e9) Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
* [3.12] gh-118033: Fix `__weakref__` not set for generic dataclasses ↵Miss Islington (bot)2024-05-093-3/+118
| | | | | | | | (GH-118099) (#118822) gh-118033: Fix `__weakref__` not set for generic dataclasses (GH-118099) (cherry picked from commit fa9b9cb11379806843ae03b1e4ad4ccd95a63c02) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] Format None, True, False and NotImplemented as literals (GH-118758) ↵Serhiy Storchaka2024-05-0833-75/+76
| | | | | (GH-118794) (cherry picked from commit 05c2fe1acda9ea5a57061642c36e8b73bb4fbba4)
* [3.12] docs: module page titles should not start with a link to themselves ↵Miss Islington (bot)2024-05-08220-443/+440
| | | | | | | | (GH-117099) (#118791) docs: module page titles should not start with a link to themselves (GH-117099) (cherry picked from commit bcb435ee8ff41b5ec5d879ee0b6651f146a66151) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* [3.12] Docs: fix typos in documentation (GH-118752) (#118786)Miss Islington (bot)2024-05-084-4/+4
| | | | | | Docs: fix typos in documentation (GH-118752) (cherry picked from commit 7b0c247f1c176e092777fce4677a00f22c738b3c) Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
* [3.12] gh-118671: Updated dead ActiveState links (GH-118730) (#118754)Miss Islington (bot)2024-05-0812-14/+14
| | | | | | Co-authored-by: trag1c <trag1cdev@yahoo.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [3.12] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-118736) (#118753)Miss Islington (bot)2024-05-081-3/+3
| | | | | | | | Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-118736) Regen dependencies (cherry picked from commit fcf52d7ceea3532f0b3475aadd4e1f72db463a1f) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [3.12] Remove Python 3.5 hardcoded version in the tutorial appendix ↵Miss Islington (bot)2024-05-071-2/+2
| | | | | | | | (GH-117612) (GH-118707) Remove Python 3.5 hardcoded version in the tutorial appendix (GH-117612) (cherry picked from commit a855f824a2f5a310ffa58a973a8fe9feaa2500b3) Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me>
* [3.12] gh-118310: Fix documentation for `enum.Enum.__new__` (GH-118311) ↵Miss Islington (bot)2024-05-071-5/+7
| | | | | | | | | | | | | (GH-118699) gh-118310: Fix documentation for `enum.Enum.__new__` (GH-118311) The provided example was incorrect: - The example enum was missing the `int` mixin as implied by the context - The value of `int('1a', 16)` was incorrectly given as 17 (should be 26) (cherry picked from commit 48e52fe2c9a7b33671f6b5d1420a71a6f31ad64b) Co-authored-by: Momo Eissenhauer <mmEissen@users.noreply.github.com>
* [3.12] gh-78612: Mark up eval() using param list (GH-115212) (#116044)Miss Islington (bot)2024-05-071-5/+15
| | | | | | Also mention that the 'expression' parameter can be a string. (cherry picked from commit a71e32ce8e183023fc1ee401c22ebe35e4832f09) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-118314: Fix padding edge case in binascii.a2b_base64 strict mode ↵Miss Islington (bot)2024-05-073-0/+23
| | | | | | | | | | | | | | (GH-118320) (GH-118691) gh-118314: Fix padding edge case in binascii.a2b_base64 strict mode (GH-118320) Fix an edge case in `binascii.a2b_base64` strict mode, where excessive padding was not detected when no padding is necessary. (cherry picked from commit fe47d9bee319528ffeb5fd60a615d7f02c7b5585) Co-authored-by: Youfu Zhang <1315097+zhangyoufu@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
* [3.12] Expand recipe for kernel density estimation to include common tasks. ↵Raymond Hettinger2024-05-061-10/+46
| | | | (gh-118659)
* [3.12] gh-71592: Add ability to trace Tcl commands executed by Tkinter ↵Serhiy Storchaka2024-05-063-6/+191
| | | | | | | | | | | | | | | | | (GH-118291) (GH-118662) This is an experimental feature, for internal use. Setting tkinter._debug = True before creating the root window enables printing every executed Tcl command (or a Tcl command equivalent to the used Tcl C API). This will help to convert a Tkinter example into Tcl script to check whether the issue is caused by Tkinter or exists in the underlying Tcl/Tk library. (cherry picked from commit 1ff626ebda465931ff3e4922e8e87d586eb6244c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Fix typo in Doc/library/asyncio-task.rst (GH-118627) (#118657)Miss Islington (bot)2024-05-061-1/+1
| | | | | | Fix typo in Doc/library/asyncio-task.rst (GH-118627) (cherry picked from commit fc50f1bdbad3aa52d7cbd3cb836a35806266ec54) Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
* [3.12] GH-115577 Clarify netloc term usage in urllib.parse docs (GH-117632) ↵Miss Islington (bot)2024-05-061-0/+5
| | | | | | | (GH-118656) (cherry picked from commit 3ed3bc379a0c4ce7a107dd4bc276554fbb477998) Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me>
* [3.12] gh-118164: Break a loop between _pydecimal and _pylong and optimize ↵Miss Islington (bot)2024-05-063-11/+70
| | | | | | | | | | | | | | | | | | | | | | | int to str conversion (GH-118483) (GH-118590) For converting large ints to strings, CPython invokes a function in _pylong.py, which uses the decimal module to implement an asymptotically waaaaay sub-quadratic algorithm. But if the C decimal module isn't available, CPython uses _pydecimal.py instead. Which in turn frequently does str(int). If the int is very large, _pylong ends up doing the work, which in turn asks decimal to do "big" arithmetic, which in turn calls str(big_int), which in turn ... it can become infinite mutual recursion. This change introduces a different int->str function that doesn't use decimal. It's asymptotically worse, "Karatsuba time" instead of quadratic time, so still a huge improvement. _pylong switches to that when the C decimal isn't available. It is also used for not too large integers (less than 450_000 bits), where it is faster (up to 2 times for 30_000 bits) than the asymptotically better implementation that uses the C decimal. (cherry picked from commit 711c80bfca5dd17cb7c6ec26f0e44848b33aec04) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Tim Peters <tim.peters@gmail.com>
* [3.12] gh-115119: Bump CI to use Ubuntu 22.04 (#118631) (#118634)Erlend E. Aasland2024-05-062-4/+4
| | | Ubuntu 22.04 ships with mpdecimal 2.5.1, installable using 'apt install libmpdec-dev'.
* [3.12] gh-78955: Use user-selected color theme for Help => IDLE Doc ↵Miss Islington (bot)2024-05-063-2/+8
| | | | | | | | (GH-9502) (#118632) gh-78955: Use user-selected color theme for Help => IDLE Doc (GH-9502) (cherry picked from commit 7758be431807d574e0f1bbab003796585ae46719) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-117389: Fix `test_compileall.EncodingTest` (GH-117390) (#118603)Miss Islington (bot)2024-05-051-8/+14
| | | | | | gh-117389: Fix `test_compileall.EncodingTest` (GH-117390) (cherry picked from commit 44f67916dafd3583f482e6d001766581a1a734fc) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-118476: Fix corner cases in islice() rough equivalent. (Gh-118559) ↵Miss Islington (bot)2024-05-051-18/+11
| | | | (#118587)
* [3.12] gh-118455: Fix mangle_from_ default value in ↵Miss Islington (bot)2024-05-051-1/+1
| | | | | | | | | | | | | | | | | email.policy.Policy.__doc__ (GH-118456) (#118586) gh-118455: Fix mangle_from_ default value in email.policy.Policy.__doc__ (GH-118456) * Fix mangle_from_ default value in email.policy.Policy.__doc__ The docstring says it defaults to True, but it actually defaults to False. Only the Compat32 subclass overrides that. --------- (cherry picked from commit fed8d73fde779fca41026398376cb3038e9b2b5f) Co-authored-by: wim glenn <jump@wimglenn.com> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-118164: str(10**10000) hangs if the C _decimal module is missing ↵Miss Islington (bot)2024-05-053-5/+40
| | | | | | | | | | | | | (GH-118503) (GH-118584) Serhiy and I independently concluded that exact powers of 10 aren't possible in these contexts, so just checking the string length is sufficient. (cherry picked from commit 999f0c512281995fb61a0d9eda075fd846e8c505) Co-authored-by: Tim Peters <tim.peters@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-118569: Add a test for dynamic PEP695 classes (GH-118570) (#118574)Miss Islington (bot)2024-05-041-0/+25
| | | | | | gh-118569: Add a test for dynamic PEP695 classes (GH-118570) (cherry picked from commit 5f547585fa56c94c5d836b5313a7200f4937ebc4) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] Minor improvements to the itertools recipes (GH-118563) (#118565)Miss Islington (bot)2024-05-031-24/+12
|
* [3.12] docs: clarify csv.DictReader's treatment of the first data row ↵Miss Islington (bot)2024-05-031-2/+4
| | | | | | | | (GH-118549) (#118555) (cherry picked from commit 9d67b72a4952766fdba803eb6eadd41dfee29dff) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* [3.12] gh-118513: Fix sibling comprehensions with a name bound in one and ↵Miss Islington (bot)2024-05-033-39/+57
| | | | | | | | | | global in the other (GH-118526) (#118548) gh-118513: Fix sibling comprehensions with a name bound in one and global in the other (GH-118526) (cherry picked from commit c8deb1e4b495bf97ab00c710dfd63f227e1fb645) Co-authored-by: Carl Meyer <carl@oddbird.net> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [3.12] gh-117492: Clarify documentation of `typing.Never` (GH-117678) (#118547)Miss Islington (bot)2024-05-031-24/+22
| | | | | | | (cherry picked from commit 852263e1086748492602a90347ecc0a3925e1dda) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.12] gh-90848: Fixed create_autospec ignoring configure_mock style kwargs ↵Miss Islington (bot)2024-05-023-8/+26
| | | | | | | | (GH-118163) (#118517) gh-90848: Fixed create_autospec ignoring configure_mock style kwargs (GH-118163) (cherry picked from commit b28a3339e4c63ea3a801dba9bbbc6af5af42c3a0) Co-authored-by: infohash <46137868+infohash@users.noreply.github.com>
* [3.12] gh-118272: Clear generator frame's locals when the generator is ↵Irit Katriel2024-05-025-5/+39
| | | | closed (#118451)
* [3.12] gh-117903: Clarify that the staticmethod descriptor is callable ↵Miss Islington (bot)2024-05-021-2/+3
| | | | | | | (GH-117925) (GH-118509) (cherry picked from commit b3372481b6cae5766330b041c4622c28cee2119f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>