Python Forum
Python Forum
>
General
>
News and Discussions
> opening /dev/null
Full Version:
opening /dev/null
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
Skaperen
Jan-10-2020, 06:40 PM
is it true that when opening /dev/null for read, write, or append, it doesn't really do any syscalls, but just changes some function reference around so it totally fakes all the dummy I/O for a performance boost?
ndc85430
Jan-10-2020, 06:48 PM
Could you verify that using
strace
(assuming Linux)?
Skaperen
Jan-11-2020, 06:42 AM
you don't really know.
Python Forum
>
General
>
News and Discussions
> opening /dev/null