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

Joel Goldstick joel.goldstick at gmail.com
Wed Dec 18 15:25:17 EST 2013


On Wed, Dec 18, 2013 at 3:17 PM, Jean Dubois <jeandubois314 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20131218/74230725/attachment.html>


More information about the Python-list mailing list