Low level file descriptors and high-level Python files

Grant Edwards invalid at invalid.invalid
Wed Sep 2 00:19:15 CEST 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!!

More information about the Python-list mailing list