Lifetime of a local reference
onlinejudge95 at gmail.com
Wed Feb 27 03:20:32 EST 2019
Just to add on regarding file I/O. It would be more pythonic to use.
On Wed, Feb 27, 2019, 3:31 AM Marko Rauhamaa <marko at pacujo.net> wrote:
> Consider this function:
> def fun():
> f = open("lock")
> flock.flock(f, fcntl.LOCK_EX)
> Question: can a compliant Python implementation close f (and,
> consequently, release the file lock) before/while do_stuff() is
> I couldn't find an immediate answer in the documentation.
More information about the Python-list