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


Groups > comp.lang.python > #78087

Re: the python shell window is already executing a command

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 <rosuav@gmail.com>
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 <lvi11v$89c$1@ger.gmane.org>
References <4jrh1adtbsvnr9o20r9k3hfe4nkrkps2dk@4ax.com> <mailman.14068.1410940978.18130.python-list@python.org> <lsaj1a5pm5k301k9ipn6fcsra5c776bs1q@4ax.com> <mailman.14090.1410994642.18130.python-list@python.org> <5gdk1appae03ngjlot2hg574udmnc0iqg9@4ax.com> <mailman.14096.1411012292.18130.python-list@python.org> <22ul1a9bfsehco2kk5jb0uif8mpm33ue37@4ax.com> <lvfaf6$sbk$1@ger.gmane.org> <CAPTjJmrm9FRgQ0qFxRuGJ6Ty6CPPhznk30=BXJL7EhHL0P5P9w@mail.gmail.com> <lvi11v$89c$1@ger.gmane.org>
Date Sat, 20 Sep 2014 05:47:40 +1000
Subject Re: the python shell window is already executing a command
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <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 <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>
Newsgroups comp.lang.python
Message-ID <mailman.14153.1411156063.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Sat, Sep 20, 2014 at 5:43 AM, Terry Reedy <tjreedy@udel.edu> wrote:
> On 9/18/2014 10:51 PM, Chris Angelico wrote:
>>
>> On Fri, Sep 19, 2014 at 5:05 AM, Terry Reedy <tjreedy@udel.edu> 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

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


Thread

the python shell window is already executing a command Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-09-16 22:17 -0400
  Re: the python shell window is already executing a command Terry Reedy <tjreedy@udel.edu> - 2014-09-17 04:02 -0400
    Re: the python shell window is already executing a command Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-09-17 11:55 -0400
      Re: the python shell window is already executing a command Terry Reedy <tjreedy@udel.edu> - 2014-09-17 18:56 -0400
        Re: the python shell window is already executing a command Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-09-17 21:34 -0400
          Re: the python shell window is already executing a command Terry Reedy <tjreedy@udel.edu> - 2014-09-17 23:50 -0400
            Re: the python shell window is already executing a command Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-09-18 11:24 -0400
              Re: the python shell window is already executing a command Terry Reedy <tjreedy@udel.edu> - 2014-09-18 15:05 -0400
                Re: the python shell window is already executing a command Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-09-18 15:58 -0400
              Re: the python shell window is already executing a command Chris Angelico <rosuav@gmail.com> - 2014-09-19 12:51 +1000
              Re: the python shell window is already executing a command Terry Reedy <tjreedy@udel.edu> - 2014-09-19 15:43 -0400
              Re: the python shell window is already executing a command Chris Angelico <rosuav@gmail.com> - 2014-09-20 05:47 +1000
  Re: the python shell window is already executing a command Tony the Tiger <tony@tiger.invalid> - 2014-09-18 16:50 +0000

csiph-web