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


Groups > comp.lang.python > #62338

Re: how to develop code using a mix of an existing python-program and console-commands

References <7fb59330-6de2-4ea9-923e-7845de22df1e@googlegroups.com>
Date 2013-12-18 15:25 -0500
Subject Re: how to develop code using a mix of an existing python-program and console-commands
From Joel Goldstick <joel.goldstick@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.4382.1387398324.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wed, Dec 18, 2013 at 3:17 PM, Jean Dubois <jeandubois314@gmail.com>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

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


Thread

how to develop code using a mix of an existing python-program and console-commands Jean Dubois <jeandubois314@gmail.com> - 2013-12-18 12:17 -0800
  Re: how to develop code using a mix of an existing python-program and console-commands Joel Goldstick <joel.goldstick@gmail.com> - 2013-12-18 15:25 -0500
  Re: how to develop code using a mix of an existing python-program and console-commands Jerry Hill <malaclypse2@gmail.com> - 2013-12-18 15:28 -0500
    Re: how to develop code using a mix of an existing python-program and console-commands Jean Dubois <jeandubois314@gmail.com> - 2013-12-18 19:16 -0800
  Re: how to develop code using a mix of an existing python-program and console-commands Joel Goldstick <joel.goldstick@gmail.com> - 2013-12-18 15:29 -0500
  Re: how to develop code using a mix of an existing python-program and console-commands Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-18 20:52 +0000
  Re: how to develop code using a mix of an existing python-program and console-commands Terry Reedy <tjreedy@udel.edu> - 2013-12-18 17:02 -0500
  Re: how to develop code using a mix of an existing python-program and console-commands Christian Gollwitzer <auriocus@gmx.de> - 2013-12-19 08:24 +0100
    Re: how to develop code using a mix of an existing python-program and console-commands Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-19 07:33 +0000

csiph-web