IDLE issue

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Wed Aug 20 05:09:18 EDT 2008


En Wed, 20 Aug 2008 04:56:32 -0300, aditya shukla  
<adityashukla1983 at gmail.com> escribi�:

> 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




More information about the Python-list mailing list