CGIHTTPServer and Win2k

Sandy Norton sandskyfly at hotmail.com
Fri Nov 16 18:47:29 EST 2001


"Steve Holden" <sholden at holdenweb.com> wrote in message news:<fEaJ7.43274$vQ1.1416811 at atlpnn01.usenetserver.com>...
> I suspect this is a documentation bug, because since 2.0 (?) the code uses
> fork() if it can, popen2() otherwise; if neither of these are available it
> will run imported Python scripts as CGIs. Here's a quote from the docstring
> at the head of the 2.0 module:
> 
> """If the os.fork() function is not present (e.g. on Windows), os.popen2()
> is used as a fallback, with slightly altered semantics; if that function is
> not present either (e.g. on Macintosh), only Python scripts are supported,
> and they are executed by the current process."""

Wonderful news... I was under the impression that CGIHTTPServer didn't
work on windows. You just made my day. Thanks.

Sandy



More information about the Python-list mailing list