Skip to content

Commit 9890f86

Browse files
authored
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.
1 parent 87154d8 commit 9890f86

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Doc/library/idle.rst

+5-2
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,14 @@ Save
8787

8888
Save As...
8989
Save the current window with a Save As dialog. The file saved becomes the
90-
new associated file for the window.
90+
new associated file for the window. (If your file namager is set to hide
91+
extensions, the current extension will be omitted in the file name box.
92+
If the new filename has no '.', '.py' and .'txt' will be added for Python
93+
and text files, except that on macOS Aqua,'.py' is added for all files.)
9194

9295
Save Copy As...
9396
Save the current window to different file without changing the associated
94-
file.
97+
file. (See Save As note above about filename extensions.)
9598

9699
Print Window
97100
Print the current window to the default printer.

Lib/idlelib/NEWS.txt

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Released on 2022-10-03
44
=========================
55

66

7+
gh-65802: Document handling of extensions in Save As dialogs.
8+
79
gh-95191: Include prompts when saving Shell (interactive input/output).
810

911
gh-95511: Fix the Shell context menu copy-with-prompts bug of copying
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Document handling of extensions in Save As dialogs.

0 commit comments

Comments
 (0)