summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2022-08-05 01:51:14 (GMT)
committerGitHub <noreply@github.com>2022-08-05 01:51:14 (GMT)
commit9890f86ae2001d19e7a18fee5b13aa0dd6069aef (patch)
treefb8972e7c4fc36c1a7c04b60b74320334349ca3b
parent87154d8dd890af0e847e91b06c71c741c08510d0 (diff)
downloadcpython-9890f86ae2001d19e7a18fee5b13aa0dd6069aef.zip
cpython-9890f86ae2001d19e7a18fee5b13aa0dd6069aef.tar.gz
cpython-9890f86ae2001d19e7a18fee5b13aa0dd6069aef.tar.bz2
gh-65802: IDLE - explain SaveAs and extensions (#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.
-rw-r--r--Doc/library/idle.rst7
-rw-r--r--Lib/idlelib/NEWS.txt2
-rw-r--r--Misc/NEWS.d/next/IDLE/2022-08-04-20-07-51.gh-issue-65802.xnThWe.rst1
3 files changed, 8 insertions, 2 deletions
diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst
index e91ec40..2d52e53 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 ce95e2f..7fa7fac 100644
--- a/Lib/idlelib/NEWS.txt
+++ b/Lib/idlelib/NEWS.txt
@@ -4,6 +4,8 @@ Released on 2022-10-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 0000000..a62a784
--- /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.