Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: Low level file descriptors and high-level Python files Date: Tue, 1 Sep 2015 22:19:15 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 14 Message-ID: References: <55e5bcd3$0$1639$c3e8da3$5496439d@news.astraweb.com> NNTP-Posting-Host: 67-130-15-94.dia.static.qwest.net X-Trace: reader1.panix.com 1441145955 11091 67.130.15.94 (1 Sep 2015 22:19:15 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Tue, 1 Sep 2015 22:19:15 +0000 (UTC) User-Agent: slrn/1.0.2 (Linux) Xref: csiph.com comp.lang.python:95848 On 2015-09-01, Laura Creighton 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