IDLE issue

aditya shukla adityashukla1983 at gmail.com
Wed Aug 20 03:56:32 EDT 2008


I found something interesting while working in idle.I have windows vista and
python2.5

if i do
import subprocess
proc
=subprocess.Popen('cmd.exe',stdin=subprocess.PIPE,stdout=subprocess.PIPE)
output = proc.communicate('dir\n')[0]
print repr(output)

This dosen't work in idle
while if it put it up in  a script and run it as

python script.py
then it works
Its strange?

Aditya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080820/8888dfeb/attachment.html>


More information about the Python-list mailing list