Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'here?': 0.09; 'if,': 0.09; 'imported': 0.09; 'subject:command': 0.09; 'cc:addr:python-list': 0.11; 'ah!': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'reedy': 0.16; 'subject:already': 0.16; 'sys.modules': 0.16; 'subject:python': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'module': 0.19; 'trying': 0.19; 'command': 0.22; '>>>': 0.22; 'code,': 0.22; 'import': 0.22; 'cc:addr:python.org': 0.22; 'question': 0.24; 'cc:2**0': 0.24; 'second': 0.26; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; 'appear': 0.29; 'chris': 0.29; 'am,': 0.29; 'array': 0.29; 'mode': 0.30; 'message-id:@mail.gmail.com': 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; 'info': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'idle': 0.36; 'machine.': 0.36; 'should': 0.36; 'pm,': 0.38; 'little': 0.38; 'reported': 0.39; 'skip:u 10': 0.60; 'simple': 0.61; 'first': 0.61; 'more': 0.64; 'determine': 0.67; '20,': 0.68; 'effective.': 0.68; 'prompt': 0.68; 'default': 0.69; 'questions;': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=FvhUWfL3lSByj9xubujm4/5K6fTPsw4N7GdxGV5G6n4=; b=QljJzZudvYUfVyGlDY8bR3ixPkLwbm0zD7RPib960mCbXf63c9T5EvYJLSwXbRS/7E Ch4JDAyT8o51HirnHJn3eGoebZmM97NlUxzfKnYMxBYaHKJJ6xODl9uYBpQoHQKzlVwI DZCtXEbeUUP/9grLUcY/Nc00cp6jeEmSQztScoAbxJz8LruzygNWN4IclBitjcylsnxK gY739Rb00TIvGtWkuc5slQtvPrtTm2mID8guSZ4Lc62PHXfMXulCYkIMqkP7Dg7D+aPN F4N79fMEl3AeBrH+4/hjGxPRP7eC+FcETFE58DzWGzNIjy1gBMxRTehs4E9sWosMOL/g fxOQ== MIME-Version: 1.0 X-Received: by 10.50.176.202 with SMTP id ck10mr231687igc.2.1411156060525; Fri, 19 Sep 2014 12:47:40 -0700 (PDT) In-Reply-To: References: <4jrh1adtbsvnr9o20r9k3hfe4nkrkps2dk@4ax.com> <5gdk1appae03ngjlot2hg574udmnc0iqg9@4ax.com> <22ul1a9bfsehco2kk5jb0uif8mpm33ue37@4ax.com> Date: Sat, 20 Sep 2014 05:47:40 +1000 Subject: Re: the python shell window is already executing a command From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1411156063 news.xs4all.nl 2940 [2001:888:2000:d::a6]:51518 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:78087 On Sat, Sep 20, 2014 at 5:43 AM, Terry Reedy wrote: > 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. Ah! Nice one. :) Get the info you want with a very simple copy/paste line of code. Cryptic, but effective. ChrisA