summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.12] Docs: Fix external link to devguide.python.org (GH-112899) (#113065)Miss Islington (bot)2023-12-131-1/+1
| | | | Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* [3.12] gh-101100: Improve docs on exception attributes (GH-113057) (#113061)Miss Islington (bot)2023-12-136-67/+115
| | | | | | | gh-101100: Improve docs on exception attributes (GH-113057) (cherry picked from commit d05a180350fe20d5fde56c7e525e394a0b282703) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] [pprint]: Add docstring about `PrettyPrinter.underscore_numbers` ↵Miss Islington (bot)2023-12-131-0/+3
| | | | | | | | | parameter (GH-112963) (#113053) [pprint]: Add docstring about `PrettyPrinter.underscore_numbers` parameter (GH-112963) (cherry picked from commit 2a3c37c273762d2dc40bfdae3899cb09b7c88d4a) Co-authored-by: Sequew <88668176+KrySeyt@users.noreply.github.com> Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [3.12] gh-101100: Fix Sphinx warning in references with asterisks ↵Miss Islington (bot)2023-12-1322-54/+56
| | | | | | | | | (GH-113029) (#113043) gh-101100: Fix Sphinx warning in references with asterisks (GH-113029) (cherry picked from commit 3531ea441b8b76bff90d2ecc062335da65fd3341) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-101100: Further improve docs on function attributes (GH-113001) ↵Miss Islington (bot)2023-12-122-4/+7
| | | | | | | | (#113030) gh-101100: Further improve docs on function attributes (GH-113001) (cherry picked from commit 81a15ea74e2607728fceb822dfcc1aabff00478a) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-112983: Add the known magic value of 3495 for Python 3.11 bytecode ↵Miss Islington (bot)2023-12-121-0/+1
| | | | | | | | | | (GH-112985) (#113023) gh-112983: Add the known magic value of 3495 for Python 3.11 bytecode (GH-112985) Add the known magic value of 3495 for Python 3.11 bytecode (cherry picked from commit 616622cab7200bac476bf753d6cc98f4ee48808c) Co-authored-by: wim glenn <jump@wimglenn.com>
* [3.12] gh-112999: Replace the outdated "deprecated" directives with ↵Miss Islington (bot)2023-12-124-18/+13
| | | | | | | "versionchanged" (GH-113000) (GH-113019) (cherry picked from commit fe9991bb672dd95fb9cd38b5a03180719ac4e722) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Update pre-commit to fix Sphinx Lint (GH-113015) (#113017)Miss Islington (bot)2023-12-121-2/+2
| | | | | | Update pre-commit to fix Sphinx Lint (GH-113015) (cherry picked from commit eafc2381a0b891383098b08300ae766868a19ba6) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-83162: Rename re.error in idlelib (GH-101677) (#112987)Terry Jan Reedy2023-12-122-2/+4
| | | Backport idlelib part of #101677 with simple rename.
* [3.12] gh-101100: Improve documentation on function attributes (GH-112933) ↵Hugo van Kemenade2023-12-1213-129/+158
| | | | | | | (#112974) (cherry picked from commit 4c5b9c107a1d158b245f21a1839a2bec97d05383) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-112953: Rename idlelib/NEWS.txt to News3.txt and update ↵Terry Jan Reedy2023-12-123-5/+16
| | | | (GH-112988) (#112990)
* [3.12] gh-108303: Move `double_const` to `test_import` where it belongs ↵Miss Islington (bot)2023-12-112-3/+6
| | | | | | | | (GH-112108) (#112976) gh-108303: Move `double_const` to `test_import` where it belongs (GH-112108) (cherry picked from commit 0738b9a338fd27ff2d4456dd9c15801a8858ffd9) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-94606: Fix error when message with Unicode surrogate not ↵Miss Islington (bot)2023-12-114-16/+49
| | | | | | | | surrogateescaped string (GH-94641) (GH-112971) (cherry picked from commit 27a5fd8cb8c88537216d7a498eba9d9177951d76) Co-authored-by: Sidney Markowitz <sidney@sidney.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-112898: warn about unsaved files when quitting IDLE on macOS ↵Miss Islington (bot)2023-12-112-1/+2
| | | | | | | | | | | | | | | | | | (GH-112939) (#112960) gh-112898: warn about unsaved files when quitting IDLE on macOS (GH-112939) * gh-112898: warn about unsaved files when quitting IDLE on macOS Implement the TK function ``::tk::mac::Quit`` on macOS to ensure that IDLE asks about saving unsaved files when quitting IDLE. (cherry picked from commit 3251ba8f1af535bf28e31a6832511ba19e96b262) Co-authored-by: Christopher Chavez chrischavez@gmx.us Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* [3.12] gh-112943: Correctly compute end offsets for multiline tokens in the ↵Pablo Galindo Salgado2023-12-115-6/+25
| | | | | tokenize module (GH-112949) (#112957) (cherry picked from commit a135a6d2c6d503b186695f01efa7eed65611b04e)
* [3.12] Fix SyntaxWarning in test_syntax.py (GH-112944) (GH-112955)Miss Islington (bot)2023-12-111-1/+1
| | | | | (cherry picked from commit 97cd45bfdbb6525457ba9d6824386f1e0eea6657) Co-authored-by: Anthony Sottile <asottile@umich.edu>
* [3.12] GH-101986: Support translation for Limited/Unstable API & Stable ABI ↵Miss Islington (bot)2023-12-102-10/+20
| | | | | | | | (GH-107680) (#112940) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-109980: Fix test_tarfile_vs_tar on macOS (GH-112905) (#112927)Miss Islington (bot)2023-12-102-0/+13
| | | | | | | | | | | | gh-109980: Fix test_tarfile_vs_tar on macOS (GH-112905) On recentish macOS versions the system tar command includes system metadata (ACLs, extended attributes and resource forks) in the tar archive, which shutil.make_archive will not do. This can cause spurious test failures. (cherry picked from commit dd2ebdf89ff144e89db180bd552c50615f712cb2) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* Doc: c-api: fix order of PyMemberDef fields (GH-112879)Miss Islington (bot)2023-12-101-4/+4
| | | | Doc: c-api: fix order of PyMemberDef fields (GH-112879) (cherry picked from commit 42a86df3a376a77a94ffe6b4011a82cf51dc336a)
* [3.12] gh-101100: Fix Sphinx warning in library/http.cookies.rst (GH-112908) ↵Miss Islington (bot)2023-12-102-21/+22
| | | | | | | | (#112929) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Fix Sphinx warning in library/http.cookies.rst (GH-112908)
* [3.12] Docs: Use 'f-strings' as header (GH-112888) (#112923)Miss Islington (bot)2023-12-101-2/+4
| | | | | | Docs: Use 'f-strings' as header (GH-112888) (cherry picked from commit 5bf7580d72259d7d64f5ee8cfc2df677de5310a4) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] IDLE: Tweak iomenu.IOBinding.maybesave (GH-112914) (#112917)Miss Islington (bot)2023-12-101-10/+11
| | | | | | Add docstring, use f-string, simplify code. (cherry picked from commit ca1bde894305a1b88fdbb191426547f35b7e9200) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-101100: Improve documentation of `TracebackType` attributes ↵Miss Islington (bot)2023-12-096-33/+52
| | | | | | | | (GH-112884) (#112911) gh-101100: Improve documentation of `TracebackType` attributes (GH-112884) (cherry picked from commit 96f64a2b1b4e3d4902848c63e42717a9c5539e03) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-101100: Fix Sphinx nitpicks in `library/tempfile.rst` (#112886) ↵Alex Waygood2023-12-092-24/+29
| | | | | | | (#112910) (cherry-picked from commit 54410e6bd9) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-110820: Disable test_signal.test_stress_modifying_handlers on ↵Ronald Oussoren2023-12-092-1/+13
| | | | | | | | | | macOS (GH-112834) * gh-110820: Make sure processor specific defines are correct for Universal 2 build on macOS (#112828) A number of processor specific defines are different for x86-64 and arm64, and need to be adjusted in pymacconfig.h. (cherry picked from commit 15a80b15af9a0b0ebe6bd538a1919712ce7d4ef9)
* [3.12] gh-79429: Ignore FileNotFoundError when remove a temporary directory ↵Serhiy Storchaka2023-12-092-1/+6
| | | | in the multiprocessing finalizer (GH-112865)
* [3.12] gh-112758: Updated pathlib documentation for PurePath.match ↵Miss Islington (bot)2023-12-081-0/+3
| | | | | | | | (GH-112814) (#112882) gh-112758: Updated pathlib documentation for PurePath.match (GH-112814) (cherry picked from commit ed8720ace4f73e49f149a1fdd548063ee05f42d5) Co-authored-by: Taylor Packard <3.t.packard@gmail.com>
* [3.12] gh-101100: Fix Sphinx nits in `library/contextlib.rst` (#112870) ↵Alex Waygood2023-12-082-8/+7
| | | | | (#112875) (cherry-picked from commit e4c0876033)
* [3.12] gh-101100: Improve documentation for attributes on instance methods ↵Miss Islington (bot)2023-12-086-41/+76
| | | | | | | | (GH-112832) (#112872) gh-101100: Improve documentation for attributes on instance methods (GH-112832) (cherry picked from commit ed21d0c1f4bd17b392e24bfd83e652723dad4ddf) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-101100: Fix Sphinx nitpicks in `library/shelve.rst` (GH-112836) ↵Miss Islington (bot)2023-12-082-5/+5
| | | | | | | | (#112868) gh-101100: Fix Sphinx nitpicks in `library/shelve.rst` (GH-112836) (cherry picked from commit 3cdcc2edf81c7be4c88d4f273947ce29f916f49a) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-110017: Disable test_signal.test_stress_modifying_handlers on ↵Miss Islington (bot)2023-12-082-0/+3
| | | | | | | | | | | | macOS (GH-112834) (#112851) gh-110017: Disable test_signal.test_stress_modifying_handlers on macOS (GH-112834) Test test_stress_modifying_handlers in test_signal can crash the interpreter due to a bug in macOS. Filed as FB13453490 with Apple. (cherry picked from commit bf0beae6a05f3266606a21e22a4d803abbb8d731) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* Merge branch '3.12' of https://github.com/python/cpython into 3.12Thomas Wouters2023-12-083-4/+7
|\
| * [3.12] gh-101100: Silence Sphinx warnings when `ntpath` or `posixpath` are ↵Alex Waygood2023-12-073-4/+7
| | | | | | | | | | referenced (#112833) (#112857) (cherry-picked from commit 2c3906bc4b)
* | Post 3.12.1Thomas Wouters2023-12-081-1/+1
| |
* | Python 3.12.1v3.12.1Thomas Wouters2023-12-07155-574/+1942
|/
* [3.12] gh-112826: Fix the threading Module When _thread is Missing ↵Eric Snow2023-12-073-1/+51
| | | | | | | _is_main_interpreter() (#112850) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-79325: Fix recursion error in TemporaryDirectory cleanup on ↵Miss Islington (bot)2023-12-073-2/+21
| | | | | | | Windows (GH-112762) (GH-112847) (cherry picked from commit b2923a61a10dc2717f4662b590cc9f6d181c6983) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-87319: Simplify TemporaryDirectory cleanup using ↵Miss Islington (bot)2023-12-071-13/+1
| | | | | | | os.path.isjunction() (GH-112791) (GH-112845) (cherry picked from commit ba18893555bbf69b1da262aaf85d65e4b67e8955) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-91133: tempfile.TemporaryDirectory: fix symlink bug in cleanup ↵Miss Islington (bot)2023-12-073-15/+125
| | | | | | | | (GH-99930) (GH-112838) (cherry picked from commit 81c16cd94ec38d61aa478b9a452436dc3b1b524d) Co-authored-by: Søren Løvborg <sorenl@unity3d.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-110190: Temporarily skip new test introduced in gh-112604 on ↵Łukasz Langa2023-12-071-45/+52
| | | | | | | PPC64LE (GH-112818) (#112829) (cherry picked from commit 9f67042f28bf886a9bf30fed6795d26cff255f1e) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.12] gh-112125: Fix None.__ne__(None) returning NotImplemented instead of ↵Victor Stinner2023-12-075-1/+15
| | | | | | | | | … (#112827) gh-112125: Fix None.__ne__(None) returning NotImplemented instead of False (#112504) (cherry picked from commit 9c3458e05865093dd55d7608810a9d0ef0765978) Co-authored-by: andrewluotechnologies <44252973+andrewluotechnologies@users.noreply.github.com>
* [3.12] gh-109981: Fix support.fd_count() on macOS 14 (GH-112797) (#112824)Miss Islington (bot)2023-12-072-2/+12
| | | | | | | | | | | | gh-109981: Fix support.fd_count() on macOS 14 (GH-112797) Use scanning "/dev/fd/" on macOS in support.fd_count(). That's both more efficient than scanning all possible file descriptors, and avoids crashing the interpreter when there are open "guarded" file descriptors. "Guarded" file descriptors are a macOS feature where file descriptors used by system libraries are marked and cause hard crashes when used by "user" code. (cherry picked from commit 953ee622b3901d3467e65e3484dcfa75ba6fcddf) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-101100: Improve documentation of code object attributes (#112781) ↵Alex Waygood2023-12-069-51/+109
| | | | | (#112816) (cherry-picked from commit e9707d3c3d)
* [3.12] gh-101100: Fix Sphinx nitpicks in `library/reprlib.rst` (GH-112811) ↵Miss Islington (bot)2023-12-062-23/+30
| | | | | | | | (#112813) gh-101100: Fix Sphinx nitpicks in `library/reprlib.rst` (GH-112811) (cherry picked from commit 3870d19d151c31d77b737d6a480aa946b4e87af6) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-110190: Fix ctypes structs with array on Arm (#112604) (#112767)Diego Russo2023-12-064-20/+197
| | | | | | | | | Set MAX_STRUCT_SIZE to 32 in stgdict.c when on Arm platforms. This because on Arm platforms structs with at most 4 elements of any floating point type values can be passed through registers. If the type is double the maximum size of the struct is 32 bytes. On x86-64 Linux, it's maximum 16 bytes hence we need to differentiate. (cherry picked from commit bc68f4a4abcfbea60bb1db1ccadb07613561931c)
* [3.12] gh-75666: Tkinter: "unbind(sequence, funcid)" now only unbinds ↵Miss Islington (bot)2023-12-063-11/+51
| | | | | | | | | | | | | | | | "funcid" (GH-111322) (GH-112802) Previously, "widget.unbind(sequence, funcid)" destroyed the current binding for "sequence", leaving "sequence" unbound, and deleted the "funcid" command. Now it removes only "funcid" from the binding for "sequence", keeping other commands, and deletes the "funcid" command. It leaves "sequence" unbound only if "funcid" was the last bound command. (cherry picked from commit cc7e45cc572dd818412a649970fdee579417701f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: GiovanniL <13402461+GiovaLomba@users.noreply.github.com>
* [3.12] gh-111178: Docs: fix `traverseproc`, `inquiry`, and `destructor` ↵Miss Islington (bot)2023-12-061-3/+3
| | | | | | | | | | | | | parameters in slot typedefs table (GH-112742) (GH-112792) gh-111178: Docs: fix `traverseproc`, `inquiry`, and `destructor` parameters in slot typedefs table (GH-112742) In the slot typedefs table, the parameter of `destructor` and the first parameter of `traverseproc` should both be `PyObject *` rather than `void *`. Same for `inquiry`. (cherry picked from commit 00cce0fe495ee820cd3ca5878bdbe3dd65b1be7b) Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
* [3.12] gh-101100: Fix most Sphinx nitpicks in the glossary and ↵Miss Islington (bot)2023-12-062-32/+41
| | | | | | | | `stdtypes.rst` (GH-112757) (#112789) gh-101100: Fix most Sphinx nitpicks in the glossary and `stdtypes.rst` (GH-112757) (cherry picked from commit e3f670e13792305cfb977d5cffd8e6aa03e8fe7f) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-108927: Include new dir test/regrtestdata in the installation ↵Serhiy Storchaka2023-12-061-0/+3
| | | | | | | (GH-112765) (GH-112785) (cherry picked from commit f8c0198e3bfa2f6f65e426765a5efddd8ece78b0) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-112769: test_zlib: Fix comparison of ZLIB_RUNTIME_VERSION with ↵Miss Islington (bot)2023-12-052-12/+20
| | | | | | | | non-int suffix (GH-112771) (GH-112773) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813ff18b33280a90b6d2011654528a2b6ad1) Co-authored-by: Miro Hrončok <miro@hroncok.cz>