File name from file descriptor?

Skip Montanaro skip at pobox.com
Fri Jun 22 10:41:30 EDT 2001


    Carlos> In some cases, I that it is possible to have a pseudo file
    Carlos> without a true name (I think standard input is one example, but
    Carlos> I'm not sure about the details). 

In addition, you can have an open file with no presence in the filesystem.
This, for example, is valid:

    f = open("/tmp/trash", "w")
    os.unlink("/tmp/trash")
    f.write("foo")

-- 
Skip Montanaro (skip at pobox.com)
(847)971-7098




More information about the Python-list mailing list