Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Wolfgang Maier Newsgroups: comp.lang.python Subject: Re: subprocess startup error Date: Fri, 26 Feb 2016 16:08:17 +0100 Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de viKtYvVv6fQIgNGyH833Wgn/1lx8evyT5CNlYmT6ycvA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*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; 'subject:error': 0.11; '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; 'wrote:': 0.16; 'library,': 0.18; '>>>': 0.20; '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; 'accidentally': 0.29; 'crash': 0.29; 'received:132': 0.29; "i'm": 0.30; 'url:python': 0.33; 'idle': 0.33; 'file': 0.34; 'could': 0.35; 'saved': 0.35; 'something': 0.35; 'should': 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; 'protect': 0.76; 'oscar': 0.84; 'otten': 0.84 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: 132.230.195.61 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21rc2 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:103547 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.