Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.028 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'continuation': 0.07; 'subject:code': 0.07; 'advance': 0.07; 'subject:using': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'redo': 0.16; 'subject:program': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'wed,': 0.18; '(but': 0.19; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'commands,': 0.24; 'file.': 0.24; 'cc:2**0': 0.24; 'first,': 0.26; 'switch': 0.26; 'task': 0.26; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'jean': 0.31; 'run': 0.32; 'text': 0.33; 'open': 0.33; 'url:python': 0.33; 'something': 0.35; 'editor': 0.35; 'received:google.com': 0.35; 'url:listinfo': 0.36; 'thanks': 0.36; 'possible': 0.36; 'url:org': 0.36; 'wrong': 0.37; 'pm,': 0.38; 'url:mail': 0.40; 'manually': 0.60; 'further': 0.61; 'back': 0.62; 'to:addr:gmail.com': 0.65; 'console,': 0.84; 'copy-paste': 0.84; 'experiment': 0.84; 'subject:commands': 0.84; 'joel': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=GjqHDHLfv6uf+4zg16KZwk2M6dIvgaPDS77jEXGRpUo=; b=iBwibv80FIhzomfe15rLzYxgY8InvFuMpFw0Tmh4ttw7zy1dcAqbBGAN1syxuxxk5S yZxUxF0JuCucRTRuRIPbe5EaPODInltOKcSmEwVB21wg9Fsn15px4/s0kw/PFIoBnanE +COtOJyQtb2PDXJmfBHx9hiE+pfrhsDh4ICWhIw8Tc5dCymK0CyQ1r8OEJFo5YatUTRZ vYeNNdbKVKjc0MCAIzVvg4qBWINqhPcoldslueHnhDGHx2Od41b7Ux4iEIAnSoqxqXb3 48flATVAz+qmMNles0ph32MuQeNLJXaM9ievnO9HQoQXfUZutXZRIuzDi5PJB20XRX5+ HTXA== MIME-Version: 1.0 X-Received: by 10.220.177.132 with SMTP id bi4mr77656vcb.49.1387398317186; Wed, 18 Dec 2013 12:25:17 -0800 (PST) In-Reply-To: <7fb59330-6de2-4ea9-923e-7845de22df1e@googlegroups.com> References: <7fb59330-6de2-4ea9-923e-7845de22df1e@googlegroups.com> Date: Wed, 18 Dec 2013 15:25:17 -0500 Subject: Re: how to develop code using a mix of an existing python-program and console-commands From: Joel Goldstick To: Jean Dubois Content-Type: multipart/alternative; boundary=001a11c2c7d2dba6af04edd4d7f5 Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 75 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387398324 news.xs4all.nl 2970 [2001:888:2000:d::a6]:41026 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62338 --001a11c2c7d2dba6af04edd4d7f5 Content-Type: text/plain; charset=UTF-8 On Wed, Dec 18, 2013 at 3:17 PM, Jean Dubois wrote: > I have a python-program which I want to perform its task first, then > switch to > the python console to experiment with further commands, using what was > already > defined in the python-program. > I want this as an alternative for what I do now (but which is not very > efficient): > I start the python-console and then manually copy-paste line per line from > the program in the console, then try out possible continuation commands, > if however something goes wrong I have to redo the whole process. > > any suggestions? > thanks in advance > jean > -- > https://mail.python.org/mailman/listinfo/python-list > Write the code to a file. you can run it like: python program_name.py Go back to your text editor and do copy all (ctl-a, ctl-v) then open a python console and paste it in -- Joel Goldstick http://joelgoldstick.com --001a11c2c7d2dba6af04edd4d7f5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Wed, Dec 18, 2013 at 3:17 PM, Jean Dubois <= jeandubois314@= gmail.com> wrote:
I have a python-program which I want to perf= orm its task first, then
switch to
the python console to experiment with further commands, using what was
already
defined in the python-program.
I want this as an alternative for what I do now (but which is not very
efficient):
I start the python-console and then manually copy-paste line per line from<= br> the program in the console, then try out possible continuation commands, if however something goes wrong I have to redo the whole process.

any suggestions?
thanks in advance
jean
--
https://mail.python.org/mailman/listinfo/python-list


W= rite the code to a file.=C2=A0 you can run it like:

python program_name.py

Go back to your text editor and do copy all (ctl-a, ctl-v) then open a= python console and paste it in

--
--001a11c2c7d2dba6af04edd4d7f5--