Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'here?': 0.09; 'if,': 0.09; 'imported': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:command': 0.09; 'jan': 0.12; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:already': 0.16; 'sys.modules': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'module': 0.19; 'trying': 0.19; 'command': 0.22; '>>>': 0.22; 'code,': 0.22; 'import': 0.22; 'header:User- Agent:1': 0.23; 'question': 0.24; 'second': 0.26; 'asking': 0.27; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'appear': 0.29; 'chris': 0.29; 'am,': 0.29; 'array': 0.29; 'mode': 0.30; "i'm": 0.30; 'easier': 0.31; 'once,': 0.31; 'sep': 0.31; 'file': 0.32; 'run': 0.32; 'fri,': 0.33; 'subject:the': 0.34; 'but': 0.35; 'there': 0.35; 'idle': 0.36; 'machine.': 0.36; 'should': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'little': 0.38; 'reported': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'skip:u 10': 0.60; 'first': 0.61; 'more': 0.64; 'determine': 0.67; 'prompt': 0.68; 'default': 0.69; 'questions;': 0.84; 'received:fios.verizon.net': 0.84; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: the python shell window is already executing a command Date: Fri, 19 Sep 2014 15:43:37 -0400 References: <4jrh1adtbsvnr9o20r9k3hfe4nkrkps2dk@4ax.com> <5gdk1appae03ngjlot2hg574udmnc0iqg9@4ax.com> <22ul1a9bfsehco2kk5jb0uif8mpm33ue37@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-108-16-203-145.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1411155853 news.xs4all.nl 2884 [2001:888:2000:d::a6]:48866 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:78086 On 9/18/2014 10:51 PM, Chris Angelico wrote: > On Fri, Sep 19, 2014 at 5:05 AM, Terry Reedy wrote: >> A couple more questions; after you run the file once, is there a warning >> above the first >>> prompt? If, after the program stop and you see a second >>>>> prompt and run >>>>> import sys; len(sys.modules), 'array' in sys.modules >> what is the result? > > What's significant about the array module here? I'm a little puzzled. 'array' is alphabetically the first module imported in the default two-process mode but not in the one-process mode selected by a command line '-n'. To the best of my understanding, the message reported, which I found in the code, should only appear in one-process mode. Seymour reported that he started Idle by right-clicking on the file and selecting 'Edit with Idle'. Asking the above question is easier then trying to get him to directly determine what command line is associated with 'Edit with Idle' on his particular machine. -- Terry Jan Reedy