Low level file descriptors and high-level Python files

Grant Edwards invalid at invalid.invalid
Tue Sep 1 18:19:15 EDT 2015


On 2015-09-01, Laura Creighton <lac at openend.se> wrote:

> Don't go around closing things you don't know are open.  They
> could be some other processes' thing.

I don't understand.  Closing a file descriptor that isn't open is
harmless, isn't it?  Closing one that _is_ open only affects the
current process.  If other processes had the same fd open, it's still
open for them.

-- 
Grant Edwards               grant.b.edwards        Yow! FUN is never having to
                                  at               say you're SUSHI!!
                              gmail.com            



More information about the Python-list mailing list