-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Remove idlelib from sys.path in IDLE run process #134300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, there's a quick suggestion - the title of the issue should be more descriptive about the topic, rather than a very generic question, so the triagers and core devs can understand what's the issue about (whether it's in their area of expertise) without clicking into it. |
cc @terryjreedy I don't understand the issue but since it seems to be IDLE related, I'm pinging you to have a look and decide the scope. |
Which version of Python are you using? And what OS are you on? On macOS I get:
|
This is a subissue of #69674; I am leaving this open to patch this specific issue, which is that @Locked-chess-official What OS, python version, and IDLE startup method did you use. I think adding the following to idlelib.run near the top should work.
|
Windows, 3.12 and 3.13 |
|
When use IDLE to open a file and start a new IDLE windows from "Python Shell" button, you can import the modules that are the child modules in the module "idlelib", such as "help", "pyshell". Think for that there are many schools still use IDLE to teach python to prevent the students to install malicious plugins from other IDE, if the students try to import these modules, it will result in misleading.
This code is wrong in cmd and any other IDE but "normal" in IDLE, and what is imported is "idlelib.help".
The text was updated successfully, but these errors were encountered: