/dev/null as a file-like object, or logging to nothing
siona at chiark.greenend.org.uk
Mon Sep 10 15:19:08 CEST 2007
Torsten Bronger <bronger at physik.rwth-aachen.de> wrote:
>Marc 'BlackJack' Rintsch writes:
>Yes, but I wasn't really sure how portable it is, in particular, on
Windows has a NUL: device which behaves like /dev/null .
os.devnull is a wrapper around whatever the system-provided null
device is. I guess the documentation should reflect this, rather
than just mentioning POSIX and Mac OS 9 and requiring you to note
the "defined for all platforms" at the start of the section.
\S -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
"Frankly I have no feelings towards penguins one way or the other"
-- Arthur C. Clarke
her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
More information about the Python-list