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


Groups > comp.lang.python > #74078 > unrolled thread

Re: Saving

Started byCameron Simpson <cs@zip.com.au>
First post2014-07-07 15:14 +1000
Last post2014-07-07 15:14 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Saving Cameron Simpson <cs@zip.com.au> - 2014-07-07 15:14 +1000

#74078 — Re: Saving

FromCameron Simpson <cs@zip.com.au>
Date2014-07-07 15:14 +1000
SubjectRe: Saving
Message-ID<mailman.11574.1404711751.18130.python-list@python.org>
On 06Jul2014 23:03, mrwhackadoo1@gmail.com <mrwhackadoo1@gmail.com> wrote:
>I need to know how to save my code and save as programs because I write code
>Please help and thank you for your time.

Please tell a bit more about your work environment (editors, IDEs, computer OS, etc).

The basic answer to your question is to edit the code in a file of its own, and 
to run it is a separate action, from that file.

As an example, my coding environment contains an editor window and a shell 
(command line) window. (Plus doco in a web browser, etc, as needed.)

So open a file with a useful name (start with "program1.py", but pick something 
more apt depending on the task) and open an editor on that file.

When ready to test, save the file (probably a single key command in most 
editors, or the ever popular "File->Save" menu option).

Then in another window, run it:

   python program1.py

So you don't write code, test and _then_ save. You write code and save. Then 
test from the saved file.

Cheers,
Cameron Simpson <cs@zip.com.au>

I'm Bubba of Borg.  Y'all fixin' to be assimilated.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web