Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #103563

Re: subprocess startup error

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Terry Reedy <tjreedy@udel.edu>
Newsgroups comp.lang.python
Subject Re: subprocess startup error
Date Sat, 27 Feb 2016 03:38:27 -0500
Lines 30
Message-ID <mailman.166.1456562333.20994.python-list@python.org> (permalink)
References <CAFW38mFPYdee0dvmF5655FffxqGT7rpmYU1yMegGf1RSe8a7rg@mail.gmail.com> <CAFW38mHJDNsD48zbiyo3pXMpJJhPSjPvvwCij0-VjozDSuFscw@mail.gmail.com> <napk16$oi5$1@ger.gmane.org> <CAHVvXxRwmaejwnLMXZ-YTqVC=d7PAKABpxrTA3gY9tKmB-dE9Q@mail.gmail.com> <napp5f$d37$1@ger.gmane.org> <56D06A61.3030008@biologie.uni-freiburg.de>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de 6XT14z6D6/CSFsf7Qcrq/wsbrp+uoT/aspexBBtDNdmg==
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'rename': 0.07; 'benjamin': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; 'jan': 0.11; 'subject:error': 0.11; 'importing': 0.15; '2016': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'wrote:': 0.16; 'library,': 0.18; '>>>': 0.20; "user's": 0.22; 'file.': 0.22; 'am,': 0.23; 'header:In-Reply- To:1': 0.24; 'url:bugs': 0.24; 'module': 0.25; 'header:User- Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'van': 0.26; 'error': 0.27; 'separate': 0.27; 'accidentally': 0.29; 'crash': 0.29; "i'm": 0.30; 'code': 0.30; 'url:python': 0.33; 'idle': 0.33; 'file': 0.34; 'could': 0.35; 'saved': 0.35; 'something': 0.35; 'should': 0.36; 'instead': 0.36; 'url:org': 0.36; 'to:addr:python- list': 0.36; 'subject:: ': 0.37; 'being': 0.37; 'received:org': 0.37; 'names': 0.38; 'does': 0.39; 'to:addr:python.org': 0.40; 'easy': 0.60; 'received:96': 0.63; '>>>>>': 0.66; 'protect': 0.76; 'oscar': 0.84; 'otten': 0.84; 'received:fios.verizon.net': 0.91
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host pool-96-227-207-81.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
In-Reply-To <56D06A61.3030008@biologie.uni-freiburg.de>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21rc2
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:103563

Show key headers only | View raw


On 2/26/2016 10:08 AM, Wolfgang Maier wrote:
> On 26.02.2016 15:57, Emile van Sebille wrote:
>> On 2/26/2016 6:49 AM, Oscar Benjamin wrote:
>>> On 26 February 2016 at 13:30, Peter Otten <__peter__@web.de> wrote:
>>>> Shweta Dinnimani wrote:
>>>>> i saved my file as string.py since than i'm facing this error
>>>>
>>>> Rename that file to something that does not clash with the module
>>>> names in
>>>> the standard library, mystring.py for example, and IDLE should work
>>>> again.
>>>
>>> It's ridiculous that it's this easy to accidentally crash IDLE and the
>>> Python shell.
>>
>> I don't think there's a way to protect against it -- how could you work
>> on string.py otherwise?
>>
>
> Emitting a warning message in such situations is being discussed in
> http://bugs.python.org/issue23809 though it is not a very lively
> discussion.

This is a separate issue of user code importing a user's own file 
instead of an stdlib file.


-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: subprocess startup error Terry Reedy <tjreedy@udel.edu> - 2016-02-27 03:38 -0500

csiph-web