Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Steven D'Aprano
On Sun, 1 Nov 2015 12:45 pm, Michiel Overtoom wrote: > >> On 31 Oct 2015, at 06:59, Terry Reedy wrote: >> This is a different issue than IDLE avoiding clashes. I opened >> https://bugs.python.org/issue25522 > > Terry, thanks for recording this into the issue tracker. > >

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Tim Golden
On 01/11/2015 14:27, Steven D'Aprano wrote: I remember from a few weeks back, a teacher with the same problem posted this on the mailinglist. Eventually she had a technician coming in to reinstall Windows, just to fix this problem ;-) What an overkill... If that is true, that's really sad.

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Steven D'Aprano
On Sun, 1 Nov 2015 01:50 pm, Terry Reedy wrote: > On 10/31/2015 9:45 PM, Michiel Overtoom wrote: >> I'd go even a step further. I think IDLE should not only warn, but > > The warning will require a choice, with the default (if one just hits > ) being to reject the duplicate and go back to the

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Laura Creighton
I managed to delete the real mail I would like to reply to. This is, at least in the same thread In a message of Mon, 02 Nov 2015 01:27:23 +1100, "Steven D'Aprano" writes a reply to Michael Overtoon: > Users are inclined to ignore alerts, dialogs and error messages, and > applications try

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Steven D'Aprano
On Mon, 2 Nov 2015 11:07 am, Terry Reedy wrote: > On 11/1/2015 11:17 AM, Laura Creighton wrote: > >> In a message of Mon, 02 Nov 2015 01:27:23 +1100, "Steven D'Aprano" writes >> a reply to Michael Overtoon: > > He was actually responding to my proposal to warn about duplicating > stdlib names

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Chris Angelico
On Mon, Nov 2, 2015 at 12:19 PM, Steven D'Aprano wrote: > - Python as a whole should move "" from the start of sys.path to the end (or > at least the middle, after the stdlib) so as to avoid accidental shadowing. > > - Even if Python doesn't do this, IDLE could do it, and

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Paul Rubin
Terry Reedy writes: > * 'Save-as' is not part of the regular workflow. It is done once per > file. Experienced users who know to avoid stdlib names will not see > the messages unless they accidentally duplicate one -- which is > possible because there are now so many. I

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Steven D'Aprano
On Mon, 2 Nov 2015 03:17 am, Laura Creighton wrote: > I managed to delete the real mail I would like to reply to. > This is, at least in the same thread > > In a message of Mon, 02 Nov 2015 01:27:23 +1100, "Steven D'Aprano" writes > a reply to Michael Overtoon: Actually it's a reply to

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Terry Reedy
On 11/1/2015 11:17 AM, Laura Creighton wrote: In a message of Mon, 02 Nov 2015 01:27:23 +1100, "Steven D'Aprano" writes a reply to Michael Overtoon: He was actually responding to my proposal to warn about duplicating stdlib names when saving-as. Users are inclined to ignore alerts,

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Terry Reedy
On 11/1/2015 7:50 PM, Paul Rubin wrote: Terry Reedy writes: * 'Save-as' is not part of the regular workflow. It is done once per file. Experienced users who know to avoid stdlib names will not see the messages unless they accidentally duplicate one -- which is possible

Re: UNABLE TO GET IDLE TO RUN

2015-10-31 Thread Terry Reedy
On 10/30/2015 9:15 PM, Terry Reedy wrote: On 10/30/2015 12:29 PM, Laura Creighton wrote: In a message of Fri, 30 Oct 2015 16:21:30 +0100, Michiel Overtoom writes: Hi, Laura wrote: I think that it would be useful if IDLE spit out a warning An ounce of prevention is worth a pound of cure.

Re: UNABLE TO GET IDLE TO RUN

2015-10-31 Thread Michiel Overtoom
> On 31 Oct 2015, at 06:59, Terry Reedy wrote: > This is a different issue than IDLE avoiding clashes. I opened > https://bugs.python.org/issue25522 Terry, thanks for recording this into the issue tracker. I'd go even a step further. I think IDLE should not only warn, but

Re: UNABLE TO GET IDLE TO RUN

2015-10-31 Thread Chris Angelico
On Sun, Nov 1, 2015 at 12:45 PM, Michiel Overtoom wrote: > I'd go even a step further. I think IDLE should not only warn, but completely > prevent saving a file which shadows a stdlib module, which will effectively > render Python unusable. I remember from a few weeks back, a

Re: UNABLE TO GET IDLE TO RUN

2015-10-31 Thread Terry Reedy
On 10/31/2015 9:45 PM, Michiel Overtoom wrote: On 31 Oct 2015, at 06:59, Terry Reedy wrote: This is a different issue than IDLE avoiding clashes. I opened https://bugs.python.org/issue25522 Terry, thanks for recording this into the issue tracker. I'd go even a step

Re: UNABLE TO GET IDLE TO RUN

2015-10-30 Thread Terry Reedy
On 10/30/2015 12:29 PM, Laura Creighton wrote: In a message of Fri, 30 Oct 2015 16:21:30 +0100, Michiel Overtoom writes: Hi, Laura wrote: I think that it would be useful if IDLE spit out a warning An ounce of prevention is worth a pound of cure. Maybe it's an idea that IDLE gives a warning

Re: UNABLE TO GET IDLE TO RUN

2015-10-30 Thread Michiel Overtoom
Hi, Laura wrote: > I think that it would be useful if IDLE spit out a warning An ounce of prevention is worth a pound of cure. Maybe it's an idea that IDLE gives a warning when you're trying to save a file with a name that would shadow an existing module? Greetings, --

Re: UNABLE TO GET IDLE TO RUN

2015-10-30 Thread Laura Creighton
In a message of Fri, 30 Oct 2015 16:21:30 +0100, Michiel Overtoom writes: >Hi, > >Laura wrote: >> I think that it would be useful if IDLE spit out a warning > >An ounce of prevention is worth a pound of cure. Maybe it's an idea that IDLE >gives a warning when you're trying to save a file with a

Re: UNABLE TO GET IDLE TO RUN

2015-10-29 Thread Laura Creighton
I think that it would be useful if IDLE spit out a warning: Warning: local file /u/lac/junk/string.py shadows module named string in the Standard Library Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: UNABLE TO GET IDLE TO RUN

2015-10-29 Thread Terry Reedy
On 10/29/2015 3:53 AM, Laura Creighton wrote: I think that it would be useful if IDLE spit out a warning: User code is compiled and executed by builtin compile and exec, so it would have to be python (exec) that emit a warning. Warning: local file /u/lac/junk/string.py shadows module named

Re: UNABLE TO GET IDLE TO RUN

2015-10-28 Thread Peter Otten
Terry Reedy wrote: Thank you for your patience. > Why do you think it a misfeature for IDLE to execute code the way Python > does? Sadly I wasn't aware that the interactive interpreter is also vulnerable. I should have been, but failed to add one and one. Until now I have often started python

Re: UNABLE TO GET IDLE TO RUN

2015-10-28 Thread Michael Torrie
On 10/28/2015 10:10 AM, Peter Otten wrote: > Terry Reedy wrote: > > Thank you for your patience. > >> Why do you think it a misfeature for IDLE to execute code the way Python >> does? > > Sadly I wasn't aware that the interactive interpreter is also vulnerable. > I should have been, but failed

Re: UNABLE TO GET IDLE TO RUN

2015-10-28 Thread Peter Otten
Michael Torrie wrote: > On 10/28/2015 10:10 AM, Peter Otten wrote: >> Terry Reedy wrote: >> >> Thank you for your patience. >> >>> Why do you think it a misfeature for IDLE to execute code the way Python >>> does? >> >> Sadly I wasn't aware that the interactive interpreter is also vulnerable.

Re: UNABLE TO GET IDLE TO RUN

2015-10-28 Thread Michael Torrie
On 10/28/2015 12:21 PM, Peter Otten wrote: > PS: The shell people have learned their lesson and no longer include the > working directory in the PATH: > $ ls # the real thing > $ ./ls # use at your own risk Sure but this is a somewhat different genre. > > So maybe > import string #

Re: UNABLE TO GET IDLE TO RUN

2015-10-27 Thread Peter Otten
Terry Reedy wrote: > On 10/26/2015 9:55 AM, Peter Otten wrote: > >> The "bug" or misfeature is that idle automatically adds the working >> directory to sys.path. > > I am not sure what you mean by 'working directory' here. After $ cd /foo/bar the working directory is /foo/bar > When one

Re: UNABLE TO GET IDLE TO RUN

2015-10-27 Thread Terry Reedy
On 10/27/2015 4:15 AM, Peter Otten wrote: Terry Reedy wrote: When one runs a program with 'python somepath/file.py', python prepends somepath to sys.path. If /foo/bar contains a string.py (for example) module and you run the following sequence $ cd /foo/bar $ python3 /usr/bin/idle3 I am

Re: UNABLE TO GET IDLE TO RUN

2015-10-26 Thread Terry Reedy
On 10/26/2015 9:55 AM, Peter Otten wrote: The "bug" or misfeature is that idle automatically adds the working directory to sys.path. I am not sure what you mean by 'working directory' here. When one runs a program with 'python somepath/file.py', python prepends somepath to sys.path.

Re: UNABLE TO GET IDLE TO RUN

2015-10-26 Thread Peter Otten
Terry Reedy wrote: > On 10/23/2015 5:42 AM, Peter Otten wrote: >> Laura Creighton wrote: >> >>> In a message of Fri, 23 Oct 2015 00:19:42 -0400, Terry Reedy writes: On 10/21/2015 11:24 AM, Terry Alexander via Python-list wrote: > I have tried installing both Python 2.7 and 3.5, and

Re: UNABLE TO GET IDLE TO RUN

2015-10-25 Thread Terry Reedy
On 10/23/2015 5:42 AM, Peter Otten wrote: Laura Creighton wrote: In a message of Fri, 23 Oct 2015 00:19:42 -0400, Terry Reedy writes: On 10/21/2015 11:24 AM, Terry Alexander via Python-list wrote: I have tried installing both Python 2.7 and 3.5, and in both cases I cannot get IDLE to work.

Re: UNABLE TO GET IDLE TO RUN

2015-10-25 Thread Laura Creighton
In a message of Fri, 23 Oct 2015 11:42:54 +0200, Peter Otten writes: >I tried it out: > >$ mkdir test >$ cd test >$ touch string.py >$ idle3 >Traceback (most recent call last): > File "", line 1, in > File "/usr/lib/python3.4/idlelib/run.py", line 12, in >from idlelib import CallTips >

Re: UNABLE TO GET IDLE TO RUN

2015-10-23 Thread Laura Creighton
In a message of Fri, 23 Oct 2015 00:19:42 -0400, Terry Reedy writes: >On 10/21/2015 11:24 AM, Terry Alexander via Python-list wrote: > >> I have tried installing both Python 2.7 and 3.5, and in both cases I >> cannot get IDLE to work. I received the following message both times: > >What OS?

Re: UNABLE TO GET IDLE TO RUN

2015-10-23 Thread Peter Otten
Laura Creighton wrote: > In a message of Fri, 23 Oct 2015 00:19:42 -0400, Terry Reedy writes: >>On 10/21/2015 11:24 AM, Terry Alexander via Python-list wrote: >> >>> I have tried installing both Python 2.7 and 3.5, and in both cases I >>> cannot get IDLE to work. I received the following message

UNABLE TO GET IDLE TO RUN

2015-10-22 Thread Terry Alexander via Python-list
Hello... I have tried installing both Python 2.7 and 3.5, and in both cases I cannot get IDLE to work. I received the following message both times: IDLE’s subprocess didn’t make connection.  Either IDLE can’t start a subprocess or personalfirewall software is blocking the connection. I am

Re: UNABLE TO GET IDLE TO RUN

2015-10-22 Thread Terry Reedy
On 10/21/2015 11:24 AM, Terry Alexander via Python-list wrote: I have tried installing both Python 2.7 and 3.5, and in both cases I cannot get IDLE to work. I received the following message both times: What OS? Windows? which version? How did you start IDLE? Start menu icon? Command line?