[Python-Dev] Strange behavior of subprocess.Popen._get_handles under Windows

Mark Hammond mhammond at skippinet.com.au
Thu Aug 23 08:25:18 CEST 2007


> >     C:\>1.py
> >     hStdOut: 00000007
> >     Something
> >
> >     C:\>1.py>1.txt
> >     hStdOut: 00000004
> >
> >     (1.txt file is now completely empty, i.e. hStdOut is invalid)
> 
> Hmm, now I see that maybe that's where I was wrong. When I used
> `python 1.py>1.txt' it suddenly started working as expected. :-/ Must
> be some strange difference with how HKCR entries are parsed and then
> executed...

I think it is more about how the shell (ie, cmd.exe by default) (mis-)handles the command-line.

Cheers,

Mark



More information about the Python-Dev mailing list