469,623 Members | 1,935 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,623 developers. It's quick & easy.

Re: IDLE issue

En Wed, 20 Aug 2008 04:56:32 -0300, aditya shukla
<ad**************@gmail.comescribi�:
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
Works fine for me, using Windows XP
If you're pasting those lines directly over the shell window, beware of
this bug: http://bugs.python.org/issue3559

--
Gabriel Genellina

Aug 20 '08 #1
0 715

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by M Wells | last post: by
reply views Thread by Paul M | last post: by
2 posts views Thread by george | last post: by
3 posts views Thread by p.kosina | last post: by
8 posts views Thread by Jonathan Polley | last post: by
6 posts views Thread by MrBlueSky | last post: by
3 posts views Thread by James Stroud | last post: by
3 posts views Thread by writser | last post: by
3 posts views Thread by rocco.rossi | last post: by
2 posts views Thread by v4vijayakumar | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.