Python Forum
open /dev/null or equivalent, portably
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
open /dev/null or equivalent, portably
#1
i would like to open a file to write to "/dev/null", or the equivalent, in a portable way. is there something that can cut this short and not even do the low level write but still look like an open file to code that does a basic test (not trying to fool exhaustive code)?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
My search engine found os.devnull
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  opening /dev/null Skaperen 2 1,724 Jan-11-2020, 06:42 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020