A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/005803.html below:

[Python-Dev] Fix to allow os.popen to work from pythonw.exe

[Python-Dev] Fix to allow os.popen to work from pythonw.exe [Python-Dev] Fix to allow os.popen to work from pythonw.exeGuido van Rossum guido@beopen.com
Sat, 08 Jul 2000 09:34:14 -0500
> os.popen fails to work if pythonw.exe is used to start python. This is
> true for 1.5.2 and 1.6a2.
> 
> The root cause of the problem is in the Microsoft C RTL implementation
> of _popen(). _popen() will fail if there is not a valid file descriptor
> for stdin or stdout.
> 
> The following replacement for WinMain.c works around the problem.
> I also ensure a valid descriptor for stderr for completeness.
> 
> This was compiled and test under VC++ 6.0 SP3 on Windows 2000.

Let's also test it on Windows 98, 95 and NT.  If it works for all, I'm
+1.

--Guido van Rossum (home page: http://dinsdale.python.org/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4