This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: for Windows
Type: Stage:
Components: Library (Lib) Versions:
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: paul.moore, tim.peters, zopezen
Priority: normal Keywords: patch

Created on 2002-12-17 21:30 by zopezen, last changed 2022-04-10 16:06 by admin. This issue is now closed.

File name Uploaded Description Edit
commands.diff zopezen, 2002-12-17 21:30 for Windows diff
Messages (4)
msg42025 - (view) Author: Andy McKay (zopezen) Date: 2002-12-17 21:30
The  module claims to only work on 
posix, I really don't see why that should be case. 
The only issue is the use of { ;} in the command 
sent to popen, but that's just a matter of changing 
the command for the os. Simple.

If accepted there should be a documentation 
change as well, but not sure where that is.

Tested on Win2k using Python 2.1.3
msg42026 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2002-12-18 03:40
Logged In: YES 

Just noting that this doesn't work on Win95, Win98, 
Win98SE, or Win ME -- (their native shell) 
doesn't support any way to redirect stderr.
msg42027 - (view) Author: Paul Moore (paul.moore) * (Python committer) Date: 2002-12-18 09:44
Logged In: YES 

Surely getstatus(file) won't work, as Windows doesn't have 
a "ls" command?
msg42028 - (view) Author: Andy McKay (zopezen) Date: 2002-12-18 18:03
Logged In: YES 

Oops, I have an ls exectuable on my box so I didn't 
notice that in testing. It would be simple to just parse 
the results of "dir file" though.

I'm not sure what to do about Win9x or WinME though, 
its clear I'll think a little harder about this one. 
Date User Action Args
2022-04-10 16:06:02adminsetgithub: 37626
2002-12-17 21:30:00zopezencreate