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


Groups > comp.lang.python > #57877

Re: Running Python programmes

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!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.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'beginner': 0.05; 'subject:Python': 0.06; 'linux,': 0.07; 'bash': 0.09; 'exit': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'run,': 0.09; 'window.': 0.09; 'runs': 0.10; 'python': 0.11; '3.3,': 0.16; 'fine.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'programming': 0.22; 'header:User-Agent:1': 0.23; 'williams': 0.24; 'fine': 0.24; 'second': 0.26; 'header:X-Complaints-To:1': 0.27; 'michael': 0.29; 'appreciated.': 0.29; 'leave': 0.29; 'am,': 0.29; 'absolute': 0.30; '>>>>': 0.31; 'os,': 0.31; 'run': 0.32; 'another': 0.32; 'running': 0.33; "i'd": 0.34; 'except': 0.35; 'one,': 0.35; 'version': 0.36; 'charset:us-ascii': 0.36; 'example,': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'even': 0.60; "you're": 0.61; 'programme': 0.65; 'details,': 0.68; 'results': 0.69; 'saw': 0.77; '10:32': 0.84; 'amazed': 0.84; 'received:myvzw.com': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dave Angel <davea@davea.name>
Subject Re: Running Python programmes
Date Tue, 29 Oct 2013 04:47:38 +0000 (UTC)
References <mailman.1647.1382884582.18130.python-list@python.org> <526D31DE.4010000@ncf.ca>
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 109.sub-70-196-134.myvzw.com
User-Agent XPN/1.2.6 (Street Spirit ; Linux)
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.1740.1383022081.18130.python-list@python.org> (permalink)
Lines 28
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1383022081 news.xs4all.nl 15884 [2001:888:2000:d::a6]:52589
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:57877

Show key headers only | View raw


On 27/10/2013 11:31, Colin J. Williams wrote:

> On 27/10/2013 10:32 AM, David wrote:
>> I am an absolute beginner and am working through the book Python Programming for the Absolute Beginner by Michael Dawson.  Everything is fine except if I run a scripted programme, or one I have downloaded, and then run another one, the second one will not run, I just get the >>> in the interactive window.  I have to exit Python and start again, when the second programme then runs fine.
>>
>> Any suggestions much appreciated.
>>

You leave out a lot of details, including what version of Python, what
OS, how you're running these "programmes" and what you mean "will not
run."

For example, if you're on Linux, running Python 3.3, and you're running
these "programmes" from the bash prompt,

$ python3.3  prog1.py
    some results

$ python3.3 prog2.py
   some other results

I'd be amazed if you even saw the >>>> prompt.


-- 
DaveA

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


Thread

Running Python programmes "David" <dmgriffiths@iee.org> - 2013-10-27 14:32 +0000
  Re: Running Python programmes "Colin J. Williams" <cjw@ncf.ca> - 2013-10-27 11:31 -0400
    Re: Running Python programmes Dave Angel <davea@davea.name> - 2013-10-29 04:47 +0000
      Re: Running Python programmes darnold <darnold992000@yahoo.com> - 2013-10-29 09:59 -0700

csiph-web