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


Groups > comp.lang.python > #74078

Re: Saving

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.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 <cameron@cskk.homeip.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'test,': 0.07; 'etc).': 0.09; 'window.': 0.09; 'python': 0.11; 'apt': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'line)': 0.16; 'message- id:@cskk.homeip.net': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:cskk.homeip.net': 0.16; 'received:homeip.net': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'simpson': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'command': 0.22; 'code,': 0.22; 'coding': 0.22; 'separate': 0.22; 'shell': 0.22; 'to:name:python-list@python.org': 0.22; 'header:User-Agent:1': 0.23; 'cheers,': 0.24; 'file.': 0.24; 'environment': 0.24; 'question': 0.24; 'header:In-Reply-To:1': 0.27; "i'm": 0.30; 'code': 0.31; 'os,': 0.31; 'own,': 0.31; 'file': 0.32; 'run': 0.32; 'another': 0.32; 'open': 0.33; 'basic': 0.35; 'something': 0.35; 'editor': 0.35; 'test': 0.35; 'but': 0.35; 'received:com.au': 0.36; 'useful': 0.36; 'charset:us-ascii': 0.36; 'example,': 0.37; 'thank': 0.38; 'received:211': 0.38; 'window': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'most': 0.60; 'tell': 0.60; 'save': 0.62; 'content-disposition:inline': 0.62; 'email addr:gmail.com': 0.63; 'name': 0.63; 'pick': 0.64; 'more': 0.64; '(probably': 0.84; 'etc,': 0.84
Date Mon, 7 Jul 2014 15:14:32 +1000
From Cameron Simpson <cs@zip.com.au>
To "python-list@python.org" <python-list@python.org>
Subject Re: Saving
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii; format=flowed
Content-Disposition inline
In-Reply-To <53b9d5c1.037a320a.5521.ffffa6bb@mx.google.com>
User-Agent Mutt/1.5.21 (2010-09-15)
References <53b9d5c1.037a320a.5521.ffffa6bb@mx.google.com>
X-Optus-CM-Score 0
X-Optus-CM-Analysis v=2.1 cv=QIpRGG7L c=1 sm=1 tr=0 a=YuQlxtEQCowy2cfE5kc7TA==:117 a=YuQlxtEQCowy2cfE5kc7TA==:17 a=ZtCCktOnAAAA:8 a=PO7r1zJSAAAA:8 a=LcaDllckn3IA:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=pGLkceISAAAA:8 a=FjvlIt1OzqM_HzeOKPQA:9 a=CjuIK1q_8ugA:10 a=MSl-tDqOz04A:10
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.11574.1404711751.18130.python-list@python.org> (permalink)
Lines 29
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1404711751 news.xs4all.nl 2870 [2001:888:2000:d::a6]:48549
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:74078

Show key headers only | View raw


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.

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


Thread

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

csiph-web