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: device which behaves
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
device
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' on Windows.
--
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 .
It's not a
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 reserved file name.
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
if options.logging:
logging.basicConfig(level=logging.DEBUG,
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
if
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
--
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
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
def flush(self,
10 matches
Mail list logo