From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 5 Aug 2022 06:26:26 +0000 (-0700) Subject: gh-65802: IDLE - explain SaveAs and extensions (GH-95690) X-Git-Tag: v3.10.7~92 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=235159331927f8b3ff88cb67f4ca51b28f25a427;p=thirdparty%2FPython%2Fcpython.git gh-65802: IDLE - explain SaveAs and extensions (GH-95690) File name extensions may or may not be shown for the current name and are added in an OS-dependent manner if not given for the new name. (cherry picked from commit 9890f86ae2001d19e7a18fee5b13aa0dd6069aef) Co-authored-by: Terry Jan Reedy --- diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst index e91ec40c9add..2d52e5355749 100644 --- a/Doc/library/idle.rst +++ b/Doc/library/idle.rst @@ -87,11 +87,14 @@ Save Save As... Save the current window with a Save As dialog. The file saved becomes the - new associated file for the window. + new associated file for the window. (If your file namager is set to hide + extensions, the current extension will be omitted in the file name box. + If the new filename has no '.', '.py' and .'txt' will be added for Python + and text files, except that on macOS Aqua,'.py' is added for all files.) Save Copy As... Save the current window to different file without changing the associated - file. + file. (See Save As note above about filename extensions.) Print Window Print the current window to the default printer. diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index 999b67181319..277fd9429a4c 100644 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -4,6 +4,8 @@ Released 2023-04-03? ========================= +gh-65802: Document handling of extensions in Save As dialogs. + gh-95191: Include prompts when saving Shell (interactive input/output). gh-95511: Fix the Shell context menu copy-with-prompts bug of copying diff --git a/Misc/NEWS.d/next/IDLE/2022-08-04-20-07-51.gh-issue-65802.xnThWe.rst b/Misc/NEWS.d/next/IDLE/2022-08-04-20-07-51.gh-issue-65802.xnThWe.rst new file mode 100644 index 000000000000..a62a784b6e69 --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/2022-08-04-20-07-51.gh-issue-65802.xnThWe.rst @@ -0,0 +1 @@ +Document handling of extensions in Save As dialogs.