Yes I see.
Based on other feedback I am leaning towards not using any IDE for the moment.
Python seems well adapted to that kind of workflow, as well as an impressive
portability - every bit as good a Java from my tests so far.
Karen
--- On Thu, 6/18/09, Lie Ryan lie.1...@gmail.com wrote:
From: Lie Ryan lie.1...@gmail.com
Subject: Re: [Tutor] Apparent incosistency with Python interperter in IDLE
To: tutor@python.org
Date: Thursday, June 18, 2009, 10:20 AM
Luke Paireepinart wrote:
So the problem is that the stdout of the ls command
is appearing in
some location that you cannot see.
As for ways to remedy this - I don't know. The
idea here, though, is
that even though the regular Python version has the
side-effect that it
outputs it in the console, that's not necessarily what
you want it to
do. The reason is that you have no way to access
that data.
You have to explicitly redirect the stdout from subprocess
subprocess.Popen(['ls'], stdout=...)
What you're seeing is a side effect of the nature of the
interactive
console and IDLE. The defined behavior of python is when it
is being run
from a script.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor