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


Groups > comp.lang.python > #78086

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!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
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.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 <tjreedy@udel.edu>
Subject Re: the python shell window is already executing a command
Date Fri, 19 Sep 2014 15:43:37 -0400
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>
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 <CAPTjJmrm9FRgQ0qFxRuGJ6Ty6CPPhznk30=BXJL7EhHL0P5P9w@mail.gmail.com>
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.14152.1411155853.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


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.

-- 
Terry Jan Reedy

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