[issue25514] better startup error messages in IDLE when stdlib modules shadowed

2015-11-29 Thread Laura Creighton
Laura Creighton added the comment: webmaster got another one of these today. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue25514] better startup error messages in IDLE when stdlib modules shadowed

2015-11-01 Thread Laura Creighton
Laura Creighton added the comment: can I send a file -- type: behavior -> enhancement versions: -Python 3.4 Added file: http://bugs.python.org/file40915/dia2.py ___ Python tracker _

[issue25514] better startup error messages in IDLE when stdlib modules shadowed

2015-10-30 Thread Laura Creighton
Laura Creighton added the comment: Re: misunderstanding Sorry Terry. From my end the great 4 day "weekend of mail.python.org needs to be rebuilt from scratch" happened precisely as I was about to reply to your post. The reply to Peter Otten showed up later as part of my mailer agent trying t

[issue25514] better startup error messages in IDLE when stdlib modules shadowed

2015-10-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Either tkinter and tkinter.messagebox or subprocess must be imported to display a message when IDLE is started from an icon, and there is no console. With subprocess, '''python -i -c "print('Cannot start IDLE (or whatever)')"''' should work. If nothing else,

[issue25514] better startup error messages in IDLE when stdlib modules shadowed

2015-10-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: "I think that removing '' from sys.path, so that IDLE can run, is better than a nicer warning that it cannot run. This, of course, requires that sys not be shadowed, so that sys.path can be accessed." So after importing sys, we should check sys.__file__, or d

[issue25514] better startup error messages in IDLE when stdlib modules shadowed

2015-10-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Laura, I did not understand from your python-list post that you were complaining about shadowing disabling IDLE itself, as opposed to user code. That is partly because you followed up on Peter Otten complaining because IDLE tries to run user code the same way

[issue25514] better startup error messages in IDLE when stdlib modules shadowed

2015-10-29 Thread Laura Creighton
Laura Creighton added the comment: s/machines will/machines with/ (I was tired.) -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue25514] better startup error messages in IDLE when stdlib modules shadowed

2015-10-29 Thread Laura Creighton
Laura Creighton added the comment: Note that the full path name of the file that is doing the shadow is of important interest to teachers. We get machines will all sorts of garbage written on them -- the amount of hell caused by a misnamed turtle.py is hard to measure -- and anything as helps

[issue25514] better startup error messages in IDLE when stdlib modules shadowed

2015-10-29 Thread Mark Roseman
New submission from Mark Roseman: When we create e.g. string.py that shadows a stdlib module needed by IDLE, it would be nice if a better error message could be shown, pointing to that cause. Original message: lac at smartwheels:~/junk$ echo "print ('hello there')" >string.py lac at smartwheel