Hallöchen!

Marc 'BlackJack' Rintsch writes:

> On Sat, 08 Sep 2007 18:52:57 +0200, Torsten Bronger wrote:
>
>> Is there a portable and simply way to direct file-like IO to
>> simply nothing?  I try to implement some sort of NullLogging by
>> saying
>
> `os.devnull`?

Yes, but I wasn't really sure how portable it is, in particular, on
Windows.  So does

open(os.devnull, "w").write("Schallalla")

work on Windows like on Unix?

Tschö,
Torsten.

-- 
Torsten Bronger, aquisgrana, europa vetus
                                      Jabber ID: [EMAIL PROTECTED]
                      (See http://ime.webhop.org for ICQ, MSN, etc.)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to