in C on Linux (maybe also on POSIX) i can create a regular file on a specific filesystem that has no link and no inode (it is in memory, not on disk) making it invisible. i can then write() data to this file and even seek to that beginning and read it back. then without yet closing it, i can use linkat() to give it a name (a link) before finally closing it. this is done using O_TMPFILE|O_EXCL on open() as described by "man 2 open" on Linux (at least on Ubuntu).
how can i do this purely in Python3 (on the same platform(s) that i can do it in C)?
edit:
the last two steps in C are linkat() and close().
how can i do this purely in Python3 (on the same platform(s) that i can do it in C)?
edit:
the last two steps in C are linkat() and close().
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.