durusmail: quixote-users: where do mod_python print statements go?
where do mod_python print statements go?
2001-10-12
2001-10-12
2001-10-12
2001-10-12
2001-10-12
2001-10-12
2001-10-15
2001-10-15
2001-10-15
2001-10-15
2001-10-15
2001-10-15
2001-10-15
where do mod_python print statements go?
Greg Ward
2001-10-15
[me]
> Then try applying this patch:
>
> --- publish.py  2001/10/09 21:38:15     1.99
> +++ publish.py  2001/10/12 14:25:09
> @@ -44,2 +44,11 @@
>
> +if os.name == "posix":
> +    NULL_FILE = "/dev/null"
> +elif os.name == "nt":
> +    NULL_FILE = "NUL"
[...]

[Ray]
> Yes that worked for me.

OK, I've checked in my patch for NUL vs /dev/null.  Thanks.

BTW, any Mac OS X users out there?  Can anyone tell me what 1) os.name
is, and 2) whether open("/dev/null", "a") works just like under Unix?

        Greg
--
Greg Ward - software developer                gward@mems-exchange.org
MEMS Exchange                            http://www.mems-exchange.org


reply