Lawrence D'Oliveiro wrote:
> In message <[EMAIL PROTECTED]>, Sion Arrowsmith wrote:
>
>> Torsten Bronger <[EMAIL PROTECTED]> wrote:
>>> Marc 'BlackJack' Rintsch writes:
`os.devnull`?
>>> Yes, but I wasn't really sure how portable it is, in particular, on
>>> Windows.
>> Windows has a NUL: de
On Sep 11, 10:22 am, Lawrence D'Oliveiro <[EMAIL PROTECTED]
central.gen.new_zealand> wrote:
> In message <[EMAIL PROTECTED]>, Sion Arrowsmith wrote:
>
> > Torsten Bronger <[EMAIL PROTECTED]> wrote:
>
> > Windows has a NUL: device which behaves like /dev/null .
>
> It's not a device, it's a reserve
In message <[EMAIL PROTECTED]>, Sion Arrowsmith wrote:
> Torsten Bronger <[EMAIL PROTECTED]> wrote:
>>Marc 'BlackJack' Rintsch writes:
>
>>> `os.devnull`?
>
>>Yes, but I wasn't really sure how portable it is, in particular, on
>>Windows.
>
> Windows has a NUL: device which behaves like /dev/null
En Sat, 08 Sep 2007 14:42:14 -0300, Torsten Bronger
<[EMAIL PROTECTED]> escribi�:
>> `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?
Yes. os.devnull=='nul' o
Torsten Bronger <[EMAIL PROTECTED]> wrote:
>Marc 'BlackJack' Rintsch writes:
>> `os.devnull`?
>Yes, but I wasn't really sure how portable it is, in particular, on
>Windows.
Windows has a NUL: device which behaves like /dev/null .
os.devnull is a wrapper around whatever the system-provided null
de
Hallöchen!
Carsten Haese writes:
> On Sat, 2007-09-08 at 18:52 +0200, Torsten Bronger wrote:
>
>> Is there a portable and simply way to direct file-like IO to
>> simply nothing? [...]
>>
>> [...]
>
> This might work:
>
> class LogSink(object):
> def write(self, *args, **kwargs): pass
> d
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
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`?
Ciao,
Marc 'BlackJack' Rintsch
--
http://mail.python.org/mailman/listinfo/pyth
On Sat, 2007-09-08 at 18:52 +0200, Torsten Bronger wrote:
> Hallöchen!
>
> 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
>
> --8<---cut here---start->8---
> import logging
>