Skip to content

gh-69708: IDLE "Save As" warnings#17051

Open
ZackerySpytz wants to merge 1 commit intopython:mainfrom
ZackerySpytz:bpo-25522-idle-save-warnings
Open

gh-69708: IDLE "Save As" warnings#17051
ZackerySpytz wants to merge 1 commit intopython:mainfrom
ZackerySpytz:bpo-25522-idle-save-warnings

Conversation

@ZackerySpytz
Copy link
Copy Markdown
Contributor

@ZackerySpytz ZackerySpytz commented Nov 5, 2019

Give a warning when attempting to save a file that shadows a module
in the standard library.

https://bugs.python.org/issue25522

Give a warning when attempting to save a file that shadows a module
in the standard library.
@hauntsaninja hauntsaninja changed the title bpo-25522: IDLE "Save As" warnings gh-69708: IDLE "Save As" warnings Jan 7, 2023
@serhiy-storchaka
Copy link
Copy Markdown
Member

  1. The warning should only be emitted if the file extension matches Python source extensions. IDLE allows to edit other text files, they do not conflict with modules.
  2. The warning should only be emitted for saving a new file. If file already exists, then the user already saved it and asked the question.
  3. There should be more reliable way to determine if the name conflicts with an existing module. For example using importlib.util.find_spec().

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2026

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants