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


Groups > comp.lang.python > #57877

Re: Running Python programmes

From Dave Angel <davea@davea.name>
Subject Re: Running Python programmes
Date 2013-10-29 04:47 +0000
References <mailman.1647.1382884582.18130.python-list@python.org> <526D31DE.4010000@ncf.ca>
Newsgroups comp.lang.python
Message-ID <mailman.1740.1383022081.18130.python-list@python.org> (permalink)

Show all headers | 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