Re: Python windows interactive.



At Monday 30/10/2006 21:15, notejam wrote:

Thanks everyone for the help. I got a simple two line program to work
from a text file.
Can not figure out how to write more than one line in interpreter mode.
Is that all interpreter is good for, testing one liners? I have it
run the program everytime I hit return, and can not figure out how to
enter multiple lines of code. I can do multiple lines in text file, so
no problem, but I am jsut wondering can a program with 2 or more lines
be wrote from the interpreter mode?

The command-line interpreter (python.exe), in interactive mode, is just for testing purposes: one or two lines or code.
You could write your program in a file (using notepad by example), save it with filename.py, and run it using: python filename.py
There are some integrated environments for working in python. IDLE already comes with your Python installation. For Windows you can get PythonWin <http://sourceforge.net/projects/pywin32/>


--
Gabriel Genellina
Softlab SRL

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
.



Relevant Pages

  • Parallel/Multiprocessing script design question
    ... The processing involves multiple steps that each input file has to go ... I am trying to decide between a batch mode design and a pipelined ... But I had chosen Python over Perl ... steps and have multiple such "pipelines" running simultaneously in parallel. ...
    (comp.lang.python)
  • Re: 2.6, 3.0, and truly independent intepreters
    ... independence so python 2 has been frustrating at time, ... You were allowing users to use multiple scripts ... but it's what made me think of the idea of green processes. ... thread locals first would itself be incredibly ...
    (comp.lang.python)
  • Re: Jython, GILs and object locking.
    ... > What you seem to be aiming at is the ability to have multiple Python ... > interpreters in the same process (but executing in isolation, ... > just moving the multiple processes into multiple interpreters within ...
    (comp.lang.python)
  • Re: Kill GIL
    ... Since any sane code will release the GIL before making the blocking call, ... threads run on a CPU, so if you want to run multiple ... PYTHON THREADS DO NOT RUN DIRECTLY ON THE CPU. ...
    (comp.lang.python)
  • Re: Jython, GILs and object locking.
    ... >> What you seem to be aiming at is the ability to have multiple Python ... the sending and receiving interpreters. ... The socket/fifo/pipe mechanism has one big advantage over Queue.Queue: ...
    (comp.lang.python)