summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.12] gh-112716: Fix SystemError when __builtins__ is not a dict ↵Serhiy Storchaka2023-12-143-9/+33
| | | | | | | | | (GH-112770) (GH-113103) It was raised in two cases: * in the import statement when looking up __import__ * in pickling some builtin type when looking up built-ins iter, getattr, etc. (cherry picked from commit 1161c14e8c68296fc465cd48970b32be9bee012e)
* [3.12] gh-113090: Fix test.support.os_support.can_chmod() on Windows ↵Miss Islington (bot)2023-12-144-6/+12
| | | | | | | (GH-113091) (GH-113099) (cherry picked from commit c6e953be125c491226adc1a5bc9c804ce256aa17) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-111049: Fix crash during garbage collection of the BytesIO buffer ↵Miss Islington (bot)2023-12-143-10/+27
| | | | | | | object (GH-111221) (GH-113096) (cherry picked from commit bb36f72efcc6a656e0907ffa83620a1e44044895) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Fixing typo in DocTestRunner docs (GH-112326) (GH-113097)Miss Islington (bot)2023-12-141-1/+1
| | | | | (cherry picked from commit b3c21265fa48a137a4c6a35e425b2b7f94f96cf4) Co-authored-by: Daniel Wysocki <dwysocki@users.noreply.github.com>
* [3.12] gh-113086: Add tests for os.chmod() and os.lchmod() (GH-113087) ↵Miss Islington (bot)2023-12-142-1/+118
| | | | | | | | (GH-113088) Also make test_copymode_symlink_to_symlink in test_shutil more strict. (cherry picked from commit b4f2c89118d5a48ce6c495ba931d7f6493422029) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-112867: fix for WITH_PYMALLOC_RADIX_TREE=0 (GH-112885) (#113068)Miss Islington (bot)2023-12-132-0/+3
| | | | | | | | | gh-112867: fix for WITH_PYMALLOC_RADIX_TREE=0 (GH-112885) The _obmalloc_usage structure is only defined if the obmalloc radix tree is enabled. (cherry picked from commit 890ce430d94b0b2bccc92a8472b1e1030b4faeb8) Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
* [3.12] bpo-40648: Test modes that file can get with chmod() on Windows ↵Miss Islington (bot)2023-12-132-0/+8
| | | | | | | | | (GH-20130) (GH-113070) Order of tests matter second part makes testing file writable and possible to remove again. (cherry picked from commit f5c05e015c178975f24b77e5a8975a22d694e019) Co-authored-by: Pavol Babinčák‏ <scroolik@gmail.com>
* [3.12] gh-107959: clarify Unix-availability of `os.lchmod()` (GH-107960) ↵Miss Islington (bot)2023-12-131-1/+4
| | | | | | | | | | | | | | | | | | | | | | | (GH-113066) gh-107959: clarify Unix-availability of `os.lchmod()` (GH-107960) POSIX specifies that implementations are not required to support changing the file mode of symbolic links, but may do so. Consequently, `lchmod()` is not part of POSIX (but mentioned for implementations which do support the above). The current wording of the availability of `os.lchmod()` is rather vague and improved to clearly tell which POSIX/Unix/BSD-like support the function in general (those that support changing the file mode of symbolic links). Further, some examples of major implementations are added. Data for the BSDs taken from their online manpages. (cherry picked from commit f14e3d59c955fb3cf89e5241727ec566164dcf42) Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name> Co-authored-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [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>